diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml new file mode 100644 index 000000000..cb720904b --- /dev/null +++ b/.github/workflows/fuzz.yml @@ -0,0 +1,29 @@ +name: Fuzz + +on: + schedule: + - cron: "17 3 * * 1" + workflow_dispatch: + +jobs: + fuzz: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install QA dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[qa]" + - name: Run bounded parser fuzz tests + env: + PYTHONPATH: . + HYPOTHESIS_PROFILE: fuzz + run: python -m pytest -q tests/property -m fuzz --hypothesis-show-statistics diff --git a/.github/workflows/parser-reference-guard.yml b/.github/workflows/parser-reference-guard.yml index 1bfa6d132..986a8ca8d 100644 --- a/.github/workflows/parser-reference-guard.yml +++ b/.github/workflows/parser-reference-guard.yml @@ -11,14 +11,15 @@ jobs: (github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || - github.event.label.name == 'ignore-parser-reference-guard') + github.event.label.name == 'ignore-parser-reference-guard' || + github.event.label.name == 'require-parser-reference-update') runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Verify parser implementation reference was updated when needed + - name: Verify parser references were updated when needed env: BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} @@ -45,28 +46,93 @@ jobs: exit 0 fi - DOC_CHANGED=false - if echo "$CHANGED_FILES" | grep -Fxq "docs/fortran/parser_implementation_reference.md"; then - DOC_CHANGED=true + C_DOC="docs/c_parser.md" + FORTRAN_DOC="docs/fortran_parser.md" + + C_DOC_CHANGED=false + FORTRAN_DOC_CHANGED=false + C_PARSER_CHANGED=false + FORTRAN_PARSER_CHANGED=false + SHARED_PARSER_CHANGED=false + + if printf '%s\n' "$CHANGED_FILES" | grep -Fxq "$C_DOC"; then + C_DOC_CHANGED=true fi + if printf '%s\n' "$CHANGED_FILES" | grep -Fxq "$FORTRAN_DOC"; then + FORTRAN_DOC_CHANGED=true + fi + + while IFS= read -r changed_file; do + case "$changed_file" in + c_parser/*|tests/parser/c/*|tests/data/c/*|tests/parser/test_c_standard_type_probe.py) + C_PARSER_CHANGED=true + ;; + fortran_parser/*|tests/parser/fortran/*|tests/data/fortran/*) + FORTRAN_PARSER_CHANGED=true + ;; + tests/parser/test_declaration_and_interface_edges.py|\ + tests/parser/test_error_handling.py|\ + tests/parser/test_fortran_fixture_suite.py|\ + tests/parser/test_fortran_json_sanity.py|\ + tests/parser/test_fortran_parser_regression_contracts.py|\ + tests/parser/test_fortran_type_probe.py|\ + tests/parser/test_function_header_parsing.py|\ + tests/parser/test_parser_developer_tutorial.py|\ + tests/parser/test_parser_public_entrypoints.py|\ + tests/parser/test_procedure_and_type_parsing.py|\ + tests/parser/test_project_scope_models.py|\ + tests/parser/test_scope_handling.py) + FORTRAN_PARSER_CHANGED=true + ;; + tests/parser/conftest.py|\ + tests/parser/test_cli.py|\ + tests/parser/test_preprocessing_cli.py|\ + x2py/preprocessing.py) + SHARED_PARSER_CHANGED=true + ;; + esac + done <<< "$CHANGED_FILES" if echo ",${PR_LABELS}," | grep -Fq ",${FORCE_LABEL},"; then - if [ "$DOC_CHANGED" = true ]; then - echo "${FORCE_LABEL} label present and doc updated." - exit 0 + if [ "$C_DOC_CHANGED" = true ] || [ "$FORTRAN_DOC_CHANGED" = true ]; then + echo "${FORCE_LABEL} label present and at least one parser reference changed." + else + echo "${FORCE_LABEL} label present, but no parser reference changed." + echo "Update ${C_DOC} or ${FORTRAN_DOC}, or remove ${FORCE_LABEL}." + exit 1 fi - echo "${FORCE_LABEL} label present, but doc not updated." - exit 1 fi - if [ "$DOC_CHANGED" = true ]; then - echo "docs/fortran/parser_implementation_reference.md changed." - exit 0 + FAILED=false + + if [ "$C_PARSER_CHANGED" = true ] && [ "$C_DOC_CHANGED" != true ]; then + echo "C parser-related files changed without updating ${C_DOC}." + FAILED=true fi - if echo "$CHANGED_FILES" | grep -Eq "^(fortran_parser/|tests/parser/|tests/data/fortran/)"; then - echo "Parser-related files changed without updating docs/fortran/parser_implementation_reference.md." + if [ "$FORTRAN_PARSER_CHANGED" = true ] && [ "$FORTRAN_DOC_CHANGED" != true ]; then + echo "Fortran parser-related files changed without updating ${FORTRAN_DOC}." + FAILED=true + fi + + if [ "$SHARED_PARSER_CHANGED" = true ] && \ + [ "$C_DOC_CHANGED" != true ] && \ + [ "$FORTRAN_DOC_CHANGED" != true ]; then + echo "Shared parser workflow files changed without updating a parser reference." + echo "Update ${C_DOC} or ${FORTRAN_DOC}, whichever behavior changed." + FAILED=true + fi + + if [ "$FAILED" = true ]; then + echo "Use ${IGNORE_LABEL} only when the parser reference is already accurate." exit 1 fi - echo "No parser-related files changed; update not required." + if [ "$C_DOC_CHANGED" = true ]; then + echo "${C_DOC} changed." + fi + if [ "$FORTRAN_DOC_CHANGED" = true ]; then + echo "${FORTRAN_DOC} changed." + fi + + echo "Parser reference guard passed." diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 000000000..d3bc3eea7 --- /dev/null +++ b/.github/workflows/quality.yml @@ -0,0 +1,78 @@ +name: Quality + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - main + - release/* + +jobs: + static-analysis: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install QA dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[qa]" + - name: Ruff lint + run: python -m ruff check . + - name: Ruff format + run: python -m ruff format --check . + - name: Bandit security scan + run: bandit -c pyproject.toml -r c_parser fortran_parser semantics x2py --severity-level medium --confidence-level medium + - name: pip-audit dependency scan + run: pip-audit . --cache-dir /tmp/pip-audit-cache + - name: Vulture dead-code scan + run: vulture + - name: Radon complexity policy + env: + PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} + PUSH_BEFORE_SHA: ${{ github.event.before }} + run: python tools/check_radon_policy.py --base-ref auto + - name: Radon complexity report + continue-on-error: true + run: radon cc c_parser fortran_parser semantics x2py -n C -s --total-average + - name: Radon maintainability report + continue-on-error: true + run: radon mi c_parser fortran_parser semantics x2py -s + + # Benchmark workflow is intentionally parked for later activation. + # benchmark: + # if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + # runs-on: ubuntu-latest + # timeout-minutes: 15 + # permissions: + # contents: read + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: "3.12" + # - name: Install QA dependencies + # run: | + # python -m pip install --upgrade pip + # python -m pip install -e ".[qa]" + # - name: Run parser benchmarks + # env: + # PYTHONPATH: . + # run: python -m pytest -q tests/benchmarks -m benchmark --benchmark-only --benchmark-json=benchmark.json + # - name: Upload benchmark report + # uses: actions/upload-artifact@v4 + # with: + # name: parser-benchmark-${{ github.run_id }} + # path: benchmark.json + # retention-days: 90 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 61a6a44f8..57b55c87b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,12 +30,13 @@ jobs: - name: Install test dependencies run: | python -m pip install --upgrade pip - python -m pip install -e . pytest coverage + python -m pip install -e ".[qa]" - name: Run tests env: PYTHONPATH: . COVERAGE_PROCESS_START: ${{ github.workspace }}/pyproject.toml - run: python -m coverage run -m pytest -q + HYPOTHESIS_PROFILE: ci + run: python -m coverage run -m pytest -q --randomly-seed=1 - name: Combine coverage data run: python -m coverage combine - name: Report coverage diff --git a/.gitignore b/.gitignore index d6afc5abc..f8d8e75c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,15 @@ __pycache__ __pyccel__ .pymon +.coverage +.coverage.* +.hypothesis/ +.mutmut-cache/ +mutants/ +.pytest_cache/ +.ruff_cache/ +.benchmarks/ +htmlcov/ *.pyc *.pyo diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 79992069a..40c76b658 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,10 +4,25 @@ - **CI must be green before merging**: do not merge a PR unless all checks pass (including `test` and `parser-reference-guard`). - **Explain fixture/golden updates**: if you update any JSON under `tests/data/fortran/` or `tests/parser/fortran/fixtures/`, include a short note in the PR describing why the expected output changed. +- **Run the QA stack for parser/compiler changes**: install `python -m pip install -e ".[qa]"`, use the workflows in `docs/quality.md`, and update that file when a staged adoption task or scheduled triage item changes. ### Parser reference guard -This repo includes a CI guard that may require updating `docs/fortran/parser_implementation_reference.md` when parser-related files change. +This repo includes a CI guard that may require updating parser reference docs +when parser-related files change. -- **Default behavior**: if you change `fortran_parser/` or `tests/data/fortran/`, update `docs/fortran/parser_implementation_reference.md` when the change affects the documented feature inventory or behavior. +- **C parser changes**: if you change `c_parser/`, `tests/parser/c/`, or + `tests/data/c/`, update `docs/c_parser.md` when the change affects the + documented feature inventory, public API, diagnostics, fixtures, semantic + handoff, or maintenance workflow. The guard also treats + `tests/parser/test_c_standard_type_probe.py` as C parser related. +- **Fortran parser changes**: if you change `fortran_parser/`, + `tests/parser/fortran/`, or `tests/data/fortran/`, update + `docs/fortran_parser.md` when the change affects the documented feature + inventory, public API, diagnostics, fixtures, semantic handoff, or + maintenance workflow. The guard also tracks focused Fortran parser tests + directly under `tests/parser/`. +- **Shared parser workflow changes**: if you change shared parser CLI or + preprocessing behavior, update `docs/c_parser.md` or + `docs/fortran_parser.md`, whichever parser behavior changed. - **Bypass (use sparingly)**: add the PR label `ignore-parser-reference-guard` to skip that guard for changes that do not meaningfully affect the reference. diff --git a/README.md b/README.md index ec5a68047..d1f6cf5aa 100644 --- a/README.md +++ b/README.md @@ -1,853 +1,118 @@ # x2py -Wrapper-oriented parser and semantic-interface tooling for Fortran, with a -partial C parser frontend that is source-faithful and ready for later semantic -conversion work. +Wrapper-oriented parser and semantic-interface tooling for Fortran, with a C +frontend for declaration/signature extraction needed by wrapper generation. [![Tests](https://github.com/PyNumLab/x2py/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/PyNumLab/x2py/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/PyNumLab/x2py/graph/badge.svg?token=QZRRCS5YO6)](https://codecov.io/gh/PyNumLab/x2py) +## What It Does -## What the parsers handle +x2py turns native source interfaces into structured parser output, semantic IR, +generated `.pyi` stubs, and wrap-readiness reports. -The parsers are intentionally robust subset parsers, not full compiler -frontends. They preserve source facts needed for wrapper generation and defer -ABI, ownership, and wrappability policy to semantic stages. +The project is intentionally wrapper-oriented. It does not aim to be a full +compiler frontend. The parsers preserve the declarations, signatures, type +facts, source locations, include/use relationships, diagnostics, and semantic +metadata needed for later wrapper generation. -### Fortran parser +## Documentation -Current handled coverage: +Start with the documentation that matches your role: -- **Source forms** - - Free-form: `.f90`, `.f95`, `.f03`, `.f08` - - Fixed-form: `.f`, `.for`, `.ftn` (including classic continuation) - - Comment stripping and continuation folding -- **Procedures** - - `subroutine` and `function` - - Header attributes: `pure`, `elemental`, `recursive` - - Function `result(...)` handling -- **Arguments and declarations** - - Intrinsic types: `integer`, `real`, `complex`, `logical`, `character` - - `kind=...` extraction - - `intent(in|out|inout)` - - `optional`, `value`, `allocatable`, `pointer` - - `dimension(...)` and variable-level shapes like `x(:)` / `x(n)` -- **Modules and project context** - - Module discovery - - Module-level variables and `use` dependencies - - `use ... only:` symbol mappings preserve both imported source names and - local target names for renamed imports - - Propagation of module-level `use` into contained procedures - - Cross-file kind resolution when parsing a namespace/project - - Submodules, programs, and block data units -- **Derived types** - - `type :: ... end type` - - Attributes (e.g. `abstract`) and `extends(...)` - - Field extraction (intrinsic + `type(...)`) - - Type-bound procedures and generic bindings -- **Parser diagnostics and metadata** - - Source locations for parser errors - - Unknown argument declaration reporting - - Parse-stage unsupported construct reporting +- [User documentation](docs/user.md): CLI usage, Python API usage, `.pyi` stub + format, datatype mappings, examples, readiness reports, and user + responsibilities. +- [Developer documentation](docs/developer.md): implementation map, parser and + semantic contracts, how to add features, fixture maintenance, and focused + test commands for each project area. -### C parser +Additional references: -The C frontend is currently parse-only. It supports: +- [Documentation index](docs/README.md) +- [C parser reference](docs/c_parser.md) +- [Fortran parser reference](docs/fortran_parser.md) +- [Semantic IR and `.pyi` reference](docs/semantics.md) +- [Wrapper design notes](docs/wrapper_design_notes.md) +- [Diagnostic codes](docs/diagnostic_codes.md) -- Raw-source directive metadata for includes, simple macros, conditionals, and - pragmas. Raw mode records these facts but does not expand macros or select - conditional branches. -- Compiler-assisted preprocessing through the shared CLI flags, with `#line` - and GCC/Clang linemarker remapping back to original source locations. -- Top-level variables, typedefs, function declarations/definitions, structs, - unions, enums, incomplete tags, flexible array member diagnostics, and - compatible top-level redeclaration merging. -- Pointer, array, function, and parenthesized declarator shapes, including - function pointer typedefs/parameters and parameter adjustment metadata. -- Project include/index facts through `parse_c_project(...)`, with includes - recorded non-recursively: only explicitly supplied files or files below an - explicitly supplied directory are parsed. -- Compiler mode is the wrapper-facing path for macro-dependent APIs: it parses - one compiler-expanded translation unit and keeps mutually exclusive branches - separate across build configurations. +## Quick Start -The supported C subset continues through semantic IR conversion, `.pyi` -generation, and wrap-readiness. - -## Public APIs - -Public API entrypoints include: - -- `x2py.parse_fortran_file(source_or_path, filename=None, encoding="utf-8") -> FortranFile` -- `x2py.parse_fortran_project(files, encoding="utf-8") -> FortranProject` -- `x2py.parse_c_file(source_or_path, filename=None, include_dirs=None, preprocessing="raw", encoding="utf-8") -> CFile` -- `x2py.parse_c_project(files, include_dirs=None, preprocessing="raw", encoding="utf-8") -> CProject` -- `x2py.fortran_file_to_semantic_modules(parsed_file, standalone_module_name=None) -> list[SemanticModule]` -- `x2py.fortran_project_to_semantic_modules(project) -> list[SemanticModule]` -- `x2py.c_file_to_semantic_modules(parsed_file) -> list[SemanticModule]` -- `x2py.c_project_to_semantic_modules(project) -> list[SemanticModule]` -- `x2py.emit_module_stubs(module_or_modules) -> dict[str, str]` -- `x2py.load_pyi_modules(path_or_paths, encoding="utf-8") -> list[SemanticModule]` -- `x2py.assess_semantic_wrap_readiness(semantic_ir, source=None) -> dict` -- `x2py.assess_pyi_wrap_readiness(path_or_paths, encoding="utf-8") -> dict` -- `x2py.c_type_probe.probe_c_standard_types(config, runner=None) -> CStandardTypeProbeReport` -- `x2py.evaluate_fortran_type_requirements(config, requirements, runner=None) -> dict[str, int]` - -## Repository layout - -Fortran source inputs live under `tests/data/fortran`. C parser fixtures live -under `tests/data/c` and C parser tests live under `tests/parser/c`. -Stage-specific tests and expected fixtures live under `tests/parser`, -`tests/semantics`, and `tests/pyi`. - -Technical documentation is indexed in [`docs/README.md`](docs/README.md). The -editable wrapper `.pyi` format is documented in -[`docs/semantics/pyi_format.md`](docs/semantics/pyi_format.md). - -## Terminal usage - -`x2py` exposes four stage flags: - -- `--parse` for parser output and parse-stage diagnostics -- `--semantics` for semantic IR JSON -- `--pyi` for generated Python stub text -- `--wrap-readiness` for semantic wrap-readiness from either Fortran or `.pyi` - -Recognizable Fortran source files and `.pyi` readiness inputs use the Fortran -path when `--language` is omitted. C source/header files require explicit -`--language c`; directories and unknown-suffix source inputs require either -`--language fortran` or `--language c`. C parsing, semantic IR, `.pyi` -generation, and wrap-readiness are available in explicit C mode. Selecting a -frontend that conflicts with a recognized C or Fortran source suffix is an -error. Once selected, a frontend validates the grammar regions it models and -rejects unparsed syntax outside intentionally ignored execution/function -bodies, rather than guessing another language from keyword spellings or -silently dropping malformed input. - -Parse failures print a compiler-style diagnostic without a Python traceback. -Use `--debug` to re-raise the parser error and print the traceback; -`--debug-traceback` remains accepted as a compatibility alias. Diagnostic codes -such as `PARSE_UNSUPPORTED_DECLARATION`, `CPARSE_INVALID_SPECIFIER_SEQUENCE`, -and `CPARSE_INVALID_SYNTAX` are stable, explicit error-category identifiers for -tests, tools, and documentation. The current categories are listed in -[`docs/diagnostic_codes.md`](docs/diagnostic_codes.md). - -For parse output, `--show-vars` expands scope-level variables that are normally -summarized as `vars=N`. Use `--print-limit N` to keep large repeated sections -readable. - -### Run from source tree - -```bash -python -m x2py path/to/file.f90 --parse -``` - -### Run after installation - -```bash -x2py path/to/file.f90 --parse -``` - -One or more recognized Fortran files can omit `--language`. Directory input -must select a frontend explicitly: - -```bash -python -m x2py path/to/fortran_src --language fortran --parse -python -m x2py path/to/c_src --language c --parse -``` - -Fortran directories scan `.f`, `.for`, `.ftn`, `.f90`, `.f95`, `.f03`, -`.f08`; C directories scan `.c`, `.h`, and `.i` files. - -### Compiler preprocessing, includes, and target probes - -Wrapper-facing source parsing should use compiler preprocessing whenever the -input contains C/CPP preprocessing. The selected compiler is authoritative for -macro expansion, `#if`/`#ifdef` branch selection, C `#include`, Fortran CPP -`#include`, predefined macros, `-D`/`-U`, include paths, target flags, and -sysroot behavior. Internal parser mode remains available for plain source, -already-preprocessed source, and focused parser tests; it does not evaluate CPP -branches. - -The shared compiler mode is: - -```bash -python -m x2py path/to/source.f90 --language fortran --parse \ - --preprocess compiler \ - --compiler /path/to/compiler \ - -I include \ - -D FEATURE=1 \ - -U DEBUG \ - --std f2008 \ - --compiler-arg=-fdefault-real-8 -``` - -For C, `--language c --preprocess compiler` runs the exact compiler -preprocessor and parses stdout. C and Fortran can use `--compile-commands -build/compile_commands.json` when a matching entry supplies the compiler and -project flags. GCC-compatible C/Clang invocations use `-E -x c`; GNU Fortran -invocations use `-E -cpp`. Linemarkers are preserved so parser locations can be -mapped back to original files. For unsupported compiler families, use -`--preprocessor-adapter command-template --preprocess-template '...'`; the -minimum adapter contract is expanded source on stdout. - -Fortran native `include "file.inc"` is resolved after compiler CPP output and -before parsing. This is textual insertion into the current module, procedure, -interface, or execution scope; it is not the same as `use module_name`. Native -includes are resolved relative to the including file first, then configured -`-I` directories, and duplicate textual inclusion is preserved. Missing -includes and cycles are reported as preprocessing diagnostics. - -Preprocessing JSON records the exact recipe: compiler or adapter, argv, working -directory, include directories, defines, undefs, standard, extra compiler -arguments, included files, source mappings, diagnostics, and optional macro -metadata when the adapter output exposes it. System-header declarations are -classified private by default. Reachable project includes are public by -default; use `--include-exposure roots-only`, `--public-include`, and -`--private-include` to control wrapper export. Private declarations remain -available internally for type resolution. Public signatures that refer to -private C handle types can use private opaque classes rather than exposing data -members. - -The C parser tolerates common compiler-expanded declaration syntax from system -headers, including GNU attributes, `__declspec(...)`, alternate qualifier -spellings, declaration-level `asm(...)`, calling-convention keywords, -`typeof(...)`, `_BitInt(...)`, and selected extended scalar names. Harmless -syntax is accepted without exposing private header declarations. Ignored -extensions that can affect ABI, layout, symbol identity, or type identity -produce `C_UNMODELED_COMPILER_EXTENSION` warnings. - -Preprocessing failures print explicit categories such as -`PREPROCESSOR_NOT_FOUND`, `PREPROCESSOR_FAILED`, -`INVALID_COMPILER_ARGUMENTS`, `UNSUPPORTED_COMPILER_CAPABILITY`, -`PROVENANCE_UNAVAILABLE`, `INCLUDE_NOT_FOUND`, and `INCLUDE_CYCLE` without a -Python traceback. Pass `--debug` to re-raise and show the traceback. - -Target-dependent type facts are not hard-coded. They are probed with the same -compiler path and target-relevant flags because results may change with ABI, -architecture, library headers, and compiler options. - -C standard-header facts: - -```bash -python -m x2py.c_type_probe --compiler /usr/bin/gcc-13 \ - -I include \ - -D FEATURE=1 \ - -U DEBUG \ - --std c11 \ - --compiler-arg=--sysroot=/opt/sdk -``` - -The C probe passes `-I`, `-D`, `-U`, and `--compiler-arg` into the generated -probe and records the requested `--std`. The generated probe itself is compiled -as C11 because it uses C11 `_Generic` and `_Alignof`; if a standard-selection -flag affects the target ABI or headers, pass a compatible override through -`--compiler-arg`. The probe does not consume `compile_commands.json` directly; -when the parser uses a compile database, pass the selected compiler and -target-relevant flags from that entry to the probe explicitly. - -Fortran kind/compile-time facts: - -```bash -python -m x2py.fortran_type_probe --compiler /usr/bin/gfortran-12 \ - --expr 'selected_real_kind(12)' \ - --expr 'selected_int_kind(9)' \ - --std f2008 \ - --compiler-arg=-fdefault-real-8 -``` - -The Fortran probe passes `-I`, `-D`, `-U`, `--std`, and `--compiler-arg` to the -generated probe. The semantic CLI path uses this automatically when Fortran -input is converted with `--preprocess compiler --compiler ...`: it collects -unresolved compiler-dependent values, evaluates them with the probe, and feeds -the resulting `compile_time_values` into semantic conversion. - -By default the probes execute the generated binary on the host. For cross -targets, provide a compatible runner/emulator or supply a target profile; host -execution only describes the host target. - -### C parser examples - -Parse a C header in raw mode: - -```bash -python -m x2py include/api.h --language c --parse -``` - -Print C parser JSON: - -```bash -python -m x2py include/api.h --language c --parse --json -``` - -Parse a macro-shaped API through the configured compiler preprocessor: - -```bash -python -m x2py include/api.h --language c --parse \ - --preprocess compiler \ - --compiler clang-18 \ - -I include \ - -D API_EXPORT= -``` - -Parse a C source using a compile database entry: - -```bash -python -m x2py src/api.c --language c --parse \ - --preprocess compiler \ - --compile-commands build/compile_commands.json -``` - -The supported C subset now continues through semantic IR, `.pyi` output, and -wrap-readiness: - -```bash -python -m x2py include/api.h --language c --semantics -python -m x2py include/api.h --language c --pyi -python -m x2py include/api.h --language c --wrap-readiness -``` - -### Example 1: human-readable output - -Fortran input (`tests/data/fortran/general/basic_subroutine.f90`): - -```fortran -module m1 - implicit none - integer :: n - real, dimension(10) :: x -contains - subroutine add1(n, x) - integer, intent(in) :: n - real, dimension(n), intent(inout) :: x - end subroutine add1 -end module m1 -``` +Parse a Fortran source file: ```bash python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse ``` -Expected style of output: - -```text -File: tests/data/fortran/general/basic_subroutine.f90 - Modules: 1 - - module m1 (vars=2, uses=0) - Procedures: 1 - - subroutine add1(n:integer[0], x:real[1]) -``` - -To include module variables in the same tree: - -```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --show-vars -``` - -```text -File: tests/data/fortran/general/basic_subroutine.f90 - Modules: 1 - - module m1 (vars=2, uses=0) - Variables: 2 - - n:integer[0] - - x:real[1] - Procedures: 1 - - subroutine add1(n:integer[0], x:real[1]) -``` - -For large modules, cap repeated sections: - -```bash -python -m x2py path/to/file.f90 --parse --show-vars --print-limit 50 -``` - -`--print-limit` applies independently to each repeated section in the -human-readable parse tree, including modules, submodules, programs, block data -units, derived types, fields, procedures, and variables when `--show-vars` is -also set. Section totals are still printed before truncation. - -### Example 1b: more complex tree output - -Fortran input (`mixed_example.f90`): - -```fortran -subroutine driver(n) - integer, intent(in) :: n -end subroutine driver - -module math_ops - use iso_c_binding, only: c_double - implicit none - real(c_double) :: alpha -contains - subroutine saxpy(n, a, x, y) - integer, intent(in) :: n - real(c_double), intent(in) :: a - real(c_double), dimension(n), intent(in) :: x - real(c_double), dimension(n), intent(inout) :: y - end subroutine saxpy - - function dot(x, y) result(r) - real(c_double), dimension(:), intent(in) :: x, y - real(c_double) :: r - end function dot -end module math_ops - -module io_ops - implicit none -contains - subroutine dump(v) - real, dimension(:), intent(in) :: v - end subroutine dump -end module io_ops -``` - -Command: - -```bash -python -m x2py mixed_example.f90 --parse -``` - -Expected output style: - -```text -File: mixed_example.f90 - Procedures: 1 - - subroutine driver(n:integer[0]) - Modules: 2 - - module math_ops (vars=1, uses=1) - Procedures: 2 - - subroutine saxpy(n:integer[0], a:real[0], x:real[1], y:real[1]) - - function dot(x:real[1], y:real[1]) - - module io_ops (vars=0, uses=0) - Procedures: 1 - - subroutine dump(v:real[1]) -``` - -Notes: - -- Top-level `Procedures` contains only free procedures (not inside a module). -- Module members are listed under each `module ...` entry. -- Empty sections are omitted. - -### Example 2: JSON output to stdout +Generate a `.pyi` interface draft: ```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --json +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi ``` -Expected JSON structure (top-level keyed by input path): - -- `.signatures`: parsed procedures -- `.types`: parsed derived types -- `.modules`: parsed modules -- `.submodules`: parsed submodules -- `.programs`: parsed programs -- `.block_data`: parsed block data units - -### Example 3: wrap-readiness summary +Check whether a source file or edited `.pyi` has enough semantic information +for wrapping: ```bash python -m x2py tests/data/fortran/general/basic_subroutine.f90 --wrap-readiness -``` - -This converts each input to semantic IR, then prints the wrappability status -and blocker list. The same flag accepts edited `.pyi` files: - -```bash python -m x2py solver.pyi --wrap-readiness ``` -Use `--json` for the stable readiness payload. It keeps `wrappable` at file -level and includes `unit_blockers` only for units that own a blocker. - -`--wrap-readiness` can also be combined with other stages. For example, -`--semantics --wrap-readiness` emits semantic IR with a `wrap_readiness` payload -attached, and `--parse --wrap-readiness` prints the parse tree followed by the -semantic readiness summary. Parser JSON remains parse-only; when `--json` is -used with `--parse --wrap-readiness`, the output is split into top-level -`parse` and `wrap_readiness` sections. - -### Example 4: semantic IR JSON output - -```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --semantics -``` - -This prints semantic conversion payload per file, including: - -- `semantic_modules`: semantic module/class/function/type metadata -- `pyi`: generated `.pyi` text associated with those semantic modules - -### Example 5: print generated `.pyi` text - -```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi -``` - -This prints a per-file section followed by the generated Python stub text. - - -### Example 6: modern Fortran module -> `.pyi` (reproducible fixture) - -The repository includes a richer modern-Fortran fixture at: - -- `tests/data/fortran/general/modern_pyi_example.f90` - -Generate its stubs: - -```bash -python -m x2py tests/data/fortran/general/modern_pyi_example.f90 --pyi -``` - -Current `.pyi` output for this fixture (showing derived types, array annotations, and procedures): - -```python -File: tests/data/fortran/general/modern_pyi_example.f90 -class particle: - id: Int32 - mass: Float64 - position: Float64[3] - -class vector3: - values: Float64[3] - -@private -class hidden_state: - code: Int32 - -counter: Int32 - -hidden_scale: private[Float64] - -def init_particle( - p: Annotated[Ptr(particle), Intent('out')], - pid: Ptr(Const(Int32)), - mass: Ptr(Const(Float64)), - x: Ptr(Const(Float64)), - y: Ptr(Const(Float64)), - z: Ptr(Const(Float64)) -) -> None: ... - -def kinetic_energy( - p: Ptr(Const(particle)), - vx: Ptr(Const(Float64)), - vy: Ptr(Const(Float64)), - vz: Ptr(Const(Float64)) -) -> Float64: ... - -def scale_vector( - v: Float64[::Strided], - alpha: Ptr(Const(Float64)) -) -> None: ... - -def dot3( - a: Const(Float64[3]), - b: Const(Float64[3]) -) -> Float64: ... - -def fill_identity3( - a: Annotated[Float64[3, 3], ORDER_F, Intent('out')] -) -> None: ... - -def normalize_particle( - p: Ptr(particle) -) -> None: ... - -@private -def hidden_proc( - x: Ptr(Const(Int32)) -) -> None: ... -``` - -This snapshot is also verified in `tests/semantics/test_pyi_printer_modern_example.py`. - -Parse output for the same fixture now includes the derived type definition and field list: - -```bash -python -m x2py tests/data/fortran/general/modern_pyi_example.f90 --parse -``` - -```text -File: tests/data/fortran/general/modern_pyi_example.f90 - Modules: 1 - - module modern_math_physics (vars=2, uses=0) - Derived types: 3 - - type particle (fields=3, methods=0) - Fields: 3 - - id:integer[0] - - mass:real[0] - - position:real[1] - - type vector3 (fields=1, methods=0) - Fields: 1 - - values:real[1] - - type hidden_state (fields=1, methods=0) - Fields: 1 - - code:integer[0] - Procedures: 7 - - subroutine init_particle(p:type(particle)[0], pid:integer[0], mass:real[0], x:real[0], y:real[0], z:real[0]) - - function kinetic_energy(p:type(particle)[0], vx:real[0], vy:real[0], vz:real[0]) -> real[0] - - subroutine scale_vector(v:real[1], alpha:real[0]) - - function dot3(a:real[1], b:real[1]) -> real[0] - - subroutine fill_identity3(a:real[2]) - - subroutine normalize_particle(p:type(particle)[0]) - - subroutine hidden_proc(x:integer[0]) -``` - -### Example 7: output written to file (`--out`) - -When `--out` is provided, x2py writes files and does not print stage payloads to stdout. - -Parse JSON to a specific file: - -```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --out report.json -``` - -Parse JSON adjacent to source (`basic_subroutine.json`): +Parse C declarations through compiler preprocessing: ```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --out +python -m x2py tests/data/c/general/math_api.h --language c --parse --json ``` -Semantic IR JSON to a specific file: +Use compiler and include flags when source depends on macros, conditional +branches, or target headers: ```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --semantics --out semantics.json -``` - -Generated `.pyi` to a specific file: - -```bash -python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi --out module.pyi -``` - -Without an explicit filename, `--out` writes adjacent files next to each input -source: JSON for `--parse` and `--semantics`, `.pyi` for `--pyi`. - -## Python script usage - -### Example 1: parse a whole folder namespace - -```python -from x2py import parse_fortran_project -from pathlib import Path - -root = Path("tests/data/fortran/general") -files = [str(p) for p in root.rglob("*.f90")][:5] -project = parse_fortran_project(files) -print("files:", len(project.files)) -print("modules:", len(project.modules)) +python -m x2py include/api.h --language c --parse \ + --compiler clang \ + -I include \ + -D API_EXPORT= ``` -Expected result: - -- Returns a `FortranProject` aggregate for the folder. -- Includes dependency-aware ordering and cross-file kind/module resolution. +## Python API -### Example 2: parse one file and inspect readiness +The public Python entrypoints are exposed from `x2py`: ```python -from pathlib import Path from x2py import ( - assess_semantic_wrap_readiness, - fortran_file_to_semantic_modules, parse_fortran_file, + parse_fortran_project, + parse_c_file, + parse_c_project, + fortran_file_to_semantic_modules, + c_file_to_semantic_modules, + emit_module_stubs, + assess_semantic_wrap_readiness, ) - -path = Path("tests/data/fortran/general/basic_subroutine.f90") -code = path.read_text() - -parsed = parse_fortran_file(code, filename=str(path)) -modules = fortran_file_to_semantic_modules(parsed, standalone_module_name=path.stem) -report = assess_semantic_wrap_readiness(modules, source=str(path)) - -print("procedures:", len(parsed.procedures)) -print("wrappable:", report["wrappable"]) -print("blockers:", report["why_not_wrappable"]) ``` -Expected result: - -- `parsed` is a `FortranFile` aggregate with procedures/modules/types/interfaces/program units. -- `report` is produced from semantic IR and includes public API counts, - semantic blockers, unit-level blockers, and final `wrappable` boolean. - -If the parsed Fortran file cannot describe the wrapper interface completely, -generate a draft `.pyi`, edit it, then assess readiness from the edited stub: - -```bash -python -m x2py solver.f90 --pyi --out solver.pyi -python -m x2py solver.pyi --wrap-readiness -``` - -The edited `.pyi` is the source of truth for readiness. It can declare derived -types with `class` stubs, literal compile-time constants with -`Final[...] = value`, and callback signatures with `Callable[[...], ...]`. - -### Example 3: parse C from Python +See [User Documentation](docs/user.md#python-api-workflows) for practical API +examples and [Developer Documentation](docs/developer.md) for the internal +contracts behind those entrypoints. -```python -from x2py import parse_c_file, parse_c_project - -header = parse_c_file("include/api.h") -print("functions:", [fn.name for fn in header.functions]) -print("typedefs:", [typedef.name for typedef in header.typedefs]) - -project = parse_c_project(["src/api.c", "include/api.h"], include_dirs=["include"]) -print("include graph:", project.include_graph) -print("header/source pairs:", project.header_source_pairs) -``` +## Repository Layout -The same C entrypoints remain available from `c_parser`. Includes are recorded -as project facts and are not recursively parsed; supply every header that -should contribute declarations (or supply its containing directory). C -semantic conversion will be added through the semantic layer in a future -phase. +- `fortran_parser/`: Fortran parser frontend. +- `c_parser/`: C parser frontend. +- `semantics/`: semantic IR conversion, `.pyi` loading/printing, datatype + mapping, and wrap-readiness checks. +- `x2py/`: package entrypoints and CLI integration. +- `tests/`: parser, semantic, CLI, and fixture tests. +- `docs/`: user, developer, parser, semantic, and design references. -## Running tests +## Running Tests -From repository root: +From the repository root: ```bash PYTHONPATH=. pytest -q ``` -## Merging policy (soft enforcement) - -This repository uses CI checks to validate parser behavior. As a project policy, -**do not merge pull requests unless all checks are green**. - -Run key suites individually: - -```bash -PYTHONPATH=. pytest -q tests/parser -PYTHONPATH=. pytest -q tests/semantics -PYTHONPATH=. pytest -q tests/pyi -``` - -### Refresh golden fixture JSON files - -```bash -python tests/parser/fortran/generate_fortran_parser_goldens.py -``` - -Or update only specific fixture files: - -```bash -python tests/parser/fortran/generate_fortran_parser_goldens.py tests/data/fortran/general/basic_subroutine.f90 -``` - -During fixture test runs, you can also auto-update expected JSON in-place: - -```bash -FORTRAN_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser --confcutdir=tests/ -``` - -When parser model output changes, include the regenerated parser goldens and a -short explanation in the PR. For `.pyi` or semantic IR behavior changes, update -the corresponding fixtures under `tests/pyi/fixtures` or -`tests/semantics/fixtures`. - -Semantic wrap-readiness corpus messages for the general, BLAS, LAPACK, and -SciFortran fixtures are regenerated separately: - -```bash -python tests/semantics/generate_wrap_readiness_fixtures.py -``` - -This writes `tests/semantics/fixtures/wrap_readiness_messages.json`. The file is -a semantic readiness fixture, not a parser golden, even though Fortran fixtures -are used as input. - -## Semantic parser structure - -The parser exposes stable file/project entrypoints: - -- `parse_fortran_file(...)` for one source (string or path) returning `FortranFile`. -- `parse_fortran_project(...)` for many sources returning `FortranProject`. - -Wrap-readiness is intentionally outside the parser model. Use -`fortran_file_to_semantic_modules(...)` or `.pyi` parsing to produce semantic IR, -then call `assess_semantic_wrap_readiness(...)` on that semantic interface. - -Internally, `FortranParser.visit_file` uses a recursive grammar-style -source-unit parser. The file is first sliced into direct -modules/submodules/programs/procedures/block-data/interfaces/types. Each unit -visitor then parses only its own substring, splits it into header, -specification, optional execution, and optional `contains` regions, and recurses -into direct child units where that grammar allows children. Shared declaration -helpers parse variables, procedure arguments/results, and type fields, then -push them into the active scope. Nested unit boundaries and placement outside -execution regions are checked even when they do not produce wrapper metadata. -Internal procedures inside a host procedure's `contains` block are -structurally sliced, then their declarations and bodies are skipped. After an -execution boundary is detected, procedure bodies and standalone included -execution fragments are intentionally skipped. Procedure-local interfaces are -retained for callback typing. -Parameter variables keep both `value` and serialized `symbolic_value` when the -parser has that information. `value` is literal/evaluated only; if an -initializer cannot be evaluated safely, `value` is `None` and -`symbolic_value` keeps the original expression. -Module-level parameters used in procedure argument shapes remain symbolic in -the signature while still being valid scoped references for readiness checks. - -The semantics layer consumes `FortranFile`/`FortranModule` objects and projects them into language-independent semantic IR (`SemanticModule`, `SemanticFunction`, `SemanticClass`, `SemanticType`). This keeps the semantic API model independent from parser internals, matching the project goal that parser output is a helper and the semantic interface/IR is the source of truth. -For compiler-specific constants, use -`collect_semantic_compile_time_requirements(parsed)` to extract unresolved -values. With a configured Fortran compiler, pass those requirements to -`evaluate_fortran_type_requirements(config, requirements)` and provide the -returned dictionary to semantic conversion via `compile_time_values`. The CLI -does this automatically for Fortran semantic stages when `--preprocess -compiler --compiler ...` is active. - -For Fortran `use` imports, the parser stores each explicit imported symbol as a -source/target mapping. A non-renamed `use iso_c_binding, only: c_int` maps -`source="c_int"` and `target=None`; a renamed -`use list_input, delete_input => delete_input_list` maps -`source="delete_input_list"` and `target="delete_input"`. The semantic layer -uses that information to emit Python stub imports such as -`from list_input import delete_input_list as delete_input`. - -Fortran `use` dependencies are not parsed or wrapped recursively. If a -procedure refers to an imported derived type, semantic IR records its defining -module and represents the reference as an opaque handle unless the defining -module is explicitly part of the wrapping target. Explicitly supplied modules -share one wrapped-type registry, so the imported reference resolves to the -single class emitted by its owner module without being re-exported by the -importing module. Reachable include exposure is already handled separately by -the preprocessing include policy; a future dependency-expansion option would -apply specifically to recursive Fortran `use` traversal. - -When an imported derived type remains external, `.pyi` generation emits an -owner-module dependency stub. For example, wrapping only `physics.f90` may -produce: - -```python -# physics.pyi -from types_mod import particle - -def move(p: Ptr(particle)) -> None: ... -``` - -```python -# types_mod.pyi -class particle(Opaque): - pass -``` - -`python -m x2py physics.f90 --pyi --out` writes both files beside the source. -`load_pyi_modules(...)` loads a file set or directory, preserves opaque classes, -and reconciles imported references against edited owner stubs. Replacing the -opaque placeholder with a concrete edited class changes the semantic reference -from `representation="opaque"` to `representation="wrapped"`. Existing -`Annotated[...]` constraints also round-trip through this editable interface; -richer coercion syntax can be added to the same `.pyi` format later. - -The same opaque-handle file-set model applies to C. A local forward declaration -such as `struct context;` emits `class context(Opaque): pass`. When a public C -header uses a struct from another explicitly supplied header, its generated -stub imports the class from that header's stub. A private included struct used -through a public pointer boundary emits an opaque owner-module dependency stub. -An unresolved C typedef is left unresolved rather than guessed to be opaque, -because its ABI may not be pointer-shaped. +Focused developer commands for C parser changes, Fortran parser changes, +semantic changes, CLI changes, fixture regeneration, linting, and coverage are +listed in [Developer Documentation](docs/developer.md#testing-map). diff --git a/c_parser/__init__.py b/c_parser/__init__.py index 04e582071..e8b46593a 100644 --- a/c_parser/__init__.py +++ b/c_parser/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Public C parser package.""" from .models import ( @@ -60,9 +59,9 @@ "CChar", "CComposedType", "CConst", + "CDiagnostic", "CDouble", "CDoubleComplex", - "CDiagnostic", "CEnum", "CEnumerator", "CFile", @@ -81,8 +80,8 @@ "CMacroDependency", "CParameter", "CParseError", - "CPointer", "CParser", + "CPointer", "CProject", "CQualifier", "CRawDirective", diff --git a/c_parser/__main__.py b/c_parser/__main__.py index 162973276..430434509 100644 --- a/c_parser/__main__.py +++ b/c_parser/__main__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Run the C parser CLI.""" from .cli import main diff --git a/c_parser/cli.py b/c_parser/cli.py index 3a333d31e..3ca2086da 100644 --- a/c_parser/cli.py +++ b/c_parser/cli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations import argparse @@ -26,11 +25,7 @@ def _diagnostic_color_enabled(*, disabled: bool) -> bool: def _collect_c_extensions(path: Path) -> list[Path]: - return sorted( - p - for p in path.rglob("*") - if p.is_file() and p.suffix.lower() in _C_SOURCE_SUFFIXES - ) + return sorted(p for p in path.rglob("*") if p.is_file() and p.suffix.lower() in _C_SOURCE_SUFFIXES) def expand_c_paths(paths: list[str]) -> list[Path]: @@ -50,7 +45,14 @@ def attach_preprocessing_recipe(parsed: CFile, preprocessing_recipe: dict[str, A parsed.preprocessing_recipe = preprocessing_recipe if not preprocessing_recipe: return - existing = {(macro.name, macro.source_location.filename if macro.source_location else None, macro.source_location.line if macro.source_location else None) for macro in parsed.macros} + existing = { + ( + macro.name, + macro.source_location.filename if macro.source_location else None, + macro.source_location.line if macro.source_location else None, + ) + for macro in parsed.macros + } for item in preprocessing_recipe.get("macros") or []: if not isinstance(item, dict): continue @@ -121,7 +123,6 @@ def format_c_report(report: dict[str, dict]) -> str: lines.append(f" Macros: {len(parsed.get('macros') or [])}") lines.append(f" Includes: {len(parsed.get('includes') or [])}") lines.append(f" Diagnostics: {len(parsed.get('diagnostics') or [])}") - lines.append(f" Parser status: {parsed.get('parser_status', 'partial')}") lines.append("") return "\n".join(lines).rstrip() @@ -146,7 +147,9 @@ def main(argv: list[str] | None = None) -> int: except CParseError as exc: if args.debug or _env_flag("C_PARSER_DEBUG"): raise - print(exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr) + print( + exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr + ) return 1 if args.out: Path(args.out).write_text(json.dumps(payload, indent=2), encoding="utf-8") diff --git a/c_parser/lexer.py b/c_parser/lexer.py index 1869ad671..8d65495ac 100644 --- a/c_parser/lexer.py +++ b/c_parser/lexer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations from dataclasses import dataclass, field @@ -87,12 +86,8 @@ class CTopLevelSegment: _BRACKET_PAIRS = {"(": ")", "[": "]", "{": "}"} _BRACKET_CLOSERS = {")": "(", "]": "[", "}": "{"} -_GCC_LINEMARKER_RE = re.compile( - r'^\s*#\s+(?P\d+)\s+(?:"(?P(?:[^"\\]|\\.)*)"|(?P\S+))' -) -_LINE_DIRECTIVE_RE = re.compile( - r'^\s*#\s*line\s+(?P\d+)(?:\s+(?:"(?P(?:[^"\\]|\\.)*)"|(?P\S+)))?' -) +_GCC_LINEMARKER_RE = re.compile(r'^\s*#\s+(?P\d+)\s+(?:"(?P(?:[^"\\]|\\.)*)"|(?P\S+))') +_LINE_DIRECTIVE_RE = re.compile(r'^\s*#\s*line\s+(?P\d+)(?:\s+(?:"(?P(?:[^"\\]|\\.)*)"|(?P\S+)))?') _AGGREGATE_HEADER_ATTRIBUTE_RE = re.compile(r"\b(?:__attribute__?|__declspec(?:__)?)\b") @@ -200,10 +195,7 @@ def _mapped_source_lines( end_line: int, ) -> tuple[str, ...]: """Return source-line text for a physical line range.""" - return tuple( - mapping.source_line or "" - for mapping in mappings[start_line - 1 : end_line] - ) + return tuple(mapping.source_line or "" for mapping in mappings[start_line - 1 : end_line]) def _mapped_filenames( @@ -512,13 +504,7 @@ def split_top_level_c_source( ) block_header = None block_source_line = None - elif ( - char == ";" - and paren_depth == 0 - and bracket_depth == 0 - and brace_depth == 0 - and start_index is not None - ): + elif char == ";" and paren_depth == 0 and bracket_depth == 0 and brace_depth == 0 and start_index is not None: text = stripped[start_index:i].strip() if text: start_mapping = _line_mapping(line_mappings, start_line, filename) @@ -800,13 +786,13 @@ def lex_c_source(source: str, filename: str | None = None) -> list[CToken]: __all__ = ( - "CLogicalRecord", "CLineMapping", + "CLogicalRecord", "CToken", "CTopLevelSegment", "NormalizedCSource", - "line_mappings_for_source", "lex_c_source", + "line_mappings_for_source", "normalize_c_source", "split_top_level_c_source", "strip_c_comments", diff --git a/c_parser/models.py b/c_parser/models.py index e5e2d8b55..05d866f8c 100644 --- a/c_parser/models.py +++ b/c_parser/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations import inspect @@ -53,17 +52,13 @@ def c_model_to_dict(obj: Any, _seen: set[int] | None = None) -> Any: if isinstance(obj, CQualifier): return obj.spelling if isinstance(obj, CType): - if isinstance(obj, (CStruct, CUnion, CEnum, CTypedef)) and id(obj) in _seen: + if isinstance(obj, CStruct | CUnion | CEnum | CTypedef) and id(obj) in _seen: return {"reference": obj.reference_name} - if isinstance(obj, (CStruct, CUnion, CEnum, CTypedef)): + if isinstance(obj, CStruct | CUnion | CEnum | CTypedef): _seen.add(id(obj)) payload = {"model": type(obj).__name__} payload.update( - { - f.name: c_model_to_dict(getattr(obj, f.name), _seen) - for f in fields(obj) - if not (f.name == "origin" and getattr(obj, f.name) is None) - } + {f.name: c_model_to_dict(getattr(obj, f.name), _seen) for f in fields(obj) if f.name != "origin"} ) return payload if is_dataclass(obj): @@ -71,26 +66,16 @@ def c_model_to_dict(obj: Any, _seen: set[int] | None = None) -> Any: f.name: c_model_to_dict(getattr(obj, f.name), _seen) for f in fields(obj) if not ( - (f.name == "origin" and getattr(obj, f.name) is None) + f.name == "origin" or ( isinstance(obj, CFile) and f.name in {"preprocessing_recipe", "preprocessed_source_path"} and getattr(obj, f.name) is None ) + or (isinstance(obj, CFile) and f.name == "original_source_paths" and not getattr(obj, f.name)) + or (isinstance(obj, CFunction) and f.name == "condition_set" and not getattr(obj, f.name)) or ( - isinstance(obj, CFile) - and f.name == "original_source_paths" - and not getattr(obj, f.name) - ) - or ( - isinstance(obj, CFunction) - and f.name == "condition_set" - and not getattr(obj, f.name) - ) - or ( - isinstance(obj, CProject) - and f.name == "conditional_function_variants" - and not getattr(obj, f.name) + isinstance(obj, CProject) and f.name == "conditional_function_variants" and not getattr(obj, f.name) ) ) } @@ -98,7 +83,7 @@ def c_model_to_dict(obj: Any, _seen: set[int] | None = None) -> Any: return [c_model_to_dict(v, _seen) for v in obj] if isinstance(obj, dict): return {k: c_model_to_dict(v, _seen) for k, v in obj.items()} - if isinstance(obj, (set, frozenset)): + if isinstance(obj, set | frozenset): return sorted(c_model_to_dict(v, _seen) for v in obj) return obj @@ -417,7 +402,7 @@ def type(self) -> CFunctionType: @dataclass class CStruct(CType): name: str | None = None - members: list["CVariable"] = field(default_factory=list) + members: list[CVariable] = field(default_factory=list) anonymous_id: str | None = None is_incomplete: bool = False source_location: CSourceLocation | None = None @@ -431,7 +416,7 @@ def reference_name(self) -> str: @dataclass class CUnion(CType): name: str | None = None - members: list["CVariable"] = field(default_factory=list) + members: list[CVariable] = field(default_factory=list) anonymous_id: str | None = None is_incomplete: bool = False source_location: CSourceLocation | None = None @@ -534,7 +519,6 @@ class CInclude: class CFile: filename: str | None = None language: str = "c" - parser_status: str = "partial" preprocessing: str = "raw" preprocessing_recipe: dict[str, Any] | None = None preprocessed_source_path: str | None = None diff --git a/c_parser/parser.py b/c_parser/parser.py index 059ea3b0e..81abb4176 100644 --- a/c_parser/parser.py +++ b/c_parser/parser.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Partial C parser for wrapper-oriented declaration extraction. Parsing sketch @@ -30,7 +29,7 @@ One source file follows this path: source text/path - -> raw directive metadata, or compiler/preprocessed line mappings + -> raw include/pragma metadata, or compiler/preprocessed line mappings -> split_top_level_c_source(...) -> CTopLevelSegment objects -> _parse_translation_unit(...) -> _parse_tag_definition(...) -> _parse_fields(...) @@ -48,24 +47,29 @@ -> _apply_declarator_operations: CArray -> CPointer -> CInt This is why typedefs, variables, function parameters, and aggregate members -obtain types with the same declarator rules. Raw preprocessing records macro -dependencies without expanding them; compiler/preprocessed input is parsed by -the same route after linemarkers are mapped back to original source locations. +obtain types with the same declarator rules. Raw preprocessing accepts include +and pragma metadata only; macro-shaped source requires compiler preprocessing. +Compiler/preprocessed input is parsed by the same route after linemarkers are +mapped back to original source locations. Executable walkthroughs live in ``tests/parser/c/test_c_parser_developer_tutorial.py``. """ + from __future__ import annotations from dataclasses import dataclass, replace +from itertools import pairwise import re from collections.abc import Mapping, Sequence from pathlib import Path, PurePosixPath from .lexer import ( + CLogicalRecord, CTopLevelSegment, lex_c_source, line_mappings_for_source, + normalize_c_source, split_top_level_c_source, strip_c_comments, top_level_partition, @@ -116,7 +120,6 @@ CLongDouble, CLongDoubleComplex, CLongLong, - CMacroDependency, ) from .preprocessor import collect_preprocessor_metadata from .type_resolver import resolve_project_types @@ -161,10 +164,7 @@ "_Decimal128": "_xd128", } _COMPILER_KEYWORD_NORMALIZATIONS.update(_EXTENDED_SCALAR_NORMALIZATIONS) -_EXTENDED_SCALAR_SPELLINGS = { - normalized: spelling - for spelling, normalized in _EXTENDED_SCALAR_NORMALIZATIONS.items() -} +_EXTENDED_SCALAR_SPELLINGS = {normalized: spelling for spelling, normalized in _EXTENDED_SCALAR_NORMALIZATIONS.items()} _EXTENDED_SCALAR_WORDS = set(_EXTENDED_SCALAR_SPELLINGS) _TAG_KINDS = {"struct", "union", "enum"} _UNSUPPORTED_DECLARATION_MARKERS = ( @@ -174,9 +174,7 @@ "_Alignas", "alignas", ) -_RAW_CONDITIONAL_DIRECTIVE_RE = re.compile( - r"^\s*#\s*(?Pif|ifdef|ifndef|elif|else|endif)\b" -) +_ALLOWED_RAW_DIRECTIVE_RE = re.compile(r'^\s*#\s*(?:include\s*(?:"[^"]+"|<[^>]+>)|pragma\b)', re.IGNORECASE) _GNU_ATTRIBUTE_KEYWORDS = {"__attribute", "__attribute__"} _DECLSPEC_KEYWORDS = {"__declspec", "__declspec__"} _ASM_KEYWORDS = {"asm", "__asm", "__asm__"} @@ -276,8 +274,7 @@ "long double _Complex": CLongDoubleComplex, } _PRIMITIVE_TYPE_SIGNATURES = { - tuple(sorted(spelling.split())): type_class - for spelling, type_class in _PRIMITIVE_TYPES.items() + tuple(sorted(spelling.split())): type_class for spelling, type_class in _PRIMITIVE_TYPES.items() } @@ -358,11 +355,7 @@ def _looks_like_existing_source_path(value: object) -> bool: def _collect_c_paths(path: Path) -> list[Path]: """Collect C source/header files below a directory in stable order.""" - return sorted( - p - for p in path.rglob("*") - if p.is_file() and p.suffix.lower() in _C_SOURCE_SUFFIXES - ) + return sorted(p for p in path.rglob("*") if p.is_file() and p.suffix.lower() in _C_SOURCE_SUFFIXES) def _posix_key(path: str | Path | PurePosixPath) -> str: @@ -421,7 +414,7 @@ def visit_file( The current implementation supports raw preprocessing metadata, compiler-fed preprocessed text, and the partial grammar subset - documented in `docs/c_parser`. + documented in `docs/c_parser.md`. """ source_path: Path | None = None if _looks_like_existing_source_path(source_or_path): @@ -434,15 +427,14 @@ def visit_file( source = str(source_or_path) inferred_preprocessed_path = ( - filename - if filename is not None and PurePosixPath(filename).suffix.lower() == ".i" - else None + filename if filename is not None and PurePosixPath(filename).suffix.lower() == ".i" else None ) if preprocessing == "raw" and inferred_preprocessed_path is not None: preprocessing = "preprocessed" - parsed = CFile(filename=filename, parser_status="partial", preprocessing=preprocessing) + parsed = CFile(filename=filename, preprocessing=preprocessing) if preprocessing == "raw": + self._raise_for_raw_preprocessing_directives(source, filename) effective_include_dirs = list(include_dirs or ()) if source_path is not None: effective_include_dirs.insert(0, source_path.parent) @@ -454,25 +446,12 @@ def visit_file( parsed.includes = metadata.includes parsed.macros = metadata.macros parsed.raw_directives = metadata.raw_directives - function_like_macro_names = {macro.name for macro in metadata.macros if macro.function_like} - object_like_macro_names = { - macro.name - for macro in metadata.macros - if macro.directive == "define" and not macro.function_like - } - parsed.macro_dependencies = self._macro_dependencies( - source, - filename, - function_like_macro_names, - object_like_macro_names, - ) parsed.diagnostics = metadata.diagnostics functions, structs, unions, enums, typedefs, variables, parser_diagnostics = self._parse_translation_unit( source, filename, - function_like_macros=function_like_macro_names, - object_like_macros=object_like_macro_names, - condition_sets_by_line=self._raw_conditional_condition_sets(source), + use_linemarkers=False, + normalize_compiler_extensions=False, ) parsed.functions = functions parsed.structs = structs @@ -505,11 +484,71 @@ def visit_file( preprocessed_source_path=parsed.preprocessed_source_path, ) else: - raise ValueError( - "C preprocessing mode must be 'raw', 'compiler', or 'preprocessed'." - ) + raise ValueError("C preprocessing mode must be 'raw', 'compiler', or 'preprocessed'.") return parsed + @staticmethod + def _raise_for_raw_preprocessing_directives(source: str, filename: str | None) -> None: + """Reject raw directives that require a real C preprocessor.""" + normalized = normalize_c_source(source, filename=filename) + include_guard_lines = CParser._trivial_include_guard_lines(normalized.records) + for record in normalized.records: + stripped = record.text.strip() + if not stripped.startswith("#") or _ALLOWED_RAW_DIRECTIVE_RE.match(stripped): + continue + if record.original_start_line in include_guard_lines: + continue + source_line = record.source_line + column = source_line.find("#") + 1 if source_line and "#" in source_line else 1 + raise CParseError( + "C preprocessing directives require compiler preprocessing before parsing.", + filename=record.filename, + line_number=record.original_start_line, + column=column, + source_line=source_line, + code="CPARSE_PREPROCESSING_REQUIRED", + ) + + @staticmethod + def _trivial_include_guard_lines(records: Sequence[CLogicalRecord]) -> set[int]: + """Return directive lines for a simple whole-file include guard.""" + directive_records: list[tuple[CLogicalRecord, str, str]] = [] + for record in records: + stripped = record.text.strip() + if not stripped.startswith("#"): + continue + match = re.match(r"^\s*#\s*(ifndef|define|endif)\b(.*)$", stripped) + if match is None: + continue + directive, argument = match.groups() + directive_records.append((record, directive.lower(), argument.strip())) + + if len(directive_records) != 3: + return set() + + ( + (ifndef_record, ifndef_directive, ifndef_name), + ( + define_record, + define_directive, + define_name, + ), + (endif_record, endif_directive, endif_argument), + ) = directive_records + if ifndef_directive != "ifndef" or define_directive != "define" or endif_directive != "endif": + return set() + if not ifndef_name or ifndef_name != define_name or endif_argument: + return set() + if ifndef_record.original_start_line > define_record.original_start_line: + return set() + if define_record.original_start_line > endif_record.original_start_line: + return set() + return { + ifndef_record.original_start_line, + define_record.original_start_line, + endif_record.original_start_line, + } + def visit_project( self, files: Mapping[str, str] | Sequence[str | Path] | str | Path, @@ -539,7 +578,7 @@ def visit_project( paths: list[Path] = [] root: Path | None = None - if isinstance(files, (str, Path)): + if isinstance(files, str | Path): path = Path(files) if path.is_dir(): root = path @@ -600,7 +639,7 @@ def mark_type(type_: CType | None) -> None: for parameter_type in type_.parameter_types: mark_type(parameter_type) return - if isinstance(type_, (CStruct, CUnion)): + if isinstance(type_, CStruct | CUnion): if id(type_) in seen_types: return seen_types.add(id(type_)) @@ -672,10 +711,7 @@ def _source_location_at(self, segment: CTopLevelSegment, offset: int) -> CSource line_offset = prefix.count("\n") line = segment.original_start_line + line_offset filename = segment.filename - if line_offset: - column = len(prefix.rsplit("\n", 1)[-1]) + 1 - else: - column = segment.original_start_column + len(prefix) + column = len(prefix.rsplit("\n", 1)[-1]) + 1 if line_offset else segment.original_start_column + len(prefix) source_line = segment.original_source_line if line_offset < len(segment.original_line_numbers): line = segment.original_line_numbers[line_offset] @@ -707,15 +743,8 @@ def _raise_for_invalid_top_level_syntax(segment: CTopLevelSegment) -> None: if not text: return tokens = lex_c_source(text) - has_scope_operator = any( - left.text == ":" and right.text == ":" - for left, right in zip(tokens, tokens[1:]) - ) - if ( - segment.terminator != "eof" - and not has_scope_operator - and CParser._could_start_c_external_declaration(text) - ): + has_scope_operator = any(left.text == ":" and right.text == ":" for left, right in pairwise(tokens)) + if segment.terminator != "eof" and not has_scope_operator and CParser._could_start_c_external_declaration(text): return raise CParseError( f"Invalid C syntax at top level: {text}", @@ -745,84 +774,6 @@ def _invalid_syntax_error( code="CPARSE_INVALID_SYNTAX", ) - def _macro_dependencies( - self, - source: str, - filename: str | None, - function_like_macro_names: set[str], - object_like_macro_names: set[str] | None = None, - ) -> list[CMacroDependency]: - """Collect top-level declaration dependencies on known macro names.""" - dependencies: list[CMacroDependency] = [] - if not function_like_macro_names and not object_like_macro_names: - return dependencies - - for segment in split_top_level_c_source(source, filename=filename): - dependency = self._segment_macro_dependency( - segment, - function_like_macro_names, - object_like_macro_names, - ) - if dependency is not None: - dependencies.append(dependency) - return dependencies - - def _segment_macro_dependency( - self, - segment: CTopLevelSegment, - function_like_macro_names: set[str], - object_like_macro_names: set[str] | None = None, - ) -> CMacroDependency | None: - """Return the first macro dependency that blocks parsing this segment.""" - text = segment.text.strip() - if not text: - return None - declaration_text, initializer = top_level_partition(text, "=") - scan_text = declaration_text if initializer is not None else text - for macro_name in sorted(function_like_macro_names): - if re.search(rf"\b{re.escape(macro_name)}\s*\(", scan_text): - return CMacroDependency( - name=macro_name, - context="declaration", - source_text=text, - source_location=self._source_location(segment), - ) - for macro_name in sorted(object_like_macro_names or set()): - prefix_words = _STORAGE_CLASSES | _TYPE_QUALIFIERS | _FUNCTION_SPECIFIERS - prefix_pattern = "|".join(re.escape(word) for word in sorted(prefix_words)) - if re.match( - rf"^(?:(?:{prefix_pattern})\s+)*{re.escape(macro_name)}\b", - scan_text, - ): - return CMacroDependency( - name=macro_name, - context="declaration", - source_text=text, - source_location=self._source_location(segment), - ) - return None - - def _macro_dependent_declaration_diagnostic( - self, - segment: CTopLevelSegment, - dependency: CMacroDependency, - *, - function_like: bool, - ) -> CDiagnostic: - """Build a warning for a declaration that requires macro expansion.""" - macro_kind = "function-like" if function_like else "object-like" - return CDiagnostic( - code="C_MACRO_DEPENDENT_DECLARATION", - message=( - f"Declaration depends on {macro_kind} macro {dependency.name!r}; " - "provide preprocessed input to parse it." - ), - severity="warning", - location=dependency.source_location or self._source_location(segment), - unit_kind="macro_dependent_declaration", - unit_name=dependency.name, - ) - def _has_unsupported_declaration_marker(self, text: str) -> bool: """Return whether `text` contains a known unsupported declaration marker.""" return any(marker in text for marker in _UNSUPPORTED_DECLARATION_MARKERS) @@ -854,51 +805,6 @@ def _append_declaration_location( if location is not None and location not in locations: locations.append(location) - @staticmethod - def _raw_conditional_condition_sets(source: str) -> dict[int, frozenset[str]]: - """Track unselected raw preprocessor alternatives by physical line.""" - conditions_by_line: dict[int, frozenset[str]] = {} - condition_stack: list[tuple[int, int]] = [] - group_counter = 0 - for line_number, line in enumerate(source.splitlines(), start=1): - match = _RAW_CONDITIONAL_DIRECTIVE_RE.match(line) - if match is None: - conditions_by_line[line_number] = frozenset( - f"g{group_id}:b{branch_id}" - for group_id, branch_id in condition_stack - ) - continue - - directive = match.group("directive") - if directive in {"if", "ifdef", "ifndef"}: - group_counter += 1 - condition_stack.append((group_counter, 0)) - elif directive in {"elif", "else"} and condition_stack: - group_id, branch_id = condition_stack.pop() - condition_stack.append((group_id, branch_id + 1)) - elif directive == "endif" and condition_stack: - condition_stack.pop() - return conditions_by_line - - @staticmethod - def _functions_are_mutually_exclusive(left: CFunction, right: CFunction) -> bool: - """Return whether two raw function facts are in alternative branches.""" - if ( - not left.condition_set - or not right.condition_set - or left.source_location is None - or right.source_location is None - or left.source_location.filename != right.source_location.filename - ): - return False - branches: dict[str, str] = {} - for token in left.condition_set | right.condition_set: - group, _, branch = token.partition(":") - if group in branches and branches[group] != branch: - return True - branches[group] = branch - return False - # ------------------------------------------------------------------ # Redeclaration compatibility and normalization # ------------------------------------------------------------------ @@ -912,7 +818,7 @@ def _type_key(self, type_: CType, seen: set[int] | None = None) -> tuple: return ("cycle", type(type_).__name__, getattr(type_, "reference_name", None)) seen.add(object_id) - qualifiers = tuple(qualifier.spelling for qualifier in getattr(type_, "qualifiers", [])) + qualifiers = tuple(qualifier.spelling for qualifier in type_.qualifiers) if isinstance(type_, CComposedType): return ( "CComposedType", @@ -968,7 +874,7 @@ def _functions_compatible(self, left: CFunction, right: CFunction) -> bool: return False return all( self._types_compatible(left_param.type, right_param.type) - for left_param, right_param in zip(left.parameters, right.parameters) + for left_param, right_param in zip(left.parameters, right.parameters, strict=False) ) def _merge_function_declaration( @@ -998,12 +904,7 @@ def _deduplicate_functions( normalized: list[CFunction] = [] for function in functions: - overlapping = [ - index - for index, existing in enumerate(normalized) - if existing.name == function.name - and not self._functions_are_mutually_exclusive(existing, function) - ] + overlapping = [index for index, existing in enumerate(normalized) if existing.name == function.name] if not overlapping: normalized.append(function) continue @@ -1247,25 +1148,10 @@ def _normalize_redeclarations(self, parsed: CFile) -> None: parsed.typedefs = self._deduplicate_typedefs(parsed.typedefs, parsed.diagnostics) parsed.variables = self._deduplicate_variables(parsed.variables, parsed.diagnostics) parsed.functions = self._deduplicate_functions(parsed.functions, parsed.diagnostics) - function_counts: dict[str, int] = {} - for function in parsed.functions: - function_counts[function.name] = function_counts.get(function.name, 0) + 1 - variant_names = { - function.name - for function in parsed.functions - if function_counts[function.name] > 1 - } - for function in parsed.functions: - if function.name not in variant_names: - function.condition_set = frozenset() def _end_location(self, segment: CTopLevelSegment) -> CSourceLocation: """Return the original end location for a top-level segment.""" - filename = ( - segment.original_filenames[-1] - if segment.original_filenames - else segment.filename - ) + filename = segment.original_filenames[-1] if segment.original_filenames else segment.filename return CSourceLocation( filename=filename, line=segment.original_end_line, @@ -1380,22 +1266,16 @@ def _parse_specifiers(self, spec_text: str) -> tuple[CType, list[str], list[str] if atomic_specifier is not None: if type_words: - raise _InvalidSpecifierSequence( - f"Invalid type specifier sequence {spec_text.strip()!r}." - ) + raise _InvalidSpecifierSequence(f"Invalid type specifier sequence {spec_text.strip()!r}.") inner_text = atomic_specifier[1] inner_spec_text, inner_declarator = self._split_declaration_specifiers(inner_text) if not inner_spec_text: - raise _InvalidSpecifierSequence( - f"Invalid _Atomic type-name {inner_text!r}." - ) - name, type_, inner_storage, inner_function_specifiers, _direct_function = ( - self._build_declared_type(inner_spec_text, inner_declarator) + raise _InvalidSpecifierSequence(f"Invalid _Atomic type-name {inner_text!r}.") + name, type_, inner_storage, inner_function_specifiers, _direct_function = self._build_declared_type( + inner_spec_text, inner_declarator ) if name is not None or inner_storage or inner_function_specifiers: - raise _InvalidSpecifierSequence( - f"Invalid _Atomic type-name {inner_text!r}." - ) + raise _InvalidSpecifierSequence(f"Invalid _Atomic type-name {inner_text!r}.") self._add_outermost_qualifiers( type_, [CAtomic(), *self._qualifiers(qualifiers)], @@ -1412,10 +1292,7 @@ def _parse_specifiers(self, spec_text: str) -> tuple[CType, list[str], list[str] tag_kwargs["is_incomplete"] = True type_: CType = tag_type(**tag_kwargs) elif type_words: - displayed_type_words = [ - _EXTENDED_SCALAR_SPELLINGS.get(word, word) - for word in type_words - ] + displayed_type_words = [_EXTENDED_SCALAR_SPELLINGS.get(word, word) for word in type_words] spelling = " ".join(displayed_type_words) primitive = _PRIMITIVE_TYPE_SIGNATURES.get(tuple(sorted(type_words))) if primitive is not None: @@ -1423,12 +1300,8 @@ def _parse_specifiers(self, spec_text: str) -> tuple[CType, list[str], list[str] qualifiers=self._qualifiers(qualifiers), source_text=" ".join([*qualifiers, *type_words]), ) - elif ( - sum(word in _EXTENDED_SCALAR_WORDS for word in type_words) == 1 - and all( - word in _EXTENDED_SCALAR_WORDS | {"signed", "unsigned", "_Complex"} - for word in type_words - ) + elif sum(word in _EXTENDED_SCALAR_WORDS for word in type_words) == 1 and all( + word in _EXTENDED_SCALAR_WORDS | {"signed", "unsigned", "_Complex"} for word in type_words ): type_ = CUnknownType( spelling=spelling, @@ -1442,9 +1315,7 @@ def _parse_specifiers(self, spec_text: str) -> tuple[CType, list[str], list[str] source_text=" ".join([*qualifiers, *type_words]), ) else: - raise _InvalidSpecifierSequence( - f"Invalid type specifier sequence {spelling!r}." - ) + raise _InvalidSpecifierSequence(f"Invalid type specifier sequence {spelling!r}.") else: type_ = CUnknownType( qualifiers=self._qualifiers(qualifiers), @@ -1506,7 +1377,7 @@ def _replace_span(characters: list[str], start: int, end: int, replacement: str) writable = [index for index in range(start, end) if characters[index] != "\n"] if len(replacement) > len(writable): replacement = "_T" - for index, char in zip(writable, replacement): + for index, char in zip(writable, replacement, strict=False): characters[index] = char for index in writable[len(replacement) :]: characters[index] = " " @@ -1726,10 +1597,7 @@ def _normalize_compiler_extensions( kind="compiler_type", name=word, offset=index, - message=( - f"Compiler type expression {word!r} was accepted as " - "an opaque type placeholder." - ), + message=(f"Compiler type expression {word!r} was accepted as an opaque type placeholder."), ) ) self._replace_span(characters, index, span_end, placeholder) @@ -2107,24 +1975,10 @@ def _build_declared_type( source_parts = [spec_text.strip(), declarator_fragment.strip()] type_.source_text = " ".join(part for part in source_parts if part).strip() direct_function = ( - parsed.operations[-1] - if parsed.operations and isinstance(parsed.operations[-1], _FunctionOp) - else None + parsed.operations[-1] if parsed.operations and isinstance(parsed.operations[-1], _FunctionOp) else None ) return parsed.name, type_, storage, function_specifiers, direct_function - def _build_type( - self, - spec_text: str, - declarator_fragment: str = "", - ) -> tuple[CType, list[str]]: - """Build a type-only declaration result for helper callers.""" - _name, type_, _storage, function_specifiers, _direct_function = self._build_declared_type( - spec_text, - declarator_fragment, - ) - return type_, function_specifiers - def _adjust_parameter_type(self, declared_type: CType) -> CType: """Apply C parameter adjustment while preserving the written type.""" if isinstance(declared_type, CFunctionType): @@ -2233,21 +2087,17 @@ def _is_knr_definition(self, segment: CTopLevelSegment, parameters_text: str) -> stripped = parameters_text.strip() if not stripped or stripped == "void" or "..." in stripped: return False - for item in top_level_split(stripped, ","): - if not re.fullmatch(r"[A-Za-z_]\w*", item.strip()): - return False - return True + return all(re.fullmatch(r"[A-Za-z_]\w*", item.strip()) for item in top_level_split(stripped, ",")) def _raise_for_unsupported_old_style_definitions( self, source: str, filename: str | None, *, - use_linemarkers: bool = False, - normalize_compiler_extensions: bool = False, + use_linemarkers: bool, + normalize_compiler_extensions: bool, ) -> None: """Raise before top-level splitting hides unsupported K&R declarations.""" - source_lines = source.splitlines() normalized_source = source if normalize_compiler_extensions: normalized_source, _extensions = self._normalize_compiler_extensions(source) @@ -2291,8 +2141,8 @@ def _raise_for_unsupported_old_style_definitions( continue if stripped.startswith("{"): mapping = line_mappings[index] if index < len(line_mappings) else None - source_line = mapping.source_line if mapping is not None else ( - source_lines[index] if index < len(source_lines) else line + source_line = ( + mapping.source_line if mapping is not None and mapping.source_line is not None else line ) raise CParseError( "K&R style function definitions are not supported", @@ -2309,9 +2159,7 @@ def _raise_for_unsupported_old_style_definitions( if saw_old_style_declaration: mapping = line_mappings[index] if index < len(line_mappings) else None - source_line = mapping.source_line if mapping is not None else ( - source_lines[index] if index < len(source_lines) else line - ) + source_line = mapping.source_line if mapping is not None and mapping.source_line is not None else line raise CParseError( "K&R style function definitions are not supported", filename=mapping.filename if mapping is not None else filename, @@ -2406,10 +2254,7 @@ def _tag_definition_header(self, text: str) -> tuple[str, list[str], str | None] continue prefix: list[str] = [] for prefix_word in words[:index]: - normalized = ( - self._canonical_storage_class(prefix_word) - or self._canonical_type_qualifier(prefix_word) - ) + normalized = self._canonical_storage_class(prefix_word) or self._canonical_type_qualifier(prefix_word) if normalized is None: return None prefix.append(normalized) @@ -2444,10 +2289,10 @@ def _use_aggregate_definition( """Replace a matching tag reference with the parsed aggregate object.""" if isinstance(type_, CComposedType): terminal = type_.components[-1] - if isinstance(terminal, (CStruct, CUnion, CEnum)) and not terminal.qualifiers: + if isinstance(terminal, CStruct | CUnion | CEnum) and not terminal.qualifiers: type_.components[-1] = aggregate return type_ - if isinstance(type_, (CStruct, CUnion, CEnum)) and not type_.qualifiers: + if isinstance(type_, CStruct | CUnion | CEnum) and not type_.qualifiers: return aggregate return type_ @@ -2531,27 +2376,33 @@ def _declarator_diagnostic(self, segment: CTopLevelSegment, message: str) -> CDi unit_name=None, ) - def _union_by_value_names(self, type_: CType) -> set[str]: + def _union_by_value_names(self, type_: CType, seen: set[int] | None = None) -> set[str]: """Return union type names that appear without pointer/array indirection.""" + if seen is None: + seen = set() + type_id = id(type_) + if type_id in seen: + return set() + seen.add(type_id) if isinstance(type_, CUnion): return {type_.reference_name} if isinstance(type_, CTypedef) and type_.type is not None: - return self._union_by_value_names(type_.type) + return self._union_by_value_names(type_.type, seen) if isinstance(type_, CFunctionType): names = set() - names.update(self._union_by_value_names(type_.result_type)) + names.update(self._union_by_value_names(type_.result_type, seen)) for parameter_type in type_.parameter_types: - names.update(self._union_by_value_names(parameter_type)) + names.update(self._union_by_value_names(parameter_type, seen)) return names if isinstance(type_, CComposedType): names = set() protected_by_indirection = False for component in type_.components: - if isinstance(component, (CPointer, CArray)): + if isinstance(component, CPointer | CArray): protected_by_indirection = True continue if isinstance(component, CFunctionType): - names.update(self._union_by_value_names(component)) + names.update(self._union_by_value_names(component, seen)) protected_by_indirection = False continue if isinstance(component, CUnion) and not protected_by_indirection: @@ -2606,7 +2457,7 @@ def _field_diagnostic( owner_kind: str, message: str, *, - offset: int = 0, + offset: int, ) -> CDiagnostic: """Build a field-level warning at a precise member offset.""" return CDiagnostic( @@ -2709,20 +2560,8 @@ def _parse_fields( for text, field_offset in top_level_split_with_offsets(body, ";"): member_offset = body_offset + field_offset member_location = self._source_location_at(segment, member_offset) - if self._has_unsupported_declaration_marker(text): - diagnostics.append( - self._field_diagnostic( - segment, - owner_kind, - "Declaration attributes and alignment specifiers are not supported in fields yet.", - offset=member_offset, - ) - ) - continue if "{" in text or "}" in text: - nested = self._parse_tag_definition( - self._nested_field_segment(segment, text, member_offset) - ) + nested = self._parse_tag_definition(self._nested_field_segment(segment, text, member_offset)) if nested is not None: aggregate, functions, typedefs, variables, nested_diagnostics = nested if not functions and not typedefs: @@ -2730,7 +2569,7 @@ def _parse_fields( members.extend(variables) diagnostics.extend(nested_diagnostics) continue - if isinstance(aggregate, (CStruct, CUnion)) and aggregate.name is None: + if isinstance(aggregate, CStruct | CUnion) and aggregate.name is None: members.append( CVariable( name=None, @@ -2775,9 +2614,7 @@ def _parse_fields( except _InvalidSpecifierSequence as error: raise self._invalid_specifier_error(segment, str(error), offset=member_offset) from None except _UnsupportedDeclaratorSyntax as error: - diagnostics.append( - self._field_diagnostic(segment, owner_kind, str(error), offset=member_offset) - ) + diagnostics.append(self._field_diagnostic(segment, owner_kind, str(error), offset=member_offset)) continue if name is None and bit_width is None: diagnostics.append( @@ -2823,13 +2660,16 @@ def _parse_enumerators(self, body: str, segment: CTopLevelSegment) -> list[CEnum def _parse_tag_definition( self, segment: CTopLevelSegment, - ) -> tuple[ - CStruct | CUnion | CEnum, - list[CFunction], - list[CTypedef], - list[CVariable], - list[CDiagnostic], - ] | None: + ) -> ( + tuple[ + CStruct | CUnion | CEnum, + list[CFunction], + list[CTypedef], + list[CVariable], + list[CDiagnostic], + ] + | None + ): """Parse a top-level struct, union, or enum definition segment.""" text = segment.text.strip() if self._has_unsupported_declaration_marker(text): @@ -2912,11 +2752,7 @@ def _parse_declaration( ) -> tuple[list[CFunction], list[CTypedef], list[CVariable], list[CDiagnostic]]: """Parse an ordinary top-level declaration segment.""" text = segment.text.strip() - if ( - not text - or text.startswith("_Static_assert") - or self._has_unsupported_declaration_marker(text) - ): + if not text or text.startswith("_Static_assert") or self._has_unsupported_declaration_marker(text): return [], [], [], [] spec_text, declarator_list = self._split_declaration_specifiers(text) @@ -2976,11 +2812,8 @@ def _parse_translation_unit( source: str, filename: str | None, *, - function_like_macros: set[str] | None = None, - object_like_macros: set[str] | None = None, - use_linemarkers: bool = False, - condition_sets_by_line: Mapping[int, frozenset[str]] | None = None, - normalize_compiler_extensions: bool = False, + use_linemarkers: bool, + normalize_compiler_extensions: bool, ) -> tuple[ list[CFunction], list[CStruct], @@ -2992,10 +2825,9 @@ def _parse_translation_unit( ]: """Dispatch top-level C external declarations by grammar role. - The ordering here is intentional: macro-dependent declarations are - deferred before ordinary parsing, aggregate definitions are parsed - before function/declaration fallback, and ordinary `;` declarations all - flow through the shared declaration backend. + The ordering here is intentional: aggregate definitions are parsed + before function/declaration fallback, and ordinary `;` declarations + all flow through the shared declaration backend. """ self._raise_for_unsupported_old_style_definitions( source, @@ -3012,9 +2844,6 @@ def _parse_translation_unit( variables: list[CVariable] = [] diagnostics: list[CDiagnostic] = [] - function_like_names = function_like_macros or set() - object_like_names = object_like_macros or set() - condition_sets = condition_sets_by_line or {} for segment in split_top_level_c_source( source, filename=filename, @@ -3027,20 +2856,6 @@ def _parse_translation_unit( if not segment.text.strip(): continue self._raise_for_invalid_top_level_syntax(segment) - macro_dependency = self._segment_macro_dependency( - segment, - function_like_names, - object_like_names, - ) - if macro_dependency is not None: - diagnostics.append( - self._macro_dependent_declaration_diagnostic( - segment, - macro_dependency, - function_like=macro_dependency.name in function_like_names, - ) - ) - continue try: tag_definition = self._parse_tag_definition(segment) except _InvalidCGrammarSyntax as error: @@ -3054,11 +2869,6 @@ def _parse_translation_unit( else: enums.append(aggregate) functions.extend(parsed_functions) - for function in parsed_functions: - function.condition_set = condition_sets.get( - segment.original_start_line, - frozenset(), - ) typedefs.extend(parsed_typedefs) variables.extend(parsed_variables) diagnostics.extend(parsed_diagnostics) @@ -3072,10 +2882,6 @@ def _parse_translation_unit( except _InvalidCGrammarSyntax as error: raise self._invalid_syntax_error(segment, str(error), context="function declaration") from None if function is not None: - function.condition_set = condition_sets.get( - segment.original_start_line, - frozenset(), - ) functions.append(function) self._append_union_by_value_diagnostics(function, diagnostics) continue @@ -3098,22 +2904,12 @@ def _parse_translation_unit( except _InvalidCGrammarSyntax as error: raise self._invalid_syntax_error(segment, str(error), context="declaration") from None functions.extend(parsed_functions) - for function in parsed_functions: - function.condition_set = condition_sets.get( - segment.original_start_line, - frozenset(), - ) typedefs.extend(parsed_typedefs) variables.extend(parsed_variables) for function in parsed_functions: self._append_union_by_value_diagnostics(function, diagnostics) diagnostics.extend(declarator_diagnostics) - if ( - not parsed_functions - and not parsed_typedefs - and not parsed_variables - and not declarator_diagnostics - ): + if not parsed_functions and not parsed_typedefs and not parsed_variables and not declarator_diagnostics: unsupported = self._unsupported_declaration_diagnostic(segment) if unsupported is not None: diagnostics.append(unsupported) @@ -3154,19 +2950,10 @@ def _build_project(self, parsed_files: dict[str, CFile]) -> CProject: self._index_header_source_pairs(project) resolve_project_types(project) normalized_functions = self._deduplicate_functions(all_functions, project.diagnostics) - functions_by_name: dict[str, list[CFunction]] = {} for function in normalized_functions: - functions_by_name.setdefault(function.name, []).append(function) - for name, variants in functions_by_name.items(): - if len(variants) == 1: - project.functions[name] = variants[0] - else: - project.conditional_function_variants[name] = variants + project.functions[function.name] = function for function in project.functions.values(): self._append_union_by_value_diagnostics(function, project.diagnostics) - for variants in project.conditional_function_variants.values(): - for function in variants: - self._append_union_by_value_diagnostics(function, project.diagnostics) return project def _index_struct( @@ -3314,6 +3101,7 @@ def _index_header_source_pairs(self, project: CProject) -> None: if included in project.files and _is_header_key(included): project.header_source_pairs.setdefault(included, set()).add(source) + _DEFAULT_PARSER = CParser() diff --git a/c_parser/preprocessor.py b/c_parser/preprocessor.py index ab1c9ce2d..fcb283464 100644 --- a/c_parser/preprocessor.py +++ b/c_parser/preprocessor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations import re @@ -11,10 +10,8 @@ _INCLUDE_RE = re.compile(r'^\s*#\s*include\s*(?:"([^"]+)"|<([^>]+)>)') -_DEFINE_RE = re.compile(r"^\s*#\s*define\s+([A-Za-z_]\w*)(\([^)]*\))?(?:\s+(.*))?$") -_UNDEF_RE = re.compile(r"^\s*#\s*undef\s+([A-Za-z_]\w*)\s*$") _DIRECTIVE_RE = re.compile(r"^\s*#\s*([A-Za-z_]\w*)\b(.*)$") -_RAW_PROVENANCE_DIRECTIVES = {"if", "ifdef", "ifndef", "elif", "else", "endif", "pragma"} +_RAW_PROVENANCE_DIRECTIVES = {"pragma"} @dataclass @@ -87,11 +84,7 @@ def collect_preprocessor_metadata( local_target, system_target = include_match.groups() target = local_target or system_target kind = "local" if local_target is not None else "system" - resolved_path = ( - _resolve_local_include(target, filename, include_dirs) - if kind == "local" - else None - ) + resolved_path = _resolve_local_include(target, filename, include_dirs) if kind == "local" else None location = _record_location(record) metadata.includes.append( CInclude( @@ -113,44 +106,6 @@ def collect_preprocessor_metadata( ) ) continue - - define_match = _DEFINE_RE.match(record.text) - if define_match: - name, parameters, value = define_match.groups() - location = _record_location(record) - function_like = parameters is not None - metadata.macros.append( - CMacro( - name=name, - value=value.strip() if value else None, - function_like=function_like, - source_location=location, - ) - ) - if function_like: - metadata.diagnostics.append( - CDiagnostic( - code="C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - message=f"Function-like macro {name!r} is recorded but not expanded.", - severity="warning", - location=location, - unit_kind="macro", - unit_name=name, - ) - ) - continue - - undef_match = _UNDEF_RE.match(record.text) - if undef_match: - name = undef_match.group(1) - metadata.macros.append( - CMacro( - name=name, - directive="undef", - source_location=_record_location(record), - ) - ) - return metadata diff --git a/c_parser/project.py b/c_parser/project.py index 3a2be400e..1a8a5342a 100644 --- a/c_parser/project.py +++ b/c_parser/project.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C project parsing placeholder.""" from .parser import parse_c_project diff --git a/c_parser/type_resolver.py b/c_parser/type_resolver.py index 8637d3312..7ba2e073f 100644 --- a/c_parser/type_resolver.py +++ b/c_parser/type_resolver.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Basic C project type resolution for parser models.""" from __future__ import annotations @@ -75,9 +74,6 @@ def _resolve_typedef_definition( ) -> None: if typedef.type is None: return - if typedef.name in stack: - _record_typedef_cycle(project, [*stack, typedef.name], typedef, emitted_cycles) - return typedef.type = _resolve_type(project, typedef.type, [*stack, typedef.name], emitted_cycles) @@ -88,16 +84,12 @@ def _resolve_type( emitted_cycles: set[tuple[str, ...]], ) -> CType: if isinstance(type_, CComposedType): - type_.components = [ - _resolve_type(project, component, stack, emitted_cycles) - for component in type_.components - ] + type_.components = [_resolve_type(project, component, stack, emitted_cycles) for component in type_.components] return type_ if isinstance(type_, CFunctionType): type_.result_type = _resolve_type(project, type_.result_type, stack, emitted_cycles) type_.parameter_types = [ - _resolve_type(project, parameter_type, stack, emitted_cycles) - for parameter_type in type_.parameter_types + _resolve_type(project, parameter_type, stack, emitted_cycles) for parameter_type in type_.parameter_types ] return type_ if isinstance(type_, CTypedef): @@ -134,11 +126,11 @@ def _record_typedef_cycle( emitted_cycles: set[tuple[str, ...]], ) -> None: first = cycle[-1] - try: - start = cycle.index(first) - except ValueError: # pragma: no cover - defensive only. - start = 0 - normalized = tuple(cycle[start:]) + start = cycle.index(first) + loop = cycle[start:-1] + rotations = [tuple(loop[index:] + loop[:index]) for index in range(len(loop))] + normalized_loop = min(rotations) + normalized = (*normalized_loop, normalized_loop[0]) if normalized in emitted_cycles: return emitted_cycles.add(normalized) diff --git a/c_parser/utils.py b/c_parser/utils.py index dc843db0b..810d14e95 100644 --- a/c_parser/utils.py +++ b/c_parser/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C parser utility placeholder.""" __all__: tuple[str, ...] = () diff --git a/conftest.py b/conftest.py index 6cfaf83a8..7536a0726 100644 --- a/conftest.py +++ b/conftest.py @@ -1,8 +1,38 @@ -# -*- coding: utf-8 -*- """Pytest import setup for in-place repository runs.""" + +import os from pathlib import Path import sys ROOT = Path(__file__).resolve().parent if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) + +try: + from hypothesis import HealthCheck, settings +except ImportError: # pragma: no cover - base test installs can omit QA extras. + pass +else: + settings.register_profile( + "dev", + max_examples=75, + deadline=None, + suppress_health_check=[HealthCheck.too_slow], + ) + settings.register_profile( + "ci", + max_examples=250, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow], + ) + settings.register_profile( + "fuzz", + max_examples=1000, + deadline=None, + suppress_health_check=[ + HealthCheck.filter_too_much, + HealthCheck.too_slow, + ], + ) + settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "dev")) diff --git a/docs/README.md b/docs/README.md index 5f1b5a297..57433d830 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,49 +1,26 @@ # Documentation -The repository [`README.md`](../README.md) is the starting point for usage and -examples. Contribution and pull-request requirements remain in -[`CONTRIBUTING.md`](../CONTRIBUTING.md). - -## Diagnostics - -- [Diagnostic code registry](diagnostic_codes.md): stable parser error and - report-diagnostic categories shared by the frontend documentation. - -## Architecture And Semantic Interfaces - -- [Semantic multilanguage wrapper runtime architecture](architecture/semantic_multilanguage_wrapper_runtime_architecture.md): - long-term architecture and runtime model. -- [Wrapper `.pyi` format](semantics/pyi_format.md): editable semantic - interface syntax and conversion behavior. -- [C to semantic IR mapping](semantics/c2ir_mapping.md): implemented C - semantic conversion subset and blocker policy. -- [Self-contained C semantic `.pyi` specification](semantics/c_pyi_self_contained_specification.md): - staged C wrapper interface design. +Use the audience-specific entrypoints first: -## Roadmap And Backlog +- [User documentation](user.md): CLI/API usage, parser output, diagnostics, + generated `.pyi` files, semantic contracts, and readiness. +- [Developer documentation](developer.md): parser and semantic implementation + references, focused test files, fixture generators, CLI test commands, and + maintenance workflows. -- [x2py checklist](x2py_checklist.md): - pending frontend, shared semantics, and `.pyi` tasks. - -## Parser Frontends - -### Fortran - -- [Fortran parser reference](fortran/fortran_parser.md): supported subset, - command-line usage, APIs, and diagnostics. -- [Fortran parser implementation reference](fortran/parser_implementation_reference.md): - implementation inventory, testing workflow, and maintenance guard policy. - -### C +The repository [`README.md`](../README.md) remains the user-facing project +overview. Contribution and pull-request requirements remain in +[`CONTRIBUTING.md`](../CONTRIBUTING.md). -- [C parser reference](c_parser/c_parser_reference.md): implemented parser - behavior, semantic handoff, and testing workflow. -- [C parser architecture plan](c_parser/c_parser_architecture.md): design and - integration decisions. -- [C parser CLI workflow plan](c_parser/c_parser_cli_workflow.md): command - surface and output contracts. +## Reference Files -## Fixture Notes +- [C parser reference](c_parser.md) +- [Fortran parser reference](fortran_parser.md) +- [Semantic IR and `.pyi` reference](semantics.md) +- [Wrapper design notes](wrapper_design_notes.md) +- [Diagnostic code registry](diagnostic_codes.md) +- [Quality assurance](quality.md) +- [Semantic multilanguage wrapper runtime architecture](architecture/semantic_multilanguage_wrapper_runtime_architecture.md) README files under `tests/` intentionally remain next to the fixtures or expected outputs they describe. They are local test-maintenance instructions, diff --git a/docs/c_parser/c_parser_reference.md b/docs/c_parser.md similarity index 72% rename from docs/c_parser/c_parser_reference.md rename to docs/c_parser.md index dbbcf6e6b..cc43d5f2b 100644 --- a/docs/c_parser/c_parser_reference.md +++ b/docs/c_parser.md @@ -3,10 +3,23 @@ Status: current reference for the partial C frontend. The `c_parser` package, typed parser models, explicit C CLI parse path, raw directive metadata, compiler-assisted preprocessing, source-location remapping, project -indexes, parser goldens, C standard-type probe, first semantic IR conversion +indexes, legacy parser schema snapshots, C standard-type probe, first semantic IR conversion subset, semantic readiness path, and starter exact-contract C `.pyi` generation are implemented. +This file is the single maintained C parser reference. It replaces the older +standalone architecture and CLI workflow notes; keep parser behavior, public +API, command output, fixtures, semantic conversion, readiness, and `.pyi` +changes documented here. + +Parser-related pull requests should update this file when the documented +feature inventory, public API, diagnostics, project behavior, semantic handoff, +or maintenance workflow changes. The parser-reference guard checks C and +Fortran references independently. It watches `c_parser/`, `tests/parser/c/`, +`tests/data/c/`, and C standard-type probe tests and expects +`docs/c_parser.md` to change unless the PR is explicitly labeled to skip the +guard. + ## Purpose The C parser frontend will be a wrapper-oriented source extraction system for @@ -61,14 +74,10 @@ Implemented: lightweight token source locations - top-level source splitting that tracks braces, parentheses, brackets, and string/character literals -- raw conditional same-name function alternatives retain Fortran-style - `condition_set` branch identity rather than being diagnosed as conflicting - redeclarations - raw `#include` collection for quoted and system includes -- simple object-like `#define` macro collection -- function-like macro metadata with unsupported diagnostics -- object-like declaration-prefix macro dependencies deferred in raw mode -- raw `#undef` directive provenance in macro metadata +- raw `#pragma` provenance metadata, including OpenMP declaration pragmas +- strict `CPARSE_PREPROCESSING_REQUIRED` failures for raw macro, conditional, + macro-include, and other directives that require a real preprocessor - concrete primitive `CType` objects, pointer/array composition, and concrete qualifier objects - order-insensitive primitive specifier matching with @@ -101,8 +110,8 @@ Implemented: component - compiler/preprocessed input parsing through the same grammar path with `#line`/GCC linemarker remapping for parsed declarations and diagnostics -- declaration-level `origin="preprocessed"` metadata plus generated/original - source identity for direct `.i` input where linemarkers provide it +- file-level preprocessing metadata plus generated/original source identity + for direct `.i` input where linemarkers provide it - optional `preprocessing_recipe` JSON on `CFile` output for compiler streams generated by the shared x2py CLI - compiler-derived standard-library ABI probing for `size_t`, `uint32_t`, @@ -114,15 +123,14 @@ Implemented: tracking, cycle-safe include graph construction, and header/source pairing, without recursive include parsing - project indexes for functions, file-scope variables, typedefs, struct tags, - union tags, enum tags, enum constants, macros/constants, and functions by - file; raw conditional alternatives that cannot occupy one unique function - index entry are retained in `conditional_function_variants` + union tags, enum tags, enum constants, compiler-recipe macros/constants, and + functions by file - basic cross-file typedef chain and struct/union/enum tag resolution, with typedef-cycle diagnostics and unresolved references preserved for later diagnostics - unsupported K&R function-definition diagnostics -- C parser project JSON goldens and fatal diagnostic goldens generated from - stable `CProject.to_dict()` and `CParseError` output +- legacy C parser project JSON schema snapshots and active fatal diagnostic + goldens generated from stable `CParseError` output - C fixture inputs under `tests/data/c/general/`, diagnostic inputs under `tests/data/c/errors/parser/`, and partial-parser regression inputs under `tests/data/c/json/`, `tests/data/c/tinyexpr/`, `tests/data/c/linmath/`, @@ -196,54 +204,41 @@ function names, type names, attributes, calling conventions, parameter lists, and whole declarations. The parser must not infer a public API from unexpanded macro-shaped declarations. -Raw-source mode means source normalization plus directive metadata: +Raw-source mode means source normalization plus safe directive metadata: - strip comments and fold backslash-newline continuations while preserving source locations - record `#include` directives as structured include dependencies -- record simple object-like `#define` directives as macro metadata -- record `#undef` directives as macro provenance -- record conditional and pragma directives as raw provenance metadata, +- record pragma directives as raw provenance metadata, including OpenMP declaration pragmas such as `#pragma omp declare simd` and `#pragma omp declare target` -- retain mutually exclusive same-name function declarations as alternatives - with `CFunction.condition_set` branch identity, matching the Fortran - parser's unselected-branch convention -- record function-like macros as metadata with unsupported/deferred diagnostics -- record function-like wrappers and object-like declaration prefixes as - macro-dependency metadata without claiming they were parsed - parse only declarations that are already visible as ordinary C without macro expansion -- do not select active conditional branches from `#if`/`#ifdef` in raw mode -- do not expand macros, token pasting, stringification, or macro-generated - declarations - -Compiler-assisted preprocessing is the required path when macros affect the -declaration text that the C parser needs to understand. Use compiler mode when -macros define or alter function names, return types, parameter types, -declarators, attributes, storage classes, calling conventions, visibility -annotations, or conditional API selection. The user normally gives x2py `.h` -or `.c` files and has it run the configured compiler/preprocessor; direct +- raise `CPARSE_PREPROCESSING_REQUIRED` for raw macro definitions, undefines, + conditionals, macro includes, and other directives that require expansion or + branch selection + +Compiler-assisted preprocessing is required whenever raw C input contains +directives beyond literal includes and pragmas. The user normally gives x2py +`.h` or `.c` files and has it run the configured compiler/preprocessor; direct `.i` preprocessed inputs are also accepted and use their linemarkers for -locations and source identity. +locations and source identity. Compiler-recipe macro metadata remains attached +to parse reports for provenance. Examples: ```bash python -m x2py include/api.h --language c --parse \ - --preprocess compiler \ --compiler clang-18 \ -I include \ -D API_EXPORT= \ --std c11 python -m x2py src/api.c --language c --parse \ - --preprocess compiler \ --compiler /usr/bin/gcc-13 \ --compiler-arg=--sysroot=/opt/sdk python -m x2py src/api.c --language c --parse \ - --preprocess compiler \ --compile-commands build/compile_commands.json ``` @@ -266,9 +261,9 @@ mapping. When the shared x2py CLI generates a compiler-preprocessed stream, it stores `preprocessing_recipe` in the per-file `CFile` JSON: compiler executable, final argv, include dirs, defines, undefines, standard, extra arguments, working directory, and optional selected `compile_commands.json` -entry. Parsed declarations from compiler or direct `.i` input carry -`origin="preprocessed"`; direct `.i` files also expose -`preprocessed_source_path` and mapped `original_source_paths` where available. +entry. Parsed declarations from compiler or direct `.i` input keep mapped +source locations; direct `.i` files also expose `preprocessed_source_path` and +mapped `original_source_paths` where available. ## Standard Type ABI Probe @@ -475,34 +470,27 @@ Example: parse compiler-preprocessed text produced by the shared x2py CLI. ```bash python -m x2py include/api.h --language c --parse --json \ - --preprocess compiler \ --compiler clang-18 \ -I include \ -D API_EXPORT= ``` Project-level facts require `parse_c_project(...)`, not just -`parse_c_file(...)`. A single file can report its own raw directives, includes, -macros, declarations, diagnostics, and unresolved typedef/tag references. A -project parse sees multiple files together and can populate include graphs, -system include records, unresolved include sets, functions by file, enum -constants, likely header/source pairs, and basic cross-file typedef/tag links. +`parse_c_file(...)`. A single file can report its own pragmas, includes, +compiler-recipe macros, declarations, diagnostics, and unresolved typedef/tag +references. A project parse sees multiple files together and can populate +include graphs, system include records, unresolved include sets, functions by +file, enum constants, likely header/source pairs, and basic cross-file +typedef/tag links. An include edge is metadata only: a resolved local or system header is not parsed unless it is also supplied as a project input or falls beneath a directory input. Generated headers and direct `.i` streams follow that same explicit-input rule. Include-graph keys use project input/path identity; they are not module keys. -When raw input declares incompatible versions of the same function in -alternative `#if`/`#else` branches, each `CFunction` retains a `condition_set` -such as `{"g1:b0"}` or `{"g1:b1"}`. A `CProject` stores such alternatives in -`conditional_function_variants` rather than claiming that one variant is the -unique `functions` entry. Compiler-preprocessed input contains the selected -configuration and therefore does not need this ambiguity representation. - Raw mode does not evaluate C preprocessor conditionals or expand macros -internally. Compiler mode should receive the already-expanded translation unit -from `x2py.preprocessing`. +internally. It rejects those directives before grammar parsing. Compiler mode +receives the already-expanded translation unit from `x2py.preprocessing`. The parser itself should stay parse-only. If the C frontend later gains wrappability assessment, that should live in the semantic layer after C parser @@ -535,7 +523,6 @@ Per-file shape: "": { "filename": "", "language": "c", - "parser_status": "partial", "preprocessing": "raw", "preprocessing_recipe": "", "functions": [ @@ -576,10 +563,6 @@ JSON compatibility rules: - emit references for reused aggregate or typedef objects rather than recursive JSON cycles - preserve unknown or unresolved information rather than dropping it silently -- emit `condition_set` only for retained raw conditional function alternatives, - and - emit project `conditional_function_variants` only when a unique function - index would discard those alternatives - keep model fields stable enough for golden fixture testing - document every intentional schema break @@ -635,7 +618,7 @@ declaration extensions are diagnosed rather than partially modeled; additional syntax diagnostics should be added only with focused tests. Generic grammar rejection uses `CPARSE_INVALID_SYNTAX`. Diagnostic codes are stable, explicit category identifiers for tests, tools, and documentation. The -shared registry is [`docs/diagnostic_codes.md`](../diagnostic_codes.md). +shared registry is [`diagnostic_codes.md`](diagnostic_codes.md). ## Testing Workflow @@ -654,7 +637,7 @@ Test families should mirror the Fortran parser: - CLI tests - semantic conversion tests - `.pyi` generation/parser tests -- fixture/golden parser tests +- legacy JSON schema snapshot tests - error fixture/golden tests - corpus parse-only tests @@ -662,14 +645,12 @@ The C test area contains active partial-parser/raw-metadata tests, including parse-only cJSON regression coverage under `tests/parser/c/`. The active tests cover public entrypoints, empty model serialization, CLI discovery, JSON/output-file behavior, unsupported C stages, comment stripping, line-continuation folding, -top-level splitting, include collection, simple macro collection, macro-shaped -declaration deferral, raw conditional branch non-selection and provenance, -mutually exclusive function variant retention, macro-dependency metadata, -explicit-input/non-recursive project include behavior, simple declarations, +top-level splitting, include collection, pragma metadata, raw preprocessing +rejection, explicit-input/non-recursive project include behavior, simple declarations, variables, typedefs, top-level redeclaration diagnostics, recursive declarator composition, aggregate definitions, members, enums, simple function -prototypes/definitions, function-definition start/end locations, JSON golden -serialization, fatal diagnostic goldens, and project-level callback typedef +prototypes/definitions, function-definition start/end locations, legacy JSON +schema snapshots, fatal diagnostic goldens, and project-level callback typedef resolution. The `json` regression inputs intentionally retain recoverable diagnostics from unsupported constructs; they do not claim complete library parsing. A separately pinned/provenanced corpus @@ -680,10 +661,46 @@ activate only the tests for the capability they implement. Useful local checks for the parse-only frontend: ```bash +python -m x2py tests/data/c/general/math_api.h --language c --parse --json +python tests/parser/c/generate_c_parser_goldens.py tests/data/c/general/math_api.h +pytest -q tests/parser/c/test_c_declarations_and_declarators.py +pytest -q tests/parser/c/test_c_fixture_suite.py pytest -q tests/parser/c tests/parser/test_c_standard_type_probe.py tests/parser/test_preprocessing_cli.py tests/parser/test_cli.py tests/parser/test_fortran_type_probe.py tests/semantics tests/pyi pytest -q ``` +Focused test files by implementation area: + +- Lexer, comments, continuations, raw directive handling: + `tests/parser/c/test_c_lexer_preprocessor.py` +- Declaration specifiers, qualifiers, declarators, arrays, pointers, + callbacks, and variables: + `tests/parser/c/test_c_declarations_and_declarators.py` +- Function prototypes and definitions: + `tests/parser/c/test_c_functions.py` +- Structs, unions, enums, typedefs, and aggregate members: + `tests/parser/c/test_c_structs_unions_enums_typedefs.py` +- Project assembly, include graph facts, typedef/tag resolution, and + redeclarations: + `tests/parser/c/test_c_project_resolution.py` +- Compiler extension tolerance and diagnostics: + `tests/parser/c/test_c_compiler_extensions.py` +- Corpus/third-party-style fixtures: + `tests/parser/c/test_c_corpus.py` +- Project golden fixtures: + `tests/parser/c/test_c_fixture_suite.py` +- Parser JSON shape: + `tests/parser/c/test_c_json_sanity.py` +- Fatal parser diagnostic goldens: + `tests/parser/c/test_c_error_fixture_suite.py` +- Public API and developer tutorial: + `tests/parser/c/test_c_public_api_skeleton.py` and + `tests/parser/c/test_c_parser_developer_tutorial.py` + +When adding or changing a C parser feature, add the smallest focused test first +and only update project goldens when the serialized project contract +intentionally changes. + ### Declaration Coverage Boundary Active declaration tests currently cover: @@ -719,7 +736,7 @@ declarations. | Capability | C example | Current parser boundary | Needed behavior | | --- | --- | --- | --- | | Typedef/tag resolution | `typedef unsigned long size_t; size_t count(void);` and `struct state { int id; }; void step(struct state *s);` | Basic project parsing links typedef chains and struct/union/enum tag references while preserving unresolved objects when context is absent. | Deepen conflict policy for broader projects; included/generated files are parsed only when supplied as project inputs. | -| Preprocessed declarations | `#define API(ret) ret` followed by `API(int) run(void);` | Raw mode records macro metadata and does not claim the expanded declaration; compiler or `.i` mode parses expanded declarations, maps locations through `#line` markers, and records `origin="preprocessed"`; x2py-generated streams also record their recipe. | Broaden fixture-driven extension and compiler-family coverage. | +| Preprocessed declarations | `#define API(ret) ret` followed by `API(int) run(void);` | Raw mode raises `CPARSE_PREPROCESSING_REQUIRED`; compiler or `.i` mode parses expanded declarations and maps locations through `#line` markers; x2py-generated streams also record their recipe. | Broaden fixture-driven extension and compiler-family coverage. | | Additional extension families | `int run(void) __attribute__((visibility("default")));` | Common GNU/MS declaration syntax is accepted; ignored ABI-, layout-, symbol-, or type-relevant semantics produce `C_UNMODELED_COMPILER_EXTENSION`. Broader compiler extensions are not modeled. | Add fixture-driven tolerance or a focused diagnostic for each required extension family. | ### Represented With Focused Tests @@ -735,7 +752,7 @@ The current parser creates distinct qualified `CPointer` components for `chain`, preserving each qualifier on the exact component it qualifies. Nested declarations such as `struct outer { struct { int x; } inner; };` build an anonymous `CStruct` used by member `inner`; preprocessed forms retain -mapped nested member locations and `origin="preprocessed"` recursively. +mapped nested member locations recursively. Atomic declarations such as `_Atomic(int *) p;` qualify the pointer component, while `_Atomic(int) *p;` qualifies the pointed-to integer component. @@ -743,6 +760,142 @@ For an executable maintainer walkthrough of the parser gateway and preprocessed source path, read `tests/parser/c/test_c_parser_developer_tutorial.py`. +## CLI Workflow + +The C frontend is always selected explicitly: + +```bash +x2py --language c --parse path/to/api.h +x2py --language c --semantics path/to/api.h +x2py --language c --wrap-readiness path/to/api.h +x2py --language c --pyi path/to/api.h +``` + +`--parse` emits parser facts only. `--semantics` converts the implemented +identity subset to the shared semantic IR. `--wrap-readiness` evaluates the +semantic IR for blocker policy. `--pyi` emits starter exact-contract stubs for +supported declarations. + +Raw macro-heavy files should be preprocessed through the compiler-assisted path +before parsing. Direct `.i` input and compiler streams preserve original source +locations through linemarker remapping where the compiler provides enough +information. + +## Maintainer Architecture Notes + +The parser is intentionally grammar-style and model-first: + +- split top-level declarations while tracking braces, parentheses, brackets, + strings, and comments +- parse declarations through shared declarator/type helpers +- record unsupported preprocessor forms as diagnostics instead of silently + guessing +- keep source locations on parsed declarations and diagnostics +- resolve project-level typedefs and tags after per-file parsing +- defer wrapping policy to semantic conversion and readiness layers + +C parsing must remain opt-in so Fortran directory parsing keeps its historical +behavior. Include resolution records graph facts and header/source pairing, but +does not recursively parse arbitrary include trees as new inputs. + +## Implementation Guide For New Frontends + +Use the C parser as the model for adding another C-family frontend, such as a +future C++ parser, but copy the architecture rather than the exact grammar. + +Recommended package shape: + +```text +new_parser/ + __init__.py + __main__.py + cli.py + lexer.py + models.py + parser.py +``` + +The frontend should expose thin public functions from both its parser package +and `x2py`, then keep implementation details inside the parser package: + +- `models.py`: source locations, diagnostics, typed declarations, typed native + types, per-file reports, and project reports. +- `lexer.py`: comment stripping, continuation handling, token/source-location + helpers, and any frontend-local raw directive collection. +- `parser.py`: grammar-style source slicing, recursive declaration parsing, + project assembly, and public `parse_*` wrappers. +- `cli.py`: only frontend-specific formatting or package entrypoint behavior. + The shared `x2py` CLI should own cross-language stage dispatch. + +The C data flow is: + +```text +source path or source text + -> optional compiler preprocessing and source mapping + -> CParser.visit_file(...) + -> CFile parser facts + -> CParser.visit_parsed_project(...) or parse_c_project(...) + -> CProject indexes and cross-file resolution facts + -> semantics.c2ir conversion + -> readiness, `.pyi`, and later wrapper stages +``` + +Keep these boundaries: + +- The parser records source facts. It does not decide Python ownership, + callback lifetime, ABI-safe calling shims, or projected wrapper signatures. +- Preprocessing belongs to the compiler/toolchain adapter. The parser consumes + expanded source and uses linemarkers/source maps to report original + locations. +- Project parsing is explicit-input based. Includes become dependency facts; + they are not recursive parse roots unless supplied by the user. +- Semantic conversion is the first place where parser-native facts become the + shared language-neutral model. + +The parser algorithm should remain grammar-style: + +1. Normalize only source mechanics that are independent of the language + semantics, such as comments and continuations. +2. Collect raw directives that can be represented safely, such as includes and + pragmas. +3. Reject unresolved preprocessing constructs in raw mode instead of guessing. +4. Split the translation unit while tracking nesting and literals. +5. Parse declaration specifiers into typed primitive/tag/typedef facts. +6. Parse declarators recursively from the declared identifier outward. +7. Dispatch aggregate, enum, typedef, variable, function prototype, and + function-definition forms through shared helpers. +8. Preserve unsupported or unmodeled facts as diagnostics or explicit unknown + references. +9. Assemble project indexes and run bounded cross-file resolution only after + every explicit input has been parsed. + +For a future C++ parser, keep the same stage boundaries but expect different +models and grammar: namespaces, classes, templates, overload sets, references, +constructors/destructors, methods, access control, and name mangling cannot be +treated as small extensions to the C declaration parser. The reusable lesson is +the pipeline and test structure, not C declarator syntax. + +Testing should grow in this order: + +1. lexer/source-location tests; +2. declaration/type parser tests; +3. model serialization tests; +4. one-file parse tests; +5. project/index tests; +6. fatal diagnostic fixture tests; +7. compiler-preprocessed fixture tests; +8. semantic conversion tests; +9. `.pyi` round-trip tests; +10. CLI stage-dispatch tests. + +Executable references: + +- C parser walkthrough: `tests/parser/c/test_c_parser_developer_tutorial.py` +- C declaration coverage: `tests/parser/c/test_c_declarations_and_declarators.py` +- C project/golden workflow: `tests/parser/c/test_c_fixture_suite.py` +- Shared CLI behavior: `tests/parser/test_cli.py` +- C semantic handoff: `tests/semantics/test_c2ir.py` + Fixture layout should be separate from Fortran: ```text @@ -762,28 +915,25 @@ tests/parser/c/ general/ json/ errors/ - generate_c_parser_goldens.py errors/generate_c_parser_error_goldens.py ``` -Parser goldens group same-stem `.c` and `.h` inputs as one project, with the -`.c` translation unit ordered before its header input to mirror compilation; -explicit header dependency groups put included headers before dependent -headers, such as `nanosvg.h` before `nanosvgrast.h`; an input without a -sibling is parsed as a one-file project. Golden filenames use the project -stem, such as `api.json` or `jsmn.json`. Goldens can be regenerated for all -active projects with -`C_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser/c/test_c_fixture_suite.py`. +Checked-in project JSON files under `tests/parser/c/fixtures/` are active +compiler-preprocessed project goldens. They are generated by +`python tests/parser/c/generate_c_parser_goldens.py`, filter system-header +declaration spillover, and normalize source-text whitespace so compiler/libc +formatting differences do not make CI flaky. +The fixture suite also checks same-stem grouping order and representative raw +preprocessing failures. Fatal diagnostic goldens are regenerated with `C_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser/c/test_c_error_fixture_suite.py`. -The standalone generator modules remain available for targeted refreshes. +The standalone error generator remains available for targeted refreshes. By policy, a paired project records source-to-header include edges but parses each supplied `.c`, `.h`, or `.i` member separately; include traversal is not a parser input-discovery mechanism. -STB is treated as a family of independent single-file libraries: each -top-level `.h` or `.c` input generates its own one-file project golden rather -than being merged into one large project. +STB remains a family of independent macro-heavy single-file libraries for +future curated compiler-preprocessed corpus work. The first real-world corpus target should be cJSON, pinned to an exact release or commit with license and source provenance. cJSON is small enough for early @@ -797,22 +947,13 @@ are met. ## Documentation Set -The C parser documentation lives under: - -```text -docs/c_parser/ -``` - -Current C parser documents: - -- `c_parser_reference.md` -- `c_parser_architecture.md` -- `c_parser_cli_workflow.md` - -Shared project backlog lives in [`../x2py_checklist.md`](../x2py_checklist.md). +The C parser documentation now lives in this top-level file: +`docs/c_parser.md`. Shared semantic behavior is documented in +[`semantics.md`](semantics.md), and wrapper-generation policy notes live in +[`wrapper_design_notes.md`](wrapper_design_notes.md). Documentation update rule: every C parser implementation change must update -all affected files under `docs/c_parser/` in the same change. This includes -changes to parser behavior, public API, models, CLI output, tests, fixture -workflow, semantic conversion, semantic readiness, or `.pyi` output. Do not -wait for a separate documentation request before updating these docs. +this reference in the same change when behavior, public API, models, CLI +output, tests, fixture workflow, semantic conversion, semantic readiness, or +`.pyi` output changes. Do not wait for a separate documentation request before +updating it. diff --git a/docs/c_parser/c_parser_architecture.md b/docs/c_parser/c_parser_architecture.md deleted file mode 100644 index f6bcca07d..000000000 --- a/docs/c_parser/c_parser_architecture.md +++ /dev/null @@ -1,805 +0,0 @@ -# C Parser Architecture Plan - -Status: partial parser plus raw directive metadata implemented. The `c_parser` -package, typed parser models, public entrypoints, explicit -`x2py --language c --parse` CLI path, raw include/macro/undef/conditional -metadata collection, top-level redeclaration handling, project include/index -reporting, top-level source splitting, and a first simple -declaration/function subset with function-definition start/end locations and -aggregate declarations exist. Declarators are parsed through a recursive -grammar-style path for pointer, array, function, and parenthesized combinations. -The x2py CLI also has a shared C/Fortran preprocessing option surface and can -run an exact compiler/preprocessor executable for C compiler mode. Compiler -and preprocessed C inputs preserve `#line`/GCC linemarker source locations for -parsed declarations and diagnostics. A separate compiler-derived standard-type -probe supplies target ABI facts consumed by C semantic conversion. - -This document records the target architecture for the C parser frontend in -x2py. The initial skeleton has grown into a partial parser, and the remaining -sections describe the architecture it should grow into. The design is based on -inspection of the -current Fortran parser, semantic IR conversion layer, `.pyi` parser/printer, -CLI, tests, and fixture workflow. - -## Current Implementation Snapshot - -Implemented now: - -- `c_parser/` package exists and is included in package discovery. -- `c_parser.models` defines JSON-stable parser dataclasses and `CParseError`. -- `c_parser.parser` exposes `CParser`, `parse_c_file`, and `parse_c_project`. - `CParser.visit_parsed_project` is the documented orchestration hook for - assembling translation units that were parsed individually. -- `x2py` re-exports `parse_c_file` and `parse_c_project`, matching its - Fortran file/project entrypoint style. -- `c_parser.parser` keeps parser helpers on `CParser`, matching the Fortran - parser's stateful class structure; module-level functions are limited to - public entrypoints and small path helpers. -- `c_parser.lexer` strips comments safely, folds backslash-newline logical - records, exposes lightweight token records, and provides top-level splitting - helpers that track braces, parentheses, brackets, literals, and - function-definition end locations. -- `c_parser.preprocessor` records raw `#include` directives, simple object-like - macros, `#undef` directives, conditional/pragma directive provenance - including OpenMP declaration pragmas, and unsupported function-like macro - diagnostics without expanding macros. -- `c_parser.parser` parses variables, typedefs, incomplete `struct`/`union` - tags, basic struct/union/enum definitions, function prototypes, and - function-definition signatures while skipping bodies. Declarator handling - follows the C declarator grammar for pointer prefixes, parenthesized direct - declarators, and array/function suffixes, including functions returning - function pointers and arrays of callback pointers. Incomplete tags are - recorded as `CStruct` or `CUnion` objects with `is_incomplete=True`. - Declaration types are represented by concrete `CType` subclasses: - primitives, `CPointer`, `CArray`, `CFunctionType`, and - `CComposedType`. Aggregate members are `CVariable` objects using that same - type path and preserve arrays, callback candidates, bit-width text, and - member-level source locations. Supported flexible final struct members set - `CArray.is_flexible=True`; invalid flexible-member placement and union use - produce `C_INVALID_FLEXIBLE_ARRAY_MEMBER` diagnostics. Function signatures - that use unions by value produce `C_UNION_BY_VALUE` diagnostics while - pointer-to-union signatures remain parsed normally. - Inline tag definitions followed by aliases or objects produce concrete - `CTypedef` or `CVariable` records linked to the aggregate object. Function - models expose `result_type` and named `parameters`; their derived - `CFunctionType` is the nameless callable signature. Array and function - parameter declarations preserve their written `declared_type` and expose - pointer-adjusted effective `type` values. Declarations prefixed by - unexpanded object-like macros are deferred as macro dependencies rather than - misreported as invalid type sequences. In compiler/preprocessed mode, common - GCC/Clang and MS declaration syntax is normalized before grammar parsing: - attributes, `__declspec(...)`, - `[[...]]`, `__extension__`, alternate qualifier/inline spellings, - declaration-level `asm(...)`, calling-convention keywords, `typeof(...)`, - `_BitInt(...)`, and selected extended scalar names. Ignored extension - semantics that can affect ABI, layout, symbol identity, or type identity - produce `C_UNMODELED_COMPILER_EXTENSION` warnings. Static assertions remain - diagnostic-only. A declarator must be fully consumed before a concrete object - is returned; unknown suffixes become diagnostics. Grammar-invalid input raises `CParseError` with - `CPARSE_INVALID_SYNTAX`; identifier spellings are not used to guess another - language. Primitive specifier order is normalized, and invalid combinations - such as `unsigned float` raise `CParseError` with code - `CPARSE_INVALID_SPECIFIER_SEQUENCE` while a - single unresolved typedef-like name remains deferred. Definitions preserve direct - `start` and `end` locations from the signature start through the closing - brace; and K&R-style function definitions raise focused diagnostics. -- Top-level redeclaration handling merges compatible repeated declarations, - completes incomplete struct/union tags when a later definition is parsed, - prefers compatible function or variable definitions over earlier - declarations, preserves related declaration locations, and reports duplicate - definitions or incompatible redeclarations as diagnostics. Local declarations - inside function bodies remain out of scope because bodies are skipped. -- Raw same-name function alternatives in mutually exclusive conditional - branches retain Fortran-style `condition_set` identity; a project keeps - ambiguous alternatives in `conditional_function_variants` rather than - inventing one selected function. -- `c_parser.cli` provides C-specific partial report formatting. -- `x2py.cli` dispatches `--language c --parse` to the C parser path. -- `x2py.c_type_probe` compiles and runs a generated C11 query for - `size_t`, `uint32_t`, `time_t`, and opaque `FILE` pointer ABI facts, - preserving compiler/runner/source provenance for semantic conversion. It - carries target-relevant include, macro, undefine, and compiler-argument flags - and records the requested project standard as provenance. -- `semantics.c2ir` converts the supported C parser subset into semantic IR, - including scalar functions, pointer storage contracts, declared arrays, - structs/opaque structs, enum and numeric macro constants, local typedef - chains, target standard-type probe facts, and C-specific readiness blockers. -- `--language c --semantics`, `--language c --wrap-readiness`, and starter - exact-contract `--language c --pyi` output are enabled for the supported C - semantic subset. -- Focused partial CLI/API, declaration/function, diagnostic color, project - include/index, raw lexer/directive, project golden, error golden, preprocessed - linemarker remapping, JSON schema, and cJSON partial-parse regression tests - are active. A separately pinned/provenanced corpus remains deferred work, - not a skipped test. -- `tests/data/c/` contains general fixtures modeled after the Fortran general - fixture themes, additional C-specific API shapes, fatal diagnostic inputs, - and real-world cJSON/jsmn/tinyexpr/linmath/NanoSVG/stb inputs whose partial - project parse reports are covered by regression goldens. - -Deferred: - -- full typedef/tag resolution policy beyond basic project-level link-up and - callback policy metadata, for example conflict diagnostics, active - semantic wrappability decisions -- semantic modeling for compiler attributes, alignment, calling conventions, - assembler aliases, opaque compiler type expressions, and extended scalar ABI - facts beyond the accepted declaration syntax -- broader compiler-family validation for preprocessing; parsed declarations - already retain preprocessed origin and mapped source identity -- broader C callback/ownership policy beyond exact starter `.pyi` stubs - -Documentation rule: any future C parser implementation change must update all -affected docs under `docs/c_parser/` in the same change. This applies to model, -parser, CLI, test, fixture, semantic, and `.pyi` changes; documentation updates -should not wait for a separate request. - -## Inspected Repository Areas - -- `README.md` -- `docs/fortran/fortran_parser.md` -- `docs/fortran/parser_implementation_reference.md` -- `docs/architecture/semantic_multilanguage_wrapper_runtime_architecture.md` -- `docs/semantics/pyi_format.md` -- `fortran_parser/lexer.py` -- `fortran_parser/parser.py` -- `fortran_parser/models.py` -- `fortran_parser/type_resolver.py` -- `fortran_parser/utils.py` -- `fortran_parser/cli.py` -- `x2py/cli.py` -- `x2py/__init__.py` -- `semantics/models.py` -- `semantics/fortran2ir.py` -- `semantics/pyi_printer.py` -- `semantics/pyi_parser.py` -- `tests/parser/test_cli.py` -- `tests/parser/test_fortran_fixture_suite.py` -- `tests/parser/test_fortran_error_fixture_suite.py` -- `tests/parser/test_parser_developer_tutorial.py` -- `tests/parser/c/test_c_parser_developer_tutorial.py` -- `tests/parser/test_parser_public_entrypoints.py` -- `tests/semantics/test_semantic_wrap_readiness.py` -- `tests/parser/test_error_handling.py` -- `tests/semantics/test_fortran2ir.py` -- `tests/semantics/test_semantic_conversion_smoke.py` -- `tests/pyi/test_pyi_to_ir.py` -- `tests/pyi/test_pyi_fixture_suite.py` -- `tests/parser/fortran/generate_fortran_parser_goldens.py` -- `tests/parser/fortran/errors/generate_fortran_parser_error_goldens.py` -- `tests/parser/c/generate_c_parser_goldens.py` -- `tests/parser/c/errors/generate_c_parser_error_goldens.py` -- `tests/semantics/generate_semantic_fixtures.py` -- `tests/pyi/generate_pyi_fixtures.py` -- `tests/_shared/fixture_outputs.py` - -## Architectural Observations From The Existing Parser - -The Fortran parser is not a compiler frontend. It is a wrapper-oriented -semantic extraction frontend with a bounded language subset. Its important -architectural properties are: - -- A lexer/preprocessor stage normalizes source while preserving original line - numbers and source lines for diagnostics. -- The parser uses recursive source-unit slicing instead of a whole-file scan. -- Each source unit is parsed inside an explicit `_ParserScope`; there is no - ambient global current module/procedure stack. -- Unit visitors are small and grammar-shaped: file, module, submodule, program, - procedure, interface, derived type, and block data each receive only their - own source substring. -- The shared declaration parser is reused for procedure arguments/results, - module variables, program variables, block data variables, and derived type - fields. -- Grammar-region splitting separates header, specification, execution, and - contains regions. Wrapper extraction mostly ignores executable bodies. -- Parser model objects are typed dataclasses with stable JSON-friendly fields. -- Project parsing builds indexes and dependency order from imports/uses. -- Readiness is semantic-layer work, not parser work. The C parser should - preserve enough source facts for later semantic readiness, but it should not - expose parser-side `wrappable` reports. -- CLI output has a stable human tree, JSON output, output file behavior, - no-color support, and debug traceback opt-in. -- Semantic IR conversion is a separate visitor layer. Parser output is a helper - input, not the source of truth. -- `.pyi` generation and parsing operate over semantic IR, not parser internals. -- Fixture testing combines focused unit tests, parser JSON goldens, error - goldens, semantic fixtures, `.pyi` fixtures, and corpus parse-only coverage. - -The C parser should follow these patterns where they map cleanly to C syntax. -It should not be a giant regex parser, a compiler wrapper, or a libclang-only -dependency architecture. - -## Grammar-Style Parser Requirement - -The C frontend must be implemented as a grammar-style recursive parser, not as -an unstructured source scanner. The core parser should be shaped around C -grammar regions and reusable visitors: - -- translation-unit visitor -- preprocessor directive collector -- declaration visitor -- declarator parser -- initializer skipper/extractor where wrapper-relevant -- function prototype visitor -- function definition visitor that extracts signatures and skips bodies -- struct, union, enum, and typedef visitors -- scoped symbol/type indexes - -Regular expressions are acceptable only as narrow helpers inside a grammar -step, such as recognizing an include directive after the preprocessor collector -has isolated the line. They must not become the top-level parsing strategy. - -External compiler preprocessing can be used as an optional input source for -macro-expanded views, but the x2py C frontend still needs its own typed parser -models, source-location handling, diagnostics, and project indexes. Invoking a -compiler must not replace the grammar-style parser. The current x2py CLI can -run an exact user-supplied compiler executable through `--preprocess compiler` -and parse the preprocessed stdout through the same C parser. `#line` and -GCC/Clang linemarkers are used to remap parsed locations and diagnostics back -to the original source. - -## Package Layout - -The implementation lives in a separate package so it does not destabilize the -Fortran parser: - -```text -c_parser/ - __init__.py - __main__.py - cli.py - lexer.py - models.py - parser.py - preprocessor.py - project.py - type_resolver.py - utils.py - -x2py/ - c_type_probe.py -``` - -Current and planned responsibilities: - -- `c_parser/models.py` - - Implemented: typed parser models, `CParseError`, compiler-style - diagnostic rendering, concrete `CType` composition, and JSON-stable - dataclass serialization, including declared/effective parameter type facts. - - Planned: resolved symbol links, richer macro/preprocessing provenance, - and project indexes. -- `c_parser/lexer.py` - - Implemented: safe comment removal that preserves line mapping, logical - record folding for backslash-newline, string/character literal awareness, - lightweight tokens with source locations, preprocessed `#line`/linemarker - remapping for top-level segments, top-level splitting with block end - locations, aggregate-header attribute tolerance during brace - classification, and delimiter splitting aware of nesting and literals. - - Planned: richer token helpers as extension and initializer-expression - parsing require them. -- `c_parser/preprocessor.py` - - Implemented: lightweight raw directive metadata for includes, - object-like macros, `#undef` directives, function-like macro diagnostics, - and local include resolution when a matching file is available. - - Compiler-assisted recipe metadata is persisted by the shared - `x2py.preprocessing` CLI input path and attached to generated `CFile` - JSON output. -- `c_parser/parser.py` - - Implemented: `CParser`, `parse_c_file`, `parse_c_project`, - `CParser.visit_parsed_project`, - translation-unit visiting, declaration/function visitors, grammar-shaped - recursive declarator parsing, concrete `CType` construction, and aggregate - member extraction. Helper methods live on `CParser` rather than as broad - module-level functions. The file now follows the Fortran parser's - maintainer-facing organization pattern with a module architecture guide, - public visitors first, sectioned helper groups, and docstrings on parser - helper methods. Function models record prototype-style versus unspecified - empty parameter lists, function definitions preserve start/end locations, - K&R-style definitions are rejected with `CParseError`, and invalid - primitive-specifier combinations are rejected with - `CPARSE_INVALID_SPECIFIER_SEQUENCE`. Array and - function parameters preserve `declared_type` while effective `type` uses C - parameter adjustment. Raw declarations beginning with an object-like macro - name are retained as macro-dependent diagnostics. Compiler/preprocessed mode - normalizes common GCC/Clang and MS declaration extensions before grammar - parsing; ignored ABI-relevant semantics produce - `C_UNMODELED_COMPILER_EXTENSION` warnings. - - Planned: symbol resolution and additional declaration-specifier and - extension coverage. -- `c_parser/project.py` - - Compatibility export for project parsing. - - Project behavior is implemented through `CParser.visit_project` and - `CParser.visit_parsed_project`, including `.c`/`.h`/`.i` discovery, - include graphs, and header/source association. -- `c_parser/type_resolver.py` - - Resolves tag and typedef references, typedef chains/cycles, and aggregate - references across parsed project files. - - Boundary: enum initializer expressions remain source text in the parser; - any target-aware evaluation belongs to later semantic conversion. -- `c_parser/cli.py` - - Implemented: report formatting and serialization helpers called by - `x2py.cli` behind explicit C flags. - - Planned: richer human output as more C facts are populated. -- `c_parser/utils.py` - - Placeholder now. - - Planned: shared helpers that are not parser-state dependent. -- `x2py/c_type_probe.py` - - Implemented: compiler/target-derived JSON facts for standard-header - arithmetic aliases and opaque `FILE` pointer ABI information. - - Boundary: target ABI facts are inputs to future semantics, not declarations - guessed by raw parser mode or stored as `CFile` syntax facts. - -## Public API Shape - -The public C API mirrors the Fortran style but remains C-specific: - -```python -parse_c_file(source_or_path, filename=None, include_dirs=None, preprocessing="raw", encoding="utf-8") -> CFile -parse_c_project(files, include_dirs=None, preprocessing="raw", encoding="utf-8") -> CProject -``` - -Raw mode does not evaluate C preprocessor conditionals or expand macros inside -x2py. Compiler mode receives already-expanded source from the shared -preprocessing layer. - -Implemented companion class: - -```python -class CParser: - def visit_file(...): ... - def visit_project(...): ... - def visit_parsed_project(...): ... -``` - -These entrypoints are exposed from both `c_parser` and `x2py.__init__`, using -the same top-level file/project invocation pattern already provided for -Fortran. C semantic conversion is exposed separately through -`semantics.c2ir` and top-level `x2py` compatibility helpers. - -`visit_parsed_project` is a class-level orchestration hook rather than an -additional module-level wrapper. It is used when a caller preprocesses each -translation unit first, attaches recipe metadata, and then asks the parser to -resolve the resulting file set as one `CProject`. - -## Core Model Families - -All declared types inherit from `CType`, which stores `qualifiers` and -`source_text`. Type qualifiers are concrete values: `CConst`, `CVolatile`, -`CRestrict`, and `CAtomic`. Both `_Atomic int` and `_Atomic(type)` forms are -parsed; for a composed inner type the atomic qualifier stays on its outermost -component. - -The implemented primitive `CType` subclasses are: - -- `CVoid`, `CBool`, `CChar`, `CSignedChar`, and `CUnsignedChar` -- `CShort`, `CUnsignedShort`, `CInt`, and `CUnsignedInt` -- `CLong`, `CUnsignedLong`, `CLongLong`, and `CUnsignedLongLong` -- `CFloat`, `CDouble`, and `CLongDouble` -- `CFloatComplex`, `CDoubleComplex`, and `CLongDoubleComplex` - -Derived and named `CType` subclasses are: - -- `CPointer`, whose qualifiers apply to that pointer component -- `CArray`, with `bound`, `is_static_minimum`, `is_variable_length`, and - `is_flexible`; supported final flexible struct members are classified now, - and invalid placement or union use produces a parser diagnostic -- `CFunctionType`, the nameless callable signature with `result_type`, - `parameter_types`, `is_variadic`, and `prototype_style` -- `CComposedType`, whose `components` are read from the declared name outward -- `CStruct`, `CUnion`, and `CEnum`, which are tag types as well as aggregate - declaration objects -- `CTypedef`, which represents either a declared alias with its underlying - `type`, or an unresolved typedef-name use until symbol resolution is added -- `CUnknownType`, retained for type states that cannot yet be modeled; invalid - primitive-specifier combinations no longer become `CUnknownType` - -For example, composition order distinguishes the following declarations: - -```python -int *values[4]; # CComposedType([CArray(bound="4"), CPointer(), CInt()]) -int (*matrix)[4]; # CComposedType([CPointer(), CArray(bound="4"), CInt()]) -int *(*table)[4]; # CComposedType([CPointer(), CArray(bound="4"), CPointer(), CInt()]) -``` - -Declaration objects are separate from the type components: - -- `CVariable` has `name`, `type`, `storage`, optional `initializer`, optional - `bit_width`, source/callback metadata, and related declaration locations. - Struct and union `members` are also `CVariable` objects with per-member - locations; there is no separate field class. -- `CFunction` has `name`, `result_type`, named `parameters`, storage and - function specifiers, `is_variadic`, prototype style, and source/definition - locations plus related declaration locations. Raw alternative declarations - can also carry `condition_set` tokens such as `g1:b0`, matching the - Fortran parser's conditional-sibling identity convention. Its `type` - property builds the corresponding nameless `CFunctionType`. -- `CParameter` has a source name, written `declared_type`, and effective - `type`; outer array parameters and direct function parameters adjust to - pointer `type` values while their source form is retained. -- `CInitializer` preserves initializer source text without claiming evaluation. -- `CStruct` and `CUnion` expose `members` and `is_incomplete`; `CEnum` exposes - `constants`; `CEnumerator` preserves enumerator name and value text. -- `CTypedef` has its alias name, declared `type`, and related declaration - locations. -- `CMacro` - - `name` - - `value` - - `function_like` - - `directive` - - `source_location` -- `CRawDirective` - - `directive` - - `argument` - - `source_location` -- `CMacroDependency` - - `name` - - `context` - - `source_location` -- `CInclude` - - `target` - - `kind` - - `resolved_path` - - `source_location` -- `CFile` - - `filename` - - `language` - - `parser_status` - - `preprocessing` - - `functions` - - `structs` - - `unions` - - `enums` - - `typedefs` - - `variables` - - `macros` - - `includes` - - `raw_directives` - - `macro_dependencies` - - `diagnostics` -- `CProject` - - `files` - - `functions` - - `structs` - - `unions` - - `enums` - - `typedefs` - - `variables` - - `macros` - - `includes` - - `functions_by_file` - - `enum_constants` - - `include_graph` - - `system_includes` - - `unresolved_includes` - - `header_source_pairs` - - `conditional_function_variants` - - `diagnostics` - -Serialization uses `"model"` to identify concrete `CType` nodes; `"type"` is -reserved for semantic type relationships such as `CVariable.type` and -`CTypedef.type`. Concrete qualifier objects serialize using their canonical -spellings, such as `"const"`. Reused aggregate/typedef objects serialize as -references to avoid cycles. - -Future parser phases can deepen symbol links, duplicate/conflict diagnostics, -and project diagnostics when the corresponding behavior lands. Additions -should be documented and tested with stable serialization expectations. - -## Grammar-Style Parsing Strategy - -C does not have Fortran-style modules, but it still has parseable scoped -regions: - -- translation unit -- preprocessor directive lines -- external declarations -- function prototypes -- function definitions -- declaration specifier sequences -- declarators -- parameter declaration lists -- struct/union/enum definitions -- compound statement bodies - -The C parser parses external declarations by slicing top-level grammar -regions, not by scanning the full file repeatedly. The high-level flow should -be: - -1. Normalize source through a C lexer/preprocessor layer. -2. Produce tokens or logical source records with original source locations. -3. Visit the translation unit. -4. Split direct external declarations while balancing parentheses, brackets, - braces, string literals, and comments. -5. Classify each external declaration: - - include/preprocessor directive - - typedef - - function prototype - - function definition - - forward struct declaration or struct/union/enum definition - - file-scope variable/static const - - unsupported/macro-dependent declaration -6. Dispatch to a small visitor for that declaration kind. -7. Use a shared declaration-specifier and declarator parser to build type - references for functions, parameters, members, variables, and typedefs. -8. Ignore executable function bodies except where needed to find the matching - brace and preserve function start/end locations. - -## Declarator-Centered Design - -C type syntax is declarator-centered. Declarator parsing stays a first-class -subsystem, not a pile of ad hoc string splitting. The current parser applies -one recursive declarator path to variables, typedefs, function signatures, -parameters, and aggregate members; future work should extend that grammar-shaped -path rather than adding parallel splitting rules. - -Layered pieces: - -- declaration specifier parser - - storage classes: `extern`, `static`, `typedef`, `register`, `_Thread_local` - - qualifiers: `const`, `restrict`, `volatile`, `_Atomic` - - atomic type specifier: `_Atomic(type)` - - primitive base: `void`, `char`, `short`, `int`, `long`, `float`, `double`, - `_Bool`, `_Complex` - - signedness: `signed`, `unsigned` - - tags: `struct`, `union`, `enum` - - typedef-name references -- declarator parser - - identifier extraction - - pointer chains - - arrays - - function parameters - - parenthesized declarators - - function pointers - - anonymous abstract declarators where needed -- entity applier - - convert one declaration specifier plus one declarator into a typed model - - reuse this for function returns, parameters, members, variables, and typedefs - -This is the C equivalent of the Fortran parser's shared declaration backend. - -## Preprocessing Strategy - -The C frontend must be preprocessor-aware without trying to be a full C -preprocessor in v1. - -The practical rule is: x2py should not own preprocessor correctness. Partial -macro expansion is especially dangerous in C because macros can participate in -function names, type names, declarators, attributes, calling conventions, -visibility annotations, and entire declarations. Raw mode must therefore avoid -guessing what macro-expanded declarations mean. Macro-heavy APIs are still in -scope, but the supported path for those APIs is compiler-assisted preprocessing -with line mapping. The parser supports raw-source mode, -compiler/preprocessed-input mode, and direct `.i` input; declarations parsed -from preprocessed source carry `origin="preprocessed"`. For compiler streams -produced by the shared x2py CLI, `CFile` JSON records a -`preprocessing_recipe`: compiler executable, final argv, -include dirs, defines, undefines, standard, working directory, and optional -selected `compile_commands.json` entry. - -Raw-source mode target: - -- Strip comments safely while preserving line numbers. -- Fold backslash-newline continuations. -- Record `#include` directives as structured include dependencies. -- Record `#define` object-like macros for simple constants. -- Record `#undef` directives as macro provenance. -- Record function-like macros as unsupported or deferred metadata. -- Record conditional directive presence as metadata only when needed for - provenance. -- Preserve same-name function declarations from mutually exclusive raw - conditional branches as separate `condition_set` variants; do not select an - active branch in raw mode. -- Parse ordinary declarations only when they are visible without macro - expansion. -- Mark function-like wrappers and object-like declaration-prefix regions as - unsupported/deferred rather than treating them as parsed declarations. -- Do not select active branches from `#if`/`#ifdef` in raw mode. - -Compiler-assisted preprocessing target: - -- Accept a preprocessed stream from a configured compiler command such as - `gcc-13 -E`, `clang-18 -E`, or an absolute compiler path. Users normally pass - `.h`/`.c` inputs and have x2py generate the stream; direct `.i` input is - accepted when a generated stream already exists. -- Use a shared x2py CLI option shape for C and Fortran: - `--preprocess compiler`, `--compiler`, `-I`, `-D`, `-U`, `--std`, and - `--compiler-arg`. -- Require exact compiler executables in direct compiler mode, for example - `gcc-13`, `clang-18`, `/usr/bin/gfortran-12`, or - `/opt/intel/oneapi/compiler/latest/bin/ifx`, instead of silently choosing a - generic default. -- Accept C `compile_commands.json` entries for project builds and strip - compile-only flags before adding `-E`. -- Preserve `#line` marker information so diagnostics can map preprocessed - declarations back to original files. -- Treat `#line`/linemarker directives as the source of truth for - `source_location` fields after preprocessing. -- Store the original input path and exact invocation recipe for - CLI-generated compiler input. -- Mark declarations discovered only after preprocessing with - `origin="preprocessed"` or equivalent model metadata. -- Record the macro definitions/include directories/preprocessor command that - produced the parse, because different `-D` and `-I` settings can expose - different public APIs. -- Treat function-like macros as metadata in raw mode, but allow their expanded - declarations to be parsed when they appear in compiler-preprocessed input. -- Require preprocessed input whenever public declarations depend on macros for - names, types, declarators, attributes, storage classes, calling conventions, - visibility annotations, or active conditional branches. - -Initial non-goal: - -- Do not implement arbitrary macro expansion. -- Do not attempt token-paste/stringify semantics. -- Do not implement recursive compiler-compatible macro semantics inside x2py. -- Do not require libclang as the only way to understand headers. - -## Project Parsing Strategy - -C project parsing should account for include graphs instead of Fortran `use` -graphs. - -Current behavior: - -- `parse_c_project` accepts mappings, explicit paths, and directories. -- Directory mode discovers `.c`, `.h`, and `.i` files. -- Returned `CProject` objects contain `CFile` parser models with raw include, - macro, metadata diagnostics, and supported declarations populated per file. -- Basic project-level indexes are populated for parsed functions, typedefs, - variables, macros, includes, functions by file, and enum constants. -- Quoted local includes are recorded in an `include_graph`; system includes - are recorded separately. Unresolved quoted includes remain diagnostics - rather than hard failures, and include cycles are represented as graph edges - without recursive traversal. -- Included local or system files are never recursively parsed, even when a - local path can be resolved. The parser reads only explicit mapping/file - inputs or supported files below an explicit directory, matching the - Fortran policy of recording imports/includes without loading them. -- Generated headers and direct `.i` inputs follow that explicit-input rule; - compiler linemarkers record origins rather than introducing project files. -- Project and include-graph keys are input/path keys. There is no C module-key - namespace; a graph edge uses a parsed project-file key when one matches and - otherwise retains its external path/target fact. -- Likely header/source pairs are reported by matching stems and direct source - includes. -- Basic cross-file typedef and struct/union/enum tag references are linked to - project index objects after all files are parsed. Original type spelling is - preserved in the model `source_text`. -- Basic duplicate/conflict analysis is populated; broader policy remains - fixture-driven work. - -Planned behavior after project-resolution phases: - -- Deepen include graph behavior where normalized paths are ambiguous. -- Deepen duplicate/conflict diagnostics. -- Track duplicate symbols by C namespace: - - ordinary identifiers - - typedef names - - struct/union/enum tags - - labels are not wrapper-relevant and should not enter the public index -- Keep project resolution tolerant enough to parse partial projects, while - parser diagnostics and metadata preserve missing dependencies for later - semantic readiness. - -## Readiness Boundary - -The parser should not compute wrappability. That responsibility belongs to the -semantic layer, after parser models are converted into semantic IR or after an -edited `.pyi` file supplies the missing policy. - -What the parser should still preserve is the source information needed for that -later stage: - -- unresolved include references -- unresolved typedef/tag references -- macro-dependent declarations -- variadic functions -- pointer ownership and mutability ambiguity -- incomplete public types -- callback and function-pointer structure -- unsupported extension markers - -These should become parser diagnostics or parser metadata, not a parser-side -`wrappable` report or a parser JSON readiness payload. - -## Parser-First Model Policy - -For the current planning horizon, the C parser should store C-specific facts in -`c_parser/models.py`. It currently stores function-pointer signatures, -callback-candidate markers, type qualifiers, raw include dependencies, and -unresolved typedef/tag uses. Preprocessed input records declaration origin and -mapped source identity; CLI-generated compiler input also records its -preprocessing recipe. Later phases should add ownership policy and deepen -resolved symbol/conflict handling. Standard-header aliases whose representation -matters to semantic conversion are supplied separately by `x2py.c_type_probe`, -with exact compiler, generated source, and runner provenance. - -Semantic IR conversion is deliberately later work. When that phase starts, the -IR model may need extensions for C pointer ownership, unsigned integer types, -callbacks, opaque handles, function pointer policies, and preprocessing-origin -metadata. The parser should not wait for those IR decisions before preserving -the source facts it can extract. - -## Semantic IR Mapping - -The semantic layer is the source of truth. The C parser should only help create -or update semantic modules. - -Planned mapping: - -- C file or header group -> `SemanticModule` -- C function -> `SemanticFunction` -- C parameter -> `SemanticArgument` -- C primitive -> `SemanticType` -- C pointer -> constraints and ownership metadata -- C array -> subscription shape notation such as `T[n]`, order metadata such as - `ORDER_C`, and pointer/extent metadata -- `const` -> read-only ownership/constraint metadata -- `restrict` -> aliasing metadata -- structs/unions -> `SemanticClass` or named opaque semantic type -- enums -> constants or a future semantic enum representation -- typedefs -> semantic aliases or metadata, depending on IR support at the - time of implementation -- standard-header aliases (`size_t`, `uint32_t`, `time_t`) -> semantic - integer/real types using compiler-derived width and signedness facts -- `FILE *` -> opaque handle/pointer semantics using pointer ABI facts rather - than importing library-private layout -- macros/constants -> `SemanticArgument` module variables with `Constant` - where safe - -Pointer ownership and lifetime should be conservative. Ambiguous pointers -should be represented with diagnostics and metadata rather than guessed as safe -Python APIs. - -## `.pyi` Integration - -Generated `.pyi` stubs for C are emitted from semantic IR for the supported -exact-contract subset. Readiness follows the semantic-layer pattern already -used by the project. - -Likely stub patterns: - -- plain scalar functions: - - `def f(x: Int32) -> Float64: ...` -- pointer arguments: - - use storage/calling contracts such as `Ptr(...)`, `Const(...)`, writable - metadata, and explicit extent metadata only after the IR supports them - cleanly -- arrays: - - `Annotated[Float64[n], ORDER_C]` -- opaque handles: - - classes or named semantic types with ownership constraints -- structs: - - `class struct_name: ...` when field layout is useful and stable -- callbacks: - - generated stubs should include callback declarations only after user policy - fields are designed and supported -- constants: - - `Final[...]` - -The existing `.pyi` parser already supports `Final`, `private`, `native_call`, -imports, classes, functions, shape subscriptions, storage contracts, metadata, -and native projection entries. C-specific work should extend the semantic model -intentionally before changing `.pyi` syntax. - -For function pointers and callbacks, parser extraction and later wrappability -are separate decisions. The parser should extract the function pointer type into -C models whenever possible. If a callback-bearing API later becomes wrappable, -that should be because the user supplied enough `.pyi` policy for the semantic -layer to make the decision. The policy needs to identify: - -- the callback signature, including argument and return semantic types -- whether native calls Python, Python passes a callback to native, or both -- whether the callback is used only during the call or stored by native code -- which context/userdata parameter, often `void *`, is paired with it -- whether `NULL` is allowed for the callback and/or context -- the calling convention when it is not the platform default -- whether invocation is synchronous, asynchronous, same-thread, or arbitrary - native-thread -- who owns callback and context memory -- how and when a stored callback is released -- what should happen if the Python callback raises - -Until those fields exist and are supplied, any future readiness layer should -report an explicit callback policy blocker rather than pretending the function -is safely wrappable. diff --git a/docs/c_parser/c_parser_cli_workflow.md b/docs/c_parser/c_parser_cli_workflow.md deleted file mode 100644 index 761b04dc9..000000000 --- a/docs/c_parser/c_parser_cli_workflow.md +++ /dev/null @@ -1,720 +0,0 @@ -# C Parser CLI Workflow Plan - -Status: C parser partial subset plus raw directive metadata implemented. The -CLI command shape exists and parse reports can include raw includes, simple -macros, `#undef` and conditional directive provenance, raw conditional -function variants, top-level redeclaration diagnostics, project include/index -metadata, diagnostics, -variables, typedefs, -aggregate declarations, function prototypes, prototype-style metadata, and -function-definition signatures with start/end locations. Declarator output can -represent parenthesized pointer/array precedence through concrete -`CComposedType` components and nameless `CFunctionType` signatures; function -parameters expose both declared and C-adjusted effective type facts. The CLI -also exposes shared C/Fortran preprocessing flags and can run exact -compiler/preprocessor executables for compiler mode. Target-specific standard -header type facts for C semantics are available through the separate -`python -m x2py.c_type_probe` command. C semantic IR, readiness, and starter -exact-contract `.pyi` output are available through the shared `x2py` CLI. - -This document records the implemented C parse command shape, output schema, -and diagnostic contract, plus deferred CLI behavior. - -## Current Status - -Implemented commands: - -```bash -python -m x2py path/to/api.h --language c --parse -python -m x2py path/to/api.h --language c --parse --json -python -m x2py path/to/api.h --language c --parse --out report.json -python -m x2py path/to/api.h --language c --parse --preprocess compiler --compiler clang-18 -I include -D API_EXPORT= --std c11 -python -m x2py path/to/api.h --language c --semantics -python -m x2py path/to/api.h --language c --wrap-readiness -python -m x2py path/to/api.h --language c --pyi -``` - -The C parser accepts explicit `.c`, `.h`, and direct `.i` files, plus -directories in explicit C mode. Directory scanning in C mode collects those -three source forms. It does not recursively parse headers mentioned by -includes; as on the Fortran path, an imported/included source is parsed only -when the user supplied it or supplied a directory containing it. -Auto-detection is deferred. Omitting `--language` remains accepted for -recognizable Fortran files and `.pyi` readiness inputs, but a `.c`, `.h`, or -`.i` path fails with guidance to pass `--language c`; directory and -unknown-suffix source inputs require an explicit frontend selection. A known C -path explicitly passed with `--language fortran` is rejected before parsing, -so it cannot silently produce an empty Fortran interface. Each parser validates -the grammar regions it models and rejects unparsed syntax outside execution -regions that are intentionally not modeled. It does not guess a different -language from identifier or keyword spellings. - -The C parser output differs from Fortran parser output by using C-specific -top-level sections: `functions`, `structs`, `unions`, `enums`, `typedefs`, -`variables`, `macros`, `includes`, and `diagnostics`. The current partial parser -can populate `functions`, `typedefs`, `variables`, `structs`, `unions`, and -`enums` in the supported subset. Typedefs, variables, parameters, and aggregate -members can include concrete composed types for pointer/array/function forms, -including function pointers, functions returning function pointers, and -legal final flexible struct members marked with `is_flexible=True`. Array and -function parameters preserve written `declared_type` forms while effective -`type` values use pointer adjustment. Raw -`includes`, `macros`, `raw_directives`, `macro_dependencies`, and metadata -`diagnostics` can also be populated. `--preprocess compiler` runs an exact -user-supplied compiler/preprocessor executable or uses a C -`compile_commands.json` entry, then feeds the preprocessed stdout through the -same parser with `preprocessing: "compiler"`. `#line` and GCC/Clang -linemarkers remap parsed declarations and diagnostics back to the original -source. `parse_c_project(...)` additionally -populates project-level include/index fields such as `include_graph`, -`system_includes`, `unresolved_includes`, `functions_by_file`, -`enum_constants`, and `header_source_pairs`. Those fields require project -context; a single-file parse only records the local file facts. If raw -conditional branches expose incompatible alternatives of one function, -`CFunction.condition_set` records the alternatives and -`CProject.conditional_function_variants` retains them outside the unique -function index. -The object class distinguishes declarations (`CFunction`, -`CVariable`, `CTypedef`, `CStruct`, `CUnion`, or `CEnum`), and incomplete tag -declarations set `is_incomplete=True`. -In compiler/preprocessed mode, common GCC/Clang and MS declaration syntax is -normalized before grammar parsing: attributes, `__declspec(...)`, `[[...]]`, -`__extension__`, alternate qualifier/inline spellings, declaration-level -`asm(...)`, calling-convention -keywords, `typeof(...)`, `_BitInt(...)`, and selected extended scalar names. -Ignored extension semantics that can affect ABI, layout, symbol identity, or -type identity produce `C_UNMODELED_COMPILER_EXTENSION` warnings. Static -assertions and remaining unsupported declarator suffixes are diagnosed instead -of silently omitted. Invalid flexible array -member placement and flexible union members produce -`C_INVALID_FLEXIBLE_ARRAY_MEMBER` error diagnostics at the field location. The parser reports -`parser_status: "partial"`. C parse diagnostics, currently including -unsupported K&R-style function definitions and invalid primitive-specifier -combinations such as `unsigned float`, honor `--no-color` and `NO_COLOR=1`. -Active CLI regression tests also verify that `--debug`, -`--debug-traceback`, and `C_PARSER_DEBUG=1` re-raise fatal C parse errors for -debugging. -Function definitions do not store executable body text; they preserve a -direct `start` location and `end` location from the signature start through the -closing brace. Compatible repeated top-level declarations are merged; -prototype-plus-definition records prefer the definition and preserve prototype -locations in `declaration_locations`. File-scope tentative declarations such -as `int i; int i;` are also merged. Duplicate definitions and incompatible -top-level redeclarations are reported as diagnostics. Local declarations inside -function bodies are not parsed. - -Unsupported C display controls: - -```bash -python -m x2py path/to/api.h --language c --parse --show-vars -python -m x2py path/to/api.h --language c --parse --print-limit 20 -``` - -Fortran-only parse display flags such as `--show-vars` and `--print-limit` -return clear argparse errors in C mode until C-specific display controls exist. - -## Current CLI Baseline - -Recognizable Fortran files can omit `--language`: - -```bash -python -m x2py path/to/file.f90 --parse -python -m x2py path/to/file.f90 --parse --json -python -m x2py path/to/file.f90 --wrap-readiness -python -m x2py path/to/file.f90 --semantics -python -m x2py path/to/file.f90 --semantics --wrap-readiness -python -m x2py path/to/file.f90 --pyi -python -m x2py path/to/fortran_src --language fortran --parse -``` - -Important current behaviors to preserve: - -- Stage flags are explicit: `--parse`, `--semantics`, `--pyi`. -- `--out` writes stage output and suppresses stdout. -- `--json` prints JSON for the selected stage output. -- `--wrap-readiness` is semantic readiness. It can be requested alone for - Fortran or `.pyi` inputs, or combined with other stages. -- Parser JSON remains parse-only. Combined `--parse --wrap-readiness --json` - keeps parse and readiness payloads in separate top-level sections. -- Parse diagnostics are compiler-style and go to stderr. -- Python tracebacks are hidden by default. -- `--debug`, its compatibility alias `--debug-traceback`, or parser debug env - vars re-raise parse errors. -- Diagnostics use ANSI color by default unless `--no-color` or `NO_COLOR=1` - disables it. -- Human parse output is a stable tree. -- JSON parse output is a stable per-file object keyed by input path. - -The C CLI must integrate without breaking any of these Fortran behaviors. - -## Command Shape Recommendation - -Strong initial preference: - -```bash -x2py --language c --parse -``` - -Rationale: - -- It is explicit. -- It scales to future language frontends. -- It avoids surprising users by auto-detecting mixed-language directories too - early. -- It retains concise invocation for recognizable Fortran source files while - making ambiguous or C input explicit. - -No separate `--parse-c` alias is provided. `--language c --parse` is the -single shared language-selection form. - -Auto-detection should be later: - -```bash -x2py --parse -``` - -Auto-detection should wait until mixed source trees can be handled -predictably. Until then, recognizable Fortran inputs may omit `--language`; -C inputs, directories, and unknown-suffix sources must select a frontend. - -## Flags And Deferred Options - -Initial flags: - -```text ---language {fortran,c} ---parse ---json ---out [PATH] ---no-color ---debug -``` - -Current C behavior also accepts `--no-color`. `CParseError` supports -compiler-style diagnostic formatting and the `C_PARSER_DEBUG` environment -variable. The current grammar subset is tolerant for recoverable unsupported -declaration forms, but invalid primitive-specifier combinations raise -`CPARSE_INVALID_SPECIFIER_SEQUENCE`; unresolved single typedef-name uses are deferred until type -resolution can determine whether a declaration exists. -`--debug-traceback` remains accepted as a compatibility alias. - -C-specific flags to add only when needed: - -```text ---include-dir PATH ---show-macros ---show-includes ---print-limit N -``` - -Implemented shared preprocessing flags: - -```text ---preprocess {internal,compiler} ---compiler EXACT_EXECUTABLE ---compile-commands PATH ---preprocessor-adapter {auto,gcc-compatible-c,gnu-fortran,command-template} ---preprocess-template TEMPLATE --I DIR / --include-dir DIR --D NAME[=VALUE] / --define NAME[=VALUE] --U NAME / --undef NAME ---std STANDARD ---compiler-arg ARG ---include-exposure {reachable-project,roots-only} ---public-include PATH_OR_PATTERN ---private-include PATH_OR_PATTERN -``` - -`--preprocess internal` is the default. For C it means the current raw -directive metadata mode: x2py reads `.h`/`.c` input directly, records includes -and macros from the file, parses ordinary visible declarations, and does not -expand macros or select `#if` branches. For Fortran it means plain or -already-preprocessed parser input; internal mode does not evaluate CPP -branches through `-D` or `-U`. - -`--preprocess compiler` means x2py runs an external compiler/preprocessor and -parses stdout. The user must pass an exact compiler executable with -`--compiler`, unless a `--compile-commands` entry or custom command template -supplies it. Do not rely on generic defaults when multiple compiler versions -are installed. GCC-compatible C and Clang use `-E -x c`; GNU Fortran uses -`-E -cpp`. Linemarkers are preserved so parser diagnostics can report original -source files after preprocessing. - -The compiler is authoritative for macro expansion, conditional branch -selection, C and Fortran CPP includes, predefined macros, command-line macro -flags, include paths, target flags, and sysroot behavior. Multiple build -configurations must be preprocessed and parsed separately. x2py does not merge -mutually exclusive CPP branches into one parser model. - -Fortran native `include "file.inc"` is handled after compiler CPP output -because GNU Fortran does not preprocess the contents of native INCLUDE files. -The preprocessing layer resolves these includes relative to the including file, -then `-I` directories, preserves duplicate textual inclusion, and reports -`INCLUDE_NOT_FOUND` or `INCLUDE_CYCLE` explicitly. - -Compiler preprocessing records a recipe with the adapter, compiler argv, -working directory, include directories, defines, undefs, standard, raw compiler -arguments, source mappings, included files, diagnostics, and optional macro -metadata. System headers are recorded but private by default. Reachable project -includes are public by default; `--include-exposure roots-only`, -`--public-include`, and `--private-include` control public wrapper export while -keeping private declarations available for type resolution. Private C handle -types may be emitted as opaque classes in `.pyi` output. - -Before this mechanism is treated as portable across supported toolchains, it -needs substantial integration testing with multiple C and Fortran compiler -families and versions, including GCC/GFortran, Clang/LLVM-family tools, and -vendor compilers where available. That validation should cover command-line -flag compatibility, include and macro behavior, preprocessed stdout parsing, -and C `#line`/linemarker source-location remapping. - -Standard-header typedefs and opaque handles require target ABI facts rather -than raw parser guesses. The standalone probe emits JSON intended for later C -semantic conversion: - -```bash -python -m x2py.c_type_probe --compiler /usr/bin/gcc-13 --std c11 - -# Cross target: run the generated target executable under an emulator. -python -m x2py.c_type_probe --compiler aarch64-linux-gnu-gcc \ - --compiler-arg=--sysroot=/opt/aarch64-sysroot \ - --runner=qemu-aarch64 --runner=-L --runner=/opt/aarch64-sysroot -``` - -It reports `size_t`, available `uint32_t`, and `time_t` width/signedness -classification, plus opaque `FILE` pointer width/alignment, together with the -generated source and exact compile/run commands. The probe carries -target-relevant user flags: `-I`, `-D`, `-U`, and every `--compiler-arg`. -The requested `--std` is recorded in the report, but the generated C probe is -compiled as C11 because it uses `_Generic` and `_Alignof`. If a standard flag is -part of the target profile and is C11-compatible, pass it through -`--compiler-arg` so it appears in the actual compile command. The probe does -not read `compile_commands.json` directly; when parser preprocessing uses a -compile database, pass the selected compiler and target-relevant flags from the -matching entry to the probe explicitly. This is separate from parser JSON -because it describes a target ABI rather than a source declaration. - -Fortran has the same target-profile issue for kind values. The Fortran semantic -path collects unresolved expressions such as `selected_real_kind(12)` and can -evaluate them through `x2py.fortran_type_probe` using the configured compiler, -`-I`, `-D`, `-U`, `--std`, and `--compiler-arg` flags. When the x2py CLI runs -Fortran `--semantics`, `--pyi`, or `--wrap-readiness` with `--preprocess -compiler --compiler ...`, those collected values are evaluated automatically -and passed into semantic conversion. - -Examples: - -```bash -# C, versioned executable from PATH. -python -m x2py include/api.h --language c --parse \ - --preprocess compiler \ - --compiler clang-18 \ - -I include \ - -D API_EXPORT= \ - -D FEATURE_X=1 \ - -U DEBUG \ - --std c11 - -# C, absolute compiler path. -python -m x2py src/api.c --language c --parse --json \ - --preprocess compiler \ - --compiler /usr/bin/gcc-13 \ - -I /opt/vendor/include \ - --compiler-arg=--sysroot=/opt/sdk - -# C, Intel or vendor compiler path. -python -m x2py include/vendor_api.h --language c --parse \ - --preprocess compiler \ - --compiler /opt/intel/oneapi/compiler/latest/bin/icx \ - -D VENDOR_PUBLIC= - -# C or Fortran, project build database. The compiler and most flags come from -# the matching compile_commands.json entry for the input file. -python -m x2py src/api.c --language c --parse \ - --preprocess compiler \ - --compile-commands build/compile_commands.json - -# Unsupported compiler family through a command template. -python -m x2py include/vendor_api.h --language c --parse \ - --preprocess compiler \ - --preprocessor-adapter command-template \ - --preprocess-template 'vendor-cc --preprocess {include_dirs} {defines} {source}' - -# Fortran, compiler-assisted preprocessing with an exact versioned executable. -python -m x2py src/solver.F90 --parse \ - --preprocess compiler \ - --compiler /usr/bin/gfortran-12 \ - -I include \ - -D USE_MPI \ - --std f2018 - -# Fortran, Intel compiler. -python -m x2py src/solver.F90 --parse \ - --preprocess compiler \ - --compiler /opt/intel/oneapi/compiler/latest/bin/ifx \ - -I include \ - -D USE_MPI -``` - -Flag meanings: - -- `--compiler`: exact executable to run. Use `gcc-13`, `clang-18`, - `/usr/bin/gfortran-12`, `/opt/.../ifx`, etc. x2py treats this as one argv - item, not a shell command string. -- `--compile-commands`: project database. x2py finds the entry for the input - file, strips compile-only flags such as `-c` and `-o`, adds `-E`, and uses - that entry's compiler unless `--compiler` overrides it. -- `--preprocessor-adapter` / `--preprocess-template`: custom adapter path for - compiler families that do not match the GCC-compatible C or GNU Fortran - command shape. The command must write expanded source to stdout. -- `-I` / `--include-dir`: include path passed as `-IDIR` in compiler mode. In - C internal mode it is also used for quoted include resolution. -- `-D` / `--define`: macro definition. `-D NAME` means `NAME=1`; `-D NAME=VALUE` - preserves `VALUE`. -- `-U` / `--undef`: macro undefinition passed to compiler preprocessing. -- `--std`: language standard passed as `-std=STANDARD`, for example `c11`, - `c23`, `f2008`, or `f2018`. -- `--compiler-arg`: one raw compiler argument. For values beginning with `-`, - use the equals form, for example `--compiler-arg=-target`. - -`--define` and `--undef` belong to compiler-assisted preprocessing for C and -Fortran, not to raw parser-side macro evaluation. Raw C mode records directives -and parses ordinary visible declarations only; it does not select `#if` -branches or expand macros. A declaration prefixed by an unexpanded object-like -macro is deferred as macro-dependent rather than treated as an invalid type -sequence. - -## Current Partial Behavior - -Phase 1 implemented CLI structure before a real declaration parser existed. -The command shape remains stable as the parser starts populating model fields: - -```bash -x2py include/example.h --language c --parse -``` - -Human output: - -```text -File: include/example.h - Language: c - Functions: 1 - Structs: 0 - Unions: 0 - Enums: 0 - Typedefs: 0 - Variables: 0 - Macros: 0 - Includes: 0 - Diagnostics: 0 - Parser status: partial -``` - -JSON output for a file without raw directives: - -```json -{ - "include/example.h": { - "filename": "include/example.h", - "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [ - { - "name": "run", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": false, - "prototype_style": "prototype", - "source_location": {"filename": "include/example.h", "line": 1, "...": "..."}, - "start": {"filename": "include/example.h", "line": 1, "...": "..."}, - "end": null, - "declaration_locations": [] - } - ], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [], - "macros": [], - "includes": [], - "raw_directives": [], - "macro_dependencies": [], - "diagnostics": [] - } -} -``` - -The parser should not claim C files are wrappable. C readiness follows the -semantics-owned readiness boundary used elsewhere in x2py and does not become -parser JSON. - -For raw directives, the same JSON shape is used, but `includes`, `macros`, -`raw_directives`, `macro_dependencies`, and `diagnostics` may contain populated -model dictionaries. Function-like macros are recorded as macro metadata and -also produce a non-fatal `C_UNSUPPORTED_FUNCTION_LIKE_MACRO` diagnostic. -Function-like declaration wrappers and object-like declaration prefixes are -marked through `macro_dependencies` without being parsed as expanded -declarations. Local quoted includes are resolved -relative to the current file or configured include dirs when possible; -unresolved local includes produce `C_UNRESOLVED_INCLUDE` diagnostics instead -of hard failures. Resolution records an edge; it does not make the included -file a parser input. System includes are recorded but neither searched nor -parsed recursively. Generated headers follow the same explicit-input rule. -Raw same-name functions in mutually exclusive conditional branches carry -`condition_set` branch tokens and are retained as alternatives rather than -misdiagnosed as incompatible redeclarations. - -Raw mode must not claim support for macro-generated declarations. If macros -affect function names, types, parameters, attributes, storage classes, calling -conventions, visibility annotations, or active conditional branches, the user -should use `--preprocess compiler` with an exact compiler executable and the -same `-I`, `-D`, `-U`, standard, target, and sysroot flags required by their -build. The user should not normally pass a `.i` file directly; x2py generates -the preprocessed stream internally. Compiler/preprocessed mode preserves -`#line`/linemarker mappings so parser diagnostics and JSON `source_location` -fields point back to the original `.h` or `.c` file rather than the compiler -stdout stream. For streams generated by `x2py --preprocess compiler`, per-file -JSON also contains `preprocessing_recipe` with the exact compiler argv, -configuration flags, working directory, and selected `compile_commands.json` -entry when used. Parsed declarations from compiler mode carry -`origin: "preprocessed"`. Explicit or directory-discovered `.i` inputs are -also parsed as preprocessed source and record `preprocessed_source_path` plus -mapped `original_source_paths` when linemarkers supply original filenames. - -## JSON Parse Schema - -The C parse JSON is per-file and does not reuse Fortran key names when the -concepts differ. Current top-level per-file keys: - -```text -language -filename -parser_status -preprocessing -preprocessing_recipe # present for x2py-generated compiler input -preprocessed_source_path # present for direct .i input -original_source_paths # present when linemarkers identify original files -functions -structs -unions -enums -typedefs -variables -macros -includes -raw_directives -macro_dependencies -diagnostics -``` - -Declaration/directive records include `source_location`; diagnostics use -`location`. Concrete type components preserve `source_text` rather than their -own source-location object: - -`condition_set` is emitted only for raw same-name `CFunction` alternatives -that survive normalization. For project-model JSON, -`conditional_function_variants` is emitted only when those alternatives -cannot be represented by one unique `functions` entry. - -```text -source_location: { - filename: str | null, - line: int | null, - column: int | null, - source_line: str | null -} - -location: { - filename: str | null, - line: int | null, - column: int | null, - source_line: str | null -} -``` - -Concrete `CType` values serialize with a `"model"` discriminator, for example -`{"model": "CInt", "qualifiers": [], "source_text": "int"}`. The `"type"` -key is reserved for a semantic relationship such as a `CVariable` or -`CTypedef` pointing to its declared type. Qualifier objects serialize as -canonical spelling strings such as `"const"`. Aggregate/typedef object reuse -emits a reference rather than a recursive JSON cycle. - -## Human Tree Output - -The current human tree is the count-only report shown above. A later expanded -tree could mirror the Fortran parser style: - -Initial mature output shape: - -```text -File: src/api.c - Includes: 2 - - api.h - - stddef.h - Functions: 2 - - int add(int a, int b) - - void scale(double *x, size_t n) - Structs: 1 - - struct vector (members=2) - Typedefs: 1 - - vector_t -> struct vector - Macros: 1 - - MAX_DIM = 16 -``` - -Future semantic readiness output should be described in the semantic-layer -documentation, not in the parser CLI workflow. - -## Diagnostics Behavior - -Fatal C syntax errors use `CParseError` with the same user experience as -`FortranParseError`: - -```text -src/api.h:12:1: error[CPARSE_INVALID_SYNTAX]: Invalid C syntax at top level: @@@; - | -12 | @@@; - | ^ -``` - -Default CLI behavior: - -- print the formatted diagnostic to stderr -- exit with status code `1` -- do not show Python traceback -- colorize when color is enabled - -Unsupported but recoverable declarations and raw preprocessor limitations are -stored as non-fatal `CDiagnostic` entries in the parse report instead. -Invalid primitive-specifier combinations that are independent of symbol -resolution are fatal: - -```text -src/api.h:12:1: error[CPARSE_INVALID_SPECIFIER_SEQUENCE]: Invalid type specifier sequence 'unsigned float'. -12 | unsigned float value; - | ^ -``` - -Grammar-invalid C syntax is also fatal and uses -`CPARSE_INVALID_SYNTAX`. Diagnostic codes are stable, explicit category -identifiers for tests, tools, and documentation. The shared registry is -[`docs/diagnostic_codes.md`](../diagnostic_codes.md). - -Debug behavior: - -- `--debug` re-raises the error -- `--debug-traceback` remains accepted as a compatibility alias -- `C_PARSER_DEBUG=1` re-raises C parser errors -- `FORTRAN_PARSER_DEBUG` should not control C behavior -- a generic `X2PY_DEBUG=1` may be considered later - -Color behavior: - -- `--no-color` disables ANSI diagnostics -- `NO_COLOR=1` disables ANSI diagnostics -- Windows color behavior can follow the existing `colorama` pattern - -## CLI Test Expectations - -The active CLI/parser tests cover the current partial subset: - -- Existing Fortran CLI tests still pass unchanged. -- `python -m x2py --help` lists `--language`. -- `python -m x2py --language c --parse` is accepted. -- No `--parse-c` alias is provided; C uses `--language c --parse`. -- `--language c --parse --json` emits stable partial-parser JSON with raw - include/macro metadata and supported declarations when present. -- `--language c --parse --out report.json` writes JSON and suppresses stdout. -- `--language c --parse --no-color` is accepted. -- `--language c --parse --debug` is accepted. -- raw comment stripping, line-continuation folding, top-level splitting, - include collection, simple macro collection, function-like macro diagnostics, - object-like macro declaration-prefix deferral, - conditional non-selection and mutually exclusive function variants, simple - declarations, variables, typedefs, - parenthesized declarators, function pointer typedefs/parameters, recursive - declarator combinations, concrete declaration objects, aggregate - definitions/members/enumerators, incomplete struct/union tags, and function - signatures with definition start/end locations are covered by focused C tests. -- valid reordered primitive specifiers and fatal invalid primitive-specifier - combinations are covered by focused C tests. -- flexible array member classification/validation, per-member source - locations, and named/unnamed/zero-width bit-field source facts are covered - by focused C tests. -- array and function parameter declared/effective type adjustment is covered - by focused C tests. -- common GNU/MS declaration extension normalization, ABI-relevant omission - warnings, linemarker preservation, and a GCC-preprocessed standard-header - smoke test are covered by focused C tests. -- `--show-vars` and `--print-limit` are rejected in C mode until C-specific - display controls exist. -- `--semantics`, `--wrap-readiness`, and `--pyi` with `--language c` use - `semantics.c2ir`, the semantic readiness checker, and the shared `.pyi` - emitter for the supported exact-contract subset. - -## Integration Order - -Completed order: - -1. Added CLI language selection behind explicit flags. -2. Kept Fortran as default behavior. -3. Added a C parser package and initial report provider. -4. Added C-specific docs for command shape and staged output. -5. Added CLI/API tests around discovery, stable command behavior, JSON, output - files, public entrypoints, and diagnostic formatting. -6. Added raw lexer/directive metadata collection for comments, - continuations, includes, simple macros, and unsupported function-like - macros. -7. Added top-level splitting and a first partial grammar subset for simple - variables, typedefs, function prototypes, and function-definition headers. -8. Added function-definition start/end locations while continuing to skip - executable bodies. -9. Added forward `struct name;` extraction as incomplete `CStruct` source facts. -10. Replaced ad hoc declarator splitting with a recursive grammar-style - declarator parser for pointer prefixes, parenthesized direct declarators, - and array/function suffixes. -11. Classified each declarator from its recursive type and added basic - struct/union/enum declarations, members, tag typedefs, and trailing tag - variables as concrete parser models. -12. Replaced generic type references and declaration-kind tags with concrete - `CType` subclasses, `CComposedType` components, and concrete declaration - objects. -13. Added order-insensitive primitive specifier validation and - `CPARSE_INVALID_SPECIFIER_SEQUENCE` errors for invalid primitive combinations while retaining unresolved - typedef-name references for later resolution. -14. Added field-level source locations, flexible array member classification - and invalid-use diagnostics, plus explicit bit-field regression coverage. -15. Added C array/function parameter adjustment while preserving written - parameter type facts in `declared_type`. -16. Added compiler/preprocessed `#line` and GCC/Clang linemarker remapping for - parsed source locations, parser diagnostics, and fatal parse errors. -17. Added optional JSON preprocessing recipes for x2py-generated compiler - streams in C and Fortran, plus internal Fortran `-D`/`-U` selection. -18. Added C declaration-level preprocessed origin metadata and direct `.i` - discovery/source-identity handling. -19. Preserved braced and designated initializer source text as `CInitializer` - facts on parsed file-scope variables. -20. Parsed nested anonymous struct/union members as concrete member types, - including recursively mapped preprocessed provenance. -21. Added `_Atomic(type)` type-specifier parsing on the shared declarator path - and executable parser-developer walkthrough tests. -22. Added compiler-derived standard-header ABI probing for C semantic mapping - without hard-coded host type aliases. -23. Added C semantic IR, readiness, and starter exact-contract `.pyi` output - through `x2py --language c`. -24. Added declaration-normalization tolerance for common GCC/Clang and MS - compiler extensions, explicit warnings for ABI-relevant omissions, and - GCC-preprocessed standard-header regression coverage. - -Next implementation work should continue with broader fixture-driven compiler -extension policy and broader project conflict policy -while keeping the explicit `--language c` gate in place. diff --git a/docs/developer.md b/docs/developer.md new file mode 100644 index 000000000..594494b5a --- /dev/null +++ b/docs/developer.md @@ -0,0 +1,517 @@ +# Developer Documentation + +This page is for changing x2py. It names the relevant implementation +references, manual commands, focused test files, and fixture generators for each +part of the project. + +## References + +- [C parser reference](c_parser.md): C frontend scope, preprocessing and + project policy, parser architecture, CLI behavior, semantic handoff, + fixtures, and tests. +- [Fortran parser reference](fortran_parser.md): Fortran frontend scope, + recursive parser organization, API/CLI behavior, diagnostics, fixture + workflow, semantic handoff, and tests. +- [Semantic IR and `.pyi` reference](semantics.md): shared semantic model, + datatype policy, `.pyi` loader/printer contract, and C conversion blockers. +- [Wrapper design notes](wrapper_design_notes.md): wrapper-generation policy + questions intentionally deferred until wrapper implementation. +- [Semantic multilanguage wrapper runtime architecture](architecture/semantic_multilanguage_wrapper_runtime_architecture.md): + long-term architecture and runtime model. +- [Quality assurance](quality.md): active QA commands, tool benefits, known + defects found by each tool, and scheduled triage process. + +## User-Facing Contract Internals + +The user documentation describes CLI stages, `.pyi` syntax, datatype names, and +readiness reports. The developer task is to keep those user-visible contracts +stable, tested, and traceable to implementation files. + +### Source Ownership Map + +| User-visible area | Main implementation files | Main tests | +| --- | --- | --- | +| Fortran parse output | `fortran_parser/parser.py`, `fortran_parser/models.py`, `fortran_parser/lexer.py` | `tests/parser/test_procedure_and_type_parsing.py`, `tests/parser/test_fortran_fixture_suite.py`, `tests/parser/test_error_handling.py` | +| C parse output | `c_parser/parser.py`, `c_parser/models.py`, `c_parser/lexer.py` | `tests/parser/c/test_c_declarations_and_declarators.py`, `tests/parser/c/test_c_fixture_suite.py`, `tests/parser/c/test_c_error_fixture_suite.py` | +| CLI stage selection and output | `x2py/cli.py`, `fortran_parser/cli.py` | `tests/parser/test_cli.py` | +| Compiler preprocessing | `x2py/preprocessing.py` | `tests/parser/test_preprocessing_cli.py`, `tests/parser/test_preprocessor_and_execution_boundaries.py`, `tests/parser/c/test_c_lexer_preprocessor.py` | +| C standard type probing | `x2py/c_type_probe.py` | `tests/parser/test_c_standard_type_probe.py` | +| Fortran type probing | `x2py/fortran_type_probe.py` | `tests/parser/test_fortran_type_probe.py` | +| Fortran to semantic IR | `semantics/fortran2ir.py`, `semantics/models.py` | `tests/semantics/test_fortran2ir.py` | +| C to semantic IR | `semantics/c2ir.py`, `semantics/models.py` | `tests/semantics/test_c2ir.py`, `tests/semantics/test_c_semantic_readiness.py` | +| `.pyi` printing | `semantics/pyi_printer.py` | `tests/semantics/test_pyi_printer.py`, `tests/semantics/test_pyi_printer_modern_example.py` | +| `.pyi` loading/editing | `semantics/pyi_parser.py` | `tests/pyi/test_pyi_to_ir.py`, `tests/pyi/test_pyi_fixture_suite.py` | +| Readiness reports | `semantics/readiness.py` | `tests/semantics/test_semantic_wrap_readiness.py`, `tests/semantics/test_wrap_readiness_fixture_suite.py` | +| Public API exports | `x2py/__init__.py` | `tests/parser/test_parser_public_entrypoints.py`, `tests/parser/c/test_c_public_api_skeleton.py` | + +### `.pyi` Contract Internals + +User-visible `.pyi` syntax is parsed by `semantics/pyi_parser.py` and printed +by `semantics/pyi_printer.py`. Both operate on `semantics/models.py`. + +Important implementation rules: + +- `Ptr(T)` and `Ptr(Const(T))` are storage contracts, not just pretty syntax. +- Array subscriptions such as `Float64[n]` are semantic array contracts. +- `Annotated[..., ORDER_F]`, `ORDER_ANY`, `Allocatable`, `Pointer`, and + `Intent("out")` are metadata on the semantic storage contract. +- `Final[T]` is the public constant spelling. Do not reintroduce + `Constant` as user-facing `.pyi` syntax. +- `@native_call` is projection metadata. Use it only when the Python-visible + signature intentionally differs from the native signature. +- Generated stubs should describe exact native contracts unless semantic IR + explicitly carries projection metadata. + +When changing `.pyi` syntax: + +1. Add or update parser tests in `tests/pyi/test_pyi_to_ir.py`. +2. Add or update printer tests in `tests/semantics/test_pyi_printer.py`. +3. Update fixture tests only if the public generated contract changes. +4. Update [user.md](user.md) if users need to write or read the new syntax. +5. Update [semantics.md](semantics.md) for the full reference. + +### Datatype Mapping Internals + +User-visible datatype names are semantic names, not raw parser spellings. +Mapping happens during parser-to-IR conversion: + +- Fortran intrinsic/kind mapping lives in `semantics/fortran2ir.py`. +- C primitive, typedef, and probe-aware mapping lives in `semantics/c2ir.py`. +- The shared dtype names and storage contracts live in `semantics/models.py`. + +When changing datatype mapping: + +1. Add focused conversion tests in `tests/semantics/test_fortran2ir.py` or + `tests/semantics/test_c2ir.py`. +2. Add `.pyi` printer/loader coverage if the emitted syntax changes. +3. Update semantic fixtures only when serialized semantic IR intentionally + changes. +4. Update [user.md](user.md) and [semantics.md](semantics.md) so the visible + mapping stays accurate. + +### Readiness Internals + +Readiness is semantic-layer behavior. Parser models should record facts and +diagnostics, but the final `wrappable` answer belongs to +`semantics/readiness.py`. + +When adding a readiness blocker: + +1. Attach parser-to-IR metadata in `semantics/fortran2ir.py` or + `semantics/c2ir.py`. +2. Normalize/report it in `semantics/readiness.py`. +3. Add focused tests in `tests/semantics/test_semantic_wrap_readiness.py` or + `tests/semantics/test_c_semantic_readiness.py`. +4. Update readiness fixtures only if user-visible messages intentionally + change. +5. Update [user.md](user.md) when the blocker is something users can fix by + editing `.pyi`. + +### Parser To Wrapper Boundary + +Do not move wrapper policy into parsers. Parsers can preserve: + +- source locations; +- declaration and signature facts; +- type, pointer, array, callback, and aggregate facts; +- preprocessor provenance and diagnostics; +- unresolved references. + +Wrappers and semantic readiness decide: + +- ownership and lifetime; +- callback registration/unregistration policy; +- output-buffer projection; +- hidden pointer/size projection; +- ABI shim requirements; +- Python-visible signature adaptation. + +## Feature Change Walkthroughs + +Use these walkthroughs when adding behavior. They are deliberately procedural: +change the smallest owned layer first, test that layer, then update downstream +contracts only when the public behavior actually changes. + +### Add A C Declaration Feature + +Example target: support a new declaration spelling or compiler extension in +the C parser. + +1. Add the smallest source example to a focused C parser test: + `tests/parser/c/test_c_declarations_and_declarators.py`, + `tests/parser/c/test_c_compiler_extensions.py`, or + `tests/parser/c/test_c_structs_unions_enums_typedefs.py`. +2. Implement the parser change in `c_parser/parser.py`. Add or update model + fields in `c_parser/models.py` only if the serialized parser contract needs + new facts. +3. If source splitting or raw directive handling changes, update + `c_parser/lexer.py` and `tests/parser/c/test_c_lexer_preprocessor.py`. +4. If project-level resolution changes, update + `tests/parser/c/test_c_project_resolution.py`. +5. If parser JSON changes intentionally, regenerate the relevant project + golden: + + ```bash + python tests/parser/c/generate_c_parser_goldens.py tests/data/c/general/math_api.h + ``` + +6. If the new parser fact affects semantic conversion, update + `semantics/c2ir.py` and add coverage in `tests/semantics/test_c2ir.py`. +7. If the generated `.pyi` changes, update `tests/semantics/test_pyi_printer.py` + or `tests/pyi/test_pyi_fixture_suite.py`. +8. Update [c_parser.md](c_parser.md), [user.md](user.md), or + [semantics.md](semantics.md) if users or maintainers need to know the new + behavior. + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/parser/c/test_c_declarations_and_declarators.py +PYTHONPATH=. pytest -q tests/parser/c/test_c_project_resolution.py +PYTHONPATH=. pytest -q tests/semantics/test_c2ir.py +``` + +### Add A Fortran Parser Feature + +Example target: preserve a new declaration attribute, source fact, or argument +metadata item. + +1. Add a focused parser test in the file that owns the behavior: + `tests/parser/test_procedure_and_type_parsing.py`, + `tests/parser/test_scope_handling.py`, or + `tests/parser/test_preprocessor_and_execution_boundaries.py`. +2. Implement parsing in `fortran_parser/parser.py`. Add model fields in + `fortran_parser/models.py` only if the parser output needs to expose the + new fact. +3. Add parser diagnostic coverage in `tests/parser/test_error_handling.py` if + malformed source should now fail differently. +4. If project ordering, imports, or compile-time values change, update + `tests/parser/test_project_scope_models.py` or + `tests/parser/test_fortran_type_probe.py`. +5. If serialized parser JSON changes intentionally, regenerate the selected + fixture: + + ```bash + python tests/parser/fortran/generate_fortran_parser_goldens.py tests/data/fortran/general/basic_subroutine.f90 + ``` + +6. If the new fact affects semantic output, update `semantics/fortran2ir.py` + and `tests/semantics/test_fortran2ir.py`. +7. If generated `.pyi` changes, update `tests/semantics/test_pyi_printer.py` + and the relevant fixture tests. +8. Update [fortran_parser.md](fortran_parser.md), [user.md](user.md), or + [semantics.md](semantics.md) as needed. + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/parser/test_procedure_and_type_parsing.py +PYTHONPATH=. pytest -q tests/parser/test_fortran_fixture_suite.py +PYTHONPATH=. pytest -q tests/semantics/test_fortran2ir.py +``` + +### Add Or Change Datatype Mapping + +Example target: map a new Fortran kind, C typedef, or target-probed C type. + +1. Add conversion coverage in `tests/semantics/test_fortran2ir.py` or + `tests/semantics/test_c2ir.py`. +2. Implement the mapping in `semantics/fortran2ir.py` or `semantics/c2ir.py`. +3. Keep the public semantic dtype names in `semantics/models.py` stable unless + there is a deliberate schema decision. +4. If the emitted `.pyi` annotation changes, update + `tests/semantics/test_pyi_printer.py` and `tests/pyi/test_pyi_to_ir.py`. +5. Update the datatype tables in [user.md](user.md) and [semantics.md](semantics.md). + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/semantics/test_fortran2ir.py tests/semantics/test_c2ir.py +PYTHONPATH=. pytest -q tests/semantics/test_pyi_printer.py tests/pyi/test_pyi_to_ir.py +``` + +### Add `.pyi` Syntax Or Projection Behavior + +Example target: add a new `Annotated[...]` metadata item or projection helper. + +1. Add loader tests in `tests/pyi/test_pyi_to_ir.py`. +2. Update `semantics/pyi_parser.py`. +3. Add printer tests in `tests/semantics/test_pyi_printer.py`. +4. Update `semantics/pyi_printer.py`. +5. Update semantic models in `semantics/models.py` only if the IR needs a new + field or constraint. +6. Update readiness behavior if the new syntax resolves a blocker. +7. Update [user.md](user.md) and [semantics.md](semantics.md). + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/pyi/test_pyi_to_ir.py +PYTHONPATH=. pytest -q tests/semantics/test_pyi_printer.py +PYTHONPATH=. pytest -q tests/semantics/test_semantic_wrap_readiness.py +``` + +### Add A Readiness Blocker + +Example target: report a new unsupported C/Fortran semantic contract clearly. + +1. Preserve the source fact in the parser if it is not already present. +2. Attach semantic blocker metadata in `semantics/c2ir.py` or + `semantics/fortran2ir.py`. +3. Normalize and format the blocker in `semantics/readiness.py`. +4. Add focused readiness tests in + `tests/semantics/test_semantic_wrap_readiness.py` or + `tests/semantics/test_c_semantic_readiness.py`. +5. Regenerate readiness message fixtures only when the public message changes: + + ```bash + python tests/semantics/generate_wrap_readiness_fixtures.py + ``` + +6. Update [user.md](user.md) if users can fix the blocker by editing `.pyi`. + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/semantics/test_semantic_wrap_readiness.py +PYTHONPATH=. pytest -q tests/semantics/test_c_semantic_readiness.py +``` + +### Add Or Change CLI Behavior + +Example target: add a stage option, change output routing, or improve +diagnostic formatting. + +1. Add CLI tests in `tests/parser/test_cli.py` first. +2. Implement shared dispatch and output behavior in `x2py/cli.py`. +3. Keep Fortran package-specific CLI behavior in `fortran_parser/cli.py`. +4. If compiler preprocessing behavior changes, update `x2py/preprocessing.py` + and preprocessing tests. +5. Update [user.md](user.md) for user-facing commands and + [developer.md](developer.md) for maintainer command maps. + +Focused verification: + +```bash +PYTHONPATH=. pytest -q tests/parser/test_cli.py +PYTHONPATH=. pytest -q tests/parser/test_preprocessing_cli.py +``` + +## Testing Map + +Use this map when changing one part of the project. Each section shows how to +call that part manually, which focused test file to run, and where to look for +more executable examples. Run the broader suite before merging. + +### Pre-Merge Checks + +Run the full suite from the repository root before merging: + +```bash +PYTHONPATH=. pytest -q +``` + +Run the major suites individually while iterating: + +```bash +PYTHONPATH=. pytest -q tests/parser +PYTHONPATH=. pytest -q tests/semantics +PYTHONPATH=. pytest -q tests/pyi +``` + +As a project policy, do not merge pull requests unless all checks are green. + +### Fixture Maintenance + +Refresh all C parser project goldens: + +```bash +python tests/parser/c/generate_c_parser_goldens.py +``` + +Refresh one grouped C fixture project: + +```bash +python tests/parser/c/generate_c_parser_goldens.py tests/data/c/general/math_api.h +``` + +Refresh all Fortran parser goldens: + +```bash +python tests/parser/fortran/generate_fortran_parser_goldens.py +``` + +Refresh one Fortran fixture: + +```bash +python tests/parser/fortran/generate_fortran_parser_goldens.py tests/data/fortran/general/basic_subroutine.f90 +``` + +In-test Fortran parser fixture update mode: + +```bash +FORTRAN_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser --confcutdir=tests/ +``` + +Refresh semantic and `.pyi` fixtures: + +```bash +python tests/semantics/generate_semantic_fixtures.py +python tests/semantics/generate_wrap_readiness_fixtures.py +python tests/pyi/generate_pyi_fixtures.py +``` + +When parser model output changes, include the regenerated parser goldens and a +short explanation in the PR. For `.pyi`, semantic IR, or readiness behavior +changes, update the corresponding fixtures under `tests/pyi/fixtures` or +`tests/semantics/fixtures`. + +### C Parser + +Manual call for one C fixture: + +```bash +python -m x2py tests/data/c/general/math_api.h --language c --parse --json +``` + +Manual Python API call: + +```python +from x2py import parse_c_file + +parsed = parse_c_file("int add(int a, int b);", filename="example.h") +print([function.name for function in parsed.functions]) +``` + +Focused tests by concern: + +- Lexer/preprocessor mechanics: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_lexer_preprocessor.py` +- Declarations and declarators: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_declarations_and_declarators.py` +- Functions: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_functions.py` +- Structs, unions, enums, and typedefs: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_structs_unions_enums_typedefs.py` +- Project resolution and cross-file facts: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_project_resolution.py` +- Compiler extensions: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_compiler_extensions.py` +- Fixture project goldens: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_fixture_suite.py` +- Fatal parser diagnostics: + `PYTHONPATH=. pytest -q tests/parser/c/test_c_error_fixture_suite.py` + +Regenerate one grouped C fixture project: + +```bash +python tests/parser/c/generate_c_parser_goldens.py tests/data/c/general/math_api.h +``` + +Executable tutorial: `tests/parser/c/test_c_parser_developer_tutorial.py`. + +### Fortran Parser + +Manual call for one Fortran fixture: + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --language fortran --parse --json +``` + +Manual Python API call: + +```python +from x2py import parse_fortran_file + +parsed = parse_fortran_file( + "tests/data/fortran/general/basic_subroutine.f90", +) +print([module.name for module in parsed.modules]) +``` + +Focused tests by concern: + +- Parser walkthrough: + `PYTHONPATH=. pytest -q tests/parser/test_parser_developer_tutorial.py` +- Procedures, declarations, derived types, and interfaces: + `PYTHONPATH=. pytest -q tests/parser/test_procedure_and_type_parsing.py` +- Scope and project behavior: + `PYTHONPATH=. pytest -q tests/parser/test_scope_handling.py tests/parser/test_project_scope_models.py` +- Preprocessing and execution-boundary behavior: + `PYTHONPATH=. pytest -q tests/parser/test_preprocessor_and_execution_boundaries.py` +- Parser diagnostics: + `PYTHONPATH=. pytest -q tests/parser/test_error_handling.py` +- Fixture goldens: + `PYTHONPATH=. pytest -q tests/parser/test_fortran_fixture_suite.py` +- Parser error fixtures: + `PYTHONPATH=. pytest -q tests/parser/test_fortran_error_fixture_suite.py` + +Regenerate one Fortran fixture: + +```bash +python tests/parser/fortran/generate_fortran_parser_goldens.py tests/data/fortran/general/basic_subroutine.f90 +``` + +Executable tutorial: `tests/parser/test_parser_developer_tutorial.py`. + +### Semantics And `.pyi` + +Manual calls: + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --semantics +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi +python -m x2py tests/data/c/general/math_api.h --language c --semantics +python -m x2py tests/data/c/general/math_api.h --language c --pyi +``` + +Focused tests by concern: + +- Fortran parser-to-IR conversion: + `PYTHONPATH=. pytest -q tests/semantics/test_fortran2ir.py` +- C parser-to-IR conversion: + `PYTHONPATH=. pytest -q tests/semantics/test_c2ir.py` +- Semantic readiness: + `PYTHONPATH=. pytest -q tests/semantics/test_semantic_wrap_readiness.py` +- C readiness blockers: + `PYTHONPATH=. pytest -q tests/semantics/test_c_semantic_readiness.py` +- `.pyi` printer: + `PYTHONPATH=. pytest -q tests/semantics/test_pyi_printer.py` +- `.pyi` loader and edited stub behavior: + `PYTHONPATH=. pytest -q tests/pyi/test_pyi_to_ir.py` +- Semantic and `.pyi` fixtures: + `PYTHONPATH=. pytest -q tests/semantics/test_wrap_readiness_fixture_suite.py tests/pyi/test_pyi_fixture_suite.py` + +Regenerate semantic and `.pyi` fixtures: + +```bash +python tests/semantics/generate_semantic_fixtures.py +python tests/semantics/generate_wrap_readiness_fixtures.py +python tests/pyi/generate_pyi_fixtures.py +``` + +Executable examples: `tests/semantics/test_semantic_wrap_readiness.py`, +`tests/semantics/test_pyi_printer.py`, and `tests/pyi/test_pyi_to_ir.py`. + +### CLI + +Manual calls: + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --semantics +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --wrap-readiness +python -m x2py tests/data/c/general/math_api.h --language c --parse +``` + +Focused tests: + +- Full CLI behavior: + `PYTHONPATH=. pytest -q tests/parser/test_cli.py` +- Stage dispatch: + `PYTHONPATH=. pytest -q tests/parser/test_cli.py -k "parse or semantics or pyi or wrap_readiness"` +- Language and preprocessing selection: + `PYTHONPATH=. pytest -q tests/parser/test_cli.py -k "language or preprocessing"` + +Executable reference: `tests/parser/test_cli.py`. diff --git a/docs/diagnostic_codes.md b/docs/diagnostic_codes.md index 90ad2f7f7..3d3942c18 100644 --- a/docs/diagnostic_codes.md +++ b/docs/diagnostic_codes.md @@ -44,8 +44,10 @@ traceback unless `--debug` is used. | `PARSE_DUPLICATE_FIELD` | Fortran | A derived type contains duplicate fields. | | `PARSE_UNKNOWN_FIELD_TYPE` | Fortran | A derived-type field still has an unknown datatype after parsing. | | `PARSE_DUPLICATE_ARGUMENT` | Fortran | A procedure argument list repeats a name. | +| `PARSE_PREPROCESSING_REQUIRED` | Fortran | Raw CPP directives require compiler preprocessing before parser entry. | | `PARSE_INTERNAL_STATE` | Fortran | A defensive internal parser invariant was violated. | | `CPARSE_ERROR` | C | Fallback for a manually constructed or defensive C parse error without a narrower category. | +| `CPARSE_PREPROCESSING_REQUIRED` | C | Raw preprocessing directives require compiler preprocessing before parser entry. | | `CPARSE_UNSUPPORTED_KNR_DEFINITION` | C | Unsupported K&R-style function definition. | | `CPARSE_INVALID_SPECIFIER_SEQUENCE` | C | Invalid C primitive-specifier sequence. | | `CPARSE_INVALID_SYNTAX` | C | Syntax cannot be consumed in a modeled C grammar region. | @@ -75,8 +77,6 @@ These records do not necessarily stop parsing; inspect each diagnostic's | Code | Meaning | | --- | --- | | `C_UNRESOLVED_INCLUDE` | A local include could not be resolved. | -| `C_UNSUPPORTED_FUNCTION_LIKE_MACRO` | A function-like macro was recorded but not expanded. | -| `C_MACRO_DEPENDENT_DECLARATION` | Declaration parsing requires macro expansion. | | `C_UNMODELED_COMPILER_EXTENSION` | Compiler syntax was accepted for declaration extraction, but ABI-, layout-, type-, or symbol-relevant extension semantics remain unmodeled. | | `C_UNSUPPORTED_DECLARATION` | Recognized declaration form is outside the modeled subset. | | `C_UNSUPPORTED_DECLARATOR` | Declarator form is outside the modeled subset. | diff --git a/docs/fortran/parser_implementation_reference.md b/docs/fortran/parser_implementation_reference.md deleted file mode 100644 index 3533df91b..000000000 --- a/docs/fortran/parser_implementation_reference.md +++ /dev/null @@ -1,726 +0,0 @@ -# Parser implementation reference (feature inventory) - -This is an implementation-level checklist of what this repository already handles, -intended as a transfer document for re-implementing the same architecture for -another source language. - -## 1) End-to-end capabilities - -- Parse individual Fortran sources into normalized callable signatures. -- Parse derived types (including inheritance and type-bound procedures). -- Parse modules (including module `use` imports, renamed import mappings, and - module variables). -- Parse interfaces and procedures declared inside interfaces. -- Parse multi-file projects with dependency-aware ordering. -- Resolve compile-time symbols used in type kinds and array shapes, both local - and cross-file via imported modules. -- Keep parser output parse-only. Wrap-readiness is assessed after conversion to - semantic IR, either from parsed Fortran or from an edited `.pyi` interface. -- Provide CLI output in both human-readable tree form and JSON form. - -## 2) Language coverage actually implemented - -### 2.1 Source forms, lexing, and preprocessing - -- Free-form Fortran suffixes: `.f90`, `.f95`, `.f03`, `.f08`. -- Fixed-form suffixes: `.f`, `.for`, `.ftn`, `.f77`. -- Comment stripping and continuation folding via preprocessing stage. -- Fortran-77 fixed-form continuation support validated by tests. -- Source-form suffixes are preprocessing hints, not language-era gates: - parseable modern constructs are not rejected solely because the filename uses - a legacy suffix, and parseable legacy constructs are not rejected solely - because the filename uses a modern suffix. - -### 2.2 Procedures - -- `subroutine` headers. -- `function` headers. -- Header attributes: `pure`, `elemental`, `recursive`. -- `bind(c)` attribute detection in headers/tail. -- `result(...)` (and tolerant `results(...)`) parsing for function results. -- Procedure arguments retained in declared order. -- Local variables are ignored for signature argument lists. -- Internal procedures inside `contains` blocks are structurally sliced, then - their declarations and bodies are ignored when parsing a parent routine - signature. -- Interface-contained procedures flagged as `in_interface`. -- Procedure-scope `import :: symbol` inside interface bodies is preserved on - the parsed interface procedure signature as `import(symbol)`. - -### 2.3 Types, arguments, declarations - -- Intrinsic bases: `integer`, `real`, `complex`, `logical`, `character`, - and `double precision` (normalized as `real`). -- Derived argument declarations through `type()`. -- Procedure dummy declarations through `procedure()`. -- Legacy star-kind forms are accepted where represented by the declaration - grammar. Modern declarations such as `real*8 :: x` preserve kind metadata; - old fixed-form declarations without `::`, such as `real*8 x`, preserve kind - metadata too. -- Declaration attributes extracted: - - `intent(in|out|inout)` - - `optional` - - `value` - - `allocatable` - - `pointer` -- Rank/shape extraction from: - - declaration-level `dimension(...)` - - variable-level inline shape `x(...)` -- Structured shape components are available from model helpers while preserving - serialized `shape` tokens: - - `shape_info`: per-dimension `{raw, lower, upper}` - - `lower_bounds` / `upper_bounds` convenience accessors - - For extent-only forms like `x(n)`, bounds normalize to lower=`1`, upper=`n` -- Typed shape/specification helpers are available without changing serialized - JSON: - - `FortranShape` for the full parsed shape - - `FortranSlice` for `lower:upper[:stride]` dimensions - - `FortranFunctionCall` for whole-expression calls such as `ubound(x, 1)` - - `kind_expression` / `value_expression` for non-shape specs -- Builtin kind extraction and assignment into argument/result metadata: - - positional forms such as `integer(4)`, `real(8)`, `complex(16)`, - `logical(1)`, and `character(1)` - - keyword forms such as `integer(kind=c_int)`, `real(kind=rk)`, and - `complex(kind=c_double_complex)` - - character length forms such as `character(len=8)` and combined character - specs such as `character(len=1, kind=c_char)` - - legacy star-kind forms covered by tests - Numeric, symbolic, and expression-like kind tokens are preserved when the - declaration grammar can recognize the surrounding datatype. This is not "any - datatype"; unknown base datatypes still fail fast as unsupported declarations. -- Symbolic kind/length references are preserved and resolved where the parser - has enough local, module, or project context. Remaining syntactically valid - symbols are carried forward for semantic conversion/readiness instead of - becoming parser JSON readiness fields. - -### 2.4 Compile-time symbol and expression resolution - -- Local `parameter` constants collected inside procedure scope. -- Module-scope `parameter` constants collected in module specification part. -- `use , only: ...` symbol import maps collected and attached to - procedures/modules. Each explicit import records the imported `source` name - and optional local `target` name so renamed imports survive JSON, - semantic conversion, and `.pyi` printing. -- Signature kind expressions resolved transitively (symbol -> symbol -> value), - including renamed imports from parsed modules. Safely evaluable arithmetic - parameter chains are folded to their final integer kind; compiler-dependent - intrinsics such as `selected_real_kind(...)` remain as resolved expressions. -- Procedure-local parameter expressions can be folded into argument shapes - during procedure finalization. Module-level and `use`-associated parameters - used in procedure argument shapes remain symbolic in the signature while - still being visible to downstream semantic conversion/readiness. -- Module/program variable parameter values, character lengths, and shapes are - resolved through the same cached compile-time resolver where safe. -- The resolver caches symbol and expression results per scope and evaluates a - restricted set of initialization intrinsics (`abs`, `max`, `min`, `mod`, - `len`, `len_trim`, `iachar`, `int`) plus arithmetic and comparisons. -- Namespace/project parsing resolves cross-file kinds and dimensions after - dependency ordering. - -### 2.5 Modules - -- Module discovery with module context assignment to contained entities. -- Module-level `use` dependencies parsed (including `only` symbol lists and - rename forms such as `local => remote`). -- Module variables extracted from specification part declarations. -- Module records enriched with child entities: - - contained procedures - - contained derived types - - contained interfaces -- Module-level `use` imports propagated to contained procedures at parse time. - -### 2.6 Derived types - -- `type :: name ... end type` and legacy `type name ... end type` discovery. -- Type attributes list extraction (e.g., `abstract`). -- `extends(parent)` extraction. -- Same-file parent linking (`extends` string replaced with parent object when - parent type is parsed in same file). -- Field extraction: - - intrinsic and derived fields - - field rank/shape - - pointer/allocatable flags -- Type-bound procedure bindings: - - `procedure :: m1, m2` - - binding attribute capture from declaration side -- Generic type-bound bindings: - - `generic ... :: name => target1, target2` - -### 2.7 Interfaces - -- Named and unnamed interface blocks detected. -- Procedures parsed inside interface blocks. -- Interface objects associated to surrounding module when present. - -### 2.8 Submodules and additional program units - -- Fortran 2008 `submodule (parent) name` and `submodule (ancestor:parent) name` blocks detected. -- Submodule specification-part `use` statements and variables captured. -- Submodule procedure implementations recognized via `module subroutine/function` and `module procedure`. -- Main `program` and `block data` units are parsed into dedicated model objects. - -### 2.9 Parser/semantic readiness boundary - -- The parser no longer owns wrap-readiness. -- `FortranParser` does not expose `visit_wrap_readiness(...)`. -- `fortran_parser.parser` does not expose `assess_wrap_readiness(...)`. -- Parser JSON does not contain `wrap_readiness`, `wrappable`, - `wrappability_blockers`, `unit_blockers`, `unsupported_constructs`, or - `unknown_argument_types` readiness payloads. -- Parser responsibility ends at producing typed parse models and parse-stage - diagnostics such as `FortranParseError`. -- Readiness is a semantic feature: - - For Fortran input, `x2py --wrap-readiness` parses the source, converts the - parsed model to semantic IR, and assesses that semantic interface. - - For `.pyi` input, `x2py --wrap-readiness` parses the edited stub directly to - semantic IR and assesses that interface. - - The edited `.pyi` is the source of truth when the user supplies missing - wrapper information such as imported types, compile-time constants, or - callback signatures. -- Combining `x2py --parse --wrap-readiness --json` keeps stage payloads - separate: - - top-level `parse` contains parse-only JSON - - top-level `wrap_readiness` contains semantic readiness JSON -- Combining `x2py --semantics --wrap-readiness` attaches the readiness payload to - the semantic report because both payloads are semantic-stage artifacts. - -## 3) Output/data model behavior - -- Core parsing APIs return typed model objects (procedures, arguments, modules, - submodules, programs, block data, types, interfaces, variables). -- `FortranUseMapping(source, target)` represents explicit `use` symbols. - `source` is the imported provider-side symbol. `target` is the local name - for renamed imports, or `None` when the local name is the same as `source`. - `local_name` returns `target or source`. -- `FortranShape`, `FortranSlice`, and `FortranFunctionCall` provide typed - views over argument/variable specification strings. They are exposed through - properties, so existing parser JSON remains stable. -- Namespace parse returns aggregate dictionary with: - - ordered file list - - file dependency graph - - module-to-file and submodule-to-file indexes - - merged modules/submodules/programs/block-data/types/signatures -- CLI JSON output emits per-file parser buckets for signatures, types, modules, - submodules, programs, and block data. -- CLI human output prints tree-like structure grouped by file/module/procedure. -- Parser JSON serializes explicit `use` symbols as objects containing - `source` and `target`. Bare imports still use an empty list. -- Semantic IR imports use structured `SemanticImport` / `SemanticImportItem` - entries when a Fortran `use` has an explicit symbol list; bare imports remain - plain module names for compatibility. -- Imported derived types remain external references by default. Semantic type - `external_type_ref` metadata records the defining module, whether that owner - module is explicitly wrapped, and whether the boundary representation is - `opaque` or `wrapped`. The importing module does not emit or re-export a - duplicate class. When the owner is not explicitly wrapped, - `emit_module_stubs(...)` emits an owner-module `class Name(Opaque): pass` - dependency stub. `load_pyi_modules(...)` restores the file set and reconciles - an edited concrete owner class back to a wrapped reference. A future - recursive dependency mode would expand Fortran `use` dependencies only; - preprocessing include exposure is already handled separately. -- The `.pyi` printer emits structured imports as `from module import name` or - `from module import source as target`; the `.pyi` parser accepts the same - syntax and restores the semantic import mapping. -- Fortran `parameter` values are represented in semantic IR with the existing - `Constant` constraint. The `.pyi` printer renders those as `Final[...]`, and - the `.pyi` parser maps `Final[...]` back to the `Constant` constraint. -- Parser JSON serializes both parameter `value` and `symbolic_value`. `value` - is literal/evaluated only; compiler-specific or unresolved expressions keep - `value: null` and preserve the original expression in `symbolic_value`. -- Semantic readiness JSON is emitted by `x2py --wrap-readiness`, not by - `fortran_parser` parse JSON. - -## 4) Test strategy implemented (current workflow) - -### 4.1 Day-to-day test command - -Primary regression command: - -- `python -m pytest -q` - -This runs the full parser test suite, including fixtures, corpus checks, CLI, -and error handling coverage. - -### 4.2 Unit-style parser tests (`tests/parser/test_*.py`) - -Covers, among others: -- `tests/parser/test_procedure_and_type_parsing.py` -- `tests/parser/test_scope_handling.py` -- `tests/parser/test_error_handling.py` -- `tests/parser/test_parser_public_api_coverage.py` -- intent/kind/rank extraction for routine arguments -- function result parsing + `use` extraction -- `use` rename preservation, intrinsic/non-intrinsic import forms, and parser - public API coverage for less common constructs -- fixed-form parsing and interface detection -- cross-file kind resolution from imported module parameters -- derived type fields and method detection -- storage directives (`save`, `common`) in procedures are recognized and skipped as non-declaration statements -- module variable and `use` parsing -- module children attachment (procedures/types/interfaces) -- executable parser-internals tutorial in - `tests/parser/test_parser_developer_tutorial.py` -- ignoring local vars in external signatures -- external callback declarations (including typed `real, external :: f`) under `implicit none` -- ignoring internal procedures in `contains` -- local parameter propagation into argument kinds -- compile-time shape expression evaluation helpers -- shape symbol collection helpers -- parse-stage diagnostics and unsupported declaration handling - -### 4.3 Fixture and corpus regression (`tests/parser/test_fortran_fixture_suite.py`) - -- Golden fixture tests: - - parse shared Fortran fixtures under `tests/data/fortran/general` - - compare normalized parse output against parser JSON goldens under - `tests/parser/fortran/fixtures/general` -- Large corpus parse-only sanity tests: - - parse BLAS source fixtures under `tests/data/fortran/blas` - - parse LAPACK source fixtures under `tests/data/fortran/lapack` - - parse SciFortran source fixtures under `tests/data/fortran/scifortran` - against direct parser goldens under `tests/parser/fortran/fixtures/scifortran` - -The corpus checks provide broad “does it parse?” coverage over many real-world -fixed/free-form Fortran files without requiring full golden outputs for each. -Several real-world corpus files also have direct parser goldens. When parser -JSON schema changes, those fixtures should be regenerated so broad coverage -continues to validate the serialized model shape. - -### 4.4 Golden regeneration support - -- Script provided: `tests/parser/fortran/generate_fortran_parser_goldens.py`. -- Use when parser behavior is intentionally changed and golden JSON needs - updating. -- Optional in-test auto-update flow is also supported: - - `FORTRAN_PARSER_UPDATE_GOLDENS=1 python -m pytest -q tests/parser/test_fortran_fixture_suite.py --confcutdir=tests/` -- Semantic and `.pyi` fixture generators are separate: - - `python tests/semantics/generate_semantic_fixtures.py` - - `python tests/pyi/generate_pyi_fixtures.py` -- Semantic wrap-readiness message fixtures are separate from parser goldens: - - `python tests/semantics/generate_wrap_readiness_fixtures.py` - - generated output: `tests/semantics/fixtures/wrap_readiness_messages.json` - - covered corpus: `general`, `blas`, `lapack`, and `scifortran` - -### 4.5 CLI tests (`tests/parser/test_cli.py`) - -Validates command-line behavior for: -- path expansion -- human-readable output -- JSON output -- JSON file writing -- module/free-procedure name collision handling -- parse-error diagnostics without tracebacks by default -- developer traceback opt-in through `--debug`, its compatibility alias - `--debug-traceback`, and `FORTRAN_PARSER_DEBUG=1` -- default ANSI color for diagnostics, with `--no-color` and `NO_COLOR=1` opt-out -- parser JSON remains parse-only and does not include semantic readiness fields - -Semantic readiness CLI behavior is tested in -`tests/semantics/test_semantic_wrap_readiness.py`, including `.pyi` input, -Fortran input, combined `--parse --wrap-readiness` human output, combined JSON -stage separation, and `--semantics --wrap-readiness`. - -### 4.6 Error handling tests (`tests/parser/test_error_handling.py`) - -Dedicated tests for the error handling system: -- `FortranParseError` attribute presence (`filename`, `line_number`, `source_line`, `base_message`, `code`) -- Compiler-style diagnostic formatting with explicit categories, source line context, and caret marker -- ANSI color formatting and environment-variable debug activation -- Error raised for all error categories in all scopes: procedures, modules, derived types, interfaces -- Line number accuracy -- `FortranParseError` is a subclass of `ValueError` (backward compatibility) - -## 5) Repository/file structure reference - -- `fortran_parser/lexer.py` - - line preprocessing, source-form handling, continuation/comment normalization; returns tuples of `(preprocessed_line, original_line_number, original_source_line)` for downstream error reporting. -- `fortran_parser/parser.py` - - main grammar subset parser and orchestration functions. The file embeds a - maintainer guide and keeps parser methods documented. Read the thin public - wrappers first, then follow `FortranParser` through public visitors, - grammar-unit visitors, scoped `_helper_*` methods, and low-level lexical - utilities. -- `fortran_parser/type_resolver.py` - - kind extraction and symbol/expression helpers. -- `fortran_parser/models.py` - - parser data structures / model schema; includes `FortranParseError` and its compiler-style diagnostic renderer. -- `fortran_parser/utils.py` - - shared text utilities (e.g., CSV-like splitting used by declarations). -- `fortran_parser/cli.py` - - CLI argument parsing, report formatting, and user-facing parse-error handling. -- `fortran_parser/__main__.py` - - `python -m x2py` entry point. -- `tests/parser/test_*.py` - - focused behavior tests per feature. -- `tests/parser/test_error_handling.py` - - dedicated error handling and `FortranParseError` behavior tests. -- `tests/parser/test_fortran_fixture_suite.py` - - fixture-vs-golden regression checks. -- `tests/parser/test_parser_public_api_coverage.py` - - targeted coverage for parser public API behavior that is easy to miss in - fixture-only tests. -- `tests/parser/test_cli.py` - - end-user command behavior tests. -- `tests/data/fortran/` - - shared Fortran fixture corpus used by parser, semantics, and pyi tests. -- `tests/parser/fortran/fixtures/` - - parser golden parse outputs. -- `tests/parser/fortran/generate_fortran_parser_goldens.py` - - golden regeneration tool. - -## 6) Reimplementation checklist for another language - -If you want another agent to reproduce the same architecture for a new language, -ask it to implement each of these layers explicitly: - -1. Preprocessor/lexer layer for source forms, comments, continuations. -2. Source-unit slicer that preserves original line numbers and returns direct - children for each scope. -3. Grammar-region splitter for `header`, specification part, execution part, - and `contains`. -4. Unit visitors for modules, submodules, programs, procedures, derived types, - interfaces, and block data. -5. Shared declaration parser for variables, procedure arguments/results, and - derived-type fields, with scope-specific storage handled separately. -6. Procedure signature parser (headers, args, attributes, result handling). -7. Module/package parser with import/use tracking. -8. Composite type parser (fields, inheritance, bound methods/generics). -9. Interface/contract block parser. -10. Symbol resolver for local and cross-file compile-time constants. -11. Project namespace parser with dependency ordering. -12. Semantic readiness validator outside the parser, fed by semantic IR from - parsed source or `.pyi`. -13. CLI with tree output + JSON output + file emission. -14. Unit tests per feature + fixture/golden regression suite + golden - regeneration script. - - -### 6.1 Parser control-flow example - -Use this as the mental model when changing `fortran_parser/parser.py`: parsing -is recursive over source units, and each unit is handled by the same grammar -shape before grammar-specific exceptions are applied. The parser method -docstrings are the local reference for individual helper responsibilities. - -```fortran -module m - type :: state - integer :: n - end type state -contains - subroutine work(x) - real, intent(inout) :: x(:) - end subroutine work -end module m -``` - -The control flow is: - -1. `visit_file` preprocesses the source, validates recognizable headers, and - asks `_helper_slice_child_units` for direct file-scope units. -2. The slicer returns one `_SourceUnit(kind="module", name="m")` whose `lines` - are exactly the module substring and whose line numbers are the original - file line numbers. -3. `visit_source_unit` dispatches the slice to `visit_module_unit`. -4. `visit_module_unit` builds a module `_ParserScope`, splits the module into - `header`, specification part, execution part, and `contains` using - `_helper_split_unit_parts`, then calls `_helper_visit_spec_part` on the - module specification lines. -5. The module visitor slices its own direct children. The `type :: state` slice - goes to `visit_derived_type_unit`; the contained `subroutine work` slice goes - to `visit_procedure_unit`. -6. `visit_derived_type_unit` and `visit_procedure_unit` repeat the same pattern: - build a scope, split the unit, visit the relevant specification part, and - push declarations into that scope. - -The grammar shape is the design rule: - -- every sliced source unit has a header and a specification part -- procedures and programs can also have an execution part -- modules, submodules, programs, procedures, and derived types can have a - `contains` part, but visitors decide whether children in that region matter - for wrapping -- block data is specification-only -- interfaces use the same child-slicing mechanism for procedure declarations - -That means new parser behavior should usually be implemented by extending the -grammar profile, unit splitter, or shared specification/declaration helpers, -not by adding a new whole-file scan. - -Declaration parsing is deliberately shared. Module variables, program/block -data variables, procedure arguments/results, and derived-type fields all call -`_helper_parse_declaration_line`, then `_helper_push_declaration_to_scope`. -The small spec-line visitors only cover grammar exceptions: module visibility -and `use`, procedure `implicit`/`import`/`external`/local parameters, and -derived-type `sequence`/`private`/type-bound declarations. - -Sibling validation happens at each recursive slicing level. Duplicate -same-level units are errors, but identical names in different scopes are -allowed; for example, `module a; type :: state ...` and -`module b; type :: state ...` parse as two separate type scopes. -End-name validation is strict for module/submodule/program/interface/derived -type scopes. Procedure end-name labels are tolerated when the end statement is -the right procedure kind, because some real third-party fixtures contain -copy/paste labels that do not match the opening procedure name; duplicate -procedure names are still checked at the sibling scope. - -### 6.2 Executable developer tutorial - -`tests/parser/test_parser_developer_tutorial.py` is a runnable tutorial for the -private parser flow. It intentionally uses `FortranParser` internals and ends -with asserts, so maintainers can read it as sample code and pytest can keep it -honest. - -The tutorial demonstrates this sequence: - -```python -parser = FortranParser() -lines, root_scope, top_units = parser._helper_prepare_source_units(source, filename) -module_parts = parser._helper_split_unit_parts( - top_units[0], - parser._helper_unit_grammar("module"), - filename=filename, -) -module = parser.visit_source_unit(top_units[0], parent_scope=root_scope, filename=filename) -module_scope = parser._helper_scope_for_model("module", module, parent=root_scope) -child_units = parser._helper_slice_child_units( - top_units[0].lines[1:-1], - parent_scope=module_scope, - filename=filename, -) -``` - -Use that test when changing the recursive slicer or the small `visit_*_unit` -methods: it documents how file parsing becomes unit parsing, how unit parsing -becomes child-unit parsing, and how the active scope is passed into shared -declaration helpers. - -## 7) Scope handling and valued-variable mechanics (explicit) - -These behaviors are easy to miss, but they are core to correctness and are -implemented today: - -- **Procedure argument scope isolation**: declarations only apply to symbols - belonging to the current procedure header argument/result symbol table; - unrelated locals do not overwrite signature arguments. -- **Module specification scope tracking**: module `parameter` collection is - restricted to the module specification part and stops at `contains`, avoiding - leakage from executable regions. -- **Module parameter references in contained procedure shapes**: a contained - procedure argument such as `real :: x(n)` may refer to a module-level - parameter `n`. The signature keeps the shape token symbolic (`"n"`) while - downstream semantic readiness can use the semantic compile-time metadata. This - protects module-level parameters from being mistaken for undeclared procedure - locals. -- **Interface scope tracking**: procedures parsed inside `interface ... end - interface` are represented separately and flagged as interface procedures. - Interface-local argument declarations do not conflict with host declarations; - callback dummies referenced by interface headers are typed as `procedure`. -- **Interface import tracking**: `import :: symbol` inside an interface - procedure is treated as procedure metadata and emitted as an `import(symbol)` - signature attribute, rather than as a module variable declaration. -- **Internal procedure scope protection**: nested procedures in a host - `contains` block are structurally sliced to check their unit boundaries and - placement, but their declarations and bodies are not parsed or merged into - the host routine signature. -- **Name-reuse safety across scopes**: fixtures/tests cover same identifier - reuse in separate host/internal/type scopes to ensure no cross-scope symbol - pollution. -- **Preprocessor branch-aware duplicate checks**: duplicate procedure names are - allowed in mutually exclusive `#if/#ifdef` branches but still raise when two - same-name procedures are active in overlapping branch conditions. -- **Valued variables map**: compile-time constants are preserved as - `FortranVariable(name, value, symbolic_value)` records in signature metadata. - `value` stores only a literal/evaluated value when the parser can determine - one; otherwise it is `None`. `symbolic_value` keeps the original parameter - expression for validation, downstream diagnostics, and JSON consumers. -- **Expression normalization using valued variables**: argument kinds and shape - expressions are rewritten using the resolved valued-variable map, including - transitively dependent symbols. -- **Imported constant merge policy**: local/module/imported constants are merged - into a single symbol-value dictionary with precedence that preserves explicit - procedure-local definitions. -- **Use rename mapping policy**: explicit `use` imports are represented as - source/target pairs. A missing target means the local name equals the source; - renamed imports preserve both names for downstream semantic IR and `.pyi` - `import as` emission. - -## 8) Implementation timeline highlights from repository history - -A condensed history of important parser capabilities added over time (from -`git log`): - -- Improved argument declaration parsing plus shape/derived coverage. -- Added assumed-shape bounds and derived-argument fixture coverage. -- Added compile-time shape-expression resolution from parameters. -- Added structured per-dimension shape component helpers (`raw/lower/upper`). -- Restricted module-parameter collection to module specification scope. -- Fixed deep and cyclic compile-time dependency resolution behavior. -- Added comprehensive compile-time expression fixtures. -- Added terminal CLI and documented expected outputs. -- Added interface nodes and module-tree integration. -- Simplified/strengthened golden serialization + generator flow. -- Improved compile-time argument expression resolution and local-variable - distinction. -- Added same-file derived-type parent object linking (`extends`). -- Added valued-variable support and tests, including separate symbolic and - resolved parameter values. -- Refined CLI tree output (omit empty/internal sections; stable module - procedure grouping). -- Added tests/fixtures for same-name reuse across different scopes. -- Added parser public API coverage for less common module/import forms and - preserved `use` rename source/target mappings through JSON, semantic IR, and - `.pyi` import aliases. -- Refactored `FortranParser.visit_file` onto recursive source-unit slicing: - file parsing now dispatches direct units to small `visit_*_unit` methods, - each unit works on its own source substring, and shared declaration helpers - push parsed symbols into the active scope. -- Collapsed old full-method parser helpers into visitor methods and kept - helpers focused on reusable grammar pieces: slicing, scope setup, - specification-part handling, declaration parsing, and validation. -- Refreshed parser goldens for the grammar-style parser. Procedure-internal - subprograms are no longer exported as file/module procedures; local - interfaces remain available for callback typing and interface metadata. - -## 9) Pull-request maintenance policy for this reference - -To keep this document useful as an implementation transfer artifact, pull -requests should update `docs/fortran/parser_implementation_reference.md` whenever parser -behavior, parser coverage, parser fixtures/goldens, or parser validation flow -meaningfully changes. - -A CI guard in `.github/workflows/parser-reference-guard.yml` enforces this on pull requests by -failing when parser-related files change without a matching update to this -reference. The guard currently watches these path groups: - -- `fortran_parser/` -- `tests/parser/` -- `tests/data/fortran/` - -If a specific PR is a legitimate exception, either: - -- include a brief no-op/reference update here explaining why no behavior-level - doc change is needed, or -- adjust the guard patterns in CI to better match actual parser-impacting - paths. - -Manual force mode is also supported: add the pull-request label -`require-parser-reference-update` to require this document update even when the -parser-impact path patterns do not match. With that label present, CI fails -unless `docs/fortran/parser_implementation_reference.md` is updated in the PR -diff. - -Manual ignore mode is supported: add the pull-request label -`ignore-parser-reference-guard` to skip the parser reference guard entirely. -Use this sparingly (e.g. doc-only refactors, purely mechanical changes) to avoid -the reference drifting from actual parser behavior. - - -### Parser error-raising rules (quick guardrail) - -When updating parser behavior, keep this fail-fast contract aligned with tests: - -- **Source-form is not a language-era hard gate:** - - Filename suffixes choose preprocessing behavior and compatibility metadata. - Fixed-form suffixes (`.f`, `.for`, `.ftn`, `.f77`) use fixed-form - continuation/comment handling; modern suffixes (`.f90`, `.f95`, `.f03`, - `.f08`) use free-form handling. - - The parser does not reject mixed-era constructs solely because of suffix. - For example, `module`/`interface` syntax in a `.f77` file is parsed if the - fixed-form preprocessor produces valid logical lines, and legacy star-kind - syntax in `.f90` is parsed when the declaration grammar recognizes it. - - Wrapper generation/readiness should decide from semantic IR or `.pyi` - whether a parsed feature is safe to wrap. Parser errors should be about - unsupported grammar/metadata, not about a filename implying an older or newer - language standard. -- **Unknown datatype declaration (hard error):** - - Procedure declarations, derived-type fields, and module-variable declarations raise `FortranParseError` when the datatype declaration is unknown/unsupported instead of silently skipping. -- **Datatype and kind support is bounded by the declaration grammar:** - - Supported base declaration families include intrinsic scalar bases, - `type(...)`/`class(...)` derived types, and `procedure(...)` dummy - procedure declarations. - - Supported kind forms include parenthesized positional specs, `kind=...`, - character `len=...` specs, combined character length/kind specs, legacy - star-kind forms covered by tests, and symbolic/expression tokens that can - later be resolved from local or imported parameters. - - Symbolic kind names from intrinsic modules must be made visible by a `use` - statement; names such as `c_double`, `real64`, or aliases introduced through - `only: local => remote` are not hard-coded as globally available. - - Unresolved but syntactically valid kind symbols are not parser errors by - themselves; semantic conversion/readiness decides whether the final interface - has enough compile-time information. - - Semantic conversion is stricter than parsing: a parsed intrinsic - `base_type`/`kind` pair must map to a concrete semantic type, otherwise - conversion raises instead of emitting `Unknown`. Generated `.pyi` output and - `.pyi` parsing also reject `Unknown` type annotations. - - When the missing type information depends on compiler-specific constants, - `collect_semantic_compile_time_requirements` reports the unknown expression - and semantic conversion accepts `compile_time_values` to specialize the IR. -- **Post-scope validation (hard error):** - - After parsing each module, derived type, or procedure scope, a validation pass checks that all declared variables/fields/arguments have a known (non-`"unknown"`) base type; failures raise `FortranParseError`. - - Under `implicit none`, missing declarations are treated as hard errors. For functions: - - if the header uses an explicit `result(name)`, an undeclared result raises an "Unknown datatype for function result ..." error for that result symbol - - otherwise the result is implicitly the function name and the usual "has no type declaration (implicit none is active)" wording is used -- **Design intent:** - - The parser is intentionally strict about unknown declarations and internal - metadata consistency, but permissive about mixed-era Fortran syntax that can - be parsed unambiguously. - - "Unsupported but recognized" constructs may be carried far enough for - semantic readiness or `.pyi` completion to decide wrappability. Unknown - datatype syntax should crash early. -- **Preprocessor-conditional duplicate procedures (raw parser tolerance):** - - The parser does **not** run a C preprocessor or evaluate CPP expressions. - Compiler preprocessing is responsible for `#if`, `#ifdef`, macro - expansion, and CPP includes before production wrapper parsing. - - While slicing raw source units, simple directive structure is tracked for - `#ifdef`, `#ifndef`, `#elif`, `#else`, and `#endif` only to recognize - mutually exclusive branches in unresolved raw input. - - Active branch selection must happen in the compiler-backed preprocessing - layer. - - Duplicate procedure-name checks in a module/global scope are evaluated - against same-level sliced units and this structural branch context: - - if two same-name procedure headers are reachable in an overlapping branch context, raise `FortranParseError` (duplicate procedure name). - - if they are only present in mutually-exclusive branches of the same conditional group, allow both signatures. - - This is not semantic macro evaluation. Multiple build configurations - should be preprocessed and parsed separately. - -`FortranParseError` is a subclass of `ValueError` and carries structured location metadata: -- `filename` — source file path (if provided) -- `line_number` — 1-based line number in the original source where the error was detected -- `source_line` — the original (pre-preprocessed) source line text -- `base_message` — the stable error message without source/location context -- `code` — stable, explicit diagnostic category identifier; manually - constructed fallback errors use `PARSE_ERROR`, while grammar rejection uses - `PARSE_INVALID_SYNTAX` -- `parser_file`, `parser_line_number`, `parser_function` — internal raise-site metadata used only for debug diagnostics - -The formatted `str()` of `FortranParseError` is a compiler-style diagnostic: - -```text -::1: error[]: - | - | - | ^ -``` - -Use `error.format_diagnostic(color=True)` to add ANSI color and -`error.format_diagnostic(debug=True)` to append a `note: parser raised at ...` -line with the internal parser location. `format_diagnostic(debug=None)` also -honors `FORTRAN_PARSER_DEBUG=1`. - -The category name identifies the failure class for tests, tools, and -documentation. The shared registry is -[`docs/diagnostic_codes.md`](../diagnostic_codes.md). - -CLI contract: -- End-user parse failures are caught, rendered to `stderr` with - `format_diagnostic(...)`, and return exit status `1`; they do not print Python - tracebacks by default. -- CLI diagnostics request ANSI color by default when available. -- `--no-color` and `NO_COLOR=1` disable ANSI color in CLI diagnostics. -- `--debug` re-raises `FortranParseError` so Python prints the full traceback - for parser developers. `--debug-traceback` remains a compatibility alias. -- `FORTRAN_PARSER_DEBUG=1` enables the same traceback/debug behavior without - changing command-line arguments. - -Implementation note: enforce these checks close to lexical declaration handling (source-form check + declaration parse) so behavior is consistent across signatures, types, modules, and interfaces. Preserve the original source line and line number whenever possible so diagnostics can show the Fortran source context rather than only the error text. diff --git a/docs/fortran/fortran_parser.md b/docs/fortran_parser.md similarity index 81% rename from docs/fortran/fortran_parser.md rename to docs/fortran_parser.md index a60600fe6..d9f3a9e76 100644 --- a/docs/fortran/fortran_parser.md +++ b/docs/fortran_parser.md @@ -99,15 +99,44 @@ wrappers at the bottom, then read the class from top to bottom: part, `contains`) with original line numbers preserved on each slice - shared declaration parsing for module variables, program/block-data variables, procedure arguments/results, and derived-type fields - - `_helper_*` methods for scoped parsing, expression resolution, - raw preprocessor branch structure, same-level duplicate checks, and shared - specification-part collection + - `_helper_*` methods for scoped parsing, expression resolution, same-level + duplicate checks, and shared specification-part collection - Thin module-level convenience wrappers that delegate to a shared parser instance Parser methods carry focused docstrings, with examples where a compatibility visitor or lexical helper is easier to understand from a concrete call. +## Implementation Inventory And Maintenance + +This file is the single maintained Fortran parser reference. It replaces the +older standalone implementation-reference document; parser feature inventory, +testing workflow, and maintenance guard policy live here. + +The implementation inventory is maintained across these surfaces: + +- `fortran_parser/parser.py` owns source slicing, declaration extraction, + diagnostics, project ordering, dependency resolution, and compile-time + expression resolution. +- `fortran_parser/models.py` owns parse-only dataclasses and JSON-compatible + parser facts. +- `semantics/fortran2ir.py` owns conversion from parser facts to semantic IR, + including kind mapping, compile-time specialization, storage contracts, + projection metadata, and readiness inputs. +- `tests/parser/` covers parser contracts, source-unit slicing, diagnostics, + project behavior, and fixture regressions. +- `tests/semantics/` covers semantic conversion, datatype precision mapping, + readiness, `.pyi` emission, and compile-time specialization. + +Parser-related pull requests should update this file when the documented +feature inventory, public API, diagnostics, project behavior, semantic handoff, +or maintenance workflow changes. The parser-reference guard watches +Fortran and C references independently. For Fortran, it watches +`fortran_parser/`, `tests/parser/fortran/`, `tests/data/fortran/`, and focused +Fortran parser tests directly under `tests/parser/`. It expects +`docs/fortran_parser.md` to change unless the PR is explicitly labeled to skip +the guard. + `visit_file` is the central orchestration path. It first slices the source into direct file-level units, then each unit visitor parses only its own substring and recursively slices direct children. This is the key parser design: each @@ -198,6 +227,74 @@ and are treated as valid scope references for readiness checks. Module/program variable shapes and parameter values can be resolved through the compile-time resolver when enough information is available. +## Reimplementation Guide For Another Parser + +Use the Fortran parser as the reference for any source language with nested +program units, scoped declarations, and a later semantic handoff. The details +are Fortran-specific, but the parser architecture is reusable. + +Recommended frontend responsibilities: + +- Keep one typed model layer for parse-only facts. +- Keep one parser orchestration class with thin public wrappers. +- Slice source into grammar units before parsing declarations. +- Pass scope explicitly into shared helpers rather than using global mutable + parser state for symbol resolution. +- Parse only wrapper-relevant specification facts; skip executable bodies once + they are outside the parser contract. +- Preserve source locations and original line numbers through preprocessing and + recursive slicing. +- Emit parser diagnostics for malformed source, but leave wrappability policy + to semantic readiness. + +The Fortran data flow is: + +```text +source path or source text + -> compiler/native include preprocessing + -> FortranParser.visit_file(...) + -> source-unit slices with original line numbers + -> scoped specification parsing + -> FortranFile parser facts + -> parse_fortran_project(...) dependency ordering and namespace resolution + -> semantics.fortran2ir conversion + -> readiness, `.pyi`, and later wrapper stages +``` + +The recursive parsing pattern is: + +1. Identify direct child units at the current grammar level. +2. Split each child into header, specification part, execution part, and + `contains` part where that language construct allows them. +3. Parse declarations only from the specification part. +4. Recurse only into direct children that are legal for the current unit kind. +5. Validate sibling names and scope-local duplicate declarations. +6. Finalize procedure arguments/results after local declarations and + parameters are known. +7. Resolve cross-file or imported compile-time facts only at project or + semantic-conversion boundaries. + +When adding another parser, keep these test layers separate: + +- parser unit tests for grammar slicing and declarations; +- parser fixture tests for stable JSON/model output; +- parser error fixture tests for fatal diagnostic contracts; +- project tests for dependency ordering and cross-file resolution; +- CLI tests for frontend selection, stage dispatch, output files, and debug + behavior; +- semantic conversion tests for parser-to-IR mapping; +- `.pyi` tests for generated and edited interface round trips. + +Executable references: + +- Fortran parser walkthrough: `tests/parser/test_parser_developer_tutorial.py` +- Procedure/type parsing: `tests/parser/test_procedure_and_type_parsing.py` +- Scope and project behavior: `tests/parser/test_scope_handling.py` and + `tests/parser/test_project_scope_models.py` +- Fortran fixture workflow: `tests/parser/test_fortran_fixture_suite.py` +- Shared CLI behavior: `tests/parser/test_cli.py` +- Fortran semantic handoff: `tests/semantics/test_fortran2ir.py` + ## 3) Terminal usage and expected outputs ### 3.1 Basic CLI invocation @@ -252,12 +349,14 @@ Expected output shape: ```text File: tests/data/fortran/general/basic_subroutine.f90 Modules: 1 - - module m1 (vars=2, uses=0) + - module m1 (vars=0, uses=0) Procedures: 1 - - subroutine add1(n:integer[0], x:real[1]) + - subroutine add1(n:integer[0], x:real(8)[1]) ``` -With variables expanded: +The same command with `--show-vars` uses the variable-expanded report path. +This fixture currently has no module variables to print, so the output remains +compact: ```bash python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --show-vars @@ -266,12 +365,9 @@ python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse --show-va ```text File: tests/data/fortran/general/basic_subroutine.f90 Modules: 1 - - module m1 (vars=2, uses=0) - Variables: 2 - - n:integer[0] - - x:real[1] + - module m1 (vars=0, uses=0) Procedures: 1 - - subroutine add1(n:integer[0], x:real[1]) + - subroutine add1(n:integer[0], x:real(8)[1]) ``` For large files: @@ -374,12 +470,12 @@ Expected JSON layout: - `block_data` When `x2py --parse --json` applies compiler preprocessing, the per-file payload -also contains `preprocessing_recipe`. Internal parser mode accepts plain or -already-preprocessed source and does not evaluate `-D`/`-U` CPP branches. -`--preprocess compiler` records the exact compiler executable or adapter, -argv, include paths, macro flags, standard, extra compiler arguments, working -directory, include graph, source mappings, diagnostics, and optional macro -metadata used to produce the parsed stdout stream. +also contains `preprocessing_recipe`. The CLI applies compiler preprocessing +for file-based parsing; compiler linemarkers remain accepted for provenance. +The recipe records the exact compiler executable or adapter, argv, include +paths, macro flags, standard, extra compiler arguments, working directory, +include graph, source mappings, diagnostics, and optional macro metadata used +to produce the parsed stdout stream. Fortran CPP directives are handled by the configured compiler. Native Fortran `include "file.inc"` statements are then expanded recursively by the @@ -597,11 +693,47 @@ PYTHONPATH=. pytest -q Run parser-focused tests: ```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --language fortran --parse --json PYTHONPATH=. pytest -q tests/parser/test_procedure_and_type_parsing.py PYTHONPATH=. pytest -q tests/parser/test_fortran_fixture_suite.py PYTHONPATH=. pytest -q tests/parser/test_cli.py ``` +Focused test files by implementation area: + +- Parser walkthrough and expected maintainer flow: + `tests/parser/test_parser_developer_tutorial.py` +- Procedure headers, declarations, derived types, interfaces, and type-bound + procedures: + `tests/parser/test_procedure_and_type_parsing.py` +- Function header edge cases: + `tests/parser/test_function_header_parsing.py` +- Scope handling and project namespace behavior: + `tests/parser/test_scope_handling.py` and + `tests/parser/test_project_scope_models.py` +- Preprocessing, native includes, and execution-boundary skipping: + `tests/parser/test_preprocessor_and_execution_boundaries.py` +- Parser diagnostics and fatal error contracts: + `tests/parser/test_error_handling.py` +- Regression contracts: + `tests/parser/test_fortran_parser_regression_contracts.py` +- Public entrypoints: + `tests/parser/test_parser_public_entrypoints.py` +- Parser fixture goldens: + `tests/parser/test_fortran_fixture_suite.py` +- Parser error fixture goldens: + `tests/parser/test_fortran_error_fixture_suite.py` +- Parser JSON shape: + `tests/parser/test_fortran_json_sanity.py` +- Fortran compiler/type probing: + `tests/parser/test_fortran_type_probe.py` +- Shared CLI behavior: + `tests/parser/test_cli.py` + +When adding or changing a Fortran parser feature, add a focused parser test +near the implementation concern first, then update fixture goldens only when +the serialized parser contract intentionally changes. + Update golden JSON fixtures: ```bash @@ -642,7 +774,7 @@ exception keeps structured metadata for consumers: Diagnostic codes are for programmatic matching in tests, tools, and documentation. The category name states the failure class directly. The shared -registry is [`docs/diagnostic_codes.md`](../diagnostic_codes.md). +registry is [`diagnostic_codes.md`](diagnostic_codes.md). `str(error)` and `error.format_diagnostic(color=False)` render a compiler-style diagnostic: diff --git a/docs/quality.md b/docs/quality.md new file mode 100644 index 000000000..d8cc0519e --- /dev/null +++ b/docs/quality.md @@ -0,0 +1,293 @@ +# Quality Assurance + +Last reviewed: 2026-06-03 + +This project uses a staged Python QA stack. Fast bug-focused checks run on pull +requests, while the separate `Fuzz` workflow runs deeper Hypothesis discovery +on schedule or by manual dispatch. + +The selected active quality stack is adopted. Scheduled workflow review and +future Ruff/Radon threshold ratchets are ongoing maintenance, not unfinished +rollout work. Mutation testing and pre-commit are not part of the active stack. + +## Active Cadence + +| Cadence | Tools | +| --- | --- | +| Pull request and protected-branch push | pytest, coverage.py, stable-seed pytest-randomly, Ruff, Bandit, pip-audit, Vulture, staged Radon policy | +| Weekly and manual dispatch | `Fuzz` workflow with Hypothesis fuzz profile | +| Manual triage | Full Radon reports and low-severity Bandit review | + +## Install + +Install the package plus the QA toolchain: + +```bash +python -m pip install -e ".[qa]" +``` + +If your shell only exposes `python3`, use: + +```bash +python3 -m pip install -e ".[qa]" +``` + +## Local Commands + +Fast inner loop: + +```bash +pytest -q +ruff check . +ruff format . +``` + +CI-shaped test and coverage run: + +```bash +HYPOTHESIS_PROFILE=ci \ +COVERAGE_PROCESS_START=pyproject.toml \ +PYTHONPATH=. \ +python -m coverage run -m pytest -q --randomly-seed=1 +python -m coverage combine +python -m coverage report +``` + +For subprocess coverage investigations, mirror that command shape before +deciding a fix. A plain local coverage run can miss subprocess data. + +Reproduce an order-dependent failure from the stable CI seed: + +```bash +pytest -q --randomly-seed= +``` + +Run property and fuzz tests: + +```bash +pytest -q -m property --hypothesis-profile=ci +HYPOTHESIS_PROFILE=fuzz pytest -q -m fuzz --hypothesis-show-statistics +``` + +Run security and dependency checks: + +```bash +bandit -c pyproject.toml -r c_parser fortran_parser semantics x2py --severity-level medium --confidence-level medium +pip-audit . --cache-dir /tmp/pip-audit-cache +``` + +Run dead-code and complexity checks: + +```bash +vulture +python tools/check_radon_policy.py +radon cc c_parser fortran_parser semantics x2py -n C -s --total-average +radon mi c_parser fortran_parser semantics x2py -s +``` + +The Radon policy check is blocking. It prevents the reviewed C-or-worse hotspot +average from rising above `19.01` and, when a Git base ref is supplied, rejects +new or worsened changed production blocks above complexity `20`. Full Radon +reports remain advisory for refactor planning. + +## Tool Decisions + +### pytest And coverage.py + +**Role:** behavioral regression backbone and branch-coverage floor. + +**Evidence:** recorded full-suite baseline is `3497 passed`; combined +subprocess branch coverage is `95.34%`, above the configured `95%` gate. + +**Decision:** keep as required baseline project gates. + +### pytest-randomly + +**Role:** catches hidden test-order coupling and makes failures reproducible +with seeds. + +**Evidence:** normal CI uses `--randomly-seed=1`, so order is shuffled but +reproducible. + +**Decision:** keep stable-seed PR CI. The changing-seed scheduled job was +removed as redundant maintenance overhead. + +### Hypothesis + +**Role:** generates edge cases for parsers, AST transforms, semantic IR, and +code generation. + +**Bugs found:** generated code-generation cases exposed quoted `Name(...)` +emission. Generated preprocessing inputs also aligned raw Fortran and C macro +handling around compiler-required errors. + +**Decision:** keep bounded property tests in normal test coverage and longer +fuzz profiles on schedule/manual dispatch. + +### Ruff + +**Role:** fast linting and formatting for undefined names, unused imports, +suspicious patterns, modernization, simplified control flow, and high McCabe +complexity. + +**Bugs or issues found:** raw regex issues, formatting drift, and static-risk +maintenance debt. These are static-risk findings, not runtime defects. + +**Decision:** keep as a blocking gate. Line-length diagnostics remain +intentionally unselected because wrapping parser diagnostics and embedded test +sources would add noise without improving correctness. + +### Bandit + +**Role:** security scanning for subprocess, filesystem, deserialization, and +credential-like patterns. + +**Evidence:** no medium- or high-severity findings. Reviewed low-severity +findings are parser sentinel/template tokens and intentional argv-based +compiler/preprocessor subprocess calls without shell execution. + +**Decision:** keep blocking at medium confidence/severity in CI. Re-review the +full low-severity report after subprocess-boundary changes. + +### pip-audit + +**Role:** dependency vulnerability scanning. + +**Evidence:** no known vulnerability is present in the current dependency set. + +**Decision:** keep blocking in CI and re-run locally when dependencies change. + +### Vulture + +**Role:** dead-code detection. + +**Bugs or issues found:** removed dead Fortran parser parameters and unused test +lambda parameters reported by CI. + +**Decision:** keep blocking in CI with narrow exclusions. + +### Radon + +**Role:** complexity and maintainability tracking. + +**Evidence:** reviewed average complexity is `C (18.95)`. The staged policy +allows unchanged legacy hotspots while blocking new or worsened changed +production hotspots above complexity `20`. + +**Bugs or issues found:** Radon found maintainability hotspots. CI also exposed +that the first staged policy was too strict for unchanged legacy hotspots; the +policy was corrected. + +**Decision:** keep `tools/check_radon_policy.py` blocking and keep full Radon +reports advisory/manual. + +### GitHub Actions + +**Role:** reproducible CI and scheduled discovery. + +**Bugs or issues found:** recent remote quality runs found Ruff raw-regex +issues, Ruff formatting drift, Vulture unused test parameters, and the +too-strict Radon policy. + +**Decision:** keep. Review scheduled results and record actionable failures +until fixed. + +## Historical Mutation Findings + +Mutation testing was useful during rollout, but it is no longer an adopted +tool. Do not keep `mutmut` as a regular dependency, workflow, or local wrapper. +A future annual mutation audit can be run outside the normal QA stack if +needed. + +Keep the ordinary regression tests and fixes that came from it: + +- duplicate typedef-cycle diagnostic coverage; +- cycle-safe union-by-value diagnostics; +- Fortran project namespace collection respecting the requested encoding; +- direct Fortran parser contracts for diagnostics, forwarding, registries, + ownership, provenance, source locations, boundaries, and loop progress. + +## Test Organization + +- Unit tests: keep narrow behavior tests near existing domain folders such as + `tests/parser`, `tests/semantics`, and `tests/pyi`. +- Regression tests: add focused tests next to the subsystem that failed. Mark + with `@pytest.mark.regression` when useful. +- Property tests: put generated invariant tests in `tests/property`. +- Fuzz-like parser tests: keep bounded generators in `tests/property`, mark + with `@pytest.mark.fuzz`, and run with the `fuzz` Hypothesis profile. + +Good invariants for this codebase: + +- parsing the same source twice produces the same JSON/dict representation; +- generated declarations preserve name order and source locations; +- semantic conversion is deterministic for equivalent parser models; +- Pyi emission can be parsed back into equivalent semantic IR for supported + subsets; +- malformed input raises parser-owned diagnostic exceptions, not arbitrary + exceptions. + +## Adoption Status + +Full adoption for the selected stack means: + +- fast PR gates are blocking and stable; +- scheduled/manual fuzzing exists; +- Ruff baseline ignores are removed or deliberately retained with a reason; +- Radon has a documented blocking policy for new or materially changed code; +- scheduled workflow failures have a documented triage path. + +Current status by area: + +| Area | Status | Explanation | +| --- | --- | --- | +| Fast pull-request gates | Complete for adoption | Tests, coverage, Ruff, Bandit, pip-audit, Vulture, and staged Radon are wired as blocking gates. | +| Property and fuzz testing | Complete for adoption | Current parser, AST, semantic-IR, and code-generation invariants exist; future failures still need regression tests. | +| Dead-code detection | Complete for adoption | Vulture is clean and blocking; future public API additions should keep exclusions narrow. | +| Security and dependency scanning | Complete for adoption | Bandit and pip-audit are blocking; low-severity and dependency reviews recur when related code changes. | +| Complexity tracking | Complete for adoption | The staged Radon policy is blocking in CI; future hotspot decomposition can ratchet thresholds further. | +| Scheduled workflow triage | Complete for adoption | Jobs exist and the triage process is documented; scheduled failures remain ordinary maintenance. | + +Ongoing maintenance: + +1. Review scheduled workflow results regularly and record actionable failures + until fixed. +2. Lower Ruff/Radon complexity thresholds after hotspot refactors make that + safe. + +## Scheduled Workflow Triage + +The `Fuzz` workflow runs deeper discovery every Monday and by manual dispatch: + +1. Re-run a failing job once to separate actionable failures from transient + runner or package-index failures. +2. Reproduce actionable fuzz failures with the logged Hypothesis profile and + save minimized examples as focused regression tests. +3. Record each actionable scheduled failure here or in the relevant issue until + the regression test and fix pass. + +## Progress Log + +| Date | Area | Result | Follow-up | +| --- | --- | --- | --- | +| 2026-05-31 | Initial stack integration | Added configuration, CI, documentation, and Hypothesis tests. | Continue staged strictness rollout. | +| 2026-05-31 | Bandit | Reviewed low-severity findings and confirmed no medium- or high-severity findings. | Re-review when command trust boundaries change. | +| 2026-05-31 | Hypothesis code generation | Added generated native-name escaping, stable synthetic-import ordering, and semantic-IR-to-Pyi parse-back invariants; fixed quoted `Name(...)` emission. | Keep storing minimized failures. | +| 2026-06-01 | Ruff formatting rollout | Formatted the historical Python tree and changed CI to `ruff format --check .`. | Continue complexity-policy ratchets. | +| 2026-06-01 | Radon and Ruff complexity policy | Added `tools/check_radon_policy.py`, made the staged Radon policy blocking in CI, and lowered Ruff McCabe from `50` to `45`. | Continue hotspot refactors and later threshold ratchets toward `20`. | +| 2026-06-02 | Historical mutation-derived tests | Added direct Fortran parser contracts and fixed the directory namespace encoding bug. | Keep the tests as normal regression coverage. | +| 2026-06-03 | Manual Quality workflow review | Reviewed workflow run `26832679820`: fuzz passed, changing random-order pytest passed, static analysis exposed Ruff fixes, and full-project mutation exceeded the `3h` Actions limit. | Mutation was removed from active adoption; scheduled fuzz moved to its own workflow. | +| 2026-06-03 | Quality workflow triage | Reviewed latest Quality runs; run `26856679038` for `remove mutmut` completed successfully. | No actionable scheduled or PR quality failure remains. | +| 2026-06-03 | Final active-stack cleanup | Consolidated quality docs, removed mutation and pre-commit from the active stack, restored the C parser golden generator, and regenerated C parser goldens. | Treat scheduled review and threshold ratchets as ongoing maintenance. | + +## References + +- Ruff configuration: https://docs.astral.sh/ruff/configuration/ +- Pytest configuration: https://docs.pytest.org/en/latest/reference/customize.html +- Coverage subprocess behavior: https://coverage.readthedocs.io/en/latest/config.html +- Hypothesis settings profiles: https://hypothesis.readthedocs.io/en/latest/tutorial/settings.html +- Vulture configuration: https://pypi.org/project/vulture/ +- Radon command line: https://radon.readthedocs.io/en/stable/commandline.html +- Bandit configuration: https://bandit.readthedocs.io/en/latest/config.html +- pip-audit: https://github.com/pypa/pip-audit +- pytest-randomly: https://github.com/pytest-dev/pytest-randomly diff --git a/docs/semantics/c_pyi_self_contained_specification.md b/docs/semantics.md similarity index 53% rename from docs/semantics/c_pyi_self_contained_specification.md rename to docs/semantics.md index 637de0487..45e873c0d 100644 --- a/docs/semantics/c_pyi_self_contained_specification.md +++ b/docs/semantics.md @@ -1,4 +1,620 @@ -# Self-Contained C Semantic `.pyi` Implementation Specification +# Semantic IR And `.pyi` Reference + +This file is the single reference for semantic type names, C-to-IR conversion, +editable `.pyi` contracts, and the exact native C semantic stub rules. It is +kept together because parser frontends should converge on one semantic model +before wrapper generation makes language-specific lowering decisions. + +## Datatype Mapping + +This document records the shared scalar datatype policy used when C and Fortran +parser facts are converted to semantic IR. The semantic names are the stable +bridge between parser-native type spellings, `.pyi` output, readiness checks, +and eventual NumPy-oriented wrapper code. + +### Semantic Names + +| Semantic dtype | NumPy equivalent | Notes | +| --- | --- | --- | +| `Bool` | `numpy.bool_` | Boolean scalar. | +| `Int8`, `Int16`, `Int32`, `Int64` | `numpy.int8`, `numpy.int16`, `numpy.int32`, `numpy.int64` | Signed integers. | +| `UInt8`, `UInt16`, `UInt32`, `UInt64` | `numpy.uint8`, `numpy.uint16`, `numpy.uint32`, `numpy.uint64` | Unsigned integers. | +| `Float32`, `Float64` | `numpy.float32`, `numpy.float64` | Binary floating-point scalars. | +| `Float128` | `numpy.longdouble` | Platform precision varies; `numpy.float128` is not portable. | +| `Complex64`, `Complex128` | `numpy.complex64`, `numpy.complex128` | Complex scalars. | +| `Complex256` | `numpy.clongdouble` | Platform precision varies. | +| `String` | `numpy.str_` or byte storage at ABI boundary | Character policy depends on wrapper ABI. | +| `SizeT` | `numpy.uintp` | Target width is compiler-probed when available. | +| `Any` | `object` | Used for void pointer pointees and intentionally opaque values. | + +### Fortran Intrinsics + +| Fortran spelling or kind | Semantic dtype | NumPy equivalent | +| --- | --- | --- | +| `integer`, `integer(kind=4)`, `integer(int32)`, `integer(c_int)`, `integer(c_int32_t)` | `Int32` | `numpy.int32` | +| `integer(kind=1)`, `integer(int8)`, `integer(c_signed_char)`, `integer(c_int8_t)` | `Int8` | `numpy.int8` | +| `integer(kind=2)`, `integer(int16)`, `integer(c_short)`, `integer(c_int16_t)` | `Int16` | `numpy.int16` | +| `integer(kind=8)`, `integer(int64)`, `integer(c_long_long)`, `integer(c_int64_t)` | `Int64` | `numpy.int64` | +| `real`, `real(kind=8)`, `real(real64)`, `real(c_double)`, `real(kind(1.0d0))` | `Float64` | `numpy.float64` | +| `real(kind=4)`, `real(real32)`, `real(c_float)`, `real(kind(1.0e0))` | `Float32` | `numpy.float32` | +| `real(kind=16)`, `real(real128)`, `real(kind(1.0q0))` | `Float128` | `numpy.longdouble` | +| `complex`, `complex(kind=8)`, `complex(real64)`, `complex(c_double_complex)` | `Complex128` | `numpy.complex128` | +| `complex(kind=4)`, `complex(real32)`, `complex(c_float_complex)` | `Complex64` | `numpy.complex64` | +| `complex(kind=16)`, `complex(real128)` | `Complex256` | `numpy.clongdouble` | +| `logical`, `logical(kind=1/2/4/8)`, `logical(c_bool)` | `Bool` | `numpy.bool_` | +| `character`, `character(kind=1)`, `character(kind=c_char)` | `String` | `numpy.str_` or ABI byte storage | +| `procedure(...)` | `Procedure` | Callback/interface policy | + +### C Types + +| C spelling or parser type | Semantic dtype | NumPy equivalent | +| --- | --- | --- | +| `_Bool` / `CBool` | `Bool` | `numpy.bool_` | +| `char`, `signed char` | `Int8` | `numpy.int8` | +| `unsigned char` | `UInt8` | `numpy.uint8` | +| `short`, `unsigned short` | `Int16`, `UInt16` | `numpy.int16`, `numpy.uint16` | +| `int`, `unsigned int` | `Int32`, `UInt32` | `numpy.int32`, `numpy.uint32` | +| `long`, `long long` | `Int64` | `numpy.int64` | +| `unsigned long`, `unsigned long long` | `UInt64` | `numpy.uint64` | +| `float`, `double`, `long double` | `Float32`, `Float64`, `Float128` | `numpy.float32`, `numpy.float64`, `numpy.longdouble` | +| `float _Complex`, `double _Complex`, `long double _Complex` | `Complex64`, `Complex128`, `Complex256` | `numpy.complex64`, `numpy.complex128`, `numpy.clongdouble` | +| `int8_t`, `int16_t`, `int32_t`, `int64_t` | `Int8`, `Int16`, `Int32`, `Int64` | Matching signed NumPy integer | +| `uint8_t`, `uint16_t`, `uint32_t`, `uint64_t` | `UInt8`, `UInt16`, `UInt32`, `UInt64` | Matching unsigned NumPy integer | +| `size_t` | `SizeT` or probed unsigned width | `numpy.uintp` or matching `numpy.uint*` | + +C integer spellings such as `long` are ABI-dependent in general C, but the +current semantic policy maps parsed primitive `long` and `long long` to 64-bit +semantic dtypes. Standard-library typedefs are refined through the compiler +standard-type probe when facts are supplied. + +## C To Semantic IR Mapping + +Status: first C semantic conversion subset implemented in `semantics/c2ir.py`. +The converter consumes `c_parser` models and emits the same language-neutral +semantic IR used by Fortran and edited `.pyi` files. Shared primitive dtype +policy is documented in the datatype mapping section above. + +### Supported Identity Subset + +- C translation unit -> one `SemanticModule` named from the source file stem. +- C function -> `SemanticFunction`, preserving native name and parameter order. +- C parameter -> `SemanticArgument`. +- `void` return -> `None`. +- `_Bool` -> `Bool`. +- `char` -> `Int8` with `c_char_policy` metadata; `signed char` -> `Int8`; + `unsigned char` -> `UInt8`. +- `short`, `int`, `long`, and `long long` map to fixed signed integer names + using the current Linux-oriented defaults: `Int16`, `Int32`, `Int64`, + `Int64`. +- Unsigned integer spellings map to `UInt16`, `UInt32`, `UInt64`, and + `UInt64`; fixed-width typedef spellings such as `uint32_t` map to the + matching `UInt*` fallback. +- `float` -> `Float32`; `double` -> `Float64`; `long double` -> `Float128`. +- `float _Complex` -> `Complex64`; `double _Complex` -> `Complex128`; + `long double _Complex` -> `Complex256`. +- Local typedef chains are resolved when their parser model definitions are + available. +- `size_t` maps to `SizeT` without a target probe; supplied + `x2py.c_type_probe` facts override standard typedefs with width-specific + `Int*`, `UInt*`, or `Float*` semantic names. +- Opaque standard-type probe facts such as `FILE` create named opaque semantic + classes when referenced by converted declarations. +- Object-like numeric macros and enum constants become `Final`-style semantic + variables through the `Constant` constraint. +- Struct definitions become `SemanticClass` entries. Incomplete structs become + opaque classes and may be used through direct `Ptr(...)` identity contracts. +- Explicit multi-header conversion resolves a struct to the header that defines + it. Other generated stubs import that owner class instead of emitting + duplicate definitions. +- Structs originating from private included headers remain usable through + generated owner-module `class Name(Opaque): pass` dependency stubs. +- Declared C arrays, including adjusted array parameters, become semantic array + storage contracts with C order for rank greater than one. +- Pointers become explicit `SemanticStorageContract` pointer/reference + metadata. `const` on the pointee makes the storage read-only, and `restrict` + is preserved as aliasing metadata. + +### Conservative Blockers + +The converter does not silently invent wrapper policy. It attaches +`readiness_blockers` metadata that the semantic readiness checker reports: + +- unresolved typedef or unknown type references; +- legacy parser reports carrying macro-dependent declarations; +- variadic functions; +- function pointer/callback signatures without edited `.pyi` `Callable` + policy; +- mutable numeric or `void *` pointer parameters without ownership, + scalar-reference, or array policy; +- arrays with unknown extents; +- incomplete or external opaque structs used by value; +- unions used in semantic signatures; +- `volatile`, `_Atomic`, bitfields, and unsupported declarator compositions. + +The current C semantic path supports `--language c --semantics`, +`--language c --wrap-readiness`, and starter exact-contract +`--language c --pyi` output for this supported subset. Generated stubs remain +conservative: ambiguous ownership, callback, ABI-extension, and Pythonic +projection policy stays out of the generated `.pyi` until supplied by the +semantic model or an edited interface. In particular, an unresolved typedef is +not assumed to be opaque because its ABI representation is unknown. + +## Wrapper `.pyi` Format + +The semantic `.pyi` format is a Python-valid view of x2py semantic IR. It is +language-neutral: Fortran and future C inputs use the same type, storage, +pointer, array, layout and metadata notation. Source language differences are +represented by contracts and metadata, not by separate syntax families. + +This document describes the behavior implemented for the current Fortran and C +semantic conversion paths. + +### Canonical Type And Storage Contract + +Bare scalar types represent direct semantic values: + +```python +def dot_value(a: Float64, b: Float64) -> Float64: ... +``` + +Native reference and pointer-backed storage is explicit: + +```python +def inspect(value: Ptr(Const(Int32))) -> None: ... +def update(value: Ptr(Float64)) -> None: ... +``` + +Array storage uses NumPy-style subscriptions. The dimensions inside `T[...]` +are the storage contract: + +```python +def scale(n: Ptr(Const(Int32)), x: Float64[n]) -> None: ... +def matrix(a: Annotated[Const(Float64[n, m]), ORDER_F]) -> None: ... +def assumed(x: Annotated[Float64[::Strided, ::Strided], ORDER_F]) -> None: ... +``` + +There is no separate dimension helper in canonical type syntax. A dimension +entry without colons is an extent (`Float64[n]`, `Float64[n, m]`). Slice-like +entries express range or stride contracts (`Float64[1:n]`, +`Float64[::Strided]`, `Float64[:, 0:n:m]`). `Strided` means the runtime stride +is part of the accepted storage contract. + +Generic semantic constraints are not represented as type subscriptions. +Constants use `Final[T]`; other constraints and non-dimensional array metadata +use `Annotated[T[...], Constraint, ...]`. + +`Annotated[...]` carries non-dimensional metadata: + +- `ORDER_F` for a Fortran-oriented multidimensional contract. +- `ORDER_ANY` for an orientation-independent multidimensional strided + contract chosen explicitly by an edited interface or later projection. +- `Allocatable` for a Fortran allocatable array. +- `Pointer` for a Fortran pointer array. +- `Intent("out")` when a visible exact-native argument has source intent + `out`; `intent(inout)` is the default writable reference/array spelling and + does not need metadata. + +Plain multidimensional array notation is C-oriented (`ORDER_C`) by default. +Under the current Fortran generation policy, every multidimensional Fortran +array contract emits `ORDER_F`, including stride-aware assumed-shape arrays. +Rank-one storage has no C-versus-Fortran order distinction, so no order marker +is emitted for vectors. + +`ArrayCategory(...)`, `SourceDims(...)`, `LowerBounds(...)` and `Contiguous` +are not part of newly generated canonical array annotations. They described +native declaration provenance rather than additional requirements on the +Python-visible array. The loader continues to accept existing edited stubs +that contain these metadata forms. Fortran source category, original bounds +and declaration dimensions may remain available as internal source provenance +when converting source; they are not required for the public storage contract +or for ordinary Python-to-Fortran array argument association. + +### Implemented Fortran Exact Form + +Generated Fortran `.pyi` currently represents the exact native dummy-argument +interface. It does not synthesize, reorder or hide arguments and it does not +turn `intent(out)` or `intent(inout)` dummy arguments into Python return +values. + +Fortran scalar dummy arguments are represented as follows: + +- Scalar dummy without `value`, `intent(in)`: `Ptr(Const(T))`. +- Scalar dummy without `value`, `intent(out)` or `intent(inout)`: `Ptr(T)`. +- Scalar dummy with `value`: direct `T`. +- Function result: direct return annotation. + +Example: + +```fortran +subroutine update(scale, value, result) + real(8), value, intent(in) :: scale + real(8), intent(inout) :: value + real(8), intent(out) :: result +end subroutine +``` + +```python +def update( + scale: Float64, + value: Ptr(Float64), + result: Annotated[Ptr(Float64), Intent("out")] +) -> None: ... +``` + +Fortran module variables and derived-type fields are data declarations, not +procedure dummy arguments. Scalar fields and variables therefore remain direct +types: + +```python +answer: Final[Int32] + +class particle: + id: Int32 + position: Float64[3] +``` + +### Implemented Fortran Arrays + +Explicit-shape and adjustable arrays use shaped storage. Multidimensional +Fortran-contiguous storage carries `ORDER_F`; vectors omit order metadata: + +```python +def scale(n: Ptr(Const(Int32)), x: Float64[n]) -> None: ... + +def apply( + n: Ptr(Const(Int32)), + m: Ptr(Const(Int32)), + a: Annotated[Const(Float64[n, m]), ORDER_F], +) -> None: ... +``` + +Assumed-size arrays preserve their fixed rank and any dimensions constrained by +the visible storage contract. A rank-one `x(*)` is emitted as `T[:]`; for +`x(n, *)`, the second dimension has an unconstrained runtime extent, not an +unknown rank: + +```python +def legacy(values: Float64[:]) -> None: ... + +def legacy_matrix( + n: Ptr(Const(Int32)), + a: Annotated[Float64[n, :], ORDER_F] +) -> None: ... +``` + +Assumed-shape arrays are stride-aware. A rank-one assumed-shape dummy is +emitted as a strided vector. Under the current generated-wrapper policy, a +rank-two or higher assumed-shape dummy retains Fortran orientation while +permitting strides: + +```python +def vector(x: Float64[::Strided]) -> None: ... + +def matrix( + a: Annotated[ + Const(Float64[::Strided, ::Strided]), + ORDER_F, + ] +) -> None: ... +``` + +The Fortran declaration itself may permit an actual argument with another +orientation. The generated semantic interface deliberately chooses +Fortran-oriented storage by default. An edited interface or future projection +may choose `ORDER_ANY` only with corresponding backend and validation policy. +`contiguous` assumed-shape arrays use dense dimensions instead of +`::Strided`; their multidimensional forms also carry `ORDER_F`. + +Explicit bounds are expressed through storage extents, not source-dimension +metadata. For example, `x(1:n)` has storage extent `n`; `x(0:n-1)` also has +extent `n` (the implementation currently retains the equivalent arithmetic +expression when it is not simplified). Python arrays present zero-based +storage; the compiled Fortran call associates that storage with the dummy +argument and supplies the lower and upper bounds declared by the procedure. +Those Fortran bounds affect indexing within the procedure, not what bound +metadata Python must pass. The public contract therefore needs the required +extent, layout and mutability, not `LowerBounds(...)`. + +Allocatable and pointer arrays preserve their source storage property: + +```python +class workspace: + values: Annotated[Float64[:], Allocatable] + +def section( + x: Annotated[Float64[:], Pointer] +) -> None: ... +``` + +Allocation or association replacement policy is not implemented. The semantic +IR preserves the facts needed for readiness and lowering decisions; a backend +must not silently treat replacement-capable allocatable or pointer dummies as +ordinary borrowed arrays. + +### Preserved Metadata + +The shared semantic model separates: + +- value type (`Float64`, `Int32`, derived type names); +- storage/calling contract (`value`, `reference`, `pointer`, `array`); +- public array contract (rank, required extents or admitted strides, order, + contiguity, allocatable and pointer semantics); +- source origin metadata (source language, native name, native scope, + source-level type/category information and lowering-relevant facts). + +The Fortran converter currently preserves public storage dimensions, order, +`intent`, optionality, `value`, constants, `allocatable` and `pointer` in the +visible semantic contract. It retains source declaration dimensions, bounds, +dummy category and `contiguous` provenance internally where the parser +supplies those facts for diagnostics or native-interface provenance; those +facts do not add visible array requirements. + +### Loading And Round Trips + +`parse_pyi_text`, `load_pyi_file` and `convert_pyi_to_ir` load canonical +array subscriptions and `Annotated[...]` metadata into the same public +storage contracts emitted by the Fortran semantic pipeline. Native +source-provenance details not emitted into the public type are intentionally +excluded from public contract equality. Focused round-trip tests cover: + +```text +Fortran parser model -> semantic IR -> .pyi -> semantic IR +``` + +The loader rejects removed dimension helper syntax in type annotations. Use +array subscriptions such as `Float64[n]`, `Float64[:, :]` or +`Float64[::Strided]` instead. + +### Pythonic Projection (Later) + +The implemented Fortran generator emits the exact form described above. A +later optional generation or editing mode, for example `--pythonic`, may +expose a friendlier Python API whose arguments or results differ from that +native contract. Such a projected interface must retain a mapping back to the +exact semantic/native interface; it must not discard source origin, storage, +intent, shape, ownership or lowering facts needed to issue the call. + +A projection is allowed to be more restrictive or more expressive than the +exact native interface, according to the Python API the user wants to expose. +It may add accepted-input coercions, local constraints, cross-argument checks, +result checks, mutation policy or ownership policy. It need not expose every +use that the native routine could technically accept. At the native-call +boundary, however, the mapped native values must still satisfy the +requirements encoded by the exact native contract. + +The Fortran converter does not automatically generate a projected interface. +The loader and printer retain explicit projection mappings for edited semantic +stubs, including `@native_call` entries formed from `Arg`, `Return`, `Const`, +`Len`, `IsPresent`, `Work` and `.shape[...]`, plus `Returns[...]`. The +pointer/reference adaptation examples below (`Ptr(Arg(...))` and +`Ptr(Return(...))`), `As[...]`, `.strides[...]`, coercion policy and +validation contracts describe extensions required for the fuller Pythonic +projection; they are not currently accepted or emitted by this path. + +#### Native Argument Projection + +Only a projected interface uses `@native_call`. The decorator records how +visible Python arguments and projected results supply the exact native +arguments. + +For a mutable scalar reference, the implemented exact Fortran form keeps +caller-supplied storage: + +```python +# Implemented exact form. +def advance(value: Ptr(Float64)) -> None: ... +``` + +A future Pythonic form may create writable temporary storage, perform the +native call and read the updated value back as a Python result: + +```python +# Projected form, not currently implemented. +@native_call([Ptr(Arg(0))]) +def advance(value: Float64) -> Returns["value", Float64]: ... +``` + +Similarly, an `intent(out)` scalar currently remains an explicit writable +reference with its preserved source intent: + +```python +# Implemented exact form. +def get_count(result: Annotated[Ptr(Int32), Intent("out")]) -> None: ... + +# Projected form, not currently implemented. +@native_call([Ptr(Return(0))]) +def get_count() -> Int32: ... +``` + +A projection may derive hidden native metadata from a visible array. For a +future native interface with a by-value length parameter, for example: + +```python +# Exact contract for a future supported native frontend. +def sum_values(n: SizeT, values: Const(Float64[n])) -> Float64: ... + +# Projected form, not currently implemented. +@native_call([As[SizeT](Arg(0).shape[0]), Arg(0)]) +def sum_values(values: Const(Float64[:])) -> Float64: ... +``` + +`Arg(i).shape[dim]` denotes a zero-based array extent. +`Arg(i).strides[dim]` denotes a NumPy byte stride: + +```python +@native_call([Arg(0), Arg(0).shape[1], Arg(0).strides[1]]) +def process_columns(values: Const(Float64[:, ::Strided])) -> None: ... +``` + +Dimension steps such as `::m` are expressed in elements; deriving a native +element stride from a byte stride must include the item-size conversion in +the native mapping. + +#### Coercions And Constraints + +A Pythonic projection may accept values that are not already in the exact +storage form, but only through explicit allowed coercions. For example, a +projected API could allow a NumPy C-order matrix to be copied into an +`ORDER_F` value required by a Fortran-oriented exact contract. It may instead +reject that input when no copying coercion is declared. + +Coercions and constraints serve different purposes: + +- A coercion states how an accepted Python object becomes the required + semantic runtime value, potentially allocating storage or changing layout. +- A constraint states what must be true of the adapted value before native + lowering, such as dtype, rank, shape, stride capability, `ORDER_F`, + mutability, device residence, alignment or ownership. + +The exact notation already records native-facing local constraints, including +`Ptr(Const(T))`, `Const(T[...])`, dimensions, `ORDER_F`, `ORDER_ANY`, +`Allocatable` and `Pointer`. A projected API may add allowed conversion +policy, for example a future `From(np.ndarray, copy=True)` spelling, but it +cannot silently weaken the exact native contract. + +The exact native contract is therefore a minimum obligation for a projection. +A projected API may require additional properties, such as finite values, +non-aliasing arguments, a square matrix or a no-copy policy. A declared +coercion may convert a projected input so that it satisfies a native +requirement, such as packing C-oriented input into `ORDER_F` storage. But the +mapped value sent to native lowering must satisfy the encoded native element +type, reference/read-write contract, rank, extent, layout, stride, +allocation/association and other calling-relevant requirements. + +This document does not currently define a hard-versus-soft classification for +exact-contract constraints. Until such a classification and override policy +exist, constraints encoded in the exact native interface are mandatory at the +native-call boundary. A later design may classify advisory requirements, such +as a preferred layout or zero-copy preference, as relaxable by an explicit +projection policy. ABI, memory-safety and semantic-correctness requirements +cannot be treated as advisory. + +In particular, conversion and copy-back policies are required before a +projection can: + +- accept C-order or non-contiguous storage for a target requiring dense + Fortran-oriented storage; +- expose mutable scalar references as ordinary scalar inputs and returns; +- return changes to output arrays through allocated temporary storage; +- expose replacement-capable `Allocatable` or `Pointer` dummies; or +- preserve ownership, lifetime and aliasing behavior through a temporary. + +#### Validation Contracts + +Local constraints are not sufficient for relationships between multiple +arguments or for promises about projected results. A future projected +interface may add a validation contract, whether or not the exact native +interface already contains local constraints, for: + +- preconditions, such as matching extents or non-aliasing inputs; +- postconditions, such as the returned shape or dtype; +- invariants on projected objects after mutation; +- mutation and aliasing rules; and +- ownership and lifetime rules for borrowed, owned, viewed or temporary + storage. + +For example, this is an illustrative later projected interface, not currently +accepted projection syntax: + +```python +@contract( + pre=[ + lambda ctx: ctx.args.a.shape[0] == ctx.args.a.shape[1], + lambda ctx: ctx.args.b.shape == (ctx.args.a.shape[0],), + ], + post=[lambda ctx: ctx.result.shape == ctx.args.b.shape], + invariants=[lambda ctx: not ctx.result.aliases(ctx.args.a)], +) +def solve( + a: Annotated[Float64[:, :], ORDER_F], + b: Float64[:], +) -> Float64[:]: ... +``` + +A constraint can require that `a` is `ORDER_F`; a contract can require that +`a` is square, that `b` agrees with its extent and that the result does not +alias mutable input storage. These checks occur at distinct levels and must +remain distinct in a later semantic model. Projection-level checks supplement +the exact native contract; they do not replace its mandatory native-call +checks. + +A projected call therefore has the following conceptual sequence: + +```text +visible Python values + -> projected allowed coercions + -> projected local constraints and contract preconditions + -> exact native argument mapping + -> mandatory exact-native constraint validation + -> backend lowering + -> native call + -> contract postconditions and invariants + -> projected Python results +``` + +The projection mechanism is language-neutral. It can later adapt exact +Fortran or C contracts through the same notation and runtime concepts, but +this milestone does not implement automatic Pythonic generation, current +exact-reference adaptation, coercion/contract execution or C wrapper lowering. +The C frontend can generate starter exact-contract `.pyi` output for the +implemented semantic subset. + +### External Opaque Type Stubs + +An external source-language type whose owner module is not part of the explicit +wrapping target is emitted as an owner-module opaque dependency stub. This +applies to imported Fortran derived types and to C opaque structs from external +header surfaces: + +```python +# types_mod.pyi +class particle(Opaque): + pass +``` + +The importing module references that owner rather than re-exporting the type: + +```python +# physics.pyi +from types_mod import particle + +def move(p: Ptr(particle)) -> None: ... +``` + +`emit_module_stubs(...)` produces the complete stub mapping. `load_pyi_modules` +loads one or more files or directories and reconciles those imports back into +semantic `external_type_ref` metadata. If the user replaces the opaque owner +stub with a concrete class body, the imported semantic reference becomes +`representation="wrapped"` without changing the importing stub. + +This file-set round-trip is the editing boundary for future wrapper policy. +Existing type constraints encoded with `Annotated[...]` are preserved now. +Additional coercion and executable contract syntax remains deferred. + +For C, an unresolved typedef is not automatically opaque: its ABI could be an +integer, pointer, struct, or another representation. The C frontend emits an +opaque class when declarations establish that contract, such as a forward +struct declaration or a private included struct used through pointers. An +edited `.pyi` file may also state the policy explicitly with `class +Name(Opaque): pass`. + +### Deferred C Work + +The shared model represents the current C semantic conversion subset for +functions, variables, +fields, constants, scalar references, pointers, arrays with known contracts, +origin metadata, mutability and ownership facts. The C frontend can generate +starter exact-contract stubs from that model. Remaining C work includes: + +- C wrapper lowering; +- C ownership, callback or pointer policy inference beyond facts already + present in exact contracts. + +Future C conversion should use the same notation: by-value scalars as bare +types, unrefined pointers as `Ptr(T)` or `Ptr(Const(T))`, and array notation +only when a real array storage contract is known. + +## Self-Contained C Semantic `.pyi` Contract **Status:** Phase 1 implementation baseline **Target:** Python wrappers for C libraries on a selected Linux ABI @@ -6,7 +622,7 @@ sufficient to generate a wrapper. C header parsing is optional input generation, not a wrapper-generation dependency. -## 1. Phase 1 Boundary +### 1. Phase 1 Boundary Phase 1 implements the exact callable interface first. Python is intentionally C-like at this stage: @@ -27,7 +643,7 @@ Therefore, Phase 1 does **not** implement or emit `@native_call`. The purpose of this ordering is to prove that x2py can describe, parse, lower and execute direct C signatures reliably before adding Pythonic adaptations. -## 2. Non-Negotiable Rules +### 2. Non-Negotiable Rules 1. The semantic `.pyi` must be sufficient to call every supported wrapped symbol without reading C source at build time. @@ -78,7 +694,7 @@ and execute direct C signatures reliably before adding Pythonic adaptations. 12. The current target is a selected Linux ABI. Cross-platform variation and non-default calling conventions are deferred. -## 3. Current Artifact +### 3. Current Artifact The current compiler-facing artifact is: @@ -91,7 +707,7 @@ functions in Phase 1. A clean `.pyi` for standard type checkers is not part of Phase 1. -## 4. Scalar Types Passed By Value +### 4. Scalar Types Passed By Value Bare scalar types represent native by-value parameters and direct native returns. @@ -121,9 +737,9 @@ def multiply(a: Float64, b: Float64) -> Float64: ... No decorator is needed or accepted for these identity calls. -## 5. Numeric Pointer Storage +### 5. Numeric Pointer Storage -### 5.1 Canonical Reference And Array Notation +#### 5.1 Canonical Reference And Array Notation A numeric NumPy storage annotation means the caller supplies memory whose data address is passed directly to C. C ordinary pointer parameters contain no @@ -188,16 +804,15 @@ runnable C Phase 1 wrapper requires the corresponding native routine to accept that storage layout directly. For a rank-one array, `ORDER_C` and `ORDER_F` do not distinguish storage, contiguous or strided, so no order constraint is written. - For a multidimensional strided annotation, `ORDER_F` is orientation metadata, - not a requirement that NumPy report `F_CONTIGUOUS`; non-unit strides remain - part of the contract. - Source frontends may retain original declaration dimensions, source bounds - or native dummy categories as internal provenance. Those source facts are - not part of the canonical public array annotation unless they produce an - actual storage constraint. In particular, Fortran dummy bounds are - established by native association rather than supplied as Python array - metadata. The implemented C conversion subset is described in - [C to semantic IR mapping](c2ir_mapping.md). +For a multidimensional strided annotation, `ORDER_F` is orientation metadata, +not a requirement that NumPy report `F_CONTIGUOUS`; non-unit strides remain +part of the contract. +Source frontends may retain original declaration dimensions, source bounds or +native dummy categories as internal provenance. Those source facts are not part +of the canonical public array annotation unless they produce an actual storage +constraint. In particular, Fortran dummy bounds are established by native +association rather than supplied as Python array metadata. The implemented C +conversion subset is described in the C-to-semantic IR mapping section above. Stride-aware dimensions use a slice step marker: @@ -230,7 +845,7 @@ can be added later without requiring a new dimension notation. Annotation steps use NumPy element units, while `Arg(0).strides[1]` has NumPy's byte units; converting between them is an explicit later mapping decision. -### 5.2 Pointer Depth And Opaque Pointers +#### 5.2 Pointer Depth And Opaque Pointers `Ptr(...)` expresses native pointer depth directly. For a one-level pointer, it preserves the native address form without inventing rank or shape. A known @@ -261,7 +876,7 @@ second native function under matching `Ptr(...)` annotations. Pointer-object construction/allocation helpers are runtime API work, not additional information required in a semantic function signature. -### 5.3 Pointer To Scalar +#### 5.3 Pointer To Scalar ```c void increment(int *value); @@ -287,7 +902,7 @@ updated = value.item() The wrapper passes `value`'s data address. It does not construct temporary scalar storage and does not return the mutation. -### 5.4 Pointer To Array +#### 5.4 Pointer To Array ```c void negate(int n, double *values); @@ -304,7 +919,7 @@ def sum_values(n: SizeT, values: Const(Float64[n])) -> Float64: ... The caller supplies `n` explicitly because it is an actual C parameter. The wrapper must not derive it from `len(values)` in Phase 1. -### 5.5 Output Pointer Remains An Argument +#### 5.5 Output Pointer Remains An Argument ```c void get_count(int *out); @@ -333,9 +948,9 @@ Returning `Int` from `get_count()` or allocating and returning `Float64[n]` from `get_values(n)` is a later Pythonic adaptation, not an identity call. -## 6. Array Constraints +### 6. Array Constraints -### 6.1 Rank, Accepted Ranks And Fixed Dimensions +#### 6.1 Rank, Accepted Ranks And Fixed Dimensions Dimensions refine valid NumPy storage while the native argument remains one data pointer. They are semantic/API contracts rather than metadata transported @@ -381,7 +996,7 @@ For function parameters on the selected ABI, `int (*)[4]` is represented as one pointer plus its fixed row-width contract. It is not represented as `int **`. -### 6.2 Strided Direct Interfaces Keep Native Metadata Visible +#### 6.2 Strided Direct Interfaces Keep Native Metadata Visible The semantic notation can distinguish a stride-aware view from a contiguous matrix while retaining the exact native parameter list: @@ -411,7 +1026,7 @@ contract; leaving it unannotated retains `ORDER_C`. A later Pythonic view may hide that argument with `Arg(0).strides[1]`, or request `Pack` / `CopyBack`. -### 6.3 Pointer Graphs Are Different +#### 6.3 Pointer Graphs Are Different ```c void use_rows(int **rows); @@ -433,7 +1048,7 @@ topology. The wrapper passes it unchanged. Constructing pointer rows from nested Python sequences and exposing `update_value(value: Int) -> Int` are later Pythonic adaptations. -### 6.4 Contiguity +#### 6.4 Contiguity Without an explicit layout or stride form, array annotations such as `T[:]`, `T[:, :]`, `T[n]`, and `T[...]` require C-contiguous numeric storage; a @@ -449,9 +1064,9 @@ derivation of native metadata is a later Pythonic transformation. For rank one, `T[:]` and `T[n]` are also the canonical Fortran-contiguous spelling; write `T[::Strided]` when contiguity is not required. -## 7. Direct Native Returns +### 7. Direct Native Returns -### 7.1 Scalars And `void` +#### 7.1 Scalars And `void` Direct scalar returns and native `void` are identity behavior: @@ -468,7 +1083,7 @@ def reset() -> None: ... An integer return remains an integer return in Phase 1. It is not automatically converted to an exception. -### 7.2 Pointer Returns +#### 7.2 Pointer Returns A direct returned native pointer can be exposed as a low-level pointer object without changing the C return topology: @@ -509,7 +1124,7 @@ lifetime handling are implemented, return it as the corresponding direct low-level pointer object or reject the higher-level NumPy view rather than guessing. -## 8. Symbol Names +### 8. Symbol Names Argument and return identity is independent of symbol naming. Phase 1 supports `@bind` without introducing `@native_call`: @@ -530,7 +1145,7 @@ def increment(value: Ptr(Int)) -> None: ... `@bind` changes only which exported symbol is loaded. It does not synthesize arguments, change pointers or alter results. -## 9. Structures, Enums And Non-Numeric Pointers +### 9. Structures, Enums And Non-Numeric Pointers By-value enums and by-value structures can be Phase 1 identity interfaces once their native representation and layout are complete in the semantic `.pyi`: @@ -582,7 +1197,7 @@ native representations are implemented explicitly: - variadic functions; - `void *` beyond an explicitly selected raw/byte-storage representation. -## 10. Phase 1 Unsupported Transformations +### 10. Phase 1 Unsupported Transformations Phase 1 must reject, or leave unresolved during optional C import generation, any interface that requires the wrapper to change the native function shape. @@ -603,7 +1218,7 @@ Unsupported now: The later syntax is retained as design direction only. It is not required by the Phase 1 parser, IR, printer or wrapper generator. -## 11. Required Phase 1 Readiness Errors +### 11. Required Phase 1 Readiness Errors The wrapper generator or optional importer must report unsupported behavior instead of silently changing the interface. @@ -625,7 +1240,7 @@ instead of silently changing the interface. | `c_variadic_function_unsupported` | A variadic native function is requested. | | `c_calling_convention_unsupported` | A non-default calling convention is required. | -## 12. Phase 1 Parser And Wrapper Requirements +### 12. Phase 1 Parser And Wrapper Requirements The Phase 1 implementation must: @@ -660,9 +1275,9 @@ The Phase 1 implementation must: later Pythonic mapping. 13. Never consult C source after a supported semantic `.pyi` has been parsed. -## 13. Phase 1 Tests +### 13. Phase 1 Tests -### 13.1 By-Value Scalar Identity +#### 13.1 By-Value Scalar Identity ```c int add(int a, int b); @@ -674,7 +1289,7 @@ def add(a: Int, b: Int) -> Int: ... The wrapper passes two native `int` values and returns one native `int`. -### 13.2 Mutable Scalar Pointer Storage +#### 13.2 Mutable Scalar Pointer Storage ```c void increment(int *value); @@ -688,7 +1303,7 @@ Tests must verify that a writable zero-dimensional NumPy array is passed by data address and that native mutation is observed after the call. A plain Python `int` must be rejected for this signature. -### 13.3 Read-Only Scalar Pointer Storage +#### 13.3 Read-Only Scalar Pointer Storage ```c void read_count(const int *value); @@ -701,7 +1316,7 @@ def read_count(value: Ptr(Const(Int))) -> None: ... Tests must verify matching scalar storage/input acceptance and exact native pointer lowering without writable requirements. -### 13.4 Array Pointer With Explicit Count +#### 13.4 Array Pointer With Explicit Count ```c double sum_values(size_t n, const double *values); @@ -714,7 +1329,7 @@ def sum_values(n: SizeT, values: Const(Float64[n])) -> Float64: ... Tests must verify that the caller passes `n`, that the wrapper passes it unchanged, and that no hidden `len(values)` argument is generated. -### 13.5 Explicit Output Storage +#### 13.5 Explicit Output Storage ```c void get_count(int *out); @@ -729,7 +1344,7 @@ def get_values(n: Int, out: Float64[n]) -> None: ... Tests must verify mutation of caller-allocated output storage and that the functions return `None`. -### 13.6 Matrices And Pointer-To-Fixed-Array +#### 13.6 Matrices And Pointer-To-Fixed-Array ```c void matrix_data(double *matrix); @@ -747,7 +1362,7 @@ Tests must verify one native pointer argument for each function, rank/shape validation, and rejection of a representation treating either argument as `T **`. -### 13.7 Direct Pointer Graph Identity +#### 13.7 Direct Pointer Graph Identity ```c void use_rows(int **rows); @@ -763,7 +1378,7 @@ Tests must verify exact pointer depth in the parsed ABI contract and that these arguments accept only matching direct low-level pointer objects. They must not accept `Int[:, :]` or add any `@native_call` transformation. -### 13.8 Raw Opaque Pointer Identity +#### 13.8 Raw Opaque Pointer Identity ```c struct context; @@ -783,7 +1398,7 @@ Tests must verify that the returned raw native pointer object is accepted by `context_destroy` without handle wrapping, ownership inference or `@native_call`. -### 13.9 Symbol Binding Without Transformation +#### 13.9 Symbol Binding Without Transformation ```c int library_add(int a, int b); @@ -797,7 +1412,7 @@ def add(a: Int, b: Int) -> Int: ... Tests must verify that `@bind` changes symbol lookup only and leaves argument/return lowering unchanged. -### 13.10 Transformation Is Not Phase 1 +#### 13.10 Transformation Is Not Phase 1 The Phase 1 parser or readiness checker must reject a runnable interface using later transformation syntax such as: @@ -813,7 +1428,7 @@ The supported Phase 1 spelling for the same C function is: def increment(value: Ptr(Int)) -> None: ... ``` -## 14. Phase 2: Pythonic Adaptations After Identity Works +### 14. Phase 2: Pythonic Adaptations After Identity Works After Phase 1 can call direct signatures reliably, an optional Pythonic generation mode can use `@native_call` to expose APIs that differ from their @@ -860,7 +1475,7 @@ Phase 2 also introduces policies and coercions such as: None of these transformations is necessary to complete Phase 1. -## 15. Decisions Deferred Beyond Phase 1 +### 15. Decisions Deferred Beyond Phase 1 The following decisions do not block the identity-call implementation: diff --git a/docs/semantics/c2ir_mapping.md b/docs/semantics/c2ir_mapping.md deleted file mode 100644 index 65a886294..000000000 --- a/docs/semantics/c2ir_mapping.md +++ /dev/null @@ -1,70 +0,0 @@ -# C To Semantic IR Mapping - -Status: first C semantic conversion subset implemented in `semantics/c2ir.py`. -The converter consumes `c_parser` models and emits the same language-neutral -semantic IR used by Fortran and edited `.pyi` files. - -## Supported Identity Subset - -- C translation unit -> one `SemanticModule` named from the source file stem. -- C function -> `SemanticFunction`, preserving native name and parameter order. -- C parameter -> `SemanticArgument`. -- `void` return -> `None`. -- `_Bool` -> `Bool`. -- `char` -> `Int8` with `c_char_policy` metadata; `signed char` -> `Int8`; - `unsigned char` -> `UInt8`. -- `short`, `int`, `long`, and `long long` map to fixed signed integer names - using the current Linux-oriented defaults: `Int16`, `Int32`, `Int64`, - `Int64`. -- Unsigned integer spellings map to `UInt16`, `UInt32`, `UInt64`, and - `UInt64`; fixed-width typedef spellings such as `uint32_t` map to the - matching `UInt*` fallback. -- `float` -> `Float32`; `double` -> `Float64`. -- `float _Complex` -> `Complex64`; `double _Complex` -> `Complex128`. -- Local typedef chains are resolved when their parser model definitions are - available. -- `size_t` maps to `SizeT` without a target probe; supplied - `x2py.c_type_probe` facts override standard typedefs with width-specific - `Int*`, `UInt*`, or `Float*` semantic names. -- Opaque standard-type probe facts such as `FILE` create named opaque semantic - classes when referenced by converted declarations. -- Object-like numeric macros and enum constants become `Final`-style semantic - variables through the `Constant` constraint. -- Struct definitions become `SemanticClass` entries. Incomplete structs become - opaque classes and may be used through direct `Ptr(...)` identity contracts. -- Explicit multi-header conversion resolves a struct to the header that defines - it. Other generated stubs import that owner class instead of emitting - duplicate definitions. -- Structs originating from private included headers remain usable through - generated owner-module `class Name(Opaque): pass` dependency stubs. -- Declared C arrays, including adjusted array parameters, become semantic array - storage contracts with C order for rank greater than one. -- Pointers become explicit `SemanticStorageContract` pointer/reference - metadata. `const` on the pointee makes the storage read-only, and `restrict` - is preserved as aliasing metadata. - -## Conservative Blockers - -The converter does not silently invent wrapper policy. It attaches -`readiness_blockers` metadata that the semantic readiness checker reports: - -- unresolved typedef or unknown type references; -- macro-dependent declarations in raw C input; -- variadic functions; -- function pointer/callback signatures without edited `.pyi` `Callable` - policy; -- mutable numeric or `void *` pointer parameters without ownership, - scalar-reference, or array policy; -- arrays with unknown extents; -- incomplete or external opaque structs used by value; -- unions used in semantic signatures; -- `long double`, `volatile`, `_Atomic`, bitfields, and unsupported declarator - compositions. - -The current C semantic path supports `--language c --semantics`, -`--language c --wrap-readiness`, and starter exact-contract -`--language c --pyi` output for this supported subset. Generated stubs remain -conservative: ambiguous ownership, callback, ABI-extension, and Pythonic -projection policy stays out of the generated `.pyi` until supplied by the -semantic model or an edited interface. In particular, an unresolved typedef is -not assumed to be opaque because its ABI representation is unknown. diff --git a/docs/semantics/pyi_format.md b/docs/semantics/pyi_format.md deleted file mode 100644 index 0d8f785a9..000000000 --- a/docs/semantics/pyi_format.md +++ /dev/null @@ -1,474 +0,0 @@ -# Wrapper `.pyi` Format - -The semantic `.pyi` format is a Python-valid view of x2py semantic IR. It is -language-neutral: Fortran and future C inputs use the same type, storage, -pointer, array, layout and metadata notation. Source language differences are -represented by contracts and metadata, not by separate syntax families. - -This document describes the behavior implemented for the current Fortran and C -semantic conversion paths. - -## Canonical Type And Storage Contract - -Bare scalar types represent direct semantic values: - -```python -def dot_value(a: Float64, b: Float64) -> Float64: ... -``` - -Native reference and pointer-backed storage is explicit: - -```python -def inspect(value: Ptr(Const(Int32))) -> None: ... -def update(value: Ptr(Float64)) -> None: ... -``` - -Array storage uses NumPy-style subscriptions. The dimensions inside `T[...]` -are the storage contract: - -```python -def scale(n: Ptr(Const(Int32)), x: Float64[n]) -> None: ... -def matrix(a: Annotated[Const(Float64[n, m]), ORDER_F]) -> None: ... -def assumed(x: Annotated[Float64[::Strided, ::Strided], ORDER_F]) -> None: ... -``` - -There is no separate dimension helper in canonical type syntax. A dimension -entry without colons is an extent (`Float64[n]`, `Float64[n, m]`). Slice-like -entries express range or stride contracts (`Float64[1:n]`, -`Float64[::Strided]`, `Float64[:, 0:n:m]`). `Strided` means the runtime stride -is part of the accepted storage contract. - -Generic semantic constraints are not represented as type subscriptions. -Constants use `Final[T]`; other constraints and non-dimensional array metadata -use `Annotated[T[...], Constraint, ...]`. - -`Annotated[...]` carries non-dimensional metadata: - -- `ORDER_F` for a Fortran-oriented multidimensional contract. -- `ORDER_ANY` for an orientation-independent multidimensional strided - contract chosen explicitly by an edited interface or later projection. -- `Allocatable` for a Fortran allocatable array. -- `Pointer` for a Fortran pointer array. -- `Intent("out")` when a visible exact-native argument has source intent - `out`; `intent(inout)` is the default writable reference/array spelling and - does not need metadata. - -Plain multidimensional array notation is C-oriented (`ORDER_C`) by default. -Under the current Fortran generation policy, every multidimensional Fortran -array contract emits `ORDER_F`, including stride-aware assumed-shape arrays. -Rank-one storage has no C-versus-Fortran order distinction, so no order marker -is emitted for vectors. - -`ArrayCategory(...)`, `SourceDims(...)`, `LowerBounds(...)` and `Contiguous` -are not part of newly generated canonical array annotations. They described -native declaration provenance rather than additional requirements on the -Python-visible array. The loader continues to accept existing edited stubs -that contain these metadata forms. Fortran source category, original bounds -and declaration dimensions may remain available as internal source provenance -when converting source; they are not required for the public storage contract -or for ordinary Python-to-Fortran array argument association. - -## Implemented Fortran Exact Form - -Generated Fortran `.pyi` currently represents the exact native dummy-argument -interface. It does not synthesize, reorder or hide arguments and it does not -turn `intent(out)` or `intent(inout)` dummy arguments into Python return -values. - -Fortran scalar dummy arguments are represented as follows: - -- Scalar dummy without `value`, `intent(in)`: `Ptr(Const(T))`. -- Scalar dummy without `value`, `intent(out)` or `intent(inout)`: `Ptr(T)`. -- Scalar dummy with `value`: direct `T`. -- Function result: direct return annotation. - -Example: - -```fortran -subroutine update(scale, value, result) - real(8), value, intent(in) :: scale - real(8), intent(inout) :: value - real(8), intent(out) :: result -end subroutine -``` - -```python -def update( - scale: Float64, - value: Ptr(Float64), - result: Annotated[Ptr(Float64), Intent("out")] -) -> None: ... -``` - -Fortran module variables and derived-type fields are data declarations, not -procedure dummy arguments. Scalar fields and variables therefore remain direct -types: - -```python -answer: Final[Int32] - -class particle: - id: Int32 - position: Float64[3] -``` - -## Implemented Fortran Arrays - -Explicit-shape and adjustable arrays use shaped storage. Multidimensional -Fortran-contiguous storage carries `ORDER_F`; vectors omit order metadata: - -```python -def scale(n: Ptr(Const(Int32)), x: Float64[n]) -> None: ... - -def apply( - n: Ptr(Const(Int32)), - m: Ptr(Const(Int32)), - a: Annotated[Const(Float64[n, m]), ORDER_F], -) -> None: ... -``` - -Assumed-size arrays preserve their fixed rank and any dimensions constrained by -the visible storage contract. A rank-one `x(*)` is emitted as `T[:]`; for -`x(n, *)`, the second dimension has an unconstrained runtime extent, not an -unknown rank: - -```python -def legacy(values: Float64[:]) -> None: ... - -def legacy_matrix( - n: Ptr(Const(Int32)), - a: Annotated[Float64[n, :], ORDER_F] -) -> None: ... -``` - -Assumed-shape arrays are stride-aware. A rank-one assumed-shape dummy is -emitted as a strided vector. Under the current generated-wrapper policy, a -rank-two or higher assumed-shape dummy retains Fortran orientation while -permitting strides: - -```python -def vector(x: Float64[::Strided]) -> None: ... - -def matrix( - a: Annotated[ - Const(Float64[::Strided, ::Strided]), - ORDER_F, - ] -) -> None: ... -``` - -The Fortran declaration itself may permit an actual argument with another -orientation. The generated semantic interface deliberately chooses -Fortran-oriented storage by default. An edited interface or future projection -may choose `ORDER_ANY` only with corresponding backend and validation policy. -`contiguous` assumed-shape arrays use dense dimensions instead of -`::Strided`; their multidimensional forms also carry `ORDER_F`. - -Explicit bounds are expressed through storage extents, not source-dimension -metadata. For example, `x(1:n)` has storage extent `n`; `x(0:n-1)` also has -extent `n` (the implementation currently retains the equivalent arithmetic -expression when it is not simplified). Python arrays present zero-based -storage; the compiled Fortran call associates that storage with the dummy -argument and supplies the lower and upper bounds declared by the procedure. -Those Fortran bounds affect indexing within the procedure, not what bound -metadata Python must pass. The public contract therefore needs the required -extent, layout and mutability, not `LowerBounds(...)`. - -Allocatable and pointer arrays preserve their source storage property: - -```python -class workspace: - values: Annotated[Float64[:], Allocatable] - -def section( - x: Annotated[Float64[:], Pointer] -) -> None: ... -``` - -Allocation or association replacement policy is not implemented. The semantic -IR preserves the facts needed for readiness and lowering decisions; a backend -must not silently treat replacement-capable allocatable or pointer dummies as -ordinary borrowed arrays. - -## Preserved Metadata - -The shared semantic model separates: - -- value type (`Float64`, `Int32`, derived type names); -- storage/calling contract (`value`, `reference`, `pointer`, `array`); -- public array contract (rank, required extents or admitted strides, order, - contiguity, allocatable and pointer semantics); -- source origin metadata (source language, native name, native scope, - source-level type/category information and lowering-relevant facts). - -The Fortran converter currently preserves public storage dimensions, order, -`intent`, optionality, `value`, constants, `allocatable` and `pointer` in the -visible semantic contract. It retains source declaration dimensions, bounds, -dummy category and `contiguous` provenance internally where the parser -supplies those facts for diagnostics or native-interface provenance; those -facts do not add visible array requirements. - -## Loading And Round Trips - -`parse_pyi_text`, `load_pyi_file` and `convert_pyi_to_ir` load canonical -array subscriptions and `Annotated[...]` metadata into the same public -storage contracts emitted by the Fortran semantic pipeline. Native -source-provenance details not emitted into the public type are intentionally -excluded from public contract equality. Focused round-trip tests cover: - -```text -Fortran parser model -> semantic IR -> .pyi -> semantic IR -``` - -The loader rejects removed dimension helper syntax in type annotations. Use -array subscriptions such as `Float64[n]`, `Float64[:, :]` or -`Float64[::Strided]` instead. - -## Pythonic Projection (Later) - -The implemented Fortran generator emits the exact form described above. A -later optional generation or editing mode, for example `--pythonic`, may -expose a friendlier Python API whose arguments or results differ from that -native contract. Such a projected interface must retain a mapping back to the -exact semantic/native interface; it must not discard source origin, storage, -intent, shape, ownership or lowering facts needed to issue the call. - -A projection is allowed to be more restrictive or more expressive than the -exact native interface, according to the Python API the user wants to expose. -It may add accepted-input coercions, local constraints, cross-argument checks, -result checks, mutation policy or ownership policy. It need not expose every -use that the native routine could technically accept. At the native-call -boundary, however, the mapped native values must still satisfy the -requirements encoded by the exact native contract. - -The Fortran converter does not automatically generate a projected interface. -The loader and printer retain explicit projection mappings for edited semantic -stubs, including `@native_call` entries formed from `Arg`, `Return`, `Const`, -`Len`, `IsPresent`, `Work` and `.shape[...]`, plus `Returns[...]`. The -pointer/reference adaptation examples below (`Ptr(Arg(...))` and -`Ptr(Return(...))`), `As[...]`, `.strides[...]`, coercion policy and -validation contracts describe extensions required for the fuller Pythonic -projection; they are not currently accepted or emitted by this path. - -### Native Argument Projection - -Only a projected interface uses `@native_call`. The decorator records how -visible Python arguments and projected results supply the exact native -arguments. - -For a mutable scalar reference, the implemented exact Fortran form keeps -caller-supplied storage: - -```python -# Implemented exact form. -def advance(value: Ptr(Float64)) -> None: ... -``` - -A future Pythonic form may create writable temporary storage, perform the -native call and read the updated value back as a Python result: - -```python -# Projected form, not currently implemented. -@native_call([Ptr(Arg(0))]) -def advance(value: Float64) -> Returns["value", Float64]: ... -``` - -Similarly, an `intent(out)` scalar currently remains an explicit writable -reference with its preserved source intent: - -```python -# Implemented exact form. -def get_count(result: Annotated[Ptr(Int32), Intent("out")]) -> None: ... - -# Projected form, not currently implemented. -@native_call([Ptr(Return(0))]) -def get_count() -> Int32: ... -``` - -A projection may derive hidden native metadata from a visible array. For a -future native interface with a by-value length parameter, for example: - -```python -# Exact contract for a future supported native frontend. -def sum_values(n: SizeT, values: Const(Float64[n])) -> Float64: ... - -# Projected form, not currently implemented. -@native_call([As[SizeT](Arg(0).shape[0]), Arg(0)]) -def sum_values(values: Const(Float64[:])) -> Float64: ... -``` - -`Arg(i).shape[dim]` denotes a zero-based array extent. -`Arg(i).strides[dim]` denotes a NumPy byte stride: - -```python -@native_call([Arg(0), Arg(0).shape[1], Arg(0).strides[1]]) -def process_columns(values: Const(Float64[:, ::Strided])) -> None: ... -``` - -Dimension steps such as `::m` are expressed in elements; deriving a native -element stride from a byte stride must include the item-size conversion in -the native mapping. - -### Coercions And Constraints - -A Pythonic projection may accept values that are not already in the exact -storage form, but only through explicit allowed coercions. For example, a -projected API could allow a NumPy C-order matrix to be copied into an -`ORDER_F` value required by a Fortran-oriented exact contract. It may instead -reject that input when no copying coercion is declared. - -Coercions and constraints serve different purposes: - -- A coercion states how an accepted Python object becomes the required - semantic runtime value, potentially allocating storage or changing layout. -- A constraint states what must be true of the adapted value before native - lowering, such as dtype, rank, shape, stride capability, `ORDER_F`, - mutability, device residence, alignment or ownership. - -The exact notation already records native-facing local constraints, including -`Ptr(Const(T))`, `Const(T[...])`, dimensions, `ORDER_F`, `ORDER_ANY`, -`Allocatable` and `Pointer`. A projected API may add allowed conversion -policy, for example a future `From(np.ndarray, copy=True)` spelling, but it -cannot silently weaken the exact native contract. - -The exact native contract is therefore a minimum obligation for a projection. -A projected API may require additional properties, such as finite values, -non-aliasing arguments, a square matrix or a no-copy policy. A declared -coercion may convert a projected input so that it satisfies a native -requirement, such as packing C-oriented input into `ORDER_F` storage. But the -mapped value sent to native lowering must satisfy the encoded native element -type, reference/read-write contract, rank, extent, layout, stride, -allocation/association and other calling-relevant requirements. - -This document does not currently define a hard-versus-soft classification for -exact-contract constraints. Until such a classification and override policy -exist, constraints encoded in the exact native interface are mandatory at the -native-call boundary. A later design may classify advisory requirements, such -as a preferred layout or zero-copy preference, as relaxable by an explicit -projection policy. ABI, memory-safety and semantic-correctness requirements -cannot be treated as advisory. - -In particular, conversion and copy-back policies are required before a -projection can: - -- accept C-order or non-contiguous storage for a target requiring dense - Fortran-oriented storage; -- expose mutable scalar references as ordinary scalar inputs and returns; -- return changes to output arrays through allocated temporary storage; -- expose replacement-capable `Allocatable` or `Pointer` dummies; or -- preserve ownership, lifetime and aliasing behavior through a temporary. - -### Validation Contracts - -Local constraints are not sufficient for relationships between multiple -arguments or for promises about projected results. A future projected -interface may add a validation contract, whether or not the exact native -interface already contains local constraints, for: - -- preconditions, such as matching extents or non-aliasing inputs; -- postconditions, such as the returned shape or dtype; -- invariants on projected objects after mutation; -- mutation and aliasing rules; and -- ownership and lifetime rules for borrowed, owned, viewed or temporary - storage. - -For example, this is an illustrative later projected interface, not currently -accepted projection syntax: - -```python -@contract( - pre=[ - lambda ctx: ctx.args.a.shape[0] == ctx.args.a.shape[1], - lambda ctx: ctx.args.b.shape == (ctx.args.a.shape[0],), - ], - post=[lambda ctx: ctx.result.shape == ctx.args.b.shape], - invariants=[lambda ctx: not ctx.result.aliases(ctx.args.a)], -) -def solve( - a: Annotated[Float64[:, :], ORDER_F], - b: Float64[:], -) -> Float64[:]: ... -``` - -A constraint can require that `a` is `ORDER_F`; a contract can require that -`a` is square, that `b` agrees with its extent and that the result does not -alias mutable input storage. These checks occur at distinct levels and must -remain distinct in a later semantic model. Projection-level checks supplement -the exact native contract; they do not replace its mandatory native-call -checks. - -A projected call therefore has the following conceptual sequence: - -```text -visible Python values - -> projected allowed coercions - -> projected local constraints and contract preconditions - -> exact native argument mapping - -> mandatory exact-native constraint validation - -> backend lowering - -> native call - -> contract postconditions and invariants - -> projected Python results -``` - -The projection mechanism is language-neutral. It can later adapt exact -Fortran or C contracts through the same notation and runtime concepts, but -this milestone does not implement automatic Pythonic generation, current -exact-reference adaptation, coercion/contract execution or C wrapper lowering. -The C frontend can generate starter exact-contract `.pyi` output for the -implemented semantic subset. - -## External Opaque Type Stubs - -An external source-language type whose owner module is not part of the explicit -wrapping target is emitted as an owner-module opaque dependency stub. This -applies to imported Fortran derived types and to C opaque structs from external -header surfaces: - -```python -# types_mod.pyi -class particle(Opaque): - pass -``` - -The importing module references that owner rather than re-exporting the type: - -```python -# physics.pyi -from types_mod import particle - -def move(p: Ptr(particle)) -> None: ... -``` - -`emit_module_stubs(...)` produces the complete stub mapping. `load_pyi_modules` -loads one or more files or directories and reconciles those imports back into -semantic `external_type_ref` metadata. If the user replaces the opaque owner -stub with a concrete class body, the imported semantic reference becomes -`representation="wrapped"` without changing the importing stub. - -This file-set round-trip is the editing boundary for future wrapper policy. -Existing type constraints encoded with `Annotated[...]` are preserved now. -Additional coercion and executable contract syntax remains deferred. - -For C, an unresolved typedef is not automatically opaque: its ABI could be an -integer, pointer, struct, or another representation. The C frontend emits an -opaque class when declarations establish that contract, such as a forward -struct declaration or a private included struct used through pointers. An -edited `.pyi` file may also state the policy explicitly with `class -Name(Opaque): pass`. - -## Deferred C Work - -The shared model represents the current C semantic conversion subset for -functions, variables, -fields, constants, scalar references, pointers, arrays with known contracts, -origin metadata, mutability and ownership facts. The C frontend can generate -starter exact-contract stubs from that model. Remaining C work includes: - -- C wrapper lowering; -- C ownership, callback or pointer policy inference beyond facts already - present in exact contracts. - -Future C conversion should use the same notation: by-value scalars as bare -types, unrefined pointers as `Ptr(T)` or `Ptr(Const(T))`, and array notation -only when a real array storage contract is known. diff --git a/docs/user.md b/docs/user.md new file mode 100644 index 000000000..b023581d6 --- /dev/null +++ b/docs/user.md @@ -0,0 +1,568 @@ +# User Documentation + +This page is for using x2py from the command line, from Python, or by editing +generated `.pyi` files. It avoids maintainer-only fixture and implementation +workflow details. For implementation and testing workflow, use +[developer.md](developer.md). + +## What x2py Produces + +x2py has four user-facing stages: + +- Parse source and report parser facts. +- Convert parser facts to semantic IR. +- Generate editable `.pyi` semantic interface files. +- Check whether the semantic interface has enough information for wrapping. + +The parser is intentionally wrapper-focused. It records declarations, +signatures, types, array and pointer facts, source locations, and diagnostics. +It does not infer ownership, callback lifetime, ABI shims, or Pythonic +projections unless the user supplies that policy in `.pyi`. + +## Mental Model + +Think of x2py as a staged pipeline: + +```text +native source + -> parser facts + -> semantic IR + -> editable `.pyi` + -> readiness report + -> future wrapper generation +``` + +Each stage has a different job: + +- **Parser facts** are source-faithful. They preserve declarations, + signatures, source locations, includes/imports, diagnostics, and native type + facts. +- **Semantic IR** is language-neutral. C and Fortran declarations become the + same semantic concepts: modules, functions, classes, variables, scalar + types, arrays, pointers, constants, and blockers. +- **`.pyi`** is the editable user contract. It is where users can add missing + policy that source code alone cannot prove. +- **Readiness** checks whether the semantic contract is complete enough to + wrap. It reports blockers rather than guessing. +- **Wrapper generation** is the later stage that will consume a ready semantic + contract. + +The main rule is: generated `.pyi` files describe exact native contracts unless +you explicitly edit them. x2py should not silently hide native pointer/size +arguments, infer ownership, or invent callback lifetime policy. + +## Main CLI Workflows + +Parse Fortran: + +```bash +python -m x2py path/to/file.f90 --parse +``` + +Parse C explicitly: + +```bash +python -m x2py path/to/header.h --language c --parse +``` + +Generate semantic IR: + +```bash +python -m x2py path/to/file.f90 --semantics +python -m x2py path/to/header.h --language c --semantics +``` + +Generate editable `.pyi` stubs: + +```bash +python -m x2py path/to/file.f90 --pyi +python -m x2py path/to/header.h --language c --pyi +``` + +Write output beside the source or to an explicit file: + +```bash +python -m x2py path/to/file.f90 --pyi --out +python -m x2py path/to/file.f90 --pyi --out interface.pyi +``` + +Check wrap readiness: + +```bash +python -m x2py path/to/file.f90 --wrap-readiness +python -m x2py path/to/interface.pyi --wrap-readiness +``` + +When a generated `.pyi` file needs policy that the parser cannot infer, edit +the stub and run readiness on the edited file. The edited `.pyi` is the +user-visible semantic contract. + +## End-To-End Tutorial + +This tutorial uses checked repository fixtures so the commands are easy to +reproduce from the project root. + +### 1. Parse A Fortran Source + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --parse +``` + +Expected output shape: + +```text +File: tests/data/fortran/general/basic_subroutine.f90 + Modules: 1 + - module m1 (vars=0, uses=0) + Procedures: 1 + - subroutine add1(n:integer[0], x:real(8)[1]) +``` + +The parser is reporting native source facts only: modules, variables, procedure +signatures, argument types, ranks, and source diagnostics. + +### 2. Convert To Semantic IR + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --semantics +``` + +Semantic output is the language-neutral view consumed by readiness and `.pyi` +generation. Use this when you need machine-readable contract data rather than +a human parse tree. + +### 3. Generate An Editable `.pyi` + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --pyi +``` + +Generated stubs preserve the exact native interface. For example, scalar +Fortran dummy arguments without `value` appear as `Ptr(...)`, and arrays appear +with their storage contract: + +```python +def add1( + n: Ptr(Const(Int32)), + x: Float64[n] +) -> None: ... +``` + +If the generated file is complete, you can use it as-is. If readiness reports +missing policy, edit the `.pyi` and make the contract explicit. + +### 4. Check Readiness + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --wrap-readiness +``` + +For scripting, use JSON: + +```bash +python -m x2py tests/data/fortran/general/basic_subroutine.f90 --wrap-readiness --json +``` + +Look at `wrappable`, `wrappability_blockers`, `unit_blockers`, and +`why_not_wrappable`. + +### 5. Edit `.pyi` When Source Is Not Enough + +Some native APIs need user policy. For example, a C callback API may parse +successfully, but readiness may require a `Callable[...]` contract: + +```python +from typing import Callable + +def walk_items( + items: Ptr(Any), + visit: Callable[[Ptr(Any), Ptr(Any)], None], + userdata: Ptr(Any), +) -> None: ... +``` + +After editing, run readiness on the `.pyi` file: + +```bash +python -m x2py path/to/interface.pyi --wrap-readiness +``` + +## Python API Workflows + +Parse one Fortran file: + +```python +from x2py import parse_fortran_file + +parsed = parse_fortran_file("path/to/file.f90") +print([module.name for module in parsed.modules]) +``` + +Parse one C snippet or raw C file: + +```python +from x2py import parse_c_file + +parsed = parse_c_file("int add(int a, int b);", filename="api.h") +print([function.name for function in parsed.functions]) +``` + +Parse a C project explicitly: + +```python +from x2py import parse_c_project + +project = parse_c_project(["src/api.c", "include/api.h"], include_dirs=["include"]) +print(project.include_graph) +``` + +Generate semantic IR and assess readiness: + +```python +from x2py import ( + assess_semantic_wrap_readiness, + fortran_file_to_semantic_modules, + parse_fortran_file, +) + +parsed = parse_fortran_file("path/to/file.f90") +modules = fortran_file_to_semantic_modules(parsed, standalone_module_name="file") +report = assess_semantic_wrap_readiness(modules, source="path/to/file.f90") +print(report["wrappable"]) +``` + +## `.pyi` File Format + +x2py `.pyi` files are Python-valid semantic interface files. They describe the +native interface that x2py should wrap. Generated stubs are exact native +contracts by default: they do not hide pointer arguments, reorder arguments, or +turn output arguments into Python return values unless the `.pyi` explicitly +does that. + +### Scalars + +Bare scalar types are direct values: + +```python +def dot_value(a: Float64, b: Float64) -> Float64: ... +``` + +Fortran scalar dummy arguments without `value` and C pointer-like scalar +storage are explicit pointer/reference contracts: + +```python +def inspect(value: Ptr(Const(Int32))) -> None: ... +def update(value: Ptr(Float64)) -> None: ... +``` + +`Ptr(Const(T))` means the native side receives a pointer/reference to read-only +storage. `Ptr(T)` means writable storage. + +### Arrays + +Array storage uses NumPy-style subscriptions: + +```python +def scale(n: Ptr(Const(Int32)), x: Float64[n]) -> None: ... +def dot3(a: Const(Float64[3]), b: Const(Float64[3])) -> Float64: ... +``` + +Multidimensional Fortran-oriented storage uses `Annotated[..., ORDER_F]`: + +```python +def fill_identity3( + a: Annotated[Float64[3, 3], ORDER_F, Intent("out")] +) -> None: ... +``` + +Stride-aware arrays use slice syntax: + +```python +def scale_vector(v: Float64[::Strided], alpha: Ptr(Const(Float64))) -> None: ... +def update_matrix(a: Annotated[Float64[::Strided, ::Strided], ORDER_F]) -> None: ... +``` + +Rank-one arrays do not need an order marker. Multidimensional arrays default to +C order unless `ORDER_F` or `ORDER_ANY` is written. + +### Constants And Globals + +Constants use `Final[...]`: + +```python +answer: Final[Int32] = 42 +pi: Final[Float64] +``` + +Module variables and global variables use normal annotations: + +```python +counter: Int32 +weights: Float64[16] +``` + +### Classes And Opaque Handles + +Derived types, structs, and opaque native handles are represented as classes: + +```python +class particle: + id: Int32 + mass: Float64 + position: Float64[3] +``` + +Opaque handles can be declared without exposing native layout: + +```python +class context(Opaque): + pass + +def context_destroy(ctx: Ptr(context)) -> None: ... +``` + +### Intent, Allocatable, And Pointer Metadata + +Use `Annotated[...]` for non-dimensional metadata: + +```python +def fill(x: Annotated[Float64[:], Intent("out")]) -> None: ... +value: Annotated[Float64[:], ORDER_F, Allocatable] +view: Annotated[Float64[:], ORDER_F, Pointer] +``` + +`Intent("out")` is emitted when the exact native argument is an output +argument. For `intent(inout)`, the writable type itself normally carries the +contract. + +### Callback Policy + +If the parser finds a callback shape but cannot prove its policy, edit the +stub with a `Callable[...]` signature: + +```python +from typing import Callable + +def walk_items( + items: Ptr(Any), + visit: Callable[[Ptr(Any), Ptr(Any)], None], + userdata: Ptr(Any), +) -> None: ... +``` + +The signature tells x2py the callable argument and return contract. Ownership, +lifetime, threading, and registration/unregistration policy still need to be +explicit when wrapper generation reaches those cases. + +### Pythonic Projections With `@native_call` + +The exact native form keeps every native argument visible: + +```python +def add( + a: Float64, + b: Float64, + c: Annotated[Ptr(Float64), Intent("out")] +) -> None: ... +``` + +A projected form can use `@native_call` to say how the Python signature maps to +native arguments: + +```python +@native_call([Arg(0), Arg(1), Return(0)]) +def add(a: Float64, b: Float64) -> Float64: ... +``` + +Here, native argument 0 comes from Python argument 0, native argument 1 comes +from Python argument 1, and native argument 2 is represented as Python return +value 0. Use projections only when you are intentionally changing the +Python-visible contract. Without explicit projection metadata, x2py keeps the +native contract. + +## Datatype Mapping + +These are the stable semantic names used in generated `.pyi` files and +readiness checks. + +| Semantic dtype | NumPy equivalent | Typical source spellings | +| --- | --- | --- | +| `Bool` | `numpy.bool_` | Fortran `logical`, C `_Bool` | +| `Int8` | `numpy.int8` | `integer(kind=1)`, `signed char`, `int8_t` | +| `Int16` | `numpy.int16` | `integer(kind=2)`, `short`, `int16_t` | +| `Int32` | `numpy.int32` | `integer`, `integer(c_int)`, `int`, `int32_t` | +| `Int64` | `numpy.int64` | `integer(kind=8)`, `long`, `long long`, `int64_t` | +| `UInt8` | `numpy.uint8` | `unsigned char`, `uint8_t` | +| `UInt16` | `numpy.uint16` | `unsigned short`, `uint16_t` | +| `UInt32` | `numpy.uint32` | `unsigned int`, `uint32_t` | +| `UInt64` | `numpy.uint64` | `unsigned long`, `unsigned long long`, `uint64_t` | +| `Float32` | `numpy.float32` | `real(kind=4)`, `real(c_float)`, `float` | +| `Float64` | `numpy.float64` | `real`, `real(kind=8)`, `real(c_double)`, `double` | +| `Float128` | `numpy.longdouble` | `real(kind=16)`, `long double` | +| `Complex64` | `numpy.complex64` | `complex(kind=4)`, `float _Complex` | +| `Complex128` | `numpy.complex128` | `complex`, `complex(kind=8)`, `double _Complex` | +| `Complex256` | `numpy.clongdouble` | `complex(kind=16)`, `long double _Complex` | +| `String` | `numpy.str_` or ABI byte storage | Fortran `character`, C `char *` policy | +| `SizeT` | `numpy.uintp` or probed unsigned width | C `size_t` | +| `Any` | `object` | `void *` pointees or intentionally opaque values | + +C standard-library typedefs such as `size_t`, `time_t`, and `FILE` can depend +on the target compiler and headers. Use the compiler/type probes when target +ABI precision matters. + +## Examples + +### Fortran Exact Stub + +Fortran source: + +```fortran +subroutine update(scale, value, result) + real(8), value, intent(in) :: scale + real(8), intent(inout) :: value + real(8), intent(out) :: result +end subroutine +``` + +Generated exact `.pyi` shape: + +```python +def update( + scale: Float64, + value: Ptr(Float64), + result: Annotated[Ptr(Float64), Intent("out")] +) -> None: ... +``` + +### Fortran Array Stub + +Fortran source: + +```fortran +subroutine fill_identity3(a) + real(8), intent(out) :: a(3, 3) +end subroutine +``` + +Generated `.pyi` shape: + +```python +def fill_identity3( + a: Annotated[Float64[3, 3], ORDER_F, Intent("out")] +) -> None: ... +``` + +### C Exact Stub + +C header: + +```c +int scale_values(size_t n, double values[n]); +double dot3(const double a[3], const double b[3]); +``` + +Generated `.pyi` shape for the supported exact subset: + +```python +def scale_values(n: SizeT, values: Float64[n]) -> Int32: ... +def dot3(a: Const(Float64[3]), b: Const(Float64[3])) -> Float64: ... +``` + +If x2py cannot prove the pointer/array relationship, readiness reports a +blocker instead of inventing a contract. + +### Opaque Handle Stub + +C header: + +```c +struct context; +struct context *context_create(void); +void context_destroy(struct context *ctx); +``` + +Generated `.pyi` shape: + +```python +class context(Opaque): + pass + +def context_create() -> Ptr(context): ... +def context_destroy(ctx: Ptr(context)) -> None: ... +``` + +## Readiness Reports + +Readiness answers whether the semantic interface is complete enough to wrap. +Use JSON output when scripting: + +```bash +python -m x2py path/to/interface.pyi --wrap-readiness --json +``` + +Important fields include: + +- `wrappable`: final file-level answer. +- `n_modules`, `n_functions`, `n_classes`, `n_variables`: public API counts. +- `wrappability_blockers`: all blockers. +- `unit_blockers`: blockers grouped by function/class/module/global owner. +- `why_not_wrappable`: human-oriented blocker messages. + +Common blockers: + +- unresolved semantic types; +- missing compile-time values; +- unresolved shape symbols; +- ambiguous C pointer ownership; +- unsupported variadic functions; +- incomplete callback policy; +- unsupported unions or ABI-sensitive fields. + +When a blocker is policy-related, edit the `.pyi` to provide the missing +contract and rerun readiness. + +## User Responsibilities And Limits + +x2py deliberately avoids guessing policy that can change memory safety or API +meaning. Users should expect to provide policy for: + +- **Pointer ownership:** whether `T *` is borrowed, owned, nullable, mutable, + a scalar reference, or array storage. +- **Pointer/size relationships:** which `n`, `len`, `capacity`, or shape + argument describes which pointer. +- **Output buffers:** whether an output pointer remains a native argument or + becomes a Python return value through `@native_call`. +- **Callbacks:** callable signature, lifetime, context/userdata pairing, + registration/unregistration, threading, and exception policy. +- **ABI-sensitive structs/unions/bitfields:** whether direct passing is safe, + blocked, or needs a generated shim. +- **Compiler-dependent typedefs:** target-specific widths for types such as + `size_t`, `time_t`, and library handles. +- **Macro configurations:** parse each compiler-selected configuration after + preprocessing; do not expect raw macro expansion inside the parser. + +These limits are intentional. A readiness blocker is a request for a clearer +semantic contract, not just a parser failure. + +## Verified Example Sources + +These repository files and tests are useful examples to run or inspect: + +- Fortran user flow: + `tests/data/fortran/general/basic_subroutine.f90` +- Rich generated `.pyi` snapshot: + `tests/data/fortran/general/modern_pyi_example.f90` and + `tests/semantics/test_pyi_printer_modern_example.py` +- Edited `.pyi` syntax and `@native_call` examples: + `tests/pyi/test_pyi_to_ir.py` +- C parser and semantic examples: + `tests/data/c/general/math_api.h` and `tests/semantics/test_c2ir.py` +- Readiness examples: + `tests/semantics/test_semantic_wrap_readiness.py` and + `tests/semantics/test_c_semantic_readiness.py` + +## More Detail + +Use [semantics.md](semantics.md) for the full `.pyi` and semantic reference. +Use [diagnostic_codes.md](diagnostic_codes.md) for stable diagnostic code +names. Use [developer.md](developer.md) only when changing x2py itself. diff --git a/docs/wrapper_design_notes.md b/docs/wrapper_design_notes.md new file mode 100644 index 000000000..8847b4020 --- /dev/null +++ b/docs/wrapper_design_notes.md @@ -0,0 +1,177 @@ +# Wrapper Design Notes + +This file records policy decisions that should wait until wrapper generation is +implemented. The parser and semantic layers should keep collecting source facts, +emitting blockers where policy is missing, and leaving wrapper behavior to the +wrapper phase. + +Reference details live in: + +- `docs/c_parser.md` +- `docs/fortran_parser.md` +- `docs/semantics.md` + +## Settled Scope + +The C frontend is a declaration and signature parser for wrapper-relevant +interfaces. It does not need to become a full compiler-grade C implementation. +The supported target is the API surface needed to produce or validate wrappers: +functions, variables, structs, enums, typedefs, constants, arrays, pointers, +callbacks, and the metadata needed for readiness decisions. + +Normal C parsing uses a real compiler preprocessor first. Macro expansion, +conditional compilation, token paste, stringify, and include resolution belong +to that compiler preprocessing step. The parser should consume the resulting C +translation unit and preserve provenance where useful. + +Raw macro-generated declarations are not a separate parser target. If a macro +creates a declaration, that declaration should be visible after preprocessing: + +```c +#define DECLARE_SCALE(T) void scale_##T(T *values, int n) + +DECLARE_SCALE(double); +``` + +After preprocessing, the parser should see the expanded declaration and does not +need to understand `DECLARE_SCALE` itself. + +C compiler extensions are supported when they appear in C declarations that we +need for wrappers. Unsupported or policy-sensitive extension semantics can still +be represented as diagnostics or readiness blockers. C++ is a separate frontend +problem; C-compatible declarations that survive C preprocessing remain C work. + +## Wrapper Decisions To Revisit + +### ABI Boundary + +We already collect wrapper-relevant declaration facts. The open wrapper-phase +question is how much exact ABI behavior the generated wrapper must model itself +versus delegate to a compiled shim or backend compiler. + +Example: + +```c +struct Packet { + unsigned tag : 3; + unsigned flags : 5; + double payload; +} __attribute__((packed)); + +void send_packet(struct Packet packet); +``` + +The parser can preserve struct members, bitfield facts, attributes, and the +function signature. The wrapper phase must decide whether this can be passed +directly, needs a generated C shim, or should be blocked because exact layout or +calling convention is not safe enough. + +### Pointer Ownership And Lifetime + +The wrapper must not infer ownership silently. A pointer can mean borrowed +storage, owned allocation, mutable in-place data, read-only data, optional data, +or a sentinel-terminated buffer. The user must provide the missing policy in the +wrapper contract. + +Example: + +```c +double *make_values(size_t n); +void free_values(double *values); +void scale(double *values, size_t n); +const double *borrow_values(void); +``` + +These signatures alone do not prove who owns the memory, how long it lives, or +whether Python should copy, borrow, mutate, or free it. The wrapper design +should make that explicit in `.pyi` or another policy layer. + +### Pointer, Size, And Output Projections + +Explicit projections are allowed. Automatic hidden projection is not. If a C API +uses pointer/size pairs or output buffers, the wrapper can expose a Pythonic +shape only when the user supplies the projection policy, such as through +`@native_call`. + +Example: + +```c +int read_samples(double *out, size_t capacity, size_t *written); +``` + +The exact native contract is `out`, `capacity`, and `written`. A wrapper could +project this to `list[float]` or `np.ndarray`, but only after the user says how +large the output should be, who allocates it, how errors are handled, and whether +the result is copied or shared. + +### Callback Policy + +Callback wrappers need more than the function pointer type. The wrapper must +know whether the native library stores the callback, which Python object keeps it +alive, whether callbacks may happen on native threads, how exceptions propagate, +how `void *ctx` pairs with the callback, and how registration/unregistration +works. + +Example: + +```c +typedef void (*event_callback)(int code, void *ctx); + +void register_callback(event_callback callback, void *ctx); +void unregister_callback(event_callback callback, void *ctx); +``` + +The parser can record the callback signature. The wrapper phase must decide the +lifetime, context pairing, threading, exception, and unregistration behavior +before generating a Python API. + +### Fortran Allocatable And Pointer Reassociation + +Fortran allocatable and pointer dummy arguments can replace the storage visible +to the caller. The parser and semantic IR should preserve allocatable/pointer +facts, but wrapper generation must decide Python replacement and lifetime +behavior. + +Example: + +```fortran +subroutine build_grid(x, n) + integer, intent(in) :: n + real, allocatable, intent(out) :: x(:) +end subroutine +``` + +The Fortran procedure may allocate or reallocate `x`. The wrapper phase must +decide whether Python receives a new array, whether an existing object can be +replaced, who owns the allocation, and how deallocation is handled. + +Pointer reassociation has similar policy questions: + +```fortran +subroutine attach_view(x) + real, pointer, intent(out) :: x(:) +end subroutine +``` + +The wrapper must define whether `x` becomes a borrowed view, an owned Python +object, or a blocked interface unless the user supplies more policy. + +### Fortran Assumed-Rank Wrappers + +Assumed-rank arguments preserve source facts today, but wrapper behavior should +wait for a dedicated design. The wrapper must decide how Python rank-polymorphic +inputs map to the native descriptor and what ranks, contiguity, dtype, and shape +contracts are accepted. + +Example: + +```fortran +subroutine inspect(x) + real, intent(in) :: x(..) +end subroutine +``` + +The semantic layer can record that `x` is assumed-rank. The wrapper phase must +decide whether to generate one rank-polymorphic Python entrypoint, generate rank +specializations, require explicit `.pyi` annotations, or block the interface +until the contract is refined. diff --git a/docs/x2py_checklist.md b/docs/x2py_checklist.md deleted file mode 100644 index 6df0f4b6a..000000000 --- a/docs/x2py_checklist.md +++ /dev/null @@ -1,456 +0,0 @@ -# x2py Checklist - -Status: forward backlog only. Completed historical C parser implementation -items were moved into `docs/c_parser/c_parser_reference.md`; this file now -tracks remaining parser, shared semantic IR, and `.pyi` work that still needs a -decision, implementation, tests, or release validation. C-specific tasks remain -marked as C-specific, but the semantic model and `.pyi` tasks are expected to -serve both Fortran and C. - -Language scope is stated in each section or subsection heading: - -- **C** tasks apply only to the C frontend or to C-derived semantic/stub output. -- **Fortran** tasks apply only to the Fortran frontend or to Fortran-derived - semantic/stub output. -- **Shared (Fortran and C)** tasks define common IR, `.pyi`, readiness, or - validation behavior used by both languages. -- **Cross-language** tasks compare or exercise both language paths together. - -## Step 1: C Parser Frontend Cleanup - -- [x] Keep C parsing source-faithful and parse-only. Unsupported syntax and - unresolved parser facts may produce diagnostics; wrapper readiness and - policy remain semantic-layer work. -- [x] Keep `CParser` as the current grammar-shaped visitor/helper class; no - readability-driven class split is needed for the implemented parser - surface. -- [x] Store macros on each `CFile` and index their recorded project facts in - `CProject.macros`. -- [x] Use the shared CLI spelling `--language c --parse`; do not add a separate - `--parse-c` spelling while it would only duplicate that path. -- [x] Expose `parse_c_file` and `parse_c_project` from `x2py` as well as from - `c_parser`, matching the Fortran public entrypoint style. -- [x] Preserve same-name function variants in mutually exclusive raw - preprocessor branches. `CFunction.condition_set` uses the Fortran-style - `gN:bN` branch tokens; ambiguous project names are retained in - `CProject.conditional_function_variants` instead of being collapsed into - one `CProject.functions` entry. -- [x] Keep "no functions found" out of parser diagnostics. Whether a source - has no wrappable public API is a Step 4 semantic-readiness decision. -- [x] Preserve enum initializer expression text in parser models rather than - folding it without compiler semantics. Later semantic conversion may - evaluate expressions only with an explicit safe/target-aware policy. -- [x] Preserve `CUnion` source facts in the parser; whether a union maps to - semantic IR or blocks wrapping is deferred to C semantic conversion. - -## Step 2: C Project And Include Policy - -- [x] Parse only inputs given by the user: explicit mapping entries, explicit - file paths, or supported files discovered below an explicit directory. - Quoted and system includes are recorded as dependency facts; they do not - cause recursive parsing even when a matching header is locally available. - This is the same non-recursive policy used for Fortran recorded - imports/includes. -- [x] Treat generated headers and direct `.i` inputs like other sources: parse - them only when explicitly supplied or discovered below an explicitly - supplied directory. Compiler-preprocessed streams remain supported input; - their linemarkers record origins but do not add recursively parsed files. -- [x] Key C project files and include-graph edges by input/path identity, not - module identity. An edge uses an already parsed project-file key where - one matches; otherwise it retains the resolved path or written include - target as an external dependency fact. - -## Step 3: Shared Semantic Model Foundation (Fortran And C) - -- [x] Treat the semantic model as language-neutral: Fortran and C parser output - should converge into the same IR shapes wherever the native contract is - equivalent. -- [x] Decide whether `SemanticArgument` remains the common model for variables, - function arguments, fields, and returned argument projections, or whether - `semantics/models.py` should introduce a clearer `SemanticVariable` - model and use it consistently. -- [x] Make the chosen variable model represent C function parameters, C globals, - C struct/union fields, Fortran dummy arguments, Fortran module variables, - Fortran derived-type components, and projected return values. -- [x] Keep language-specific origin facts as metadata, for example - `source_language`, `native_name`, `native_scope`, source location, parser - node kind, and backend lowering hints. -- [x] Split the semantic value type from the storage and calling contract where - needed, so `Float64`, `Ptr(Float64)`, `Const(Float64[n])`, and a Fortran - descriptor-backed array are not confused. -- [x] Define one array/storage contract that can represent known C array - contracts and Fortran array dummies using element type, rank, shape, - bounds, strides, order, contiguity, mutability, and ownership. -- [x] Decide whether that array/storage contract is represented as a dedicated - semantic model, a derived semantic type, or structured metadata on - `SemanticType`; the chosen design must be readable from both generated - and edited `.pyi` files. -- [x] For Fortran arrays, retain native declaration provenance where available: - explicit-shape, assumed-size, assumed-shape, assumed-rank, - deferred-shape, `contiguous`, `allocatable`, `pointer`, rank and source - bounds. Canonical `.pyi` exposes only storage constraints; Fortran dummy - bounds are established by native argument association, not passed as - Python array metadata. -- [ ] For C arrays, use the same array/storage contract only when a real storage - contract is known; leave unrefined pointers as pointer types instead of - inventing array shapes. -- [x] Preserve scalar by-reference contracts for both languages with the same - reference representation, including `Ptr(T)` and `Ptr(Const(T))`. -- [x] Make `intent`, mutability, ownership, aliasing, optionality, defaults, - constraints, coercions, and contracts work on the shared variable model - rather than in language-specific side channels. -- [ ] Define how future constraints and coercions attach to variables and - semantic types, including copy/pack policies, dtype coercions, order - conversions, scalar temporary creation, pointer ownership, and lifetime. -- [ ] Define semantic blockers for incomplete shared contracts, such as unknown - Fortran array rank, unknown array category, unsupported allocatable or - pointer reassociation, unresolved C pointer ownership, and unsupported - callbacks. -- [x] Keep backend lowering metadata separate from the Python-facing `.pyi` - contract; generated stubs should describe the visible semantic interface, - not compiler-private transport details. -- [ ] Add equality and round-trip tests that prove equivalent C and Fortran - variables compare by semantic contract, not by parser-specific metadata. -- [x] Add model tests for Fortran arrays represented as semantic array/storage - contracts with shape, rank, generated `ORDER_F`, `Allocatable`, and - `Pointer`; keep `ORDER_ANY` available for an explicitly edited or - projected interface. -- [ ] Add model tests for C pointer/array contracts using the same - array/storage representation when shape and storage facts are known. -- [x] Document the shared variable, array, pointer, ownership, constraint, and - coercion model before enabling new generator behavior. - -## Step 4: C Semantic Readiness - -- [ ] Define stable C readiness dictionary keys for the semantic layer. -- [ ] Include counts for functions, structs, unions, enums, typedefs, macros, - includes, and diagnostics. -- [ ] Include `unsupported_constructs`. -- [ ] Include `unresolved_includes`. -- [ ] Include `unresolved_typedefs`. -- [ ] Include `unresolved_tags`. -- [ ] Include `macro_dependent_declarations`. -- [ ] Include `preprocessing_origin`. -- [ ] Include `unsupported_extensions`. -- [ ] Include `ambiguous_pointer_ownership`. -- [ ] Include `ambiguous_array_extents`. -- [ ] Include `callback_functions`. -- [ ] Include `variadic_functions`. -- [ ] Include `incomplete_public_types`. -- [ ] Include `wrappability_blockers`. -- [ ] Include `unit_blockers`. -- [ ] Include `why_not_wrappable`. -- [ ] Include file-level `wrappable`. -- [ ] Report no functions found. -- [ ] Report unresolved includes. -- [ ] Report unresolved typedefs. -- [ ] Report unresolved struct tags. -- [ ] Report unresolved union tags. -- [ ] Report unresolved enum tags. -- [ ] Report incomplete structs used by value. -- [ ] Report incomplete unions used by value. -- [ ] Report variadic functions. -- [ ] Report K&R functions. -- [ ] Report function pointer return types. -- [ ] Report function pointer parameters. -- [ ] Report callback typedef parameters. -- [ ] Report missing callback `.pyi` policy. -- [ ] Report unsupported bitfields. -- [ ] Report pointer ownership ambiguity. -- [ ] Report non-const pointer mutability ambiguity. -- [ ] Report arrays with unknown extent relationships. -- [ ] Report opaque pointers as warnings or non-blockers if policy allows. -- [ ] Assign function blockers to function units. -- [ ] Assign struct field blockers to struct units. -- [ ] Assign union field blockers to union units. -- [ ] Assign enum value blockers to enum units. -- [ ] Assign typedef blockers to typedef units. -- [ ] Assign include, macro, and file-scope-variable blockers to file units - when no narrower owner exists. -- [ ] Use qualified names where available. -- [ ] Avoid per-unit ready flags; keep readiness file-level like Fortran. -- [ ] Add tests for every blocker family. -- [ ] Add semantic readiness formatting tests. -- [ ] Ensure C readiness output is stable in JSON and human CLI when served by - the semantic layer. -- [ ] Ensure diagnostics identify exactly which units block wrapping. -- [ ] Ensure common unsupported C constructs produce actionable messages. -- [ ] Document readiness codes and examples. -- [ ] Decide which pointer cases are blockers versus warnings. -- [ ] Decide how semantic readiness should treat opaque handles. -- [ ] Decide exact readiness code names for callback APIs that are parsed but - missing user-supplied `.pyi` policy. - -## Step 5: Language-To-Semantic IR Conversion - -### C Conversion - -- [x] Create `semantics/c2ir.py`. -- [x] Implement `CToIRConverter`. -- [x] Mirror the visitor style of `FortranToIRConverter`. -- [x] Accept C standard-type probe reports as target context for converting - standard-header aliases and opaque handles once `CToIRConverter` exists. -- [x] Add compatibility helpers such as `c_file_to_semantic_modules`. -- [x] Add `c_function_to_semantic_function`. -- [x] Add `c_struct_to_semantic_class` where appropriate. -- [x] Add `c_project_to_semantic_modules` if project context is needed. -- [x] Keep conversion separate from parser internals. -- [x] Map `void` return to `None`. -- [x] Map `_Bool` to `Bool`. -- [x] Map `char` to an explicit semantic type policy. -- [x] Map signed integer widths. -- [x] Map unsigned integer widths. -- [x] Map `float` to `Float32`. -- [x] Map `double` to `Float64`. -- [x] Map `long double` to a documented type or unsupported diagnostic. -- [x] Map pointers to constraints/metadata. -- [x] Map C arrays to the shared array/storage contract with default `ORDER_C` - when shape and storage facts are known. -- [x] Map `const` to read-only/ownership metadata. -- [x] Map `restrict` to aliasing metadata. -- [x] Map structs to semantic classes or named semantic types. -- [x] Map unions conservatively. -- [x] Map enums/constants. -- [x] Preserve unresolved semantic types as errors, not `Unknown` output. -- [x] Convert C functions to `SemanticFunction`. -- [x] Preserve native function name. -- [x] Preserve parameter order. -- [x] Mark pointer mutability. -- [ ] Represent array pointer plus size patterns only when known. -- [ ] Add projection metadata only where native and Python signatures diverge. -- [x] Treat out parameters conservatively until ownership/intent policy exists. -- [x] Reject or defer variadic functions. -- [x] Preserve callback/function-pointer facts from C parser models even if - semantic conversion defers wrapper generation. -- [x] Defer callback conversion unless `.pyi` policy supplies the required - callback facts. -- [x] Add semantic tests for scalar functions. -- [x] Add semantic tests for pointer input. -- [x] Add semantic tests for const pointer input. -- [ ] Add semantic tests for arrays with explicit size parameter. -- [x] Add semantic tests for structs and opaque handles. -- [x] Ensure C semantic conversion works for the supported parser subset. -- [x] Ensure unsupported C semantic mappings fail explicitly. -- [x] Enable `--language c --semantics` only after tests pass. -- [ ] Add a semantic fixture workflow for C if stable enough. -- [x] Document C-to-semantic-IR mapping. -- [x] Standardize unsigned integer semantic type names. -- [ ] Decide whether struct, union, and enum representation requires semantic - model extensions. - -### Fortran Conversion - -- [x] Update `FortranToIRConverter` to emit the exact native interface described - in `docs/semantics/pyi_format.md`, not the older placeholder shape - representation. -- [x] Map Fortran scalar dummy arguments by reference to shared pointer - contracts: writable storage as `Ptr(T)` and read-only storage as - `Ptr(Const(T))`. -- [x] Map Fortran `value` scalar dummy arguments and function returns to direct - semantic scalar values. -- [x] Map Fortran explicit-shape and adjustable arrays to shaped NumPy storage - contracts with `ORDER_F` where rank and orientation require it. -- [x] Map Fortran assumed-size arrays to known-rank storage contracts with an - unconstrained final runtime extent where the native declaration uses - `*`. -- [x] Map Fortran assumed-shape arrays to strided contracts with generated - `ORDER_F` orientation under the current Fortran-default layout policy; - an edited interface or later projection may explicitly select - `ORDER_ANY`. -- [ ] Map Fortran assumed-rank arrays only after the semantic model can - represent rank-polymorphic array contracts explicitly. -- [ ] Map Fortran `allocatable` and `pointer` dummy arrays to shared array - contracts with `Allocatable` or `Pointer` metadata and readiness - blockers for allocation or association changes until policy exists. - Contracts are represented in IR and `.pyi`; readiness blockers for - allocation or association changes remain open. -- [x] Convert Fortran bound declarations to required public storage extents; - retain original source bounds only as internal provenance, since the - compiled Fortran interface establishes dummy bounds on association. -- [x] Convert Fortran module variables and derived-type components through the - same variable model used for C variables and fields. -- [x] Ensure language-to-IR conversion retains enough origin metadata for - backend lowering without making `.pyi` syntax language-specific. -- [x] Add Fortran semantic IR tests for scalar references, explicit-shape - arrays, assumed-size arrays, assumed-shape arrays, allocatable arrays, - pointer arrays, derived-type components, and module variables. - -### Cross-Language And Shared Conversion Policy - -- [ ] Add cross-language IR tests that exercise equivalent C and Fortran - variables through the same semantic model and readiness path. -- [ ] Decide whether the shared semantic IR needs richer pointer/ownership - constraints. - -## Step 6: `.pyi` Generation, Loading, And Policy - -### Shared Generation Contract (Fortran And C) - -- [x] Make `.pyi` generation consume semantic IR only; language-specific - differences should already be encoded as semantic contracts and metadata. -- [x] Update the `.pyi` printer to emit the canonical target notation from - `docs/semantics/pyi_format.md`, including `T[n, m]`, `T[:, :]`, - `T[::Strided]`, `Annotated[..., ORDER_F]`, - `Annotated[..., ORDER_ANY]`, `Allocatable`, and `Pointer`. - -### Fortran Stub Generation - -- [x] Update Fortran `.pyi` generation to emit exact native interface stubs: - scalar references as `Ptr(...)`, array dummies as NumPy array - annotations, explicit `ORDER_F` only when rank and orientation require - it, and no `@native_call` for the exact interface. -- [x] Ensure Fortran `.pyi` generation preserves source facts that affect - the visible contract, including rank, storage extent expressions, - stride/layout policy, `allocatable`, `pointer`, `intent`, optionality, - and constants. Retain native dummy category and original bound facts - internally as source provenance rather than emitting - `ArrayCategory(...)` or `SourceDims(...)` in canonical stubs. -- [x] Ensure generated Fortran stubs do not generalize missing fixed-rank array - information into rank-polymorphic notation. -- [x] Add Fortran `.pyi` generation tests for exact scalar references, - explicit-shape arrays, assumed-size arrays, assumed-shape strided arrays, - contiguous arrays, allocatable arrays, pointer arrays, constants, derived - type fields, and module variables. - -### Shared Loading And Round Trips (Fortran And C) - -- [x] Extend `load_pyi_file`, `parse_pyi_text`, and `convert_pyi_to_ir` to load - the accepted `.pyi` target notation into semantic IR, not just parse a - subset for readiness. -- [x] Teach the `.pyi` loader to parse canonical `Annotated[...]` metadata into - semantic storage metadata without losing order, ownership, or - source-name information; it continues to accept legacy - `ArrayCategory(...)` and `SourceDims(...)` annotations. -- [x] Teach the `.pyi` loader to parse NumPy-style array subscriptions into the - shared array/storage contract, including symbolic dimensions, `:`, - `::Strided`, known rank, rank-polymorphic forms when supported, and - order metadata. -- [x] Teach the `.pyi` loader to parse `Ptr(...)`, `Const(...)`, `Final[...]`, - `private[...]`, `Name(...)`, `native_call(...)`, and projected returns - into the same semantic IR emitted by language converters. -- [ ] Add parser errors for `.pyi` constructs that look valid but cannot be - converted to complete semantic IR, such as unknown fixed-rank shape, - unsupported rank-polymorphic arrays, or unsafe allocatable/pointer - replacement policy. -- [x] Add round-trip tests for Fortran parser output: - parser model -> semantic IR -> `.pyi` -> semantic IR. -- [x] Add round-trip tests for edited Fortran `.pyi` files loaded directly into - semantic IR. -- [x] Add round-trip tests for C parser output: - parser model -> semantic IR -> `.pyi` -> semantic IR -> canonical `.pyi`; - C source/readiness provenance is intentionally not serialized in the - public stub contract. -- [ ] Add mixed-language semantic fixture tests where C and Fortran stubs load - through the same `.pyi` loader and readiness checker. -- [x] Keep `.pyi` syntax language-neutral; Fortran and C should differ by - semantic contract, not by separate annotation families. - -### C Stub Generation And Policy - -- [x] Enable `--language c --pyi` only after semantic conversion is stable. -- [x] Generate stubs from C semantic modules. -- [x] Emit scalar functions. -- [ ] Emit pointer constraints when the semantic model supports them. -- [x] Emit arrays with `ORDER_C`. -- [x] Emit constants as `Final[...]`. -- [x] Emit opaque handles as classes or semantic type annotations. -- [ ] Emit structs as classes only when field semantics are intended. -- [x] Avoid emitting `Unknown`. -- [ ] Emit imports/includes only if represented in semantic IR. -- [x] Add tests for scalar function stubs. -- [x] Add tests for constant stubs. -- [x] Add tests for opaque handle stubs. -- [x] Add tests for array stubs. -- [x] Confirm the existing `.pyi` parser accepts generated C stubs. -- [x] Extend the `.pyi` parser only if semantic IR requires new constructs. -- [x] Add round-trip tests for C-generated stubs. -- [ ] Add edited-stub tests for C APIs. -- [ ] Add tests that unsupported C stubs fail clearly. -- [x] Add fixture tests under `tests/pyi/fixtures/c/` if C stubs are stable. -- [ ] Represent pointer/size hidden relationships where known. -- [ ] Represent returned output buffers only with explicit projection metadata. -- [ ] Represent ownership/lifetime metadata if supported by IR. -- [ ] Define `.pyi` policy fields for callback signatures. -- [ ] Define `.pyi` policy fields for callback direction. -- [ ] Define `.pyi` policy fields for call-only versus stored callback - lifetime. -- [ ] Define `.pyi` policy fields for context/userdata pairing. -- [ ] Define `.pyi` policy fields for callback nullability. -- [ ] Define `.pyi` policy fields for non-default calling conventions. -- [ ] Define `.pyi` policy fields for threading and async invocation. -- [ ] Define `.pyi` policy fields for ownership of callback/context memory. -- [ ] Define `.pyi` policy fields for release/unregistration APIs. -- [ ] Define `.pyi` policy fields for Python exception/error handling. -- [ ] Defer callback projection until those policy fields are supplied by the - user. -- [ ] Defer arbitrary ABI details. -- [x] Ensure C `.pyi` output works for the supported semantic subset. -- [x] Ensure generated stubs parse back into semantic IR. -- [x] Keep C `.pyi` tests separate from Fortran `.pyi` tests. -- [x] Document generated C stub shape and limitations. -- [ ] Decide whether existing `.pyi` syntax is expressive enough for ownership - and callback policy. -- [ ] Decide whether opaque handles need new conventions. -- [ ] Decide whether C callbacks need dedicated `.pyi` policy syntax and later - semantic model changes. - -## Step 7: C Corpus And Stabilization - -- [ ] Use cJSON as the first pinned real-world C corpus target. -- [ ] Pin cJSON to an exact tag or commit rather than tracking the moving - upstream branch. -- [ ] Store cJSON provenance in `tests/data/c/corpus/cjson/SOURCE.md`. -- [ ] Store cJSON license text next to the vendored fixture files. -- [ ] Add `tests/data/c/corpus/cjson/cJSON.h`. -- [ ] Add `tests/data/c/corpus/cjson/cJSON.c`. -- [ ] Treat cJSON corpus tests as parse-only at first. -- [ ] Use cJSON to exercise typedef structs, recursive pointers, `const char *` - APIs, `size_t`, public declaration macros, numeric/string constants, and - callback hook members. -- [ ] Keep callback hook members modeled in `c_parser/models.py`, with semantic - readiness requiring explicit user `.pyi` callback policy metadata before - claiming they are wrappable. -- [ ] Add zlib or another macro-heavier C library only after cJSON is stable. -- [ ] Add a small real-world C header corpus. -- [ ] Add scientific C API fixtures. -- [ ] Add source/header project fixtures. -- [ ] Add macro-heavy unsupported fixtures. -- [ ] Add callback fixtures. -- [ ] Add variadic function fixtures. -- [ ] Add opaque handle fixtures. -- [ ] Add array-size pattern fixtures. -- [ ] Add typedef-chain fixtures. -- [ ] Add parse-only corpus tests. -- [ ] Add selected parser JSON goldens for representative corpus files. -- [ ] Keep corpus license provenance documented. -- [x] Run cJSON parse-only regression tests from `tests/data/c/json/`. - A separately pinned/provenanced corpus copy remains deferred. -- [ ] Audit JSON schema stability. -- [ ] Audit error diagnostic stability. -- [ ] Require green CI for Fortran and C suites. -- [ ] Consider adding a CI guard that requires C parser docs updates for C - parser changes. -- [ ] Keep fixture/golden workflows stable. -- [ ] Make corpus tests catch regressions. - -## Guardrails For C And Shared Remaining Work - -These are non-goal constraints, not parser implementation tasks: - -- Do not support full compiler-grade C parsing. -- Do not support full C preprocessor compatibility. -- Do not support arbitrary macro expansion. -- Do not parse macro-generated declarations from raw source as ordinary C - declarations. -- Do not support token-paste or stringify expansion. -- Do not support all compiler extensions. -- Do not support arbitrary GCC extensions. -- Do not support arbitrary MSVC extensions. -- Do not parse C++. -- Do not generate a full ABI model. -- Do not infer pointer ownership silently. -- Do not claim callbacks are safely wrappable before the required `.pyi` - callback policy is supplied. -- Do not couple shared semantic IR behavior to a single frontend. -- Do not modify existing C parser behavior as part of shared semantic work unless - the change is explicitly planned, tested, and documented. diff --git a/fortran_parser/__init__.py b/fortran_parser/__init__.py index 78f64682f..3ee3d60ee 100644 --- a/fortran_parser/__init__.py +++ b/fortran_parser/__init__.py @@ -1,2 +1 @@ """Internal Fortran parser implementation package.""" - diff --git a/fortran_parser/__main__.py b/fortran_parser/__main__.py index d54c64576..eb53e2f31 100644 --- a/fortran_parser/__main__.py +++ b/fortran_parser/__main__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from .cli import main raise SystemExit(main()) diff --git a/fortran_parser/cli.py b/fortran_parser/cli.py index 17d2d09d7..b7cc85441 100644 --- a/fortran_parser/cli.py +++ b/fortran_parser/cli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations import argparse @@ -36,7 +35,7 @@ def _to_dict_no_parent(obj): out = {} for f in fields(obj): value = getattr(obj, f.name) - if f.name == "parent" and not isinstance(value, (str, type(None))): + if f.name == "parent" and not isinstance(value, str | type(None)): continue out[f.name] = _to_dict_no_parent(value) return out @@ -79,7 +78,6 @@ def _parse_paths(paths: list[str]) -> dict[str, dict]: return out - def _semantic_report(paths: list[str]) -> dict[str, dict]: """Generate semantic IR and pyi text per parsed file.""" from semantics.fortran2ir import fortran_module_to_semantic_module @@ -110,6 +108,7 @@ def _format_pyi_report(semantic_report: dict[str, dict]) -> str: lines.append("") return "\n".join(lines).rstrip() + def _format_var_type(var: dict) -> str: base = var.get("base_type", "unknown") kind = var.get("kind") @@ -122,6 +121,7 @@ def _format_var_type(var: dict) -> str: base_repr = base return f"{base_repr}[{rank}]" + def _limit_items(items: list[dict], print_limit: int | None) -> tuple[list[dict], int]: if print_limit is None: return items, 0 @@ -162,7 +162,7 @@ def _format_report( visible_procedures, hidden = _limit_items(free_procedures, print_limit) for s in visible_procedures: args = ", ".join(f"{a['name']}:{_format_var_type(a)}" for a in s["arguments"]) - result_txt = f" -> {_format_var_type(s['result'])}" if s.get('result') else "" + result_txt = f" -> {_format_var_type(s['result'])}" if s.get("result") else "" lines.append(f" - {s['kind']} {s['name']}({args}){result_txt}") if hidden > 0: lines.append(f" ... {hidden} more procedures") @@ -186,7 +186,9 @@ def _format_report( lines.append(f" Derived types: {len(mod['derived_types'])}") visible_types, hidden = _limit_items(mod["derived_types"], print_limit) for t in visible_types: - lines.append(f" - type {t['name']} (fields={len(t['fields'])}, methods={len(t['methods'])})") + lines.append( + f" - type {t['name']} (fields={len(t['fields'])}, methods={len(t['methods'])})" + ) if t.get("fields"): lines.append(f" Fields: {len(t['fields'])}") visible_fields, hidden_fields = _limit_items(t["fields"], print_limit) @@ -201,7 +203,7 @@ def _format_report( visible_procedures, hidden = _limit_items(mod["procedures"], print_limit) for s in visible_procedures: args = ", ".join(f"{a['name']}:{_format_var_type(a)}" for a in s["arguments"]) - result_txt = f" -> {_format_var_type(s['result'])}" if s.get('result') else "" + result_txt = f" -> {_format_var_type(s['result'])}" if s.get("result") else "" lines.append(f" - {s['kind']} {s['name']}({args}){result_txt}") if hidden > 0: lines.append(f" ... {hidden} more procedures") @@ -212,8 +214,12 @@ def _format_report( lines.append(f" Submodules: {len(parsed['submodules'])}") visible_submodules, hidden_submodules = _limit_items(parsed["submodules"], print_limit) for submod in visible_submodules: - parent = submod["parent"] if submod.get("ancestor") is None else f"{submod['ancestor']}:{submod['parent']}" - lines.append(f" - submodule {submod['name']} (parent={parent}, vars={len(submod['variables'])}, uses={len(submod['uses'])})") + parent = ( + submod["parent"] if submod.get("ancestor") is None else f"{submod['ancestor']}:{submod['parent']}" + ) + lines.append( + f" - submodule {submod['name']} (parent={parent}, vars={len(submod['variables'])}, uses={len(submod['uses'])})" + ) if show_vars: lines.extend(_format_variable_lines(submod["variables"], indent=" ", print_limit=print_limit)) if submod.get("procedures"): @@ -221,7 +227,7 @@ def _format_report( visible_procedures, hidden = _limit_items(submod["procedures"], print_limit) for proc in visible_procedures: args = ", ".join(f"{a['name']}:{_format_var_type(a)}" for a in proc["arguments"]) - result_txt = f" -> {_format_var_type(proc['result'])}" if proc.get('result') else "" + result_txt = f" -> {_format_var_type(proc['result'])}" if proc.get("result") else "" lines.append(f" - {proc['kind']} {proc['name']}({args}){result_txt}") if hidden > 0: lines.append(f" ... {hidden} more procedures") @@ -264,8 +270,12 @@ def main() -> int: parser = argparse.ArgumentParser(description="Parse Fortran files and print a human-readable report or JSON.") parser.add_argument("paths", nargs="+", help="Fortran file(s) or directory path(s)") parser.add_argument("--json", action="store_true", help="Print JSON to stdout") - parser.add_argument("--semantics", action="store_true", help="Generate semantic IR models from parsed Fortran modules") - parser.add_argument("--pyi", action="store_true", help="Print the generated Python .pyi content from semantic models") + parser.add_argument( + "--semantics", action="store_true", help="Generate semantic IR models from parsed Fortran modules" + ) + parser.add_argument( + "--pyi", action="store_true", help="Print the generated Python .pyi content from semantic models" + ) parser.add_argument( "--show-vars", action="store_true", @@ -309,7 +319,9 @@ def main() -> int: except FortranParseError as exc: if args.debug or _env_flag("FORTRAN_PARSER_DEBUG"): raise - print(exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr) + print( + exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr + ) return 1 payload = report diff --git a/fortran_parser/lexer.py b/fortran_parser/lexer.py index 837b5359d..0eee502ac 100644 --- a/fortran_parser/lexer.py +++ b/fortran_parser/lexer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations from .utils import detect_source_form @@ -59,7 +58,10 @@ def preprocess_lines(code: str, filename: str | None = None) -> list[tuple[str, """ form = detect_source_form(code, filename) raw_lines = code.splitlines() - raw = [(strip_comment(l.rstrip("\n"), form), i + 1, l.rstrip("\n")) for i, l in enumerate(raw_lines)] + raw = [ + (strip_comment(raw_line.rstrip("\n"), form), i + 1, raw_line.rstrip("\n")) + for i, raw_line in enumerate(raw_lines) + ] folded: list[tuple[str, int, str]] = [] pending = "" diff --git a/fortran_parser/models.py b/fortran_parser/models.py index 7219f87c6..5fb738281 100644 --- a/fortran_parser/models.py +++ b/fortran_parser/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations import inspect @@ -6,7 +5,7 @@ import re import sys from dataclasses import dataclass, field -from typing import Optional +from typing import Any _ANSI = { @@ -73,10 +72,7 @@ def _parse_fortran_expression(text: str | None) -> Any: if match: return FortranFunctionCall( name=match.group("name"), - arguments=[ - _parse_fortran_expression(arg) - for arg in _split_top_level_csv(match.group("args")) - ], + arguments=[_parse_fortran_expression(arg) for arg in _split_top_level_csv(match.group("args"))], raw=token, ) @@ -255,7 +251,7 @@ def value_expression(self) -> Any: @dataclass class FortranArgument(FortranVariable): - procedure: Optional[str] = None + procedure: str | None = None intent: str = "unknown" optional: bool = False pass_by_value: bool = False @@ -274,7 +270,7 @@ def contiguous(self, value: bool) -> None: @dataclass(eq=False) class FortranUseMapping: source: str - target: Optional[str] = None + target: str | None = None def __eq__(self, other: object) -> bool: if isinstance(other, str): @@ -292,9 +288,9 @@ def local_name(self) -> str: class FortranProcedureSignature: name: str kind: str - module: Optional[str] = None + module: str | None = None arguments: list[FortranArgument] = field(default_factory=list) - result: Optional[FortranArgument] = None + result: FortranArgument | None = None attributes: list[str] = field(default_factory=list) uses: dict[str, list[FortranUseMapping]] = field(default_factory=dict) in_interface: bool = False @@ -304,10 +300,10 @@ class FortranProcedureSignature: @dataclass class FortranDerivedType: name: str - module: Optional[str] = None + module: str | None = None fields: list[FortranArgument] = field(default_factory=list) methods: list[str] = field(default_factory=list) - extends: Optional["FortranDerivedType | str"] = None + extends: FortranDerivedType | str | None = None attributes: list[str] = field(default_factory=list) procedure_bindings: list[dict] = field(default_factory=list) generic_bindings: list[dict] = field(default_factory=list) @@ -316,14 +312,14 @@ class FortranDerivedType: @dataclass class FortranInterface: name: str | None = None - module: Optional[str] = None + module: str | None = None procedures: list[FortranProcedureSignature] = field(default_factory=list) @dataclass class FortranModule: name: str - filename: Optional[str] = None + filename: str | None = None uses: dict[str, list[FortranUseMapping]] = field(default_factory=dict) variables: list[FortranVariable] = field(default_factory=list) procedures: list[FortranProcedureSignature] = field(default_factory=list) @@ -338,8 +334,8 @@ class FortranModule: class FortranSubmodule: name: str parent: str - ancestor: Optional[str] = None - filename: Optional[str] = None + ancestor: str | None = None + filename: str | None = None uses: dict[str, list[FortranUseMapping]] = field(default_factory=dict) variables: list[FortranVariable] = field(default_factory=list) procedures: list[FortranProcedureSignature] = field(default_factory=list) @@ -349,8 +345,8 @@ class FortranSubmodule: @dataclass class FortranProgram: - name: Optional[str] = None - filename: Optional[str] = None + name: str | None = None + filename: str | None = None uses: dict[str, list[FortranUseMapping]] = field(default_factory=dict) variables: list[FortranVariable] = field(default_factory=list) procedures: list[FortranProcedureSignature] = field(default_factory=list) @@ -358,20 +354,20 @@ class FortranProgram: @dataclass class FortranBlockData: - name: Optional[str] = None - filename: Optional[str] = None + name: str | None = None + filename: str | None = None variables: list[FortranVariable] = field(default_factory=list) + @dataclass class FortranFile: - # -------------------------------------------------------- # File metadata # -------------------------------------------------------- - filename: Optional[str] = None + filename: str | None = None - source: Optional[str] = None + source: str | None = None encoding: str = "utf-8" @@ -419,9 +415,9 @@ class FortranFile: symbols: dict[str, object] = field(default_factory=dict) + @dataclass class FortranProject: - # -------------------------------------------------------- # Physical files # -------------------------------------------------------- diff --git a/fortran_parser/parser.py b/fortran_parser/parser.py index 821e22a31..c4ccf9c8d 100644 --- a/fortran_parser/parser.py +++ b/fortran_parser/parser.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Wrapper-oriented Fortran parser with recursive grammar-unit visitors. Read the module-level wrappers at the bottom first, then `FortranParser` @@ -6,18 +5,33 @@ finally low-level lexical/static utilities. The detailed maintainer guide below documents the same file order with a control-flow example. """ + from __future__ import annotations import re import ast -from copy import deepcopy -from pathlib import Path +from copy import deepcopy +from pathlib import Path from dataclasses import dataclass, replace -from .lexer import preprocess_lines -from .models import FortranArgument, FortranBlockData, FortranDerivedType, FortranFile, FortranInterface, FortranModule, FortranParseError, FortranProcedureSignature, FortranProgram, FortranProject, FortranSubmodule, FortranUseMapping, FortranVariable +from .lexer import preprocess_lines +from .models import ( + FortranArgument, + FortranBlockData, + FortranDerivedType, + FortranFile, + FortranInterface, + FortranModule, + FortranParseError, + FortranProcedureSignature, + FortranProgram, + FortranProject, + FortranSubmodule, + FortranUseMapping, + FortranVariable, +) from .type_resolver import extract_kind_from_type_spec -from .utils import split_csv +from .utils import split_csv _PARSER_ARCHITECTURE_GUIDE = """ Parser architecture quick guide @@ -81,9 +95,13 @@ """ _REGEX: dict[str, re.Pattern[str]] = { - "type": re.compile(r"^(integer|real|complex|logical|character|double\s+precision)\s*(\([^)]*\))?\s*(.*)$", re.IGNORECASE), + "type": re.compile( + r"^(integer|real|complex|logical|character|double\s+precision)\s*(\([^)]*\))?\s*(.*)$", re.IGNORECASE + ), "char_star": re.compile(r"^character\s*\*\s*(?P\([^)]*\)|\*|[A-Za-z_]\w*|\d+)\s*(?P.*)$", re.IGNORECASE), - "procedure": re.compile(r"^(?P(?:\w+\s+)*)subroutine\s+(?P\w+)(?:\s*\((?P[^)]*)\))?\s*(?P.*)$", re.IGNORECASE), + "procedure": re.compile( + r"^(?P(?:\w+\s+)*)subroutine\s+(?P\w+)(?:\s*\((?P[^)]*)\))?\s*(?P.*)$", re.IGNORECASE + ), "function": re.compile( r"^(?P.*?)\b" r"function\s+(?P\w+)(?:\s*\((?P[^)]*)\))?\s*(?P.*)$", @@ -127,6 +145,10 @@ "unsupported_procedure_pointer", "unsupported_c_ptr", ) +_FORTRAN_LINEMARKER_RE = re.compile( + r'^\s*#\s*(?:line\s+)?\d+(?:\s+(?:"(?:[^"\\]|\\.)*"|\S+))?(?:\s+\d+)*\s*$', + re.IGNORECASE, +) _PreprocessedLines = list[tuple[str, int | None, str | None]] @@ -140,7 +162,6 @@ class _SourceUnit: lines: _PreprocessedLines start_line: int | None end_line: int | None - condition_set: frozenset[str] = frozenset() @dataclass @@ -148,7 +169,7 @@ class _ParserScope: kind: str name: str | None model: object | None = None - parent: "_ParserScope | None" = None + parent: _ParserScope | None = None module_owner: str | None = None state: dict | None = None @@ -175,6 +196,7 @@ class _UnitParts: # Compile-time expression and symbol resolution # ----------------------------------------------------------------------------- + class _CompileTimeResolver: """Resolve compile-time expressions against one immutable symbol snapshot.""" @@ -269,8 +291,8 @@ class FortranParser: dummy arguments. - Derived-type scopes parse fields in the specification region and type-bound procedure/generic bindings in the `contains` region. - - Same-level unit names are validated by the slicer with preprocessor - branch-awareness, while identical names in different scopes remain valid. + - Same-level unit names are validated by the slicer, while identical names + in different scopes remain valid. `visit_project` composes multiple `FortranFile` objects into one `FortranProject` registry and validates duplicate symbols by scope. @@ -337,13 +359,11 @@ def visit_file( interfaces = [iface for iface in all_interfaces if iface.module is None] for module in modules: module.interfaces = [ - iface for iface in all_interfaces - if iface.module and iface.module.lower() == module.name.lower() + iface for iface in all_interfaces if iface.module and iface.module.lower() == module.name.lower() ] for submodule in submodules: submodule.interfaces = [ - iface for iface in all_interfaces - if iface.module and iface.module.lower() == submodule.name.lower() + iface for iface in all_interfaces if iface.module and iface.module.lower() == submodule.name.lower() ] variable_units = [*modules, *submodules, *programs, *block_data_units] @@ -395,8 +415,8 @@ def visit_project( """Parse many sources and merge them into one dependency-aware project model.""" if isinstance(files, dict): parsed_files = [self.visit_file(code, filename=fname, encoding=encoding) for fname, code in files.items()] - elif isinstance(files, (str, Path)): - namespace = self._helper_collect_namespace(files) + elif isinstance(files, str | Path): + namespace = self._helper_collect_namespace(files, encoding=encoding) parsed_files = [self.visit_file(path, encoding=encoding) for path in namespace["files"]] else: parsed_files = [self.visit_file(path, encoding=encoding) for path in files] @@ -432,48 +452,70 @@ def visit_project( project.dependencies[module_key] = {name.lower() for name in module.uses} for proc in module.procedures: proc_key = f"{module_key}.{proc.name.lower()}" - self._insert_unique_scope_symbol(project.procedures, proc_key, proc, label="project procedure scope") + self._insert_unique_scope_symbol( + project.procedures, proc_key, proc, label="project procedure scope" + ) project.procedures.setdefault(proc.name.lower(), proc) for dtype in module.derived_types: dtype_key = f"{module_key}.{dtype.name.lower()}" - self._insert_unique_scope_symbol(project.derived_types, dtype_key, dtype, label="project derived-type scope") + self._insert_unique_scope_symbol( + project.derived_types, dtype_key, dtype, label="project derived-type scope" + ) project.derived_types.setdefault(dtype.name.lower(), dtype) for iface in module.interfaces: if iface.name: iface_key = f"{module_key}.{iface.name.lower()}" - self._insert_unique_scope_symbol(project.interfaces, iface_key, iface, label="project interface scope") + self._insert_unique_scope_symbol( + project.interfaces, iface_key, iface, label="project interface scope" + ) project.interfaces.setdefault(iface.name.lower(), iface) for submodule in f.submodules: submodule_key = submodule.name.lower() - self._insert_unique_scope_symbol(project.submodules, submodule_key, submodule, label="project submodule scope") + self._insert_unique_scope_symbol( + project.submodules, submodule_key, submodule, label="project submodule scope" + ) deps = {submodule.parent.lower(), *(name.lower() for name in submodule.uses)} if submodule.ancestor: deps.add(submodule.ancestor.lower()) project.dependencies[submodule_key] = deps for proc in submodule.procedures: proc_key = f"{submodule_key}.{proc.name.lower()}" - self._insert_unique_scope_symbol(project.procedures, proc_key, proc, label="project procedure scope") + self._insert_unique_scope_symbol( + project.procedures, proc_key, proc, label="project procedure scope" + ) project.procedures.setdefault(proc.name.lower(), proc) for dtype in submodule.derived_types: dtype_key = f"{submodule_key}.{dtype.name.lower()}" - self._insert_unique_scope_symbol(project.derived_types, dtype_key, dtype, label="project derived-type scope") + self._insert_unique_scope_symbol( + project.derived_types, dtype_key, dtype, label="project derived-type scope" + ) project.derived_types.setdefault(dtype.name.lower(), dtype) for iface in submodule.interfaces: if iface.name: iface_key = f"{submodule_key}.{iface.name.lower()}" - self._insert_unique_scope_symbol(project.interfaces, iface_key, iface, label="project interface scope") + self._insert_unique_scope_symbol( + project.interfaces, iface_key, iface, label="project interface scope" + ) project.interfaces.setdefault(iface.name.lower(), iface) for program in f.programs: if program.name: - self._insert_unique_scope_symbol(project.programs, program.name.lower(), program, label="project program scope") + self._insert_unique_scope_symbol( + project.programs, program.name.lower(), program, label="project program scope" + ) project.dependencies[program.name.lower()] = {name.lower() for name in program.uses} for proc in f.procedures: - self._insert_unique_scope_symbol(project.procedures, proc.name.lower(), proc, label="project procedure scope") + self._insert_unique_scope_symbol( + project.procedures, proc.name.lower(), proc, label="project procedure scope" + ) for dtype in f.derived_types: - self._insert_unique_scope_symbol(project.derived_types, dtype.name.lower(), dtype, label="project derived-type scope") + self._insert_unique_scope_symbol( + project.derived_types, dtype.name.lower(), dtype, label="project derived-type scope" + ) for iface in f.interfaces: if iface.name: - self._insert_unique_scope_symbol(project.interfaces, iface.name.lower(), iface, label="project interface scope") + self._insert_unique_scope_symbol( + project.interfaces, iface.name.lower(), iface, label="project interface scope" + ) return project def visit_fortran_module(self, code: _SourceOrLines, filename: str | None = None) -> FortranModule: @@ -594,7 +636,13 @@ def visit_module_unit( header = unit.lines[0] module = self._parse_module_header(header[0].strip(), filename, lineno=header[1], source_line=header[2]) if module is None: # pragma: no cover - slicer only dispatches module units with module headers. - raise FortranParseError("Expected module unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected module unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) scope = self._helper_scope_for_model("module", module, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("module"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) @@ -623,9 +671,17 @@ def visit_module_unit( parent_scope=scope, filename=filename, ) - module.procedures.extend(sig for sig in signatures if sig.module and sig.module.lower() == module.name.lower() and not sig.in_interface) - module.derived_types.extend(dtype for dtype in types if dtype.module and dtype.module.lower() == module.name.lower()) - module.interfaces.extend(iface for iface in interfaces if iface.module and iface.module.lower() == module.name.lower()) + module.procedures.extend( + sig + for sig in signatures + if sig.module and sig.module.lower() == module.name.lower() and not sig.in_interface + ) + module.derived_types.extend( + dtype for dtype in types if dtype.module and dtype.module.lower() == module.name.lower() + ) + module.interfaces.extend( + iface for iface in interfaces if iface.module and iface.module.lower() == module.name.lower() + ) self._validate_module_variables(module, filename) self._apply_module_visibility(module, filename) return module @@ -641,7 +697,13 @@ def visit_submodule_unit( header = unit.lines[0] submodule = self._parse_submodule_header(header[0].strip(), filename) if submodule is None: # pragma: no cover - slicer only dispatches submodule units with submodule headers. - raise FortranParseError("Expected submodule unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected submodule unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) scope = self._helper_scope_for_model("submodule", submodule, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("submodule"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) @@ -670,9 +732,17 @@ def visit_submodule_unit( parent_scope=scope, filename=filename, ) - submodule.procedures.extend(sig for sig in signatures if sig.module and sig.module.lower() == submodule.name.lower() and not sig.in_interface) - submodule.derived_types.extend(dtype for dtype in types if dtype.module and dtype.module.lower() == submodule.name.lower()) - submodule.interfaces.extend(iface for iface in interfaces if iface.module and iface.module.lower() == submodule.name.lower()) + submodule.procedures.extend( + sig + for sig in signatures + if sig.module and sig.module.lower() == submodule.name.lower() and not sig.in_interface + ) + submodule.derived_types.extend( + dtype for dtype in types if dtype.module and dtype.module.lower() == submodule.name.lower() + ) + submodule.interfaces.extend( + iface for iface in interfaces if iface.module and iface.module.lower() == submodule.name.lower() + ) self._validate_module_variables(submodule, filename) return submodule @@ -687,7 +757,13 @@ def visit_program_unit( header = unit.lines[0] program = self._parse_program_header(header[0].strip(), filename) if program is None: # pragma: no cover - slicer only dispatches program units with program headers. - raise FortranParseError("Expected program unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected program unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) scope = self._helper_scope_for_model("program", program, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("program"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) @@ -720,7 +796,13 @@ def visit_block_data_source_unit( header = unit.lines[0] block_data = self._parse_block_data_header(header[0].strip(), filename) if block_data is None: # pragma: no cover - slicer only dispatches block-data units with block-data headers. - raise FortranParseError("Expected block data unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected block data unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) scope = self._helper_scope_for_model("block_data", block_data, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("block_data"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) @@ -745,7 +827,13 @@ def visit_derived_type_unit( header = unit.lines[0] dtype = self._init_derived_type(header[0].strip(), current_module=parent_scope.module_owner) if dtype is None: # pragma: no cover - slicer only dispatches derived-type units with type headers. - raise FortranParseError("Expected derived-type unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected derived-type unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) scope = self._helper_scope_for_model("derived_type", dtype, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("derived_type"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) @@ -776,7 +864,13 @@ def visit_interface_unit( header = unit.lines[0] starts_interface, interface_name = self._parse_interface_header(header[0].strip()) if not starts_interface: # pragma: no cover - slicer only dispatches interface units with interface headers. - raise FortranParseError("Expected interface unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected interface unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) interface = FortranInterface(name=interface_name, module=parent_scope.module_owner) scope = self._helper_scope_for_model("interface", interface, parent=parent_scope) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("interface"), filename=filename) @@ -826,12 +920,20 @@ def visit_procedure_unit( lineno=header[1], source_line=header[2], ) - raise FortranParseError("Expected procedure unit.", filename=filename, line_number=header[1], source_line=header[2], code="PARSE_EXPECTED_UNIT") + raise FortranParseError( + "Expected procedure unit.", + filename=filename, + line_number=header[1], + source_line=header[2], + code="PARSE_EXPECTED_UNIT", + ) proc_state["filename"] = filename proc_state["header_lineno"] = header[1] proc_state["header_source_line"] = header[2] proc_state["uses"].update(getattr(parent_scope.model, "uses", {})) - scope = self._helper_scope_for_model("procedure", proc_state["signature"], parent=parent_scope, state=proc_state) + scope = self._helper_scope_for_model( + "procedure", proc_state["signature"], parent=parent_scope, state=proc_state + ) parts = self._helper_split_unit_parts(unit, self._helper_unit_grammar("procedure"), filename=filename) self._helper_visit_spec_part(scope, parts.specification, filename=filename) child_units = self._helper_nonexecution_child_units(unit, parent_scope=scope, filename=filename) @@ -854,13 +956,43 @@ def visit_procedure_unit( def _preprocessed_lines(self, source: _SourceOrLines, filename: str | None) -> _PreprocessedLines: """Return preprocessed source lines, reusing file-level preprocessing when supplied.""" if isinstance(source, list): - return source - return preprocess_lines(source, filename) + lines = source + else: + for lineno, source_line in enumerate(source.splitlines(), start=1): + self._raise_for_raw_cpp_directive(source_line, filename, lineno, source_line) + source_without_linemarkers = "".join( + re.sub(r"[^\r\n]", "", line) if _FORTRAN_LINEMARKER_RE.match(line.strip()) else line + for line in source.splitlines(keepends=True) + ) + lines = preprocess_lines(source_without_linemarkers, filename) + for line, lineno, source_line in lines: + self._raise_for_raw_cpp_directive(line, filename, lineno, source_line) + return lines + + @staticmethod + def _raise_for_raw_cpp_directive( + line: str, + filename: str | None, + lineno: int, + source_line: str, + ) -> None: + """Reject raw CPP directives while accepting compiler linemarkers.""" + stripped = line.strip() + if stripped.startswith("#") and not _FORTRAN_LINEMARKER_RE.match(stripped): + raise FortranParseError( + "Fortran CPP directives require compiler preprocessing before parsing.", + filename=filename, + line_number=lineno, + source_line=source_line, + code="PARSE_PREPROCESSING_REQUIRED", + ) def _helper_collect_namespace( self, root: str | Path, extensions: tuple[str, ...] = (".f", ".for", ".ftn", ".f77", ".f90", ".f95", ".f03", ".f08"), + *, + encoding: str = "utf-8", ) -> dict: """Collect parseable source files and dependency-order them. @@ -876,7 +1008,7 @@ def _helper_collect_namespace( """ root_path = Path(root) files = sorted([p for p in root_path.rglob("*") if p.suffix.lower() in extensions]) - sources = {str(p): p.read_text(encoding="utf-8") for p in files} + sources = {str(p): p.read_text(encoding=encoding) for p in files} file_lines = {fname: preprocess_lines(code, fname) for fname, code in sources.items()} module_to_file: dict[str, str] = {} @@ -921,7 +1053,7 @@ def _helper_collect_namespace( programs = [] block_data = [] for f in ordered_files: - parsed_file = self.visit_file(sources[f], filename=f) + parsed_file = self.visit_file(sources[f], filename=f, encoding=encoding) types.extend(parsed_file.derived_types) types.extend(dtype for module in parsed_file.modules for dtype in module.derived_types) types.extend(dtype for submodule in parsed_file.submodules for dtype in submodule.derived_types) @@ -1055,78 +1187,6 @@ def collect(scope: _ParserScope, child_units: list[_SourceUnit]) -> None: collect(root_scope, self._helper_slice_child_units(lines, parent_scope=root_scope, filename=filename)) return types - def _handle_procedure_preprocessor_line( - self, - line: str, - *, - macro_selection_enabled: bool, - macro_names: set[str], - pp_condition_stack: list[tuple[int, int]], - pp_active_stack: list[bool], - pp_group_counter: int, - ) -> tuple[bool, int]: - """Update conditional-compilation state while collecting source units. - - The slicer calls this while scanning sibling units so duplicate checks - can distinguish mutually exclusive preprocessor branches. When macro - selection is enabled, the same state also decides which lines remain - active before parsing. - - Example: - Seeing ``#ifdef USE_MPI`` pushes a new condition branch; a later - ``#else`` advances that branch id. Two procedures with the same - name under those two branches are allowed because their condition - sets do not overlap. - """ - if not line.startswith("#"): - return False, pp_group_counter - - directive = line[1:].strip() - directive_low = directive.lower() - if directive_low.startswith("ifdef "): - pp_group_counter += 1 - pp_condition_stack.append((pp_group_counter, 0)) - pp_active_stack.append(True) - return True, pp_group_counter - if directive_low.startswith("ifndef "): - pp_group_counter += 1 - pp_condition_stack.append((pp_group_counter, 0)) - pp_active_stack.append(True) - return True, pp_group_counter - if directive_low.startswith("if "): - pp_group_counter += 1 - pp_condition_stack.append((pp_group_counter, 0)) - pp_active_stack.append(True) - return True, pp_group_counter - if directive_low.startswith("else"): - if pp_condition_stack: - group_id, branch_id = pp_condition_stack.pop() - pp_condition_stack.append((group_id, branch_id + 1)) - if pp_active_stack: - pp_active_stack.pop() - pp_active_stack.append(True) - return True, pp_group_counter - if directive_low.startswith("elif "): - if pp_condition_stack: - group_id, branch_id = pp_condition_stack.pop() - pp_condition_stack.append((group_id, branch_id + 1)) - if pp_active_stack: - pp_active_stack.pop() - pp_active_stack.append(True) - return True, pp_group_counter - if directive_low.startswith("endif"): - if pp_condition_stack: - pp_condition_stack.pop() - if pp_active_stack: - pp_active_stack.pop() - return True, pp_group_counter - return False, pp_group_counter - - @staticmethod - def _procedure_preprocessor_condition_set(pp_condition_stack: list[tuple[int, int]]) -> frozenset[str]: - """Serialize the active raw CPP branch stack for sibling comparison.""" - return frozenset(f"g{group_id}:b{branch_id}" for group_id, branch_id in pp_condition_stack) - def _helper_validate_possible_unit_header( self, line: str, @@ -1142,19 +1202,19 @@ def _helper_validate_possible_unit_header( return if re.match(r"^module\s+procedure\s*::", stripped, flags=re.IGNORECASE): return - if not ( - stripped.lower().startswith("module procedure") - or self._looks_like_procedure_header(stripped) - ): + if not (stripped.lower().startswith("module procedure") or self._looks_like_procedure_header(stripped)): return - if self._parse_procedure_header( - stripped, - None, - False, - filename=filename, - lineno=lineno, - source_line=source_line, - ) is None: + if ( + self._parse_procedure_header( + stripped, + None, + False, + filename=filename, + lineno=lineno, + source_line=source_line, + ) + is None + ): self._raise_if_unparsed_procedure_header( stripped, in_interface=False, @@ -1171,26 +1231,12 @@ def _helper_validate_file_scope_unparsed_lines(self, lines: _PreprocessedLines, rejected via the generic invalid-syntax diagnostic path. """ index = 0 - pp_condition_stack: list[tuple[int, int]] = [] - pp_active_stack: list[bool] = [] - pp_group_counter = 0 while index < len(lines): line, lineno, source_line = lines[index] stripped = line.strip() if not stripped: index += 1 continue - handled_pp, pp_group_counter = self._handle_procedure_preprocessor_line( - stripped, - macro_selection_enabled=False, - macro_names=set(), - pp_condition_stack=pp_condition_stack, - pp_active_stack=pp_active_stack, - pp_group_counter=pp_group_counter, - ) - if handled_pp: - index += 1 - continue self._helper_validate_possible_unit_header( stripped, @@ -1274,22 +1320,11 @@ def _helper_slice_child_units( """ units: list[_SourceUnit] = [] index = 0 - pp_condition_stack: list[tuple[int, int]] = [] - pp_active_stack: list[bool] = [] - pp_group_counter = 0 region = "specification" while index < len(lines): line, lineno, _ = lines[index] stripped = line.strip() - handled_pp, pp_group_counter = self._handle_procedure_preprocessor_line( - stripped, - macro_selection_enabled=False, - macro_names=set(), - pp_condition_stack=pp_condition_stack, - pp_active_stack=pp_active_stack, - pp_group_counter=pp_group_counter, - ) - if handled_pp: + if stripped.startswith("#"): index += 1 continue if skip_execution_region: @@ -1344,7 +1379,6 @@ def _helper_slice_child_units( lines=lines[index : end_index + 1], start_line=lineno, end_line=end_line, - condition_set=self._procedure_preprocessor_condition_set(pp_condition_stack), ) ) index = end_index + 1 @@ -1418,7 +1452,11 @@ def _helper_find_unit_end( stack[-1] = (current_kind, current_name, current_line, current_source, "contains") idx += 1 continue - if current_region == "specification" and grammar.has_execution_part and self._is_executable_statement_start(line): + if ( + current_region == "specification" + and grammar.has_execution_part + and self._is_executable_statement_start(line) + ): stack[-1] = (current_kind, current_name, current_line, current_source, "execution") idx += 1 continue @@ -1433,7 +1471,7 @@ def _helper_find_unit_end( idx += 1 continue - for open_kind, open_name, open_line, open_source, _open_region in reversed(stack): + for open_kind, _open_name, _open_line, _open_source, _open_region in reversed(stack): closes_open, end_name = self._helper_parse_unit_end(open_kind, line) if not closes_open: continue @@ -1613,11 +1651,7 @@ def _helper_nonexecution_child_units( if not grammar.has_execution_part: return child_units parts = self._helper_split_unit_parts(unit, grammar, filename=filename) - return [ - child - for child in child_units - if self._helper_child_unit_region(unit, parts, child) != "execution" - ] + return [child for child in child_units if self._helper_child_unit_region(unit, parts, child) != "execution"] def _helper_direct_contains_line( self, @@ -1690,10 +1724,7 @@ def _helper_validate_child_unit_regions( continue self._raise_invalid_fortran_syntax_line( child.lines[0][0] if child.lines else child.kind, - context=( - f"{self._helper_unit_label(unit.kind)} '{unit.name or ''}' " - f"{region} part" - ), + context=(f"{self._helper_unit_label(unit.kind)} '{unit.name or ''}' {region} part"), filename=filename, lineno=child.start_line, source_line=child.lines[0][2] if child.lines else None, @@ -1748,9 +1779,15 @@ def _helper_validate_interface_lines( stripped = line.strip() if not stripped or stripped.startswith("#"): continue - if re.match(r"^module\s+procedure\s*(?:::)?\s*[A-Za-z_]\w*(?:\s*,\s*[A-Za-z_]\w*)*\s*$", stripped, re.IGNORECASE): + if re.match( + r"^module\s+procedure\s*(?:::)?\s*[A-Za-z_]\w*(?:\s*,\s*[A-Za-z_]\w*)*\s*$", stripped, re.IGNORECASE + ): continue - if re.match(r"^procedure(?:\s*\([^)]*\))?(?:\s*,\s*[^:]*)?\s*::\s*[A-Za-z_]\w*(?:\s*,\s*[A-Za-z_]\w*)*\s*$", stripped, re.IGNORECASE): + if re.match( + r"^procedure(?:\s*\([^)]*\))?(?:\s*,\s*[^:]*)?\s*::\s*[A-Za-z_]\w*(?:\s*,\s*[A-Za-z_]\w*)*\s*$", + stripped, + re.IGNORECASE, + ): continue self._helper_validate_possible_unit_header( stripped, @@ -1775,8 +1812,7 @@ def _helper_validate_enum_unit(self, unit: _SourceUnit, *, filename: str | None) continue match = re.match(r"^enumerator\s*(?:::)?\s*(?P.+)$", stripped, re.IGNORECASE) if match and all( - re.match(r"^[A-Za-z_]\w*(?:\s*=\s*.+)?$", item.strip()) - for item in split_csv(match.group("items")) + re.match(r"^[A-Za-z_]\w*(?:\s*=\s*.+)?$", item.strip()) for item in split_csv(match.group("items")) ): continue self._raise_invalid_fortran_syntax_line( @@ -1786,7 +1822,9 @@ def _helper_validate_enum_unit(self, unit: _SourceUnit, *, filename: str | None) lineno=lineno, source_line=source_line, ) - child_units = self._helper_slice_child_units(unit.lines[1:-1], parent_scope=_ParserScope(kind="enum", name=unit.name), filename=filename) + child_units = self._helper_slice_child_units( + unit.lines[1:-1], parent_scope=_ParserScope(kind="enum", name=unit.name), filename=filename + ) self._helper_validate_child_unit_regions(unit, parts, child_units, filename=filename) def _helper_validate_ignored_child_units( @@ -1800,15 +1838,18 @@ def _helper_validate_ignored_child_units( ) -> None: """Check or skip nested units that are intentionally omitted from metadata.""" for child in child_units: - if unit is not None and parts is not None: - if self._helper_child_unit_region(unit, parts, child) == "execution": - continue + if ( + unit is not None + and parts is not None + and self._helper_child_unit_region(unit, parts, child) == "execution" + ): + continue if child.kind == "procedure": # The slicer has already checked the nested unit boundary and # the caller has checked its grammar region. Internal procedure # declarations and bodies do not affect wrapper metadata. continue - elif child.kind == "interface": + if child.kind == "interface": self.visit_interface_unit(child, parent_scope=parent_scope, filename=filename) elif child.kind == "derived_type": self.visit_derived_type_unit(child, parent_scope=parent_scope, filename=filename) @@ -1826,14 +1867,12 @@ def _helper_validate_sibling_units( The check is scope-local: two modules may each define ``type state``, but two direct children with the same relevant kind/name in one scope - are rejected unless they are guarded by mutually exclusive preprocessor - branches. + are rejected. Example: Two ``module mesh`` units at file scope raise a duplicate-module error. Two ``subroutine step`` children in one module raise a - duplicate-procedure error when their preprocessor conditions can - both be active. + duplicate-procedure error. """ seen: dict[tuple[str, str], list[_SourceUnit]] = {} for unit in units: @@ -1845,9 +1884,7 @@ def _helper_validate_sibling_units( key = (unit.kind, unit.name.lower()) else: continue - for existing in seen.get(key, []): - if not self._preprocessor_conditions_overlap(existing.condition_set, unit.condition_set): - continue + for _existing in seen.get(key, []): if unit.kind == "procedure": scope_label = ( f"module '{parent_scope.name}'" @@ -2062,7 +2099,9 @@ def _parse_module_header( """Parse a module header or reject a malformed module-like line.""" module_match = _REGEX["module"].match(line) if not module_match: - if line.lower().startswith("module ") and not re.match(r"^module\s+(procedure|subroutine|function)\b", line, re.IGNORECASE): + if line.lower().startswith("module ") and not re.match( + r"^module\s+(procedure|subroutine|function)\b", line, re.IGNORECASE + ): raise FortranParseError( f"Unsupported or malformed module header: {line.strip()}", filename=filename, @@ -2643,7 +2682,14 @@ def _helper_visit_module_like_spec_line( code="PARSE_UNSUPPORTED_DECLARATION", ) - def _helper_visit_procedure_spec_line(self, line: str, proc_state: dict, filename: str | None = None, lineno: int | None = None, source_line: str | None = None) -> None: + def _helper_visit_procedure_spec_line( + self, + line: str, + proc_state: dict, + filename: str | None = None, + lineno: int | None = None, + source_line: str | None = None, + ) -> None: """Parse one declaration/specification line inside a procedure scope. The method mutates `proc_state` in-place by: @@ -2718,7 +2764,14 @@ def _helper_visit_procedure_spec_line(self, line: str, proc_state: dict, filenam ) return - def _helper_visit_type_spec_line(self, line: str, scope: _ParserScope, filename: str | None, lineno: int | None = None, source_line: str | None = None) -> None: + def _helper_visit_type_spec_line( + self, + line: str, + scope: _ParserScope, + filename: str | None, + lineno: int | None = None, + source_line: str | None = None, + ) -> None: """Visit one derived-type specification-part line. Derived types share the common declaration parser for fields, but keep @@ -2959,14 +3012,20 @@ def _parse_declaration_left( base, type_spec, tail = intrinsic if base == "double precision": base = "real" - return self._new_decl_meta(base, extract_kind_from_type_spec(base, type_spec)), split_csv(tail.strip().lstrip(", ")) + return self._new_decl_meta(base, extract_kind_from_type_spec(base, type_spec)), split_csv( + tail.strip().lstrip(", ") + ) if derived or class_derived: decl = derived or class_derived - return self._new_decl_meta("derived", decl.group("dtype")), split_csv((decl.group("attrs") or "").strip().lstrip(", ")) + return self._new_decl_meta("derived", decl.group("dtype")), split_csv( + (decl.group("attrs") or "").strip().lstrip(", ") + ) if re.match(r"^procedure\s*\(", left, re.IGNORECASE): procm = _REGEX["procedure_dummy"].match(left) iface = procm.group("iface").lower() if procm else None - return self._new_decl_meta("procedure", iface), split_csv((procm.group("attrs") if procm else "").strip().lstrip(", ")) + return self._new_decl_meta("procedure", iface), split_csv( + (procm.group("attrs") if procm else "").strip().lstrip(", ") + ) return None def _legacy_declaration_entities(self, left: str, meta: dict) -> str | None: @@ -3155,8 +3214,8 @@ def _var(entry: str): # Keep only the declared entity name/shape; drop initializer text. e = e.split("=", 1)[0].strip() if "(" in e and e.endswith(")"): - name = e[:e.find("(")].strip() - return name, split_csv(e[e.find("(")+1:-1]) + name = e[: e.find("(")].strip() + return name, split_csv(e[e.find("(") + 1 : -1]) return e, [] @staticmethod @@ -3185,9 +3244,9 @@ def _split_dim_bounds(dim: str) -> tuple[str | None, str | None]: part = dim.strip() if not part: # pragma: no cover - empty dimensions are invalid Fortran and not emitted by split_csv. return None, None - if ':' not in part: + if ":" not in part: return "1", part - lo, hi = part.split(':', 1) + lo, hi = part.split(":", 1) lo = lo.strip() or None hi = hi.strip() or None return lo, hi @@ -3346,10 +3405,33 @@ def _looks_like_unknown_proc_declaration(line: str) -> bool: m_first = re.match(r"^([A-Za-z_][A-Za-z0-9_]*)", line.strip()) first_word = m_first.group(1).lower() if m_first else "" non_decl_starts = { - "do", "if", "where", "call", "select", "case", "allocate", "deallocate", - "print", "write", "read", "return", "stop", "cycle", "exit", "continue", - "end", "else", "elseif", "contains", "goto", "go", "data", "format", - "use", "save", "common", + "do", + "if", + "where", + "call", + "select", + "case", + "allocate", + "deallocate", + "print", + "write", + "read", + "return", + "stop", + "cycle", + "exit", + "continue", + "end", + "else", + "elseif", + "contains", + "goto", + "go", + "data", + "format", + "use", + "save", + "common", } if "=" in line and "::" not in line: return False @@ -3431,7 +3513,9 @@ def _finalize_proc(self, state: dict) -> FortranProcedureSignature: # arguments to be reported via readiness diagnostics. declared_symbols = state.get("typed_symbols", set()) for arg in sig.arguments: - if arg.name.lower() in declared_symbols and arg.base_type == "unknown": # pragma: no cover - defensive parser invariant. + if ( + arg.name.lower() in declared_symbols and arg.base_type == "unknown" + ): # pragma: no cover - defensive parser invariant. raise FortranParseError( f"Failed to resolve declared argument '{arg.name}' in procedure '{sig.name}'.", filename=filename, @@ -3485,7 +3569,9 @@ def _finalize_proc(self, state: dict) -> FortranProcedureSignature: if sig.kind == "function" and sig.result and sig.result.base_type == "unknown": if not implicit_none: sig.result.base_type = self._infer_implicit_base_type(sig.result.name) - if sig.result.base_type == "unknown": # pragma: no cover - implicit-none result validation handles public cases first. + if ( + sig.result.base_type == "unknown" + ): # pragma: no cover - implicit-none result validation handles public cases first. raise FortranParseError( f"Unknown datatype for function result '{sig.result.name}' in procedure '{sig.name}'.", filename=filename, @@ -3501,7 +3587,9 @@ def _finalize_proc(self, state: dict) -> FortranProcedureSignature: return replace(sig) @staticmethod - def _validate_all_args_declared(sig: FortranProcedureSignature, filename: str | None, *, explicit_result: bool) -> None: + def _validate_all_args_declared( + sig: FortranProcedureSignature, filename: str | None, *, explicit_result: bool + ) -> None: """Require explicit argument/result types when `implicit none` is active.""" for arg in sig.arguments: if arg.base_type == "unknown": @@ -3555,7 +3643,9 @@ def _validate_variable_declarations( display_name = owner_name or "" for var in variables: key = var.name.lower() - if not re.match(r"^[a-z_]\w*$", key, re.IGNORECASE): # pragma: no cover - parser normalizes valid Fortran identifiers. + if not re.match( + r"^[a-z_]\w*$", key, re.IGNORECASE + ): # pragma: no cover - parser normalizes valid Fortran identifiers. continue prev = seen.get(key) if prev is not None: @@ -3662,26 +3752,26 @@ def _collect_module_parameters(self, code: _SourceOrLines, filename: str | None) current_module = None in_module_spec_part = False output: dict[str, dict[str, str]] = {} - for line, lineno, source_line in lines: + for line, _lineno, _source_line in lines: s = line.strip() if not s: continue - l = s.lower() - if l.startswith("module ") and not re.match(r"^module\s+(procedure|subroutine|function)\b", l): + lowered = s.lower() + if lowered.startswith("module ") and not re.match(r"^module\s+(procedure|subroutine|function)\b", lowered): current_module = s.split()[1].lower() in_module_spec_part = True output.setdefault(current_module, {}) continue - if l.startswith("contains") and current_module is not None: + if lowered.startswith("contains") and current_module is not None: in_module_spec_part = False continue - if l.startswith("end module"): + if lowered.startswith("end module"): current_module = None in_module_spec_part = False continue if current_module is None or not in_module_spec_part: continue - if l == "contains": + if lowered == "contains": in_module_spec_part = False continue if not in_module_spec_part: @@ -3702,10 +3792,7 @@ def _resolve_module_parameter_values(module_params: dict[str, dict[str, str]]) - resolved: dict[str, dict[str, str]] = {} for module_name, params in module_params.items(): resolver = _CompileTimeResolver(params) - resolved[module_name.lower()] = { - name.lower(): resolver.resolve(value) - for name, value in params.items() - } + resolved[module_name.lower()] = {name.lower(): resolver.resolve(value) for name, value in params.items()} return resolved @staticmethod @@ -3739,10 +3826,11 @@ def _resolve_signature_kinds( symbol_to_value.setdefault(name.lower(), var.symbolic_value) variable_base_types = {name.lower(): var.base_type for name, var in sig.variables.items()} variable_symbolic_values = { - name.lower(): var.symbolic_value or var.value - for name, var in sig.variables.items() + name.lower(): var.symbolic_value or var.value for name, var in sig.variables.items() } - resolved_variables = FortranParser._resolve_variables(symbol_to_value, variable_base_types, variable_symbolic_values) + resolved_variables = FortranParser._resolve_variables( + symbol_to_value, variable_base_types, variable_symbolic_values + ) for name in list(sig.variables): if name.lower() in resolved_variables: sig.variables[name] = resolved_variables[name.lower()] @@ -3753,7 +3841,9 @@ def _resolve_signature_kinds( if resolve_shapes and arg.shape: arg.shape = [resolver.resolve(dim) for dim in arg.shape] if sig.result and sig.result.kind: - sig.result.kind = FortranParser._resolve_kind_expression(sig.result.kind, symbol_to_value, resolver=resolver) + sig.result.kind = FortranParser._resolve_kind_expression( + sig.result.kind, symbol_to_value, resolver=resolver + ) @staticmethod def _resolve_module_variable_kinds( @@ -3945,12 +4035,17 @@ def _eval(n): """Evaluate one allowed AST node, returning None when unsupported.""" if isinstance(n, ast.Expression): return _eval(n.body) - if isinstance(n, ast.Constant) and isinstance(n.value, (int, float, str, bool)): + if isinstance(n, ast.Constant) and isinstance(n.value, int | float | str | bool): return n.value if isinstance(n, ast.BinOp) and isinstance(n.op, allowed_binops): left = _eval(n.left) right = _eval(n.right) - if left is None or right is None or not isinstance(left, (int, float)) or not isinstance(right, (int, float)): + if ( + left is None + or right is None + or not isinstance(left, int | float) + or not isinstance(right, int | float) + ): return None if isinstance(n.op, ast.Add): return left + right @@ -3965,10 +4060,10 @@ def _eval(n): if isinstance(n.op, ast.Mod): return left % right if isinstance(n.op, ast.Pow): - return left ** right + return left**right if isinstance(n, ast.UnaryOp) and isinstance(n.op, allowed_unary): v = _eval(n.operand) - if v is None or not isinstance(v, (int, float)): + if v is None or not isinstance(v, int | float): return None return +v if isinstance(n.op, ast.UAdd) else -v if isinstance(n, ast.Call) and isinstance(n.func, ast.Name): @@ -3977,15 +4072,15 @@ def _eval(n): if any(arg is None for arg in args): return None try: - if name == "abs" and len(args) == 1 and isinstance(args[0], (int, float)): + if name == "abs" and len(args) == 1 and isinstance(args[0], int | float): return abs(args[0]) - if name == "max" and args and all(isinstance(arg, (int, float)) for arg in args): + if name == "max" and args and all(isinstance(arg, int | float) for arg in args): return max(args) - if name == "min" and args and all(isinstance(arg, (int, float)) for arg in args): + if name == "min" and args and all(isinstance(arg, int | float) for arg in args): return min(args) - if name == "mod" and len(args) == 2 and all(isinstance(arg, (int, float)) for arg in args): + if name == "mod" and len(args) == 2 and all(isinstance(arg, int | float) for arg in args): return args[0] % args[1] - if name == "int" and args and isinstance(args[0], (int, float)): + if name == "int" and args and isinstance(args[0], int | float): return int(args[0]) if name == "len" and len(args) == 1 and isinstance(args[0], str): return len(args[0]) @@ -4007,7 +4102,7 @@ def _eval(n): left = _eval(n.left) if left is None: return None - for op, comparator in zip(n.ops, n.comparators): + for op, comparator in zip(n.ops, n.comparators, strict=False): right = _eval(comparator) if right is None: return None @@ -4047,7 +4142,7 @@ def _eval(n): @staticmethod def _topological_files(file_deps: dict[str, set[str]]) -> list[str]: """Return dependency-first file order while tolerating dependency cycles.""" - in_degree = {f: 0 for f in file_deps} + in_degree = dict.fromkeys(file_deps, 0) for f, deps in file_deps.items(): for d in deps: if d in in_degree: @@ -4190,23 +4285,10 @@ def _parse_type_prefix(prefix: str) -> tuple[str, str | None] | None: return "derived", class_derived.group("dtype") return None # pragma: no cover - unsupported prefixes are rejected by public grammar. - @staticmethod - def _preprocessor_conditions_overlap(c1: frozenset[str], c2: frozenset[str]) -> bool: - """Return True when two preprocessor condition sets may both be active.""" - if not c1 or not c2: - return True - values: dict[str, str] = {} - for token in c1 | c2: - group, _, branch = token.partition(":") - if group in values and values[group] != branch: - return False - values[group] = branch - return True - @staticmethod def _looks_like_existing_source_path(source: str | Path) -> bool: """Return True when ``source`` names a readable source file path.""" - if not isinstance(source, (str, Path)): + if not isinstance(source, str | Path): return False text = str(source) if "\n" in text or "\r" in text: @@ -4274,9 +4356,29 @@ def _looks_like_declaration_or_spec(line: str) -> bool: first_match = re.match(r"([a-z_][a-z0-9_]*)", lowered) first = first_match.group(1) if first_match else lowered.split(None, 1)[0].rstrip(",") non_decl_starts = { - "do", "if", "where", "call", "select", "case", "allocate", "deallocate", - "print", "write", "read", "return", "stop", "cycle", "exit", "continue", - "end", "else", "elseif", "contains", "goto", "go", "format", + "do", + "if", + "where", + "call", + "select", + "case", + "allocate", + "deallocate", + "print", + "write", + "read", + "return", + "stop", + "cycle", + "exit", + "continue", + "end", + "else", + "elseif", + "contains", + "goto", + "go", + "format", } if first in non_decl_starts: return False @@ -4353,9 +4455,8 @@ def _is_executable_statement_start(line: str) -> bool: lowered = stripped.lower() if FortranParser._is_openmp_directive(stripped): return not FortranParser._is_openmp_declarative_directive(stripped) - if ( - FortranParser._parse_use_statement(stripped) is not None - or FortranParser._is_ignored_spec_statement(stripped) + if FortranParser._parse_use_statement(stripped) is not None or FortranParser._is_ignored_spec_statement( + stripped ): return False first_match = re.match(r"([a-z_][a-z0-9_]*)", lowered) @@ -4363,10 +4464,37 @@ def _is_executable_statement_start(line: str) -> bool: if first.isdigit(): return False executable_starts = { - "do", "if", "where", "call", "select", "case", "allocate", "deallocate", - "print", "write", "read", "return", "stop", "cycle", "exit", "continue", - "goto", "go", "open", "close", "rewind", "backspace", "inquire", "flush", - "wait", "nullify", "associate", "block", "forall", "error", "pause", + "do", + "if", + "where", + "call", + "select", + "case", + "allocate", + "deallocate", + "print", + "write", + "read", + "return", + "stop", + "cycle", + "exit", + "continue", + "goto", + "go", + "open", + "close", + "rewind", + "backspace", + "inquire", + "flush", + "wait", + "nullify", + "associate", + "block", + "forall", + "error", + "pause", } if first in executable_starts: return True @@ -4379,17 +4507,16 @@ def _is_executable_statement_start(line: str) -> bool: # type specs with named arguments, e.g.: # integer ( kind = 4 ) i # character ( len = * ) s - if ( + # Covers assignment and statement functions in execution part. + return not ( _REGEX["char_star"].match(stripped) or _REGEX["type"].match(stripped) or _REGEX["type_field"].match(stripped) or _REGEX["class_field"].match(stripped) - ): - return False - # Covers assignment and statement functions in execution part. - return True + ) return False + # ----------------------------------------------------------------------------- # Module-level convenience wrappers # ----------------------------------------------------------------------------- @@ -4398,6 +4525,7 @@ def _is_executable_statement_start(line: str) -> bool: # Module-level parser entrypoints are intentionally limited. + def parse_fortran_file( source_or_path: str | Path, filename: str | None = None, diff --git a/fortran_parser/type_resolver.py b/fortran_parser/type_resolver.py index 244109367..897648384 100644 --- a/fortran_parser/type_resolver.py +++ b/fortran_parser/type_resolver.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations from .utils import split_csv diff --git a/fortran_parser/utils.py b/fortran_parser/utils.py index cb3998fef..016ab91a1 100644 --- a/fortran_parser/utils.py +++ b/fortran_parser/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations diff --git a/pyproject.toml b/pyproject.toml index a4a53903e..76f77b886 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,19 @@ dependencies = [ "colorama>=0.4.6; platform_system == 'Windows'", ] +[project.optional-dependencies] +qa = [ + "bandit[toml]>=1.8", + "coverage[toml]>=7.10", + "hypothesis>=6.100", + "pip-audit>=2.7", + "pytest>=8.0", + "pytest-randomly>=3.15", + "radon[toml]>=6.0", + "ruff>=0.11", + "vulture>=2.14", +] + [tool.setuptools.packages.find] where = ["."] include = ["c_parser*", "fortran_parser*", "semantics*", "x2py*",] @@ -19,12 +32,89 @@ include = ["c_parser*", "fortran_parser*", "semantics*", "x2py*",] [project.scripts] x2py = "x2py.cli:main" +[tool.pytest.ini_options] +minversion = "7.0" +testpaths = ["tests"] +python_files = ["test_*.py"] +addopts = "-ra --strict-config --strict-markers" +markers = [ + "benchmark: parked performance tests; enable when benchmark adoption resumes", + "fuzz: randomized parser robustness tests", + "property: Hypothesis property-based tests", + "regression: tests that pin previously fixed bugs", + "slow: tests that are useful but too expensive for the default inner loop", +] +xfail_strict = true + [tool.coverage.run] source = ["c_parser", "fortran_parser", "semantics", "x2py"] branch = true parallel = true +relative_files = true [tool.coverage.report] show_missing = true skip_covered = false fail_under = 95 +precision = 2 + +[tool.ruff] +target-version = "py310" +line-length = 120 +force-exclude = true +extend-exclude = [ + "tests/data", + "tests/pyi/fixtures", + "x2py.egg-info", +] + +[tool.ruff.lint] +select = [ + "E4", # import and syntax-related pycodestyle errors + "E7", # statement structure errors + "E9", # runtime syntax/name errors + "F", # Pyflakes: undefined names, unused imports, dead assignments + "B", # flake8-bugbear suspicious patterns + "C4", # comprehension mistakes + "UP", # safe Python-version modernizations + "SIM", # simplifiable code + "RET", # return-flow mistakes + "RUF", # Ruff-specific bug and maintenance rules + "C90", # McCabe complexity +] +fixable = ["ALL"] +unfixable = [] + +[tool.ruff.lint.isort] +known-first-party = ["c_parser", "fortran_parser", "semantics", "x2py"] + +[tool.ruff.lint.mccabe] +max-complexity = 45 + +[tool.ruff.format] +quote-style = "double" +indent-style = "space" +line-ending = "lf" + +[tool.bandit] +exclude_dirs = ["tests", "docs", "x2py.egg-info"] + +[tool.vulture] +paths = ["c_parser", "fortran_parser", "semantics", "x2py", "tests"] +exclude = ["tests/data/", "tests/pyi/fixtures/", "x2py.egg-info/"] +min_confidence = 80 +sort_by_size = true +ignore_names = [ + "pytest_*", + "test_*", +] + +[tool.radon] +exclude = "tests/*,docs/*" +ignore = "__pycache__,.git,.pytest_cache,.ruff_cache" +cc_min = "C" +cc_max = "F" +show_complexity = true +average = true +total_average = true +mi_min = "B" diff --git a/semantics/__init__.py b/semantics/__init__.py index 59357c79c..06f652ae7 100644 --- a/semantics/__init__.py +++ b/semantics/__init__.py @@ -34,10 +34,10 @@ "c_type_to_semantic_type", "collect_semantic_compile_time_requirements", "convert_pyi_to_ir", + "emit_module_stubs", "fortran_file_to_semantic_modules", "fortran_module_to_semantic_module", "fortran_project_to_semantic_modules", - "emit_module_stubs", "load_pyi_file", "load_pyi_modules", "opaque_dependency_modules", diff --git a/semantics/c2ir.py b/semantics/c2ir.py index 4821925ca..943b0440f 100644 --- a/semantics/c2ir.py +++ b/semantics/c2ir.py @@ -67,9 +67,7 @@ _IDENTIFIER_RE = re.compile(r"[^0-9A-Za-z_]+") _C_IDENTIFIER_TOKEN_RE = re.compile(r"\b[A-Za-z_][A-Za-z0-9_]*\b") -_C_INTEGER_LITERAL_SUFFIX_RE = re.compile( - r"(?&|^~()\s]+") _INTEGER_LITERAL_RE = re.compile(r"[-+]?(?:0[xX][0-9A-Fa-f]+|\d+)(?:[uUlL]*)\Z") _FLOAT_LITERAL_RE = re.compile( @@ -110,8 +108,10 @@ "UInt64", "Float32", "Float64", + "Float128", "Complex64", "Complex128", + "Complex256", "Any", "SizeT", } @@ -133,8 +133,10 @@ CUnsignedLongLong: "UInt64", CFloat: "Float32", CDouble: "Float64", + CLongDouble: "Float128", CFloatComplex: "Complex64", CDoubleComplex: "Complex128", + CLongDoubleComplex: "Complex256", } _STANDARD_TYPE_FALLBACKS = { @@ -226,27 +228,15 @@ def visit_project_module( self.enums = dict(project.enums) self.opaque_standard_types = set() try: - semantic_functions = [ - self.visit_function(function) - for function in project.functions.values() - ] + semantic_functions = [self.visit_function(function) for function in project.functions.values()] semantic_variables = [ *self._enum_constants(list(project.enums.values())), *self._macro_constants_from_macros(list(project.macros.values())), - *[ - self.visit_variable(variable) - for variable in project.variables.values() - ], + *[self.visit_variable(variable) for variable in project.variables.values()], ] semantic_classes = [ - *[ - self.visit_struct(struct) - for struct in project.structs.values() - ], - *[ - self.visit_union(union) - for union in project.unions.values() - ], + *[self.visit_struct(struct) for struct in project.structs.values()], + *[self.visit_union(union) for union in project.unions.values()], *self._opaque_standard_type_classes(), ] return SemanticModule( @@ -306,7 +296,6 @@ def visit_file( source_kind="translation_unit", metadata={ "preprocessing": c_file.preprocessing, - "parser_status": c_file.parser_status, }, ), ) @@ -360,7 +349,7 @@ def visit_function(self, function: CFunction) -> SemanticFunction: python_position=index, intent=argument.intent, ) - for index, (parameter, argument) in enumerate(zip(function.parameters, arguments)) + for index, (parameter, argument) in enumerate(zip(function.parameters, arguments, strict=False)) ], metadata=metadata, visibility="private" if "static" in function.storage else "public", @@ -499,13 +488,6 @@ def visit_type(self, type_: CType, *, owner: str | None = None) -> SemanticType: return self._callback_placeholder(type_) if isinstance(type_, CUnknownType): return self._unresolved_type(type_.spelling, owner=owner, source_type=self._type_text(type_)) - if isinstance(type_, (CLongDouble, CLongDoubleComplex)): - return self._unsupported_type( - "c_long_double_unsupported", - "C long double types are not mapped until target precision policy is explicit.", - owner=owner, - source_type=self._type_text(type_), - ) if isinstance(type_, CVoid): return SemanticType( name="Any", @@ -523,14 +505,17 @@ def visit_type(self, type_: CType, *, owner: str | None = None) -> SemanticType: source_type=self._type_text(type_), ) - metadata = self._type_metadata(type_) + origin = self._type_origin(type_) + metadata = {} + if "readiness_blockers" in origin.metadata: + metadata["readiness_blockers"] = list(origin.metadata["readiness_blockers"]) if isinstance(type_, CChar): metadata["c_char_policy"] = "implementation-defined signed 8-bit code unit" return SemanticType( name=semantic_name, dtype=semantic_name, metadata=metadata, - origin=self._type_origin(type_), + origin=origin, ) def _return_type(self, type_: CType, *, owner: str) -> SemanticType | None: @@ -682,8 +667,7 @@ def _pointer_type( pointer_depth = len(pointer_components) read_only = self._has_qualifier(pointee_type, CConst) pointer_qualifiers = [ - [qualifier.spelling for qualifier in pointer.qualifiers] - for pointer in pointer_components + [qualifier.spelling for qualifier in pointer.qualifiers] for pointer in pointer_components ] restrict = any(self._has_qualifier(pointer, CRestrict) for pointer in pointer_components) pointee.storage = SemanticStorageContract( @@ -849,10 +833,7 @@ def _integer_macro_expression(value: str, macro_types: dict[str, str]) -> bool: return False return all( isinstance(node, _INTEGER_EXPRESSION_AST_NODES) - and not ( - isinstance(node, ast.Constant) - and not isinstance(node.value, int) - ) + and not (isinstance(node, ast.Constant) and not isinstance(node.value, int)) for node in ast.walk(expression) ) @@ -958,11 +939,7 @@ def _externalize_private_classes(self, module: SemanticModule) -> None: wrapped=False, ) self._add_external_opaque_by_value_blocker(semantic_type) - module.classes = [ - cls - for cls in module.classes - if cls.name not in external_classes - ] + module.classes = [cls for cls in module.classes if cls.name not in external_classes] def _classify_project_external_types( self, @@ -970,9 +947,7 @@ def _classify_project_external_types( project: CProject, ) -> None: modules_by_filename = { - module.origin.native_name: module - for module in modules - if module.origin.native_name is not None + module.origin.native_name: module for module in modules if module.origin.native_name is not None } owners: dict[str, tuple[str, bool]] = {} for struct in project.structs.values(): @@ -985,9 +960,7 @@ def _classify_project_external_types( for module in modules: external_names = { - name - for name, (origin_module, _wrapped) in owners.items() - if origin_module != module.name + name for name, (origin_module, _wrapped) in owners.items() if origin_module != module.name } if not external_names: continue @@ -1000,11 +973,7 @@ def _classify_project_external_types( origin_module=owner[0], wrapped=owner[1], ) - module.classes = [ - cls - for cls in module.classes - if cls.name not in external_names - ] + module.classes = [cls for cls in module.classes if cls.name not in external_names] @staticmethod def _set_external_type_ref( @@ -1161,18 +1130,14 @@ def _standard_type_facts(report: Any | None) -> dict[str, dict[str, Any]]: if report is None: return {} if hasattr(report, "types"): - types = getattr(report, "types") + types = report.types elif isinstance(report, dict) and isinstance(report.get("types"), dict): types = report["types"] elif isinstance(report, dict): types = report else: return {} - return { - str(name): dict(fact) - for name, fact in types.items() - if isinstance(fact, dict) - } + return {str(name): dict(fact) for name, fact in types.items() if isinstance(fact, dict)} def _unresolved_type( self, @@ -1187,9 +1152,7 @@ def _unresolved_type( name=name, dtype=name, metadata={ - "readiness_blockers": [ - self._blocker(code, message, {"owner": owner or name, "type": source_type}) - ] + "readiness_blockers": [self._blocker(code, message, {"owner": owner or name, "type": source_type})] }, origin=SemanticOrigin(source_language="c", source_kind="type", source_type=source_type), ) @@ -1237,8 +1200,7 @@ def _diagnostic_code(code: str) -> str: def _module_name(c_file: CFile) -> str: if c_file.filename: return CToIRConverter._module_name_for_filename(c_file.filename) - else: - stem = "c_module" + stem = "c_module" return CToIRConverter._identifier(stem or "c_module") @staticmethod @@ -1354,7 +1316,7 @@ def _type_text(type_: CType) -> str: source_text = getattr(type_, "source_text", "") if source_text: return source_text - if isinstance(type_, (CStruct, CUnion, CEnum, CTypedef)): + if isinstance(type_, CStruct | CUnion | CEnum | CTypedef): return type_.reference_name return type(type_).__name__ diff --git a/semantics/fortran2ir.py b/semantics/fortran2ir.py index 79f9d823e..ef599f154 100644 --- a/semantics/fortran2ir.py +++ b/semantics/fortran2ir.py @@ -76,8 +76,14 @@ ("complex", "c_float_complex"): "Complex64", ("complex", "c_double_complex"): "Complex128", ("logical", None): "Bool", + ("logical", "1"): "Bool", + ("logical", "2"): "Bool", + ("logical", "4"): "Bool", + ("logical", "8"): "Bool", ("logical", "c_bool"): "Bool", ("character", None): "String", + ("character", "1"): "String", + ("character", "c_char"): "String", } @@ -103,9 +109,7 @@ def _normalize_compile_time_values( '8' """ return { - str(key).strip().lower(): str(value) - for key, value in (compile_time_values or {}).items() - if str(key).strip() + str(key).strip().lower(): str(value) for key, value in (compile_time_values or {}).items() if str(key).strip() } @@ -156,8 +160,7 @@ def __init__( self.type_map = FORTRAN_TYPE_MAP if type_map is None else type_map self.compile_time_values = _normalize_compile_time_values(compile_time_values) self.wrapped_derived_types = { - (str(module).lower(), str(name).lower()) - for module, name in (wrapped_derived_types or []) + (str(module).lower(), str(name).lower()) for module, name in (wrapped_derived_types or []) } def visit(self, node, **context): @@ -206,11 +209,7 @@ def visit_file(self, parsed_file: FortranFile) -> SemanticModule: def visit_project(self, project: FortranProject) -> list[SemanticModule]: converter = self._with_additional_wrapped_types(self._wrapped_types_from_project(project)) - return [ - module - for parsed_file in project.files - for module in converter.visit_file_modules(parsed_file) - ] + return [module for parsed_file in project.files for module in converter.visit_file_modules(parsed_file)] def visit_variable( self, @@ -324,10 +323,7 @@ def visit_derived_type( return SemanticClass( name=dtype.name, native_name=dtype.name, - fields=[ - self.visit_data_member(field, intent="in", derived_type_context=context) - for field in dtype.fields - ], + fields=[self.visit_data_member(field, intent="in", derived_type_context=context) for field in dtype.fields], methods=self._bound_methods(dtype, lookup), base_classes=self._base_classes(dtype), visibility=getattr(dtype, "visibility", "public"), @@ -438,10 +434,7 @@ def _module_imports(module: FortranModule) -> list[str | SemanticImport]: imports.append( SemanticImport( module=module_name, - items=[ - SemanticImportItem(source=item.source, target=item.target) - for item in mappings - ], + items=[SemanticImportItem(source=item.source, target=item.target) for item in mappings], ) ) return imports @@ -463,10 +456,9 @@ def project_to_semantic_modules(self, project: FortranProject) -> list[SemanticM def _with_additional_wrapped_types( self, wrapped_types: Iterable[tuple[str, str]], - ) -> "FortranToIRConverter": + ) -> FortranToIRConverter: merged = self.wrapped_derived_types | { - (str(module).lower(), str(name).lower()) - for module, name in wrapped_types + (str(module).lower(), str(name).lower()) for module, name in wrapped_types } if merged == self.wrapped_derived_types: return self @@ -487,11 +479,7 @@ def _wrapped_types_from_file(parsed_file: FortranFile) -> set[tuple[str, str]]: @staticmethod def _wrapped_types_from_project(project: FortranProject) -> set[tuple[str, str]]: - return { - (dtype.module.lower(), dtype.name.lower()) - for dtype in project.derived_types.values() - if dtype.module - } + return {(dtype.module.lower(), dtype.name.lower()) for dtype in project.derived_types.values() if dtype.module} @staticmethod def _module_derived_type_context(module: FortranModule) -> _DerivedTypeContext: @@ -526,17 +514,10 @@ def _derived_type_ref( return None origin_module, source_name = self._resolve_derived_type_origin(local_name, context) - local_type = bool( - context is not None - and context.module - and local_name.lower() in context.local_types - ) + local_type = bool(context is not None and context.module and local_name.lower() in context.local_types) if local_type or origin_module is None: return None - wrapped = bool( - origin_module - and (origin_module.lower(), source_name.lower()) in self.wrapped_derived_types - ) + wrapped = bool(origin_module and (origin_module.lower(), source_name.lower()) in self.wrapped_derived_types) return local_name, { "name": source_name, "local_name": local_name, @@ -745,7 +726,11 @@ def _array_category(var: FortranVariable, shape: list[str]) -> str: if any(dim.endswith(":*") for dim in cleaned): return "assumed_size" if isinstance(var, FortranArgument) and (getattr(var, "allocatable", False) or getattr(var, "pointer", False)): - return "deferred_shape" if any(FortranToIRConverter._has_omitted_upper_bound(dim) for dim in cleaned) else "explicit_shape" + return ( + "deferred_shape" + if any(FortranToIRConverter._has_omitted_upper_bound(dim) for dim in cleaned) + else "explicit_shape" + ) if any(FortranToIRConverter._has_omitted_upper_bound(dim) for dim in cleaned): return "assumed_shape" return "explicit_shape" @@ -879,16 +864,8 @@ def _bound_methods( def _projected_procedure_arguments(proc: FortranProcedureSignature) -> list[FortranArgument]: args = list(proc.arguments) return [ - *[ - arg - for arg in args - if getattr(arg, "intent", "in") != "out" and not getattr(arg, "optional", False) - ], - *[ - arg - for arg in args - if getattr(arg, "intent", "in") != "out" and getattr(arg, "optional", False) - ], + *[arg for arg in args if getattr(arg, "intent", "in") != "out" and not getattr(arg, "optional", False)], + *[arg for arg in args if getattr(arg, "intent", "in") != "out" and getattr(arg, "optional", False)], *[arg for arg in args if getattr(arg, "intent", "in") == "out"], ] @@ -967,13 +944,16 @@ def _iter_fortran_variable_contexts( if isinstance(node, FortranFile): file_unit = node.filename or "" for var in getattr(node, "variables", []): - yield var, { - "unit_kind": "file", - "unit": file_unit, - "module": None, - "symbol": var.name, - "role": "variable", - } + yield ( + var, + { + "unit_kind": "file", + "unit": file_unit, + "module": None, + "symbol": var.name, + "role": "variable", + }, + ) for module in node.modules: yield from _iter_fortran_variable_contexts(module) for submodule in node.submodules: @@ -988,16 +968,19 @@ def _iter_fortran_variable_contexts( yield from _iter_fortran_variable_contexts(dtype) return - if isinstance(node, (FortranModule, FortranSubmodule)): + if isinstance(node, FortranModule | FortranSubmodule): owner = node.name for var in node.variables: - yield var, { - "unit_kind": "module" if isinstance(node, FortranModule) else "submodule", - "unit": owner, - "module": owner, - "symbol": var.name, - "role": "variable", - } + yield ( + var, + { + "unit_kind": "module" if isinstance(node, FortranModule) else "submodule", + "unit": owner, + "module": owner, + "symbol": var.name, + "role": "variable", + }, + ) for proc in node.procedures: yield from _iter_fortran_variable_contexts(proc, module_name=owner) for dtype in node.derived_types: @@ -1007,13 +990,16 @@ def _iter_fortran_variable_contexts( if isinstance(node, FortranProgram): owner = node.name or "" for var in node.variables: - yield var, { - "unit_kind": "program", - "unit": owner, - "module": None, - "symbol": var.name, - "role": "variable", - } + yield ( + var, + { + "unit_kind": "program", + "unit": owner, + "module": None, + "symbol": var.name, + "role": "variable", + }, + ) for proc in node.procedures: yield from _iter_fortran_variable_contexts(proc, unit_kind="program", unit_name=owner) return @@ -1021,58 +1007,73 @@ def _iter_fortran_variable_contexts( if isinstance(node, FortranBlockData): owner = node.name or "" for var in node.variables: - yield var, { - "unit_kind": "block_data", - "unit": owner, - "module": None, - "symbol": var.name, - "role": "variable", - } + yield ( + var, + { + "unit_kind": "block_data", + "unit": owner, + "module": None, + "symbol": var.name, + "role": "variable", + }, + ) return if isinstance(node, FortranProcedureSignature): proc_module = module_name or node.module owner = _requirement_unit_name(module=proc_module, unit_name=node.name) for arg in node.arguments: - yield arg, { - "unit_kind": "procedure", - "unit": owner, - "module": proc_module, - "procedure": node.name, - "symbol": arg.name, - "role": "argument", - } + yield ( + arg, + { + "unit_kind": "procedure", + "unit": owner, + "module": proc_module, + "procedure": node.name, + "symbol": arg.name, + "role": "argument", + }, + ) if node.result is not None: - yield node.result, { - "unit_kind": "procedure", - "unit": owner, - "module": proc_module, - "procedure": node.name, - "symbol": node.result.name, - "role": "result", - } + yield ( + node.result, + { + "unit_kind": "procedure", + "unit": owner, + "module": proc_module, + "procedure": node.name, + "symbol": node.result.name, + "role": "result", + }, + ) for var in node.variables.values(): - yield var, { - "unit_kind": "procedure", - "unit": owner, - "module": proc_module, - "procedure": node.name, - "symbol": var.name, - "role": "variable", - } + yield ( + var, + { + "unit_kind": "procedure", + "unit": owner, + "module": proc_module, + "procedure": node.name, + "symbol": var.name, + "role": "variable", + }, + ) return if isinstance(node, FortranDerivedType): owner = _requirement_unit_name(module=module_name or node.module, unit_name=node.name) for field in node.fields: - yield field, { - "unit_kind": "derived_type", - "unit": owner, - "module": module_name or node.module, - "type_owner": node.name, - "symbol": field.name, - "role": "field", - } + yield ( + field, + { + "unit_kind": "derived_type", + "unit": owner, + "module": module_name or node.module, + "type_owner": node.name, + "symbol": field.name, + "role": "field", + }, + ) def _compile_time_requirement_message(code: str, symbol: str, expression: str) -> str: @@ -1109,7 +1110,9 @@ def collect_semantic_compile_time_requirements( requirements: list[dict[str, str | None]] = [] seen: set[tuple[str | None, ...]] = set() - def add_requirement(code: str, ctx: dict, *, expression: str, base_type: str | None = None, kind: str | None = None) -> None: + def add_requirement( + code: str, ctx: dict, *, expression: str, base_type: str | None = None, kind: str | None = None + ) -> None: symbol = str(ctx.get("symbol") or "") item = { "code": code, @@ -1125,7 +1128,9 @@ def add_requirement(code: str, ctx: dict, *, expression: str, base_type: str | N "expression": expression, "message": _compile_time_requirement_message(code, symbol, expression), } - key = tuple(str(item.get(field) or "") for field in ("code", "unit", "symbol", "base_type", "kind", "expression")) + key = tuple( + str(item.get(field) or "") for field in ("code", "unit", "symbol", "base_type", "kind", "expression") + ) if key in seen: return seen.add(key) @@ -1164,10 +1169,7 @@ def _resolve_semantic_value(value, compile_time_values: dict[str, str]): if isinstance(value, tuple): return tuple(_resolve_semantic_value(item, compile_time_values) for item in value) if isinstance(value, dict): - return { - key: _resolve_semantic_value(item, compile_time_values) - for key, item in value.items() - } + return {key: _resolve_semantic_value(item, compile_time_values) for key, item in value.items()} return value @@ -1177,10 +1179,7 @@ def _resolve_semantic_type_compile_time_values( ) -> None: if semantic_type is None: return - semantic_type.shape = [ - _resolve_compile_time_text(dim, compile_time_values) - for dim in semantic_type.shape - ] + semantic_type.shape = [_resolve_compile_time_text(dim, compile_time_values) for dim in semantic_type.shape] for constraint in semantic_type.constraints: constraint.arguments = _resolve_semantic_value(constraint.arguments, compile_time_values) semantic_type.metadata = _resolve_semantic_value(semantic_type.metadata, compile_time_values) @@ -1191,14 +1190,8 @@ def _resolve_semantic_type_compile_time_values( ) if semantic_type.storage.array is not None: array = semantic_type.storage.array - array.shape = [ - _resolve_compile_time_text(dim, compile_time_values) - for dim in array.shape - ] - array.source_shape = [ - _resolve_compile_time_text(dim, compile_time_values) - for dim in array.source_shape - ] + array.shape = [_resolve_compile_time_text(dim, compile_time_values) for dim in array.shape] + array.source_shape = [_resolve_compile_time_text(dim, compile_time_values) for dim in array.source_shape] array.lower_bounds = [ None if dim is None else _resolve_compile_time_text(dim, compile_time_values) for dim in array.lower_bounds diff --git a/semantics/models.py b/semantics/models.py index 719d5a292..39ef2a147 100644 --- a/semantics/models.py +++ b/semantics/models.py @@ -2,7 +2,7 @@ import re from dataclasses import dataclass, field -from typing import Optional, Any +from typing import Any EXTERNAL_TYPE_REF_METADATA = "external_type_ref" @@ -12,6 +12,7 @@ # Semantic Constraints # ============================================================ + @dataclass class SemanticConstraint: name: str @@ -22,6 +23,7 @@ class SemanticConstraint: # Semantic Coercions # ============================================================ + @dataclass class SemanticCoercion: source_type: str @@ -34,6 +36,7 @@ class SemanticCoercion: # Ownership / Lifetime # ============================================================ + @dataclass class OwnershipPolicy: ownership: str = "borrowed" @@ -45,29 +48,30 @@ class OwnershipPolicy: # Origin And Storage Contracts # ============================================================ + @dataclass class SemanticOrigin: - source_language: Optional[str] = None - native_name: Optional[str] = None - native_scope: Optional[str] = None - source_kind: Optional[str] = None - source_type: Optional[str] = None + source_language: str | None = None + native_name: str | None = None + native_scope: str | None = None + source_kind: str | None = None + source_type: str | None = None source_location: dict[str, Any] = field(default_factory=dict) metadata: dict[str, Any] = field(default_factory=dict) @dataclass class SemanticArrayContract: - rank: Optional[int] = None + rank: int | None = None shape: list[str] = field(default_factory=list) # Native-source provenance, excluded from public contract equality. - lower_bounds: list[Optional[str]] = field(default_factory=list) - upper_bounds: list[Optional[str]] = field(default_factory=list) + lower_bounds: list[str | None] = field(default_factory=list) + upper_bounds: list[str | None] = field(default_factory=list) source_shape: list[str] = field(default_factory=list) - category: Optional[str] = None - order: Optional[str] = None + category: str | None = None + order: str | None = None axes: list[str] = field(default_factory=list) - contiguous: Optional[bool] = None + contiguous: bool | None = None allocatable: bool = False pointer: bool = False metadata: dict[str, Any] = field(default_factory=dict) @@ -80,8 +84,8 @@ class SemanticStorageContract: mutable: bool = False pointer_depth: int = 0 ownership: str = "borrowed" - array: Optional[SemanticArrayContract] = None - calling_convention: Optional[str] = None + array: SemanticArrayContract | None = None + calling_convention: str | None = None metadata: dict[str, Any] = field(default_factory=dict) @@ -89,13 +93,14 @@ class SemanticStorageContract: # Semantic Types # ============================================================ + @dataclass(eq=False) class SemanticType: name: str rank: int = 0 - dtype: Optional[str] = None + dtype: str | None = None shape: list[str] = field(default_factory=list) @@ -107,7 +112,7 @@ class SemanticType: metadata: dict[str, Any] = field(default_factory=dict) - storage: Optional[SemanticStorageContract] = None + storage: SemanticStorageContract | None = None origin: SemanticOrigin = field(default_factory=SemanticOrigin, compare=False) @@ -121,6 +126,7 @@ def __eq__(self, other: object) -> bool: # Semantic Arguments # ============================================================ + @dataclass class SemanticArgument: name: str @@ -132,7 +138,7 @@ class SemanticArgument: optional: bool = False visibility: str = "public" - default_value: Optional[str] = None + default_value: str | None = None metadata: dict[str, Any] = field(default_factory=dict) @@ -143,9 +149,10 @@ class SemanticArgument: # Semantic Contracts # ============================================================ + @dataclass class SemanticContract: - name: Optional[str] = None + name: str | None = None preconditions: list[str] = field(default_factory=list) @@ -158,13 +165,14 @@ class SemanticContract: # API Projection # ============================================================ + @dataclass class ProjectionMapping: - python_name: Optional[str] = None + python_name: str | None = None native_name: str = "" - native_position: Optional[int] = None - python_position: Optional[int] = None - result_position: Optional[int] = None + native_position: int | None = None + python_position: int | None = None + result_position: int | None = None value_kind: str = "" value: Any = None intent: str = "in" @@ -174,15 +182,16 @@ class ProjectionMapping: # Semantic Functions # ============================================================ + @dataclass(eq=False) class SemanticFunction: name: str - native_name: Optional[str] = None + native_name: str | None = None arguments: list[SemanticArgument] = field(default_factory=list) - return_type: Optional[SemanticType] = None + return_type: SemanticType | None = None contracts: list[SemanticContract] = field(default_factory=list) @@ -229,6 +238,7 @@ def __eq__(self, other: object) -> bool: # Semantic Methods # ============================================================ + @dataclass(eq=False) class SemanticMethod(SemanticFunction): is_static: bool = False @@ -281,10 +291,7 @@ def _semantic_type_key( semantic_type.rank, semantic_type.dtype, tuple(_canonical_expression(item, name_map) for item in shape), - tuple( - _constraint_key(c, name_map) - for c in _semantic_contract_constraints(semantic_type) - ), + tuple(_constraint_key(c, name_map) for c in _semantic_contract_constraints(semantic_type)), tuple(semantic_type.coercions), semantic_type.ownership if include_ownership else None, semantic_type.metadata, @@ -302,11 +309,7 @@ def _semantic_contract_constraints(semantic_type: SemanticType) -> list[Semantic "ORDER_F", "Pointer", } - return [ - constraint - for constraint in semantic_type.constraints - if constraint.name not in storage_constraint_names - ] + return [constraint for constraint in semantic_type.constraints if constraint.name not in storage_constraint_names] def _storage_contract_key( @@ -389,13 +392,8 @@ def _requires_explicit_projection_mapping(mapping: ProjectionMapping) -> bool: def _native_projection_value_key(value: Any, name_map: dict[str, str]) -> Any: if isinstance(value, dict): - return tuple( - sorted( - (key, _native_projection_value_key(item, name_map)) - for key, item in value.items() - ) - ) - if isinstance(value, (list, tuple)): + return tuple(sorted((key, _native_projection_value_key(item, name_map)) for key, item in value.items())) + if isinstance(value, list | tuple): return tuple(_native_projection_value_key(item, name_map) for item in value) return _canonical_expression(value, name_map) @@ -419,8 +417,7 @@ def _canonical_expression(value: Any, name_map: dict[str, str]) -> Any: return tuple(_canonical_expression(item, name_map) for item in value) if isinstance(value, dict): return { - _canonical_expression(key, name_map): _canonical_expression(item, name_map) - for key, item in value.items() + _canonical_expression(key, name_map): _canonical_expression(item, name_map) for key, item in value.items() } return value @@ -438,11 +435,12 @@ def _canonical_expression_text(text: str, name_map: dict[str, str]) -> str: # Semantic Classes # ============================================================ + @dataclass class SemanticClass: name: str - native_name: Optional[str] = None + native_name: str | None = None fields: list[SemanticArgument] = field(default_factory=list) @@ -461,10 +459,11 @@ class SemanticClass: # Semantic Modules # ============================================================ + @dataclass class SemanticImportItem: source: str - target: Optional[str] = None + target: str | None = None @dataclass @@ -505,8 +504,8 @@ def _iter_module_semantic_types(module: SemanticModule): for variable in module.variables: yield from _iter_semantic_type_tree(variable.semantic_type) for cls in module.classes: - for field in cls.fields: - yield from _iter_semantic_type_tree(field.semantic_type) + for semantic_field in cls.fields: + yield from _iter_semantic_type_tree(semantic_field.semantic_type) for method in cls.methods: for argument in method.arguments: yield from _iter_semantic_type_tree(argument.semantic_type) diff --git a/semantics/pyi_parser.py b/semantics/pyi_parser.py index 11a021695..0adc59f36 100644 --- a/semantics/pyi_parser.py +++ b/semantics/pyi_parser.py @@ -39,7 +39,7 @@ def load_pyi_modules( *, encoding: str = "utf-8", ) -> list[SemanticModule]: - raw_paths = [paths] if isinstance(paths, (str, Path)) else list(paths) + raw_paths = [paths] if isinstance(paths, str | Path) else list(paths) expanded: dict[Path, str | None] = {} for raw_path in raw_paths: path = Path(raw_path) @@ -96,10 +96,7 @@ def import_from(self, node: ast.ImportFrom) -> SemanticImport: ) def import_name(self, node: ast.Import) -> str: - return ", ".join( - f"{alias.name} as {alias.asname}" if alias.asname else alias.name - for alias in node.names - ) + return ", ".join(f"{alias.name} as {alias.asname}" if alias.asname else alias.name for alias in node.names) def class_def(self, node: ast.ClassDef, *, visibility: str) -> SemanticClass: body = _ClassBodyVisitor(self) @@ -192,8 +189,7 @@ def native_call(self, node: ast.Call) -> list[ProjectionMapping]: if not isinstance(entries, ast.List): raise ValueError("native_call expects a list of projection entries") return [ - self.native_projection_entry(entry, native_position) - for native_position, entry in enumerate(entries.elts) + self.native_projection_entry(entry, native_position) for native_position, entry in enumerate(entries.elts) ] def native_projection_entry(self, node: ast.AST, native_position: int) -> ProjectionMapping: @@ -379,7 +375,7 @@ def array_type(self, node: ast.Subscript) -> SemanticType: shape=list(dims), order="ORDER_C" if rank is not None and rank > 1 else None, axes=["strided" if "Strided" in dim else "dense" for dim in dims], - contiguous=False if any("Strided" in dim for dim in dims) else True, + contiguous=not any("Strided" in dim for dim in dims), ) storage = SemanticStorageContract(kind="array", array=array) return SemanticType( @@ -521,8 +517,7 @@ def _pop_intent_metadata(semantic_type: SemanticType, default: str) -> str: @staticmethod def _is_ptr_call(node: ast.Call) -> bool: return _PyiAstParser.matches_name(node.func, "Ptr") or ( - isinstance(node.func, ast.Subscript) - and _PyiAstParser.matches_name(node.func.value, "Ptr") + isinstance(node.func, ast.Subscript) and _PyiAstParser.matches_name(node.func.value, "Ptr") ) @staticmethod @@ -540,21 +535,20 @@ def _is_array_subscript(self, node: ast.Subscript) -> bool: items = self.subscript_items(node) if not items: return False - if any(isinstance(item, (ast.Slice, ast.Constant)) for item in items): + if any(isinstance(item, ast.Slice | ast.Constant) for item in items): return True - if any(isinstance(item, ast.Name) and item.id not in self._non_dimension_subscription_names() for item in items): + if any( + isinstance(item, ast.Name) and item.id not in self._non_dimension_subscription_names() for item in items + ): return True if any( - isinstance(item, ast.Call) - and self.required_name(item.func) in self._non_dimension_subscription_names() + isinstance(item, ast.Call) and self.required_name(item.func) in self._non_dimension_subscription_names() for item in items ): return False if any(isinstance(item, ast.Call) for item in items): return True - if any(isinstance(item, (ast.BinOp, ast.UnaryOp)) for item in items): - return True - return False + return any(isinstance(item, ast.BinOp | ast.UnaryOp) for item in items) @staticmethod def _non_dimension_subscription_names() -> set[str]: @@ -577,7 +571,7 @@ def dimension_text(self, node: ast.expr) -> str: return self.slice_text(node) if isinstance(node, ast.Constant): return str(node.value) - if isinstance(node, (ast.Attribute, ast.Subscript)): + if isinstance(node, ast.Attribute | ast.Subscript): raise ValueError(f"Unsupported array dimension expression: {ast.unparse(node)!r}") return ast.unparse(node) @@ -749,7 +743,7 @@ def _callable_parts( if node.args.vararg or node.args.kwarg or node.args.kwonlyargs or node.args.posonlyargs: raise ValueError(f"Unsupported function header: {_node_text(node)!r}") - args = list(zip(node.args.args, self._argument_defaults(node))) + args = list(zip(node.args.args, self._argument_defaults(node), strict=False)) if drop_untyped_self and args and args[0][0].arg == "self" and args[0][0].annotation is None: args = args[1:] @@ -788,11 +782,7 @@ def _validate_stub_callable(node: ast.FunctionDef) -> None: if len(node.body) != 1: raise ValueError(f"Unsupported function header: {_node_text(node)!r}") body = node.body[0] - if not ( - isinstance(body, ast.Expr) - and isinstance(body.value, ast.Constant) - and body.value.value is Ellipsis - ): + if not (isinstance(body, ast.Expr) and isinstance(body.value, ast.Constant) and body.value.value is Ellipsis): raise ValueError(f"Unsupported function header: {_node_text(node)!r}") @staticmethod @@ -988,11 +978,7 @@ def _imported_type_refs(module: SemanticModule) -> dict[str, tuple[str, str, str def _reconcile_external_type_refs(modules: list[SemanticModule]) -> list[SemanticModule]: - definitions = { - (module.name, cls.name): cls - for module in modules - for cls in module.classes - } + definitions = {(module.name, cls.name): cls for module in modules for cls in module.classes} for module in modules: for semantic_type in _iter_module_semantic_types(module): ref = semantic_type.metadata.get(EXTERNAL_TYPE_REF_METADATA) diff --git a/semantics/pyi_printer.py b/semantics/pyi_printer.py index fb5ba9baf..e21d12210 100644 --- a/semantics/pyi_printer.py +++ b/semantics/pyi_printer.py @@ -1,7 +1,9 @@ from __future__ import annotations +import ast from collections.abc import Iterable from copy import deepcopy +import json import keyword import re @@ -111,7 +113,15 @@ def _array_dimensions( shape = list(array.shape if array is not None and array.shape else semantic_type.shape) if not shape and semantic_type.rank > 0: shape = [":" for _ in range(semantic_type.rank)] - return [str(dim) for dim in shape] + return [PyiPrinter._canonical_array_dimension(dim) for dim in shape] + + @staticmethod + def _canonical_array_dimension(dimension: object) -> str: + text = str(dimension) + try: + return ast.unparse(ast.parse(text, mode="eval").body) + except SyntaxError: + return text @staticmethod def _array_annotation_metadata(array: SemanticArrayContract | None) -> list[str]: @@ -158,7 +168,7 @@ def _emit_typed_name( type_text = self.emit_semantic_type(semantic_type) annotation_metadata = [] if original_name is not None: - annotation_metadata.append(f'Name("{original_name}")') + annotation_metadata.append(f"Name({json.dumps(original_name)})") if self._requires_intent_metadata(arg): annotation_metadata.append(f"Intent({arg.intent!r})") if annotation_metadata: @@ -193,11 +203,7 @@ def _without_constant_constraint(semantic_type: SemanticType) -> SemanticType: rank=semantic_type.rank, dtype=semantic_type.dtype, shape=list(semantic_type.shape), - constraints=[ - constraint - for constraint in semantic_type.constraints - if constraint.name != "Constant" - ], + constraints=[constraint for constraint in semantic_type.constraints if constraint.name != "Constant"], coercions=list(semantic_type.coercions), ownership=semantic_type.ownership, metadata=dict(semantic_type.metadata), @@ -265,11 +271,7 @@ def _emit_callable( return f"{decorator}{def_indent}def {name}(self) -> {return_type}: ..." args = (",\n" + parameter_indent).join(arguments) - return ( - f"{decorator}{def_indent}def {name}(\n" - f"{parameter_indent}{args}\n" - f"{def_indent}) -> {return_type}: ..." - ) + return f"{decorator}{def_indent}def {name}(\n{parameter_indent}{args}\n{def_indent}) -> {return_type}: ..." def _class_body(self, cls: SemanticClass) -> str: body_parts = [] @@ -381,7 +383,9 @@ def _decorators(self, func: SemanticFunction, *, indent: str = "") -> str: def _native_call(self, projection: list[ProjectionMapping]) -> str: entries = ", ".join( self._native_projection_entry(mapping) - for mapping in sorted(projection, key=lambda item: item.native_position if item.native_position is not None else -1) + for mapping in sorted( + projection, key=lambda item: item.native_position if item.native_position is not None else -1 + ) ) return f"@native_call([{entries}])" @@ -489,11 +493,7 @@ def opaque_dependency_modules( ) -> list[SemanticModule]: source_modules = _module_list(modules) known_modules = _module_list(available_modules) if available_modules is not None else source_modules - known_classes = { - (module.name, cls.name) - for module in known_modules - for cls in module.classes - } + known_classes = {(module.name, cls.name) for module in known_modules for cls in module.classes} dependencies: dict[str, set[str]] = {} for module in source_modules: for semantic_type in _iter_module_semantic_types(module): @@ -544,10 +544,7 @@ def emit_module_stubs( existing = {cls.name for cls in target.classes} target.classes.extend(cls for cls in dependency.classes if cls.name not in existing) - return { - module_name: emit_module(module).strip() - for module_name, module in emitted_modules.items() - } + return {module_name: emit_module(module).strip() for module_name, module in emitted_modules.items()} def _module_list(modules: SemanticModule | Iterable[SemanticModule] | None) -> list[SemanticModule]: diff --git a/semantics/readiness.py b/semantics/readiness.py index 0877d1859..81c9bbfa4 100644 --- a/semantics/readiness.py +++ b/semantics/readiness.py @@ -1,8 +1,8 @@ from __future__ import annotations import re +from collections.abc import Iterable from pathlib import Path -from typing import Iterable from .models import ( EXTERNAL_TYPE_REF_METADATA, @@ -55,7 +55,7 @@ def assess_pyi_wrap_readiness( encoding: str = "utf-8", ) -> dict: """Load one or more edited .pyi files and assess semantic wrap-readiness.""" - raw_paths = [paths] if isinstance(paths, (str, Path)) else list(paths) + raw_paths = [paths] if isinstance(paths, str | Path) else list(paths) expanded = _expand_pyi_paths(raw_paths) modules = load_pyi_modules(raw_paths, encoding=encoding) return assess_semantic_wrap_readiness(modules, source=[str(path) for path in expanded]) @@ -77,7 +77,7 @@ def assess_semantic_wrap_readiness( def _expand_pyi_paths(paths: str | Path | Iterable[str | Path]) -> list[Path]: - raw_paths = [paths] if isinstance(paths, (str, Path)) else list(paths) + raw_paths = [paths] if isinstance(paths, str | Path) else list(paths) expanded: list[Path] = [] for raw in raw_paths: path = Path(raw) @@ -458,10 +458,7 @@ def _check_metadata_blockers( blocker_unit = str(blocker.get("unit") or unit) blocker_unit_kind = str(blocker.get("unit_kind") or unit_kind) for raw_item in raw_items: - if isinstance(raw_item, dict): - payload = dict(raw_item) - else: - payload = {"detail": raw_item} + payload = dict(raw_item) if isinstance(raw_item, dict) else {"detail": raw_item} payload.setdefault("owner", owner) payload.setdefault("item", item) self._add_blocker( @@ -614,17 +611,13 @@ def _iter_expression_values(value) -> Iterable[str]: elif isinstance(value, dict): for item in value.values(): yield from _iter_expression_values(item) - elif isinstance(value, (list, tuple)): + elif isinstance(value, list | tuple): for item in value: yield from _iter_expression_values(item) def _shape_symbols(expression: str) -> set[str]: - return { - match.group(0) - for match in _IDENTIFIER_RE.finditer(expression) - if not match.group(0).isdigit() - } + return {match.group(0) for match in _IDENTIFIER_RE.finditer(expression) if not match.group(0).isdigit()} def _is_public(node) -> bool: diff --git a/tests/_shared/fixture_outputs.py b/tests/_shared/fixture_outputs.py index 37a866ede..d78f3f42c 100644 --- a/tests/_shared/fixture_outputs.py +++ b/tests/_shared/fixture_outputs.py @@ -1,9 +1,13 @@ import json +import shutil from dataclasses import asdict from pathlib import Path +from tempfile import TemporaryDirectory -from c_parser import parse_c_project +from c_parser import CParser +from c_parser.cli import attach_preprocessing_recipe from x2py import parse_fortran_file +from x2py.preprocessing import PreprocessingConfig, preprocess_source from semantics.c2ir import c_project_to_semantic_module from semantics.fortran2ir import fortran_file_to_semantic_modules, fortran_module_to_semantic_module from semantics.pyi_printer import emit_module @@ -27,12 +31,14 @@ def iter_general_fortran_fixtures(): return sorted( - path - for path in GENERAL_FORTRAN_DIR.iterdir() - if path.is_file() and path.suffix.lower() in FORTRAN_SUFFIXES + path for path in GENERAL_FORTRAN_DIR.iterdir() if path.is_file() and path.suffix.lower() in FORTRAN_SUFFIXES ) +def fortran_fixture_requires_compiler_preprocessing(path: Path) -> bool: + return any(line.lstrip().startswith("#") for line in path.read_text(encoding="utf-8").splitlines()) + + def _c_fixture_sort_key(path: Path) -> tuple[int, str]: return (C_SOURCE_ORDER.get(path.suffix.lower(), 99), path.as_posix()) @@ -42,10 +48,7 @@ def iter_general_c_fixture_projects() -> list[tuple[Path, list[Path]]]: for path in sorted(GENERAL_C_DIR.iterdir(), key=_c_fixture_sort_key): if path.is_file() and path.suffix.lower() in C_SOURCE_SUFFIXES: grouped.setdefault(Path(path.stem), []).append(path) - return [ - (project_key, sorted(paths, key=_c_fixture_sort_key)) - for project_key, paths in sorted(grouped.items()) - ] + return [(project_key, sorted(paths, key=_c_fixture_sort_key)) for project_key, paths in sorted(grouped.items())] def iter_wrap_readiness_fortran_fixtures(): @@ -53,7 +56,9 @@ def iter_wrap_readiness_fortran_fixtures(): path for dirname in WRAP_READINESS_CORPUS_DIRS for path in (FORTRAN_DATA_DIR / dirname).rglob("*") - if path.is_file() and path.suffix.lower() in FORTRAN_SUFFIXES + if path.is_file() + and path.suffix.lower() in FORTRAN_SUFFIXES + and not fortran_fixture_requires_compiler_preprocessing(path) ) @@ -79,12 +84,7 @@ def semantic_modules_for_fixture(path: Path): def semantic_payload_for_fixture(path: Path) -> dict: - return { - "semantic_modules": [ - asdict(module) - for module in semantic_modules_for_fixture(path) - ] - } + return {"semantic_modules": [asdict(module) for module in semantic_modules_for_fixture(path)]} def wrap_readiness_message_payload_for_fixture(path: Path) -> dict: @@ -138,19 +138,44 @@ def wrap_readiness_message_payload_for_corpus() -> dict: def pyi_text_for_fixture(path: Path) -> str: - return "\n\n".join( - emit_module(module) - for module in semantic_modules_for_fixture(path) - ).strip() + return "\n\n".join(emit_module(module) for module in semantic_modules_for_fixture(path)).strip() def parse_c_fixture_project(paths: list[Path]): - sources = { - path.relative_to(C_DATA_DIR).as_posix(): path.read_text(encoding="utf-8") - for path in sorted(paths, key=_c_fixture_sort_key) - } - include_dirs = sorted({path.parent for path in paths}) - return parse_c_project(sources, include_dirs=include_dirs) + compiler = shutil.which("cc") + if compiler is None: + raise RuntimeError("C fixture preprocessing requires cc") + + parser = CParser() + parsed_files = {} + root_paths = {str(path.resolve()) for path in paths} + with TemporaryDirectory() as tmp_dir: + system_include_dir = Path(tmp_dir) + (system_include_dir / "stddef.h").write_text("", encoding="utf-8") + (system_include_dir / "stdbool.h").write_text( + "#define bool _Bool\n#define true 1\n#define false 0\n", + encoding="utf-8", + ) + (system_include_dir / "math.h").write_text("", encoding="utf-8") + config = PreprocessingConfig( + mode="compiler", + compiler=compiler, + include_dirs=sorted({str(path.parent) for path in paths}), + compiler_args=["-dD", f"-isystem{system_include_dir}"], + ) + for path in sorted(paths, key=_c_fixture_sort_key): + preprocessed = preprocess_source(path, language="c", config=config) + recipe = dict(preprocessed.recipe) + recipe["macros"] = [item for item in recipe["macros"] if item.get("path") in root_paths] + filename = path.relative_to(C_DATA_DIR).as_posix() + parsed = parser.visit_file( + preprocessed.source, + filename=filename, + preprocessing="compiler", + ) + attach_preprocessing_recipe(parsed, recipe) + parsed_files[filename] = parsed + return parser.visit_parsed_project(parsed_files) def c_semantic_module_for_fixture_project(project_key: Path, paths: list[Path]): diff --git a/tests/benchmarks/test_parser_benchmarks.py b/tests/benchmarks/test_parser_benchmarks.py new file mode 100644 index 000000000..ae9918089 --- /dev/null +++ b/tests/benchmarks/test_parser_benchmarks.py @@ -0,0 +1,56 @@ +"""Representative parser and code-generation performance benchmarks.""" + +from __future__ import annotations + +from pathlib import Path + +import pytest + +from c_parser import parse_c_file +from semantics.fortran2ir import fortran_file_to_semantic_modules +from semantics.pyi_printer import emit_module_stubs +from x2py import parse_fortran_file + +pytestmark = pytest.mark.skip(reason="Benchmarks are parked until benchmark adoption resumes.") + + +_C_HEADER = "".join(f"int fn_{index}(int x_{index}, double y_{index});\n" for index in range(200)) +_FORTRAN_MODULE = ( + "module generated\n" + "contains\n" + + "".join( + f"subroutine step_{index}(x)\n integer, intent(in) :: x\nend subroutine step_{index}\n" for index in range(50) + ) + + "end module generated\n" +) + + +def _parse_convert_emit_fortran(source: str) -> dict[str, str]: + parsed = parse_fortran_file(source, filename="benchmark.f90") + return emit_module_stubs(fortran_file_to_semantic_modules(parsed)) + + +@pytest.mark.benchmark +def test_parse_representative_c_header(benchmark): + parsed = benchmark(parse_c_file, _C_HEADER, filename="benchmark.h") + + assert len(parsed.functions) == 200 + assert parsed.diagnostics == [] + + +@pytest.mark.benchmark +def test_parse_convert_emit_representative_fortran_module(benchmark): + stubs = benchmark(_parse_convert_emit_fortran, _FORTRAN_MODULE) + + assert stubs["generated"].count("def step_") == 50 + + +@pytest.mark.benchmark +def test_parse_real_lapack_dgesv(benchmark): + source = (Path(__file__).resolve().parents[1] / "data" / "fortran" / "lapack" / "dgesv.f").read_text( + encoding="utf-8" + ) + parsed = benchmark(parse_fortran_file, source, filename="lapack/dgesv.f") + + assert [procedure.name for procedure in parsed.procedures] == ["DGESV"] + assert parsed.diagnostics == [] diff --git a/tests/data/c/README.md b/tests/data/c/README.md index d9e058228..cb1cd4a12 100644 --- a/tests/data/c/README.md +++ b/tests/data/c/README.md @@ -9,17 +9,11 @@ Directories: - `general/`: small hand-written C headers and sources that mirror the themes in `tests/data/fortran/general/`, plus C-specific API shapes. -- `json/`: JSON-library source/header inputs used for grouped project - regression goldens; diagnostics are permitted in these real-world inputs. -- `tinyexpr/`: tinyexpr source/header inputs used for grouped project - regression goldens; diagnostics are permitted in these real-world inputs. -- `linmath/`: header-only linmath input used for a one-file project regression - golden; diagnostics are permitted in this macro-heavy real-world input. -- `nanosvg/`: NanoSVG headers used for one dependent-header project golden; - `nanosvgrast.h` is parsed with its `nanosvg.h` dependency. -- `stb/`: top-level stb single-file library C inputs, each treated as its own - one-file project regression golden; nested repository metadata is not a - parser fixture. +- `json/`: JSON-library source/header inputs used for compiler-preprocessed + corpus regression coverage. +- `tinyexpr/`, `linmath/`, `nanosvg/`, and `stb/`: macro-heavy real-world + inputs used for raw-preprocessing boundary coverage and future curated + compiler-preprocessed corpus work. - `errors/parser/`: invalid C snippets for parser diagnostic goldens. - `corpus/`: future pinned third-party C corpus fixtures with license provenance. diff --git a/tests/parser/c/README.md b/tests/parser/c/README.md index 8804a39cb..942fca2e1 100644 --- a/tests/parser/c/README.md +++ b/tests/parser/c/README.md @@ -6,7 +6,8 @@ Guidelines: - keep these tests separate from the Fortran parser tests - keep wrap-readiness tests under `tests/semantics`, not under parser tests -- add fixtures and goldens only when the corresponding schema is stable +- add parser snapshots only when the corresponding schema and preprocessing + recipe are stable - keep the checked-in cJSON regression inputs active while a separately pinned and provenanced corpus remains deferred @@ -17,24 +18,15 @@ The normal parser test run has no intentionally skipped C parser tests. project paths in `test_c_corpus.py`; a separately pinned copy with license and source provenance remains documentation work rather than a disabled test. -## Parser Goldens +## Legacy Parser Snapshots -Active parser goldens cover grouped projects from `tests/data/c/general/`, +Checked-in compatibility snapshots cover grouped projects from `tests/data/c/general/`, `tests/data/c/json/`, `tests/data/c/tinyexpr/`, `tests/data/c/linmath/`, and `tests/data/c/nanosvg/`, plus top-level C inputs from `tests/data/c/stb/`. -Files sharing a stem are parsed together as a project, with a `.c` -translation-unit input ordered before its `.h` sibling. -Explicit dependent header groups are ordered with the included header before -the dependent header, as in `nanosvg.h` then `nanosvgrast.h`. A source or -header without a matching sibling is serialized as a one-file project. -STB inputs remain separate one-file projects because that distribution is a -collection of independent single-file libraries. -The current parser records the resolved include edge but parses each project -member separately; it does not yet preprocess header contents into the source -translation unit. -The third-party-library inputs are realistic regression inputs for the partial -parser; diagnostics in their goldens are expected and do not claim full -library support. +They preserve historical JSON shape for schema sanity checks. They are not +active parser output goldens: macro-heavy inputs now require compiler +preprocessing, and reproducible compiler-recipe snapshots need a separate +curated fixture workflow. ## Developer Walkthrough @@ -43,23 +35,8 @@ library support. `visit_file` dispatch of declaration roles, and the preprocessed linemarker path without replacing the feature-focused test modules. -Each logical project produces one output, for example `math_api.json` for -`math_api.c` plus `math_api.h`, `cJSON.json` for the cJSON pair, and -`jsmn.json` or `linmath.json` for unpaired headers. The NanoSVG header pair -produces `nanosvg.json`; STB produces one golden per top-level library input. - -Regenerate all parser goldens with: - -```bash -C_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser/c/test_c_fixture_suite.py -``` - -Regenerate selected projects by naming either input relative to -`tests/data/c/`; matching siblings are included automatically: - -```bash -python -m tests.parser.c.generate_c_parser_goldens general/math_api.c json/cJSON.h -``` +`test_c_fixture_suite.py` keeps fixture grouping coverage and verifies that +representative macro-heavy fixtures fail clearly in raw mode. ## Error Goldens @@ -70,6 +47,6 @@ expected metadata lives in `fixtures/errors/`. Regenerate them with: C_PARSER_UPDATE_GOLDENS=1 PYTHONPATH=. pytest -q tests/parser/c/test_c_error_fixture_suite.py ``` -The standalone generator modules remain available for targeted refreshes, but -the comparison tests also rewrite their checked-in baselines when +The standalone error generator remains available for targeted refreshes, and +the comparison tests rewrite checked-in error baselines when `C_PARSER_UPDATE_GOLDENS=1` is set. diff --git a/tests/parser/c/errors/generate_c_parser_error_goldens.py b/tests/parser/c/errors/generate_c_parser_error_goldens.py index 71ab9a1d1..26d56a378 100644 --- a/tests/parser/c/errors/generate_c_parser_error_goldens.py +++ b/tests/parser/c/errors/generate_c_parser_error_goldens.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Generate/update golden files for C parser error fixtures.""" from __future__ import annotations @@ -32,8 +31,7 @@ def _serialize_error_fixture(fixture: Path) -> dict: ], } raise SystemExit( - f"ERROR: {fixture.name} did not raise CParseError; " - "error fixture files must trigger a parse error." + f"ERROR: {fixture.name} did not raise CParseError; error fixture files must trigger a parse error." ) diff --git a/tests/parser/c/fixtures/general/basic_array_update.json b/tests/parser/c/fixtures/general/basic_array_update.json index 1d64c3805..020abcbcf 100644 --- a/tests/parser/c/fixtures/general/basic_array_update.json +++ b/tests/parser/c/fixtures/general/basic_array_update.json @@ -3,8 +3,11 @@ "general/basic_array_update.c": { "filename": "general/basic_array_update.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/basic_array_update.c", + "general/basic_array_update.h" + ], "functions": [ { "name": "add1", @@ -226,19 +229,7 @@ "typedefs": [], "variables": [], "macros": [], - "includes": [ - { - "target": "basic_array_update.h", - "kind": "local", - "resolved_path": "general/basic_array_update.h", - "source_location": { - "filename": "general/basic_array_update.c", - "line": 1, - "column": 1, - "source_line": "#include \"basic_array_update.h\"" - } - } - ], + "includes": [], "raw_directives": [], "macro_dependencies": [], "diagnostics": [] @@ -246,8 +237,10 @@ "general/basic_array_update.h": { "filename": "general/basic_array_update.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/basic_array_update.h" + ], "functions": [ { "name": "add1", @@ -444,43 +437,9 @@ "enums": [], "typedefs": [], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_BASIC_ARRAY_UPDATE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/basic_array_update.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_BASIC_ARRAY_UPDATE_H" - } - } - ], + "macros": [], "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_BASIC_ARRAY_UPDATE_H", - "source_location": { - "filename": "general/basic_array_update.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_BASIC_ARRAY_UPDATE_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/basic_array_update.h", - "line": 7, - "column": 1, - "source_line": "#endif" - } - } - ], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -705,33 +664,8 @@ "enums": {}, "typedefs": {}, "variables": {}, - "macros": { - "X2PY_GENERAL_BASIC_ARRAY_UPDATE_H": { - "name": "X2PY_GENERAL_BASIC_ARRAY_UPDATE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/basic_array_update.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_BASIC_ARRAY_UPDATE_H" - } - } - }, - "includes": { - "general/basic_array_update.c:basic_array_update.h": { - "target": "basic_array_update.h", - "kind": "local", - "resolved_path": "general/basic_array_update.h", - "source_location": { - "filename": "general/basic_array_update.c", - "line": 1, - "column": 1, - "source_line": "#include \"basic_array_update.h\"" - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/basic_array_update.c": [ "add1", @@ -744,9 +678,7 @@ }, "enum_constants": {}, "include_graph": { - "general/basic_array_update.c": [ - "general/basic_array_update.h" - ], + "general/basic_array_update.c": [], "general/basic_array_update.h": [] }, "system_includes": { diff --git a/tests/parser/c/fixtures/general/c_richer_features.json b/tests/parser/c/fixtures/general/c_richer_features.json index 0d868911a..2b6e9d3a3 100644 --- a/tests/parser/c/fixtures/general/c_richer_features.json +++ b/tests/parser/c/fixtures/general/c_richer_features.json @@ -3,11 +3,13 @@ "general/c_richer_features.h": { "filename": "general/c_richer_features.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/c_richer_features.h" + ], "functions": [ { - "name": "x2py_fast_path", + "name": "x2py_slow_path", "result_type": { "model": "CInt", "qualifiers": [], @@ -21,27 +23,174 @@ "prototype_style": "prototype", "source_location": { "filename": "general/c_richer_features.h", - "line": 10, + "line": 12, "column": 1, - "source_line": "int x2py_fast_path(void);" + "source_line": "int x2py_slow_path(void);" }, "start": { "filename": "general/c_richer_features.h", - "line": 10, + "line": 12, "column": 1, - "source_line": "int x2py_fast_path(void);" + "source_line": "int x2py_slow_path(void);" }, "end": null, "declaration_locations": [] }, { - "name": "x2py_slow_path", + "name": "x2py_sort", "result_type": { "model": "CInt", "qualifiers": [], "source_text": "int" }, - "parameters": [], + "parameters": [ + { + "name": "items", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *items", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *items", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item_size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "compare", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "x2py_compare_fn", + "name": "x2py_compare_fn", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef int (*x2py_compare_fn)(const void *left, const void *right)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "int", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *left", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *right", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "source_location": { + "filename": "general/c_richer_features.h", + "line": 15, + "column": 1, + "source_line": "typedef int (*x2py_compare_fn)(const void *left, const void *right);" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "x2py_compare_fn" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [], "specifiers": [], "is_variadic": false, @@ -49,15 +198,15 @@ "prototype_style": "prototype", "source_location": { "filename": "general/c_richer_features.h", - "line": 12, + "line": 40, "column": 1, - "source_line": "int x2py_slow_path(void);" + "source_line": "int x2py_sort(" }, "start": { "filename": "general/c_richer_features.h", - "line": 12, + "line": 40, "column": 1, - "source_line": "int x2py_slow_path(void);" + "source_line": "int x2py_sort(" }, "end": null, "declaration_locations": [] @@ -382,13 +531,7 @@ { "name": "rows", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t rows", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -399,13 +542,7 @@ { "name": "cols", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t cols", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -569,9 +706,6 @@ "column": 1, "source_line": "struct x2py_flags {" } - }, - { - "reference": "struct x2py_context" } ], "unions": [ @@ -649,268 +783,19 @@ } } ], - "enums": [ - { - "reference": "enum x2py_status" - } - ], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "x2py_compare_fn", - "name": "x2py_compare_fn", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef int (*x2py_compare_fn)(const void *left, const void *right)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "int", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *left", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *right", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 15, - "column": 1, - "source_line": "typedef int (*x2py_compare_fn)(const void *left, const void *right);" - }, - "declaration_locations": [] - }, - { - "reference": "x2py_context_handle" - } - ], + "enums": [], + "typedefs": [], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_C_RICHER_FEATURES_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_C_RICHER_FEATURES_H" - } - }, - { - "name": "X2PY_API", - "value": "ret", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_API(ret) ret" - } - }, - { - "name": "X2PY_STRINGIFY", - "value": "#value", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_STRINGIFY(value) #value" - } - }, - { - "name": "X2PY_API", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 56, - "column": 1, - "source_line": "#undef X2PY_API" - } - } - ], - "includes": [ - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_C_RICHER_FEATURES_H", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_C_RICHER_FEATURES_H" - } - }, - { - "directive": "ifdef", - "argument": "X2PY_ENABLE_FAST_PATH", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 9, - "column": 1, - "source_line": "#ifdef X2PY_ENABLE_FAST_PATH" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 11, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 13, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 58, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [ - { - "name": "X2PY_API", - "context": "declaration", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 40, - "column": 1, - "source_line": "X2PY_API(int) x2py_sort(" - }, - "source_text": "X2PY_API(int) x2py_sort(\n void *items,\n size_t count,\n size_t item_size,\n x2py_compare_fn compare\n)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'X2PY_API' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_API(ret) ret" - }, - "unit_kind": "macro", - "unit_name": "X2PY_API" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'X2PY_STRINGIFY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_STRINGIFY(value) #value" - }, - "unit_kind": "macro", - "unit_name": "X2PY_STRINGIFY" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'X2PY_API'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 40, - "column": 1, - "source_line": "X2PY_API(int) x2py_sort(" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "X2PY_API" - } - ] + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] } }, "functions": { - "x2py_fast_path": { - "name": "x2py_fast_path", + "x2py_slow_path": { + "name": "x2py_slow_path", "result_type": { "model": "CInt", "qualifiers": [], @@ -924,27 +809,100 @@ "prototype_style": "prototype", "source_location": { "filename": "general/c_richer_features.h", - "line": 10, + "line": 12, "column": 1, - "source_line": "int x2py_fast_path(void);" + "source_line": "int x2py_slow_path(void);" }, "start": { "filename": "general/c_richer_features.h", - "line": 10, + "line": 12, "column": 1, - "source_line": "int x2py_fast_path(void);" + "source_line": "int x2py_slow_path(void);" }, "end": null, "declaration_locations": [] }, - "x2py_slow_path": { - "name": "x2py_slow_path", + "x2py_sort": { + "name": "x2py_sort", "result_type": { "model": "CInt", "qualifiers": [], "source_text": "int" }, - "parameters": [], + "parameters": [ + { + "name": "items", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *items", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *items", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item_size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "compare", + "type": { + "reference": "x2py_compare_fn" + }, + "declared_type": { + "reference": "x2py_compare_fn" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [], "specifiers": [], "is_variadic": false, @@ -952,15 +910,15 @@ "prototype_style": "prototype", "source_location": { "filename": "general/c_richer_features.h", - "line": 12, + "line": 40, "column": 1, - "source_line": "int x2py_slow_path(void);" + "source_line": "int x2py_sort(" }, "start": { "filename": "general/c_richer_features.h", - "line": 12, + "line": 40, "column": 1, - "source_line": "int x2py_slow_path(void);" + "source_line": "int x2py_sort(" }, "end": null, "declaration_locations": [] @@ -1311,9 +1269,6 @@ "structs": { "x2py_flags": { "reference": "struct x2py_flags" - }, - "x2py_context": { - "reference": "struct x2py_context" } }, "unions": { @@ -1321,75 +1276,15 @@ "reference": "union x2py_scalar" } }, - "enums": { - "x2py_status": { - "reference": "enum x2py_status" - } - }, - "typedefs": { - "x2py_compare_fn": { - "reference": "x2py_compare_fn" - }, - "x2py_context_handle": { - "reference": "x2py_context_handle" - } - }, + "enums": {}, + "typedefs": {}, "variables": {}, - "macros": { - "X2PY_GENERAL_C_RICHER_FEATURES_H": { - "name": "X2PY_GENERAL_C_RICHER_FEATURES_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_C_RICHER_FEATURES_H" - } - }, - "X2PY_API": { - "name": "X2PY_API", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 56, - "column": 1, - "source_line": "#undef X2PY_API" - } - }, - "X2PY_STRINGIFY": { - "name": "X2PY_STRINGIFY", - "value": "#value", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "general/c_richer_features.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_STRINGIFY(value) #value" - } - } - }, - "includes": { - "general/c_richer_features.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/c_richer_features.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/c_richer_features.h": [ - "x2py_fast_path", "x2py_slow_path", + "x2py_sort", "x2py_register_callback", "x2py_status_message", "x2py_fill_matrix" @@ -1431,9 +1326,7 @@ "general/c_richer_features.h": [] }, "system_includes": { - "general/c_richer_features.h": [ - "stddef.h" - ] + "general/c_richer_features.h": [] }, "unresolved_includes": { "general/c_richer_features.h": [] @@ -1441,45 +1334,5 @@ "header_source_pairs": { "general/c_richer_features.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'X2PY_API' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_API(ret) ret" - }, - "unit_kind": "macro", - "unit_name": "X2PY_API" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'X2PY_STRINGIFY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_STRINGIFY(value) #value" - }, - "unit_kind": "macro", - "unit_name": "X2PY_STRINGIFY" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'X2PY_API'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "general/c_richer_features.h", - "line": 40, - "column": 1, - "source_line": "X2PY_API(int) x2py_sort(" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "X2PY_API" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/general/constants.json b/tests/parser/c/fixtures/general/constants.json index e5568a188..08a6032a9 100644 --- a/tests/parser/c/fixtures/general/constants.json +++ b/tests/parser/c/fixtures/general/constants.json @@ -3,8 +3,10 @@ "general/constants.h": { "filename": "general/constants.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/constants.h" + ], "functions": [ { "name": "coordinate_axis_name", @@ -107,13 +109,7 @@ { "name": "coordinate_axis_count", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "parameters": [], "storage": [], @@ -139,11 +135,7 @@ ], "structs": [], "unions": [], - "enums": [ - { - "reference": "enum coordinate_axis" - } - ], + "enums": [], "typedefs": [ { "model": "CTypedef", @@ -238,79 +230,9 @@ "declaration_locations": [] } ], - "macros": [ - { - "name": "X2PY_GENERAL_CONSTANTS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_CONSTANTS_H" - } - }, - { - "name": "X2PY_GENERAL_NMAX", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_GENERAL_NMAX 100" - } - }, - { - "name": "X2PY_GENERAL_ORIGIN_RANK", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_GENERAL_ORIGIN_RANK 3" - } - } - ], - "includes": [ - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/constants.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_CONSTANTS_H", - "source_location": { - "filename": "general/constants.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_CONSTANTS_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/constants.h", - "line": 23, - "column": 1, - "source_line": "#endif" - } - } - ], + "macros": [], + "includes": [], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -401,11 +323,7 @@ }, "structs": {}, "unions": {}, - "enums": { - "coordinate_axis": { - "reference": "enum coordinate_axis" - } - }, + "enums": {}, "typedefs": { "c_int_like": { "reference": "c_int_like" @@ -470,57 +388,8 @@ "declaration_locations": [] } }, - "macros": { - "X2PY_GENERAL_CONSTANTS_H": { - "name": "X2PY_GENERAL_CONSTANTS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_CONSTANTS_H" - } - }, - "X2PY_GENERAL_NMAX": { - "name": "X2PY_GENERAL_NMAX", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_GENERAL_NMAX 100" - } - }, - "X2PY_GENERAL_ORIGIN_RANK": { - "name": "X2PY_GENERAL_ORIGIN_RANK", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/constants.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_GENERAL_ORIGIN_RANK 3" - } - } - }, - "includes": { - "general/constants.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/constants.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/constants.h": [ "coordinate_axis_name", @@ -563,9 +432,7 @@ "general/constants.h": [] }, "system_includes": { - "general/constants.h": [ - "stddef.h" - ] + "general/constants.h": [] }, "unresolved_includes": { "general/constants.h": [] diff --git a/tests/parser/c/fixtures/general/math_api.json b/tests/parser/c/fixtures/general/math_api.json index e64f85279..953040a4e 100644 --- a/tests/parser/c/fixtures/general/math_api.json +++ b/tests/parser/c/fixtures/general/math_api.json @@ -3,8 +3,11 @@ "general/math_api.c": { "filename": "general/math_api.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/math_api.c", + "general/math_api.h" + ], "functions": [ { "name": "norm2", @@ -482,30 +485,7 @@ "typedefs": [], "variables": [], "macros": [], - "includes": [ - { - "target": "math_api.h", - "kind": "local", - "resolved_path": "general/math_api.h", - "source_location": { - "filename": "general/math_api.c", - "line": 1, - "column": 1, - "source_line": "#include \"math_api.h\"" - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/math_api.c", - "line": 3, - "column": 1, - "source_line": "#include " - } - } - ], + "includes": [], "raw_directives": [], "macro_dependencies": [], "diagnostics": [] @@ -513,8 +493,10 @@ "general/math_api.h": { "filename": "general/math_api.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/math_api.h" + ], "functions": [ { "name": "norm2", @@ -943,43 +925,9 @@ "enums": [], "typedefs": [], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_MATH_API_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/math_api.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MATH_API_H" - } - } - ], + "macros": [], "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_MATH_API_H", - "source_location": { - "filename": "general/math_api.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_MATH_API_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/math_api.h", - "line": 9, - "column": 1, - "source_line": "#endif" - } - } - ], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -1460,44 +1408,8 @@ "enums": {}, "typedefs": {}, "variables": {}, - "macros": { - "X2PY_GENERAL_MATH_API_H": { - "name": "X2PY_GENERAL_MATH_API_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/math_api.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MATH_API_H" - } - } - }, - "includes": { - "general/math_api.c:math_api.h": { - "target": "math_api.h", - "kind": "local", - "resolved_path": "general/math_api.h", - "source_location": { - "filename": "general/math_api.c", - "line": 1, - "column": 1, - "source_line": "#include \"math_api.h\"" - } - }, - "general/math_api.c:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/math_api.c", - "line": 3, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/math_api.c": [ "norm2", @@ -1514,15 +1426,11 @@ }, "enum_constants": {}, "include_graph": { - "general/math_api.c": [ - "general/math_api.h" - ], + "general/math_api.c": [], "general/math_api.h": [] }, "system_includes": { - "general/math_api.c": [ - "math.h" - ], + "general/math_api.c": [], "general/math_api.h": [] }, "unresolved_includes": { diff --git a/tests/parser/c/fixtures/general/mesh.json b/tests/parser/c/fixtures/general/mesh.json index d53eb7985..0afa5b34d 100644 --- a/tests/parser/c/fixtures/general/mesh.json +++ b/tests/parser/c/fixtures/general/mesh.json @@ -3,8 +3,10 @@ "general/mesh.h": { "filename": "general/mesh.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/mesh.h" + ], "functions": [ { "name": "node_move", @@ -213,13 +215,7 @@ { "name": "nnodes", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t nnodes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "storage": [], "initializer": null, @@ -295,13 +291,7 @@ { "name": "nnodes", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t nnodes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -450,13 +440,7 @@ { "name": "index", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t index", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -486,14 +470,7 @@ "declaration_locations": [] } ], - "structs": [ - { - "reference": "struct node" - }, - { - "reference": "struct mesh" - } - ], + "structs": [], "unions": [], "enums": [], "typedefs": [ @@ -531,55 +508,9 @@ } ], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_MESH_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/mesh.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MESH_H" - } - } - ], - "includes": [ - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/mesh.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_MESH_H", - "source_location": { - "filename": "general/mesh.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_MESH_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/mesh.h", - "line": 24, - "column": 1, - "source_line": "#endif" - } - } - ], + "macros": [], + "includes": [], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -921,14 +852,7 @@ "declaration_locations": [] } }, - "structs": { - "node": { - "reference": "struct node" - }, - "mesh": { - "reference": "struct mesh" - } - }, + "structs": {}, "unions": {}, "enums": {}, "typedefs": { @@ -940,33 +864,8 @@ } }, "variables": {}, - "macros": { - "X2PY_GENERAL_MESH_H": { - "name": "X2PY_GENERAL_MESH_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/mesh.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MESH_H" - } - } - }, - "includes": { - "general/mesh.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/mesh.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/mesh.h": [ "node_move", @@ -980,9 +879,7 @@ "general/mesh.h": [] }, "system_includes": { - "general/mesh.h": [ - "stddef.h" - ] + "general/mesh.h": [] }, "unresolved_includes": { "general/mesh.h": [] diff --git a/tests/parser/c/fixtures/general/modern_math_physics.json b/tests/parser/c/fixtures/general/modern_math_physics.json index 9677fb3fa..20b954aa7 100644 --- a/tests/parser/c/fixtures/general/modern_math_physics.json +++ b/tests/parser/c/fixtures/general/modern_math_physics.json @@ -3,8 +3,11 @@ "general/modern_math_physics.c": { "filename": "general/modern_math_physics.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/modern_math_physics.c", + "general/modern_math_physics.h" + ], "functions": [ { "name": "init_particle", @@ -805,10 +808,98 @@ ] } ], - "structs": [], + "structs": [ + { + "reference": "struct modern_particle" + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "vector3", + "members": [ + { + "name": "values", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "double values[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 13, + "column": 5, + "source_line": " double values[3];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 12, + "column": 1, + "source_line": "struct vector3 {" + } + } + ], "unions": [], "enums": [], - "typedefs": [], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "modern_particle", + "name": "modern_particle", + "type": { + "reference": "struct modern_particle" + }, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 16, + "column": 1, + "source_line": "typedef struct modern_particle modern_particle;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "vector3", + "name": "vector3", + "type": { + "reference": "struct vector3" + }, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 17, + "column": 1, + "source_line": "typedef struct vector3 vector3;" + }, + "declaration_locations": [] + } + ], "variables": [ { "name": "modern_counter", @@ -829,7 +920,14 @@ "source_line": "int modern_counter = 0;" }, "callback_policy": null, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "general/modern_math_physics.h", + "line": 4, + "column": 1, + "source_line": "extern int modern_counter;" + } + ] }, { "name": "hidden_scale", @@ -856,30 +954,7 @@ } ], "macros": [], - "includes": [ - { - "target": "modern_math_physics.h", - "kind": "local", - "resolved_path": "general/modern_math_physics.h", - "source_location": { - "filename": "general/modern_math_physics.c", - "line": 1, - "column": 1, - "source_line": "#include \"modern_math_physics.h\"" - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/modern_math_physics.c", - "line": 3, - "column": 1, - "source_line": "#include " - } - } - ], + "includes": [], "raw_directives": [], "macro_dependencies": [], "diagnostics": [] @@ -887,8 +962,10 @@ "general/modern_math_physics.h": { "filename": "general/modern_math_physics.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/modern_math_physics.h" + ], "functions": [ { "name": "init_particle", @@ -1520,7 +1597,93 @@ ], "structs": [ { - "reference": "struct modern_particle" + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "modern_particle", + "members": [ + { + "name": "id", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int id" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 7, + "column": 5, + "source_line": " int id;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "mass", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double mass" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 8, + "column": 5, + "source_line": " double mass;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "position", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "double position[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 9, + "column": 5, + "source_line": " double position[3];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "general/modern_math_physics.h", + "line": 6, + "column": 1, + "source_line": "struct modern_particle {" + } }, { "model": "CStruct", @@ -1620,43 +1783,9 @@ "declaration_locations": [] } ], - "macros": [ - { - "name": "X2PY_GENERAL_MODERN_MATH_PHYSICS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/modern_math_physics.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MODERN_MATH_PHYSICS_H" - } - } - ], + "macros": [], "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_MODERN_MATH_PHYSICS_H", - "source_location": { - "filename": "general/modern_math_physics.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_MODERN_MATH_PHYSICS_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/modern_math_physics.h", - "line": 26, - "column": 1, - "source_line": "#endif" - } - } - ], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -2426,44 +2555,8 @@ "declaration_locations": [] } }, - "macros": { - "X2PY_GENERAL_MODERN_MATH_PHYSICS_H": { - "name": "X2PY_GENERAL_MODERN_MATH_PHYSICS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/modern_math_physics.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_MODERN_MATH_PHYSICS_H" - } - } - }, - "includes": { - "general/modern_math_physics.c:modern_math_physics.h": { - "target": "modern_math_physics.h", - "kind": "local", - "resolved_path": "general/modern_math_physics.h", - "source_location": { - "filename": "general/modern_math_physics.c", - "line": 1, - "column": 1, - "source_line": "#include \"modern_math_physics.h\"" - } - }, - "general/modern_math_physics.c:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/modern_math_physics.c", - "line": 3, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/modern_math_physics.c": [ "init_particle", @@ -2484,15 +2577,11 @@ }, "enum_constants": {}, "include_graph": { - "general/modern_math_physics.c": [ - "general/modern_math_physics.h" - ], + "general/modern_math_physics.c": [], "general/modern_math_physics.h": [] }, "system_includes": { - "general/modern_math_physics.c": [ - "math.h" - ], + "general/modern_math_physics.c": [], "general/modern_math_physics.h": [] }, "unresolved_includes": { @@ -2504,5 +2593,32 @@ "general/modern_math_physics.c" ] }, - "diagnostics": [] + "diagnostics": [ + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'modern_particle'.", + "severity": "error", + "location": { + "filename": "general/modern_math_physics.h", + "line": 6, + "column": 1, + "source_line": "struct modern_particle {" + }, + "unit_kind": "struct", + "unit_name": "modern_particle" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'vector3'.", + "severity": "error", + "location": { + "filename": "general/modern_math_physics.h", + "line": 12, + "column": 1, + "source_line": "struct vector3 {" + }, + "unit_kind": "struct", + "unit_name": "vector3" + } + ] } diff --git a/tests/parser/c/fixtures/general/name_reuse.json b/tests/parser/c/fixtures/general/name_reuse.json index 4dcd1eb8e..4813368b3 100644 --- a/tests/parser/c/fixtures/general/name_reuse.json +++ b/tests/parser/c/fixtures/general/name_reuse.json @@ -3,8 +3,10 @@ "general/name_reuse.h": { "filename": "general/name_reuse.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/name_reuse.h" + ], "functions": [ { "name": "do_work_i", @@ -129,16 +131,14 @@ { "name": "same_name", "type": { - "model": "CTypedef", + "model": "CBool", "qualifiers": [], - "source_text": "bool same_name", - "name": "bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "_Bool same_name" }, "declared_type": { - "reference": "bool" + "model": "CBool", + "qualifiers": [], + "source_text": "_Bool same_name" }, "source_location": null, "callback_policy": null @@ -220,13 +220,13 @@ "filename": "general/name_reuse.h", "line": 18, "column": 1, - "source_line": "void do_work_l(bool same_name, struct same_name *shared);" + "source_line": "void do_work_l(" }, "start": { "filename": "general/name_reuse.h", "line": 18, "column": 1, - "source_line": "void do_work_l(bool same_name, struct same_name *shared);" + "source_line": "void do_work_l(" }, "end": null, "declaration_locations": [] @@ -365,13 +365,9 @@ { "name": "convert_to_logical", "result_type": { - "model": "CTypedef", + "model": "CBool", "qualifiers": [], - "source_text": "bool", - "name": "bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "_Bool" }, "parameters": [ { @@ -427,23 +423,19 @@ "filename": "general/name_reuse.h", "line": 21, "column": 1, - "source_line": "bool convert_to_logical(const char *same_name);" + "source_line": "_Bool " }, "start": { "filename": "general/name_reuse.h", "line": 21, "column": 1, - "source_line": "bool convert_to_logical(const char *same_name);" + "source_line": "_Bool " }, "end": null, "declaration_locations": [] } ], - "structs": [ - { - "reference": "struct same_name" - } - ], + "structs": [], "unions": [], "enums": [], "typedefs": [], @@ -493,13 +485,9 @@ { "name": "same_name_l", "type": { - "model": "CTypedef", + "model": "CBool", "qualifiers": [], - "source_text": "extern bool same_name_l", - "name": "bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "extern _Bool same_name_l" }, "storage": [ "extern" @@ -510,7 +498,7 @@ "filename": "general/name_reuse.h", "line": 12, "column": 1, - "source_line": "extern bool same_name_l;" + "source_line": "extern " }, "callback_policy": null, "declaration_locations": [] @@ -574,55 +562,9 @@ "declaration_locations": [] } ], - "macros": [ - { - "name": "X2PY_GENERAL_NAME_REUSE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/name_reuse.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_NAME_REUSE_H" - } - } - ], - "includes": [ - { - "target": "stdbool.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/name_reuse.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_NAME_REUSE_H", - "source_location": { - "filename": "general/name_reuse.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_NAME_REUSE_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/name_reuse.h", - "line": 23, - "column": 1, - "source_line": "#endif" - } - } - ], + "macros": [], + "includes": [], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -751,10 +693,14 @@ { "name": "same_name", "type": { - "reference": "bool" + "model": "CBool", + "qualifiers": [], + "source_text": "_Bool same_name" }, "declared_type": { - "reference": "bool" + "model": "CBool", + "qualifiers": [], + "source_text": "_Bool same_name" }, "source_location": null, "callback_policy": null @@ -804,13 +750,13 @@ "filename": "general/name_reuse.h", "line": 18, "column": 1, - "source_line": "void do_work_l(bool same_name, struct same_name *shared);" + "source_line": "void do_work_l(" }, "start": { "filename": "general/name_reuse.h", "line": 18, "column": 1, - "source_line": "void do_work_l(bool same_name, struct same_name *shared);" + "source_line": "void do_work_l(" }, "end": null, "declaration_locations": [] @@ -949,7 +895,9 @@ "convert_to_logical": { "name": "convert_to_logical", "result_type": { - "reference": "bool" + "model": "CBool", + "qualifiers": [], + "source_text": "_Bool" }, "parameters": [ { @@ -1005,23 +953,19 @@ "filename": "general/name_reuse.h", "line": 21, "column": 1, - "source_line": "bool convert_to_logical(const char *same_name);" + "source_line": "_Bool " }, "start": { "filename": "general/name_reuse.h", "line": 21, "column": 1, - "source_line": "bool convert_to_logical(const char *same_name);" + "source_line": "_Bool " }, "end": null, "declaration_locations": [] } }, - "structs": { - "same_name": { - "reference": "struct same_name" - } - }, + "structs": {}, "unions": {}, "enums": {}, "typedefs": {}, @@ -1071,7 +1015,9 @@ "same_name_l": { "name": "same_name_l", "type": { - "reference": "bool" + "model": "CBool", + "qualifiers": [], + "source_text": "extern _Bool same_name_l" }, "storage": [ "extern" @@ -1082,7 +1028,7 @@ "filename": "general/name_reuse.h", "line": 12, "column": 1, - "source_line": "extern bool same_name_l;" + "source_line": "extern " }, "callback_policy": null, "declaration_locations": [] @@ -1146,33 +1092,8 @@ "declaration_locations": [] } }, - "macros": { - "X2PY_GENERAL_NAME_REUSE_H": { - "name": "X2PY_GENERAL_NAME_REUSE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/name_reuse.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_NAME_REUSE_H" - } - } - }, - "includes": { - "general/name_reuse.h:stdbool.h": { - "target": "stdbool.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "general/name_reuse.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/name_reuse.h": [ "do_work_i", @@ -1188,9 +1109,7 @@ "general/name_reuse.h": [] }, "system_includes": { - "general/name_reuse.h": [ - "stdbool.h" - ] + "general/name_reuse.h": [] }, "unresolved_includes": { "general/name_reuse.h": [] diff --git a/tests/parser/c/fixtures/general/particles.json b/tests/parser/c/fixtures/general/particles.json index 88498cee2..9d0f8c2ed 100644 --- a/tests/parser/c/fixtures/general/particles.json +++ b/tests/parser/c/fixtures/general/particles.json @@ -3,8 +3,11 @@ "general/particles.c": { "filename": "general/particles.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/particles.c", + "general/particles.h" + ], "functions": [ { "name": "particle_touch", @@ -421,10 +424,59 @@ ] } ], - "structs": [], + "structs": [ + { + "reference": "struct particle" + } + ], "unions": [], "enums": [], - "typedefs": [], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "particle", + "name": "particle", + "type": { + "reference": "struct particle" + }, + "source_location": { + "filename": "general/particles.h", + "line": 9, + "column": 1, + "source_line": "typedef struct particle particle;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "particle_handle", + "name": "particle_handle", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef struct particle *particle_handle", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct particle" + } + ] + }, + "source_location": { + "filename": "general/particles.h", + "line": 10, + "column": 1, + "source_line": "typedef struct particle *particle_handle;" + }, + "declaration_locations": [] + } + ], "variables": [ { "name": "current_particle", @@ -447,19 +499,7 @@ } ], "macros": [], - "includes": [ - { - "target": "particles.h", - "kind": "local", - "resolved_path": "general/particles.h", - "source_location": { - "filename": "general/particles.c", - "line": 1, - "column": 1, - "source_line": "#include \"particles.h\"" - } - } - ], + "includes": [], "raw_directives": [], "macro_dependencies": [], "diagnostics": [] @@ -467,8 +507,10 @@ "general/particles.h": { "filename": "general/particles.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/particles.h" + ], "functions": [ { "name": "particle_touch", @@ -759,7 +801,74 @@ ], "structs": [ { - "reference": "struct particle" + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "particle", + "members": [ + { + "name": "id", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int id" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/particles.h", + "line": 5, + "column": 5, + "source_line": " int id;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "double x[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "general/particles.h", + "line": 6, + "column": 5, + "source_line": " double x[3];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "general/particles.h", + "line": 4, + "column": 1, + "source_line": "struct particle {" + } } ], "unions": [], @@ -798,43 +907,9 @@ } ], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_PARTICLES_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/particles.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_PARTICLES_H" - } - } - ], + "macros": [], "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_PARTICLES_H", - "source_location": { - "filename": "general/particles.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_PARTICLES_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/particles.h", - "line": 17, - "column": 1, - "source_line": "#endif" - } - } - ], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -1202,33 +1277,8 @@ "declaration_locations": [] } }, - "macros": { - "X2PY_GENERAL_PARTICLES_H": { - "name": "X2PY_GENERAL_PARTICLES_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/particles.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_PARTICLES_H" - } - } - }, - "includes": { - "general/particles.c:particles.h": { - "target": "particles.h", - "kind": "local", - "resolved_path": "general/particles.h", - "source_location": { - "filename": "general/particles.c", - "line": 1, - "column": 1, - "source_line": "#include \"particles.h\"" - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "general/particles.c": [ "particle_touch", @@ -1245,9 +1295,7 @@ }, "enum_constants": {}, "include_graph": { - "general/particles.c": [ - "general/particles.h" - ], + "general/particles.c": [], "general/particles.h": [] }, "system_includes": { @@ -1263,5 +1311,19 @@ "general/particles.c" ] }, - "diagnostics": [] + "diagnostics": [ + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'particle'.", + "severity": "error", + "location": { + "filename": "general/particles.h", + "line": 4, + "column": 1, + "source_line": "struct particle {" + }, + "unit_kind": "struct", + "unit_name": "particle" + } + ] } diff --git a/tests/parser/c/fixtures/general/shape_exprs.json b/tests/parser/c/fixtures/general/shape_exprs.json index 1e9fedb78..8fcfb0a09 100644 --- a/tests/parser/c/fixtures/general/shape_exprs.json +++ b/tests/parser/c/fixtures/general/shape_exprs.json @@ -3,8 +3,10 @@ "general/shape_exprs.h": { "filename": "general/shape_exprs.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "general/shape_exprs.h" + ], "functions": [ { "name": "fill_grid", @@ -19,7 +21,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static 1][X2PY_EXPR_N1]", + "source_text": "int x[static 1][(4 + 2)]", "components": [ { "model": "CPointer", @@ -30,7 +32,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -45,7 +47,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static 1][X2PY_EXPR_N1]", + "source_text": "int x[static 1][(4 + 2)]", "components": [ { "model": "CArray", @@ -60,7 +62,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -85,13 +87,13 @@ "filename": "general/shape_exprs.h", "line": 10, "column": 1, - "source_line": "void fill_grid(int x[static 1][X2PY_EXPR_N1]);" + "source_line": "void fill_grid(int x[static 1][(4 + 2)]);" }, "start": { "filename": "general/shape_exprs.h", "line": 10, "column": 1, - "source_line": "void fill_grid(int x[static 1][X2PY_EXPR_N1]);" + "source_line": "void fill_grid(int x[static 1][(4 + 2)]);" }, "end": null, "declaration_locations": [] @@ -214,7 +216,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static X2PY_EXPR_N1]", + "source_text": "int x[static (4 + 2)]", "components": [ { "model": "CPointer", @@ -231,13 +233,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static X2PY_EXPR_N1]", + "source_text": "int x[static (4 + 2)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -257,7 +259,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float y[static X2PY_EXPR_N0 * 2]", + "source_text": "float y[static 4 * 2]", "components": [ { "model": "CPointer", @@ -274,13 +276,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float y[static X2PY_EXPR_N0 * 2]", + "source_text": "float y[static 4 * 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N0 * 2", + "bound": "4 * 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -329,7 +331,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x1[static X2PY_EXPR_A + X2PY_EXPR_B]", + "source_text": "int x1[static 8 + 3]", "components": [ { "model": "CPointer", @@ -346,13 +348,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x1[static X2PY_EXPR_A + X2PY_EXPR_B]", + "source_text": "int x1[static 8 + 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A + X2PY_EXPR_B", + "bound": "8 + 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -372,7 +374,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x2[static X2PY_EXPR_A - X2PY_EXPR_B]", + "source_text": "int x2[static 8 - 3]", "components": [ { "model": "CPointer", @@ -389,13 +391,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x2[static X2PY_EXPR_A - X2PY_EXPR_B]", + "source_text": "int x2[static 8 - 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A - X2PY_EXPR_B", + "bound": "8 - 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -415,7 +417,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x3[static X2PY_EXPR_B * X2PY_EXPR_C]", + "source_text": "int x3[static 3 * 2]", "components": [ { "model": "CPointer", @@ -432,13 +434,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x3[static X2PY_EXPR_B * X2PY_EXPR_C]", + "source_text": "int x3[static 3 * 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_B * X2PY_EXPR_C", + "bound": "3 * 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -458,7 +460,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x4[static X2PY_EXPR_A / X2PY_EXPR_C]", + "source_text": "int x4[static 8 / 2]", "components": [ { "model": "CPointer", @@ -475,13 +477,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x4[static X2PY_EXPR_A / X2PY_EXPR_C]", + "source_text": "int x4[static 8 / 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A / X2PY_EXPR_C", + "bound": "8 / 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -501,7 +503,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x5[static 1 << X2PY_EXPR_B]", + "source_text": "int x5[static 1 << 3]", "components": [ { "model": "CPointer", @@ -518,13 +520,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x5[static 1 << X2PY_EXPR_B]", + "source_text": "int x5[static 1 << 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "1 << X2PY_EXPR_B", + "bound": "1 << 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -544,7 +546,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x6[static (X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1]", + "source_text": "int x6[static (8 + 3) * 2 - 1]", "components": [ { "model": "CPointer", @@ -561,13 +563,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x6[static (X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1]", + "source_text": "int x6[static (8 + 3) * 2 - 1]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1", + "bound": "(8 + 3) * 2 - 1", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -587,7 +589,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x7[static -(-X2PY_EXPR_A + X2PY_EXPR_B)]", + "source_text": "int x7[static -(-8 + 3)]", "components": [ { "model": "CPointer", @@ -604,13 +606,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x7[static -(-X2PY_EXPR_A + X2PY_EXPR_B)]", + "source_text": "int x7[static -(-8 + 3)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "-(-X2PY_EXPR_A + X2PY_EXPR_B)", + "bound": "-(-8 + 3)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -630,7 +632,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x8[static (X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1]", + "source_text": "int x8[static (8 + 3) * (2 + 1) - 1]", "components": [ { "model": "CPointer", @@ -647,13 +649,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x8[static (X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1]", + "source_text": "int x8[static (8 + 3) * (2 + 1) - 1]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1", + "bound": "(8 + 3) * (2 + 1) - 1", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -673,7 +675,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x9[static (X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)]", + "source_text": "int x9[static (8 - 3) * (8 - 2)]", "components": [ { "model": "CPointer", @@ -690,13 +692,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x9[static (X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)]", + "source_text": "int x9[static (8 - 3) * (8 - 2)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)", + "bound": "(8 - 3) * (8 - 2)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -738,103 +740,9 @@ "enums": [], "typedefs": [], "variables": [], - "macros": [ - { - "name": "X2PY_GENERAL_SHAPE_EXPRS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_SHAPE_EXPRS_H" - } - }, - { - "name": "X2PY_EXPR_N0", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 4, - "column": 1, - "source_line": "#define X2PY_EXPR_N0 4" - } - }, - { - "name": "X2PY_EXPR_N1", - "value": "(X2PY_EXPR_N0 + 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 5, - "column": 1, - "source_line": "#define X2PY_EXPR_N1 (X2PY_EXPR_N0 + 2)" - } - }, - { - "name": "X2PY_EXPR_A", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_EXPR_A 8" - } - }, - { - "name": "X2PY_EXPR_B", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_EXPR_B 3" - } - }, - { - "name": "X2PY_EXPR_C", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 8, - "column": 1, - "source_line": "#define X2PY_EXPR_C 2" - } - } - ], + "macros": [], "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "X2PY_GENERAL_SHAPE_EXPRS_H", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 1, - "column": 1, - "source_line": "#ifndef X2PY_GENERAL_SHAPE_EXPRS_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "general/shape_exprs.h", - "line": 30, - "column": 1, - "source_line": "#endif" - } - } - ], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } @@ -853,7 +761,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static 1][X2PY_EXPR_N1]", + "source_text": "int x[static 1][(4 + 2)]", "components": [ { "model": "CPointer", @@ -864,7 +772,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -879,7 +787,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static 1][X2PY_EXPR_N1]", + "source_text": "int x[static 1][(4 + 2)]", "components": [ { "model": "CArray", @@ -894,7 +802,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -919,13 +827,13 @@ "filename": "general/shape_exprs.h", "line": 10, "column": 1, - "source_line": "void fill_grid(int x[static 1][X2PY_EXPR_N1]);" + "source_line": "void fill_grid(int x[static 1][(4 + 2)]);" }, "start": { "filename": "general/shape_exprs.h", "line": 10, "column": 1, - "source_line": "void fill_grid(int x[static 1][X2PY_EXPR_N1]);" + "source_line": "void fill_grid(int x[static 1][(4 + 2)]);" }, "end": null, "declaration_locations": [] @@ -1048,7 +956,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static X2PY_EXPR_N1]", + "source_text": "int x[static (4 + 2)]", "components": [ { "model": "CPointer", @@ -1065,13 +973,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x[static X2PY_EXPR_N1]", + "source_text": "int x[static (4 + 2)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N1", + "bound": "(4 + 2)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1091,7 +999,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float y[static X2PY_EXPR_N0 * 2]", + "source_text": "float y[static 4 * 2]", "components": [ { "model": "CPointer", @@ -1108,13 +1016,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float y[static X2PY_EXPR_N0 * 2]", + "source_text": "float y[static 4 * 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_N0 * 2", + "bound": "4 * 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1163,7 +1071,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x1[static X2PY_EXPR_A + X2PY_EXPR_B]", + "source_text": "int x1[static 8 + 3]", "components": [ { "model": "CPointer", @@ -1180,13 +1088,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x1[static X2PY_EXPR_A + X2PY_EXPR_B]", + "source_text": "int x1[static 8 + 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A + X2PY_EXPR_B", + "bound": "8 + 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1206,7 +1114,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x2[static X2PY_EXPR_A - X2PY_EXPR_B]", + "source_text": "int x2[static 8 - 3]", "components": [ { "model": "CPointer", @@ -1223,13 +1131,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x2[static X2PY_EXPR_A - X2PY_EXPR_B]", + "source_text": "int x2[static 8 - 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A - X2PY_EXPR_B", + "bound": "8 - 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1249,7 +1157,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x3[static X2PY_EXPR_B * X2PY_EXPR_C]", + "source_text": "int x3[static 3 * 2]", "components": [ { "model": "CPointer", @@ -1266,13 +1174,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x3[static X2PY_EXPR_B * X2PY_EXPR_C]", + "source_text": "int x3[static 3 * 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_B * X2PY_EXPR_C", + "bound": "3 * 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1292,7 +1200,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x4[static X2PY_EXPR_A / X2PY_EXPR_C]", + "source_text": "int x4[static 8 / 2]", "components": [ { "model": "CPointer", @@ -1309,13 +1217,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x4[static X2PY_EXPR_A / X2PY_EXPR_C]", + "source_text": "int x4[static 8 / 2]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "X2PY_EXPR_A / X2PY_EXPR_C", + "bound": "8 / 2", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1335,7 +1243,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x5[static 1 << X2PY_EXPR_B]", + "source_text": "int x5[static 1 << 3]", "components": [ { "model": "CPointer", @@ -1352,13 +1260,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x5[static 1 << X2PY_EXPR_B]", + "source_text": "int x5[static 1 << 3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "1 << X2PY_EXPR_B", + "bound": "1 << 3", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1378,7 +1286,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x6[static (X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1]", + "source_text": "int x6[static (8 + 3) * 2 - 1]", "components": [ { "model": "CPointer", @@ -1395,13 +1303,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x6[static (X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1]", + "source_text": "int x6[static (8 + 3) * 2 - 1]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1", + "bound": "(8 + 3) * 2 - 1", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1421,7 +1329,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x7[static -(-X2PY_EXPR_A + X2PY_EXPR_B)]", + "source_text": "int x7[static -(-8 + 3)]", "components": [ { "model": "CPointer", @@ -1438,13 +1346,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x7[static -(-X2PY_EXPR_A + X2PY_EXPR_B)]", + "source_text": "int x7[static -(-8 + 3)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "-(-X2PY_EXPR_A + X2PY_EXPR_B)", + "bound": "-(-8 + 3)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1464,7 +1372,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x8[static (X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1]", + "source_text": "int x8[static (8 + 3) * (2 + 1) - 1]", "components": [ { "model": "CPointer", @@ -1481,13 +1389,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x8[static (X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1]", + "source_text": "int x8[static (8 + 3) * (2 + 1) - 1]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1", + "bound": "(8 + 3) * (2 + 1) - 1", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1507,7 +1415,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x9[static (X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)]", + "source_text": "int x9[static (8 - 3) * (8 - 2)]", "components": [ { "model": "CPointer", @@ -1524,13 +1432,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int x9[static (X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)]", + "source_text": "int x9[static (8 - 3) * (8 - 2)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "(X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)", + "bound": "(8 - 3) * (8 - 2)", "is_static_minimum": true, "is_variable_length": false, "is_flexible": false @@ -1572,80 +1480,7 @@ "enums": {}, "typedefs": {}, "variables": {}, - "macros": { - "X2PY_GENERAL_SHAPE_EXPRS_H": { - "name": "X2PY_GENERAL_SHAPE_EXPRS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 2, - "column": 1, - "source_line": "#define X2PY_GENERAL_SHAPE_EXPRS_H" - } - }, - "X2PY_EXPR_N0": { - "name": "X2PY_EXPR_N0", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 4, - "column": 1, - "source_line": "#define X2PY_EXPR_N0 4" - } - }, - "X2PY_EXPR_N1": { - "name": "X2PY_EXPR_N1", - "value": "(X2PY_EXPR_N0 + 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 5, - "column": 1, - "source_line": "#define X2PY_EXPR_N1 (X2PY_EXPR_N0 + 2)" - } - }, - "X2PY_EXPR_A": { - "name": "X2PY_EXPR_A", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 6, - "column": 1, - "source_line": "#define X2PY_EXPR_A 8" - } - }, - "X2PY_EXPR_B": { - "name": "X2PY_EXPR_B", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 7, - "column": 1, - "source_line": "#define X2PY_EXPR_B 3" - } - }, - "X2PY_EXPR_C": { - "name": "X2PY_EXPR_C", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "general/shape_exprs.h", - "line": 8, - "column": 1, - "source_line": "#define X2PY_EXPR_C 2" - } - } - }, + "macros": {}, "includes": {}, "functions_by_file": { "general/shape_exprs.h": [ diff --git a/tests/parser/c/fixtures/json/cJSON.json b/tests/parser/c/fixtures/json/cJSON.json index eee14819e..45d4f644f 100644 --- a/tests/parser/c/fixtures/json/cJSON.json +++ b/tests/parser/c/fixtures/json/cJSON.json @@ -3,23 +3,80 @@ "json/cJSON.c": { "filename": "json/cJSON.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "json/cJSON.c", + "json/cJSON.h" + ], "functions": [ { - "name": "case_insensitive_strcmp", + "name": "cJSON_Version", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 124, + "column": 1, + "source_line": "const char* cJSON_Version(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 124, + "column": 1, + "source_line": "const char* cJSON_Version(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 147, + "column": 1, + "source_line": "const char* cJSON_Version(void);" + } + ] + }, + { + "name": "cJSON_InitHooks", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "string1", + "name": "hooks", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string1", + "source_text": "cJSON_Hooks * hooks", "components": [ { "model": "CPointer", @@ -27,18 +84,152 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON_Hooks", + "name": "cJSON_Hooks", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "cJSON_Hooks", + "members": [ + { + "name": "malloc_fn", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *( *malloc_fn)(size_t sz)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameter_types": [ + { + "reference": "size_t" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 128, + "column": 7, + "source_line": " void *( *malloc_fn)(size_t sz);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "free_fn", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void ( *free_fn)(void *ptr)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *ptr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 129, + "column": 7, + "source_line": " void ( *free_fn)(void *ptr);" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.h", + "line": 125, + "column": 1, + "source_line": "typedef struct cJSON_Hooks" + } + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 125, + "column": 1, + "source_line": "typedef struct cJSON_Hooks" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string1", + "source_text": "cJSON_Hooks * hooks", "components": [ { "model": "CPointer", @@ -46,23 +237,302 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON_Hooks" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 209, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 209, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 238, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "string2", + "filename": "json/cJSON.h", + "line": 150, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks);" + } + ] + }, + { + "name": "cJSON_Parse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON", + "name": "cJSON", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "cJSON", + "members": [ + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 106, + "column": 5, + "source_line": " struct cJSON *next;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "prev", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 107, + "column": 5, + "source_line": " struct cJSON *prev;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 109, + "column": 5, + "source_line": " struct cJSON *child;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 112, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valuestring", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 115, + "column": 5, + "source_line": " char *valuestring;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valueint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int valueint" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 117, + "column": 5, + "source_line": " int valueint;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valuedouble", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double valuedouble" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 119, + "column": 5, + "source_line": " double valuedouble;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 122, + "column": 5, + "source_line": " char *string;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.h", + "line": 103, + "column": 1, + "source_line": "typedef struct cJSON" + } + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 103, + "column": 1, + "source_line": "typedef struct cJSON" + }, + "declaration_locations": [] + } + ] + }, + "parameters": [ + { + "name": "value", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string2", + "source_text": "const char *value", "components": [ { "model": "CPointer", @@ -70,18 +540,18 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string2", + "source_text": "const char *value", "components": [ { "model": "CPointer", @@ -89,11 +559,11 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, @@ -101,39 +571,44 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 133, + "line": 1227, "column": 1, - "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + "source_line": "cJSON * cJSON_Parse(const char *value)" }, "start": { "filename": "json/cJSON.c", - "line": 133, + "line": 1227, "column": 1, - "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + "source_line": "cJSON * cJSON_Parse(const char *value)" }, "end": { "filename": "json/cJSON.c", - "line": 154, + "line": 1230, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 154, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value);" + } + ] }, { - "name": "cJSON_strdup", + "name": "cJSON_ParseWithLength", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -141,19 +616,17 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "string", + "name": "value", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * string", + "source_text": "const char *value", "components": [ { "model": "CPointer", @@ -161,18 +634,18 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * string", + "source_text": "const char *value", "components": [ { "model": "CPointer", @@ -180,11 +653,11 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, @@ -192,99 +665,51 @@ "callback_policy": null }, { - "name": "hooks", + "name": "buffer_length", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "internal_hooks", - "name": "internal_hooks", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "internal_hooks", - "members": [], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "json/cJSON.c", - "line": 156, - "column": 1, - "source_line": "typedef struct internal_hooks" - } - }, - "source_location": { - "filename": "json/cJSON.c", - "line": 156, - "column": 1, - "source_line": "typedef struct internal_hooks" - }, - "declaration_locations": [] - } - ] + "reference": "size_t" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "internal_hooks" - } - ] + "reference": "size_t" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 188, + "line": 1232, "column": 1, - "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length)" }, "start": { "filename": "json/cJSON.c", - "line": 188, + "line": 1232, "column": 1, - "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length)" }, "end": { "filename": "json/cJSON.c", - "line": 207, + "line": 1235, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 155, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length);" + } + ] }, { - "name": "cJSON_New_Item", + "name": "cJSON_ParseWithOpts", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -296,170 +721,221 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "parameters": [ { - "name": "hooks", + "name": "value", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *value", "components": [ { "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", "qualifiers": [ "const" ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char **return_parse_end", "components": [ { "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", "qualifiers": [ "const" ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON_bool", + "name": "cJSON_bool", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "typedef int cJSON_bool" + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 132, + "column": 1, + "source_line": "typedef int cJSON_bool;" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 241, - "column": 1, - "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 241, - "column": 1, - "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 250, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "get_decimal_point", - "result_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - }, - "parameters": [], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 279, + "line": 1131, "column": 1, - "source_line": "static unsigned char get_decimal_point(void)" + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" }, "start": { "filename": "json/cJSON.c", - "line": 279, + "line": 1131, "column": 1, - "source_line": "static unsigned char get_decimal_point(void)" + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" }, "end": { "filename": "json/cJSON.c", - "line": 287, + "line": 1144, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 158, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated);" + } + ] }, { - "name": "parse_number", + "name": "cJSON_ParseWithLengthOpts", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "value", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const char *value", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const char *value", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -467,223 +943,119 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "buffer_length", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", + "model": "CPointer", "qualifiers": [], - "source_text": "parse_buffer", - "name": "parse_buffer", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "content", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *content", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 291, - "column": 5, - "source_line": " const unsigned char *content;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "length", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t length", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 292, - "column": 5, - "source_line": " size_t length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "offset", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t offset", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 293, - "column": 5, - "source_line": " size_t offset;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "depth", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t depth", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 294, - "column": 5, - "source_line": " size_t depth; /* How deeply nested (in arrays/objects) is the input at the current offset. */" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hooks", - "type": { - "reference": "internal_hooks" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 295, - "column": 5, - "source_line": " internal_hooks hooks;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@json/cJSON.c:289:1", - "is_incomplete": false, - "source_location": { - "filename": "json/cJSON.c", - "line": 289, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "json/cJSON.c", - "line": 289, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char **return_parse_end", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "parse_buffer" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 307, + "line": 1147, "column": 1, - "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" }, "start": { "filename": "json/cJSON.c", - "line": 307, + "line": 1147, "column": 1, - "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" }, "end": { "filename": "json/cJSON.c", - "line": 408, + "line": 1224, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 159, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated);" + } + ] }, { - "name": "ensure", + "name": "cJSON_Print", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "char", "components": [ { "model": "CPointer", @@ -691,327 +1063,130 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "char" } ] }, "parameters": [ { - "name": "p", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const p", + "source_text": "const cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "printbuffer", - "name": "printbuffer", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 480, - "column": 5, - "source_line": " unsigned char *buffer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "length", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t length", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 481, - "column": 5, - "source_line": " size_t length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "offset", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t offset", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 482, - "column": 5, - "source_line": " size_t offset;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "depth", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t depth", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 483, - "column": 5, - "source_line": " size_t depth; /* current nesting depth (for formatted printing) */" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "noalloc", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool noalloc", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 484, - "column": 5, - "source_line": " cJSON_bool noalloc;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "format", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool format", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 485, - "column": 5, - "source_line": " cJSON_bool format; /* is this print a formatted print */" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hooks", - "type": { - "reference": "internal_hooks" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 486, - "column": 5, - "source_line": " internal_hooks hooks;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@json/cJSON.c:478:1", - "is_incomplete": false, - "source_location": { - "filename": "json/cJSON.c", - "line": 478, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "json/cJSON.c", - "line": 478, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "printbuffer * const p", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "needed", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t needed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 490, + "line": 1307, "column": 1, - "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + "source_line": "char * cJSON_Print(const cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 490, + "line": 1307, "column": 1, - "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + "source_line": "char * cJSON_Print(const cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 573, + "line": 1310, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 162, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item);" + } + ] }, { - "name": "update_offset", + "name": "cJSON_PrintUnformatted", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "buffer", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const buffer", + "source_text": "const cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const buffer", + "source_text": "const cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -1019,113 +1194,156 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 576, + "line": 1312, "column": 1, - "source_line": "static void update_offset(printbuffer * const buffer)" + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 576, + "line": 1312, "column": 1, - "source_line": "static void update_offset(printbuffer * const buffer)" + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 586, + "line": 1315, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 164, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item);" + } + ] }, { - "name": "compare_double", + "name": "cJSON_PrintBuffered", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "a", + "name": "item", "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double a" + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "prebuffer", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "double b" + "source_text": "int prebuffer" }, "declared_type": { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double b" + "source_text": "int prebuffer" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fmt", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 589, + "line": 1317, "column": 1, - "source_line": "static cJSON_bool compare_double(double a, double b)" + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" }, "start": { "filename": "json/cJSON.c", - "line": 589, + "line": 1317, "column": 1, - "source_line": "static cJSON_bool compare_double(double a, double b)" + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" }, "end": { "filename": "json/cJSON.c", - "line": 593, + "line": 1346, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 166, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);" + } + ] }, { - "name": "print_number", + "name": "cJSON_PrintPreallocated", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -1133,38 +1351,26 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -1176,121 +1382,144 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "char *buffer", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "char *buffer", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "length", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 596, + "line": 1348, "column": 1, - "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" }, "start": { "filename": "json/cJSON.c", - "line": 596, + "line": 1348, "column": 1, - "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" }, "end": { "filename": "json/cJSON.c", - "line": 663, + "line": 1365, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 169, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);" + } + ] }, { - "name": "parse_hex4", + "name": "cJSON_Delete", "result_type": { - "model": "CUnsignedInt", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned" + "source_text": "void" }, "parameters": [ { - "name": "input", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -1298,141 +1527,138 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 666, + "line": 253, "column": 1, - "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + "source_line": "void cJSON_Delete(cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 666, + "line": 253, "column": 1, - "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + "source_line": "void cJSON_Delete(cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 699, + "line": 276, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 171, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item);" + } + ] }, { - "name": "utf16_literal_to_utf8", + "name": "cJSON_GetArraySize", "result_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "int" }, "parameters": [ { - "name": "input_pointer", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input_pointer", + "source_text": "const cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input_pointer", + "source_text": "const cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1899, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1899, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1920, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "input_end", - "type": { - "model": "CComposedType", + "filename": "json/cJSON.h", + "line": 174, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array);" + } + ] + }, + { + "name": "cJSON_GetArrayItem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "const unsigned char * const input_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char * const input_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ { - "name": "output_pointer", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char **output_pointer", + "source_text": "const cJSON *array", "components": [ { "model": "CPointer", @@ -1440,21 +1666,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char **output_pointer", + "source_text": "const cJSON *array", "components": [ { "model": "CPointer", @@ -1462,66 +1681,85 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 703, + "line": 1941, "column": 1, - "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index)" }, "start": { "filename": "json/cJSON.c", - "line": 703, + "line": 1941, "column": 1, - "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index)" }, "end": { "filename": "json/cJSON.c", - "line": 821, + "line": 1949, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 176, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index);" + } + ] }, { - "name": "parse_string", + "name": "cJSON_GetObjectItem", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const object", "components": [ { "model": "CPointer", @@ -1531,20 +1769,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const object", "components": [ { "model": "CPointer", @@ -1562,11 +1794,11 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -1576,14 +1808,18 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -1593,7 +1829,11 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -1601,51 +1841,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 824, + "line": 1983, "column": 1, - "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string)" }, "start": { "filename": "json/cJSON.c", - "line": 824, + "line": 1983, "column": 1, - "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string)" }, "end": { "filename": "json/cJSON.c", - "line": 951, + "line": 1986, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 178, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string);" + } + ] }, { - "name": "print_string_ptr", + "name": "cJSON_GetObjectItemCaseSensitive", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "input", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "const cJSON * const object", "components": [ { "model": "CPointer", @@ -1655,18 +1906,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "const cJSON * const object", "components": [ { "model": "CPointer", @@ -1676,11 +1923,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -1688,11 +1931,11 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -1702,14 +1945,18 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -1719,7 +1966,11 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -1727,82 +1978,69 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 954, + "line": 1988, "column": 1, - "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" }, "start": { "filename": "json/cJSON.c", - "line": 954, + "line": 1988, "column": 1, - "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" }, "end": { "filename": "json/cJSON.c", - "line": 1073, + "line": 1991, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 179, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string);" + } + ] }, { - "name": "print_string", + "name": "cJSON_HasObjectItem", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -1814,38 +2052,42 @@ "callback_policy": null }, { - "name": "p", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const p", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const p", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -1853,43 +2095,110 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1076, + "line": 1993, "column": 1, - "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 1076, + "line": 1993, "column": 1, - "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 1079, + "line": 1996, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 180, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string);" + } + ] }, { - "name": "parse_value", + "name": "cJSON_GetErrorPtr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 94, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 94, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 97, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 182, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void);" + } + ] + }, + { + "name": "cJSON_GetStringValue", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { @@ -1897,7 +2206,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -1907,20 +2216,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -1936,13 +2239,54 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 99, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 99, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 107, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "input_buffer", + "filename": "json/cJSON.h", + "line": 185, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_GetNumberValue", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -1952,14 +2296,14 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -1969,7 +2313,7 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, @@ -1977,50 +2321,42 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1368, + "line": 109, "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "double cJSON_GetNumberValue(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1368, + "line": 109, "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "double cJSON_GetNumberValue(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1420, + "line": 117, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1082, + "filename": "json/cJSON.h", + "line": 186, "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);" + "source_line": "double cJSON_GetNumberValue(const cJSON * const item);" } ] }, { - "name": "print_value", + "name": "cJSON_IsInvalid", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -2038,15 +2374,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, @@ -2069,13 +2397,52 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2972, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2972, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2980, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "output_buffer", + "filename": "json/cJSON.h", + "line": 189, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_IsFalse", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2085,14 +2452,14 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2102,7 +2469,7 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -2110,50 +2477,42 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1423, + "line": 2982, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1423, + "line": 2982, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1494, + "line": 2990, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1083, + "filename": "json/cJSON.h", + "line": 190, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item);" } ] }, { - "name": "parse_array", + "name": "cJSON_IsTrue", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -2161,7 +2520,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2171,20 +2530,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2200,13 +2553,52 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2992, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2992, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3000, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "input_buffer", - "type": { + "filename": "json/cJSON.h", + "line": 191, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_IsBool", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2216,14 +2608,14 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2233,7 +2625,7 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, @@ -2241,50 +2633,42 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1497, + "line": 3003, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1497, + "line": 3003, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1592, + "line": 3011, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1084, + "filename": "json/cJSON.h", + "line": 192, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);" + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item);" } ] }, { - "name": "print_array", + "name": "cJSON_IsNull", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -2302,15 +2686,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, @@ -2333,13 +2709,52 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3012, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3012, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3020, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "output_buffer", + "filename": "json/cJSON.h", + "line": 193, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_IsNumber", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2349,14 +2764,14 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2366,7 +2781,7 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -2374,50 +2789,42 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1595, + "line": 3022, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1595, + "line": 3022, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1659, + "line": 3030, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1085, + "filename": "json/cJSON.h", + "line": 194, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item);" } ] }, { - "name": "parse_object", + "name": "cJSON_IsString", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -2425,7 +2832,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2435,20 +2842,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2464,13 +2865,52 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3032, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3032, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3040, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "input_buffer", + "filename": "json/cJSON.h", + "line": 195, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_IsArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2480,14 +2920,14 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2497,7 +2937,7 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, @@ -2505,50 +2945,42 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1662, + "line": 3042, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1662, + "line": 3042, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1777, + "line": 3050, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1086, + "filename": "json/cJSON.h", + "line": 196, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);" + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item);" } ] }, { - "name": "print_object", + "name": "cJSON_IsObject", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -2566,15 +2998,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, @@ -2597,13 +3021,52 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3052, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3052, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3060, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "output_buffer", + "filename": "json/cJSON.h", + "line": 197, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item);" + } + ] + }, + { + "name": "cJSON_IsRaw", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2613,14 +3076,14 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", @@ -2630,7 +3093,7 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -2638,46 +3101,44 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1780, + "line": 3062, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 1780, + "line": 3062, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 1896, + "line": 3070, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1087, + "filename": "json/cJSON.h", + "line": 198, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item);" } ] }, { - "name": "buffer_skip_whitespace", + "name": "cJSON_CreateNull", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -2685,84 +3146,211 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, - "parameters": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "parse_buffer * const buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "parse_buffer" - } - ] + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2461, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2461, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2470, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 201, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void);" + } + ] + }, + { + "name": "cJSON_CreateTrue", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2472, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2472, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2481, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 202, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void);" + } + ] + }, + { + "name": "cJSON_CreateFalse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "parse_buffer * const buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "parse_buffer" - } - ] + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2483, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2483, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2492, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 203, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void);" + } + ] + }, + { + "name": "cJSON_CreateBool", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1090, + "line": 2494, "column": 1, - "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean)" }, "start": { "filename": "json/cJSON.c", - "line": 1090, + "line": 2494, "column": 1, - "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean)" }, "end": { "filename": "json/cJSON.c", - "line": 1113, + "line": 2503, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 204, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean);" + } + ] }, { - "name": "skip_utf8_bom", + "name": "cJSON_CreateNumber", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -2770,84 +3358,65 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "buffer", + "name": "num", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "parse_buffer * const buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "parse_buffer" - } - ] + "source_text": "double num" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "parse_buffer * const buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "parse_buffer" - } - ] + "source_text": "double num" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1116, + "line": 2505, "column": 1, - "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + "source_line": "cJSON * cJSON_CreateNumber(double num)" }, "start": { "filename": "json/cJSON.c", - "line": 1116, + "line": 2505, "column": 1, - "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + "source_line": "cJSON * cJSON_CreateNumber(double num)" }, "end": { "filename": "json/cJSON.c", - "line": 1129, + "line": 2529, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 205, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num);" + } + ] }, { - "name": "print", + "name": "cJSON_CreateString", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -2855,110 +3424,142 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "item", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2531, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2531, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2546, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "format", - "type": { - "model": "CTypedef", + "filename": "json/cJSON.h", + "line": 206, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string);" + } + ] + }, + { + "name": "cJSON_CreateRaw", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "cJSON_bool format", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "cJSON_bool" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ { - "name": "hooks", + "name": "raw", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *raw", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *raw", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -2966,35 +3567,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1239, + "line": 2581, "column": 1, - "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_CreateRaw(const char *raw)" }, "start": { "filename": "json/cJSON.c", - "line": 1239, + "line": 2581, "column": 1, - "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_CreateRaw(const char *raw)" }, "end": { "filename": "json/cJSON.c", - "line": 1304, + "line": 2596, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 208, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw);" + } + ] }, { - "name": "get_array_item", + "name": "cJSON_CreateArray", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -3006,23 +3612,117 @@ "source_text": "" }, { - "model": "CTypedef", + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2598, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2598, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2607, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 209, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void);" + } + ] + }, + { + "name": "cJSON_CreateObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2609, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2609, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2618, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 210, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void);" + } + ] + }, + { + "name": "cJSON_CreateStringReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } ] }, "parameters": [ { - "name": "array", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *array", + "source_text": "const char *string", "components": [ { "model": "CPointer", @@ -3030,22 +3730,18 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *array", + "source_text": "const char *string", "components": [ { "model": "CPointer", @@ -3053,60 +3749,52 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "index", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t index", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1922, + "line": 2548, "column": 1, - "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + "source_line": "cJSON * cJSON_CreateStringReference(const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 1922, + "line": 2548, "column": 1, - "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + "source_line": "cJSON * cJSON_CreateStringReference(const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 1939, + "line": 2558, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 214, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string);" + } + ] }, { - "name": "get_object_item", + "name": "cJSON_CreateObjectReference", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -3118,54 +3806,36 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "parameters": [ { - "name": "object", + "name": "child", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const object", + "source_text": "const cJSON *child", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const object", + "source_text": "const cJSON *child", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -3175,115 +3845,150 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "name", + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2560, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2560, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2569, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 217, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child);" + } + ] + }, + { + "name": "cJSON_CreateArrayReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "child", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const name", + "source_text": "const cJSON *child", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const name", + "source_text": "const cJSON *child", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "case_sensitive", - "type": { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON_bool case_sensitive", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1951, + "line": 2571, "column": 1, - "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child) {" }, "start": { "filename": "json/cJSON.c", - "line": 1951, + "line": 2571, "column": 1, - "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child) {" }, "end": { "filename": "json/cJSON.c", - "line": 1981, + "line": 2579, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 218, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child);" + } + ] }, { - "name": "suffix_object", + "name": "cJSON_CreateIntArray", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "prev", + "name": "numbers", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *prev", + "source_text": "const int *numbers", "components": [ { "model": "CPointer", @@ -3291,20 +3996,18 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *prev", + "source_text": "const int *numbers", "components": [ { "model": "CPointer", @@ -3312,7 +4015,11 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" } ] }, @@ -3320,76 +4027,55 @@ "callback_policy": null }, { - "name": "item", + "name": "count", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "cJSON *item", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int count" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "cJSON *item", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "cJSON" - } - ] + "source_text": "int count" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1999, + "line": 2621, "column": 1, - "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count)" }, "start": { "filename": "json/cJSON.c", - "line": 1999, + "line": 2621, "column": 1, - "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count)" }, "end": { "filename": "json/cJSON.c", - "line": 2003, + "line": 2659, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 222, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count);" + } + ] }, { - "name": "create_reference", + "name": "cJSON_CreateFloatArray", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -3401,23 +4087,17 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "parameters": [ { - "name": "item", + "name": "numbers", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "const float *numbers", "components": [ { "model": "CPointer", @@ -3425,22 +4105,18 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [ "const" ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "const float *numbers", "components": [ { "model": "CPointer", @@ -3448,7 +4124,11 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" } ] }, @@ -3456,90 +4136,77 @@ "callback_policy": null }, { - "name": "hooks", + "name": "count", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "internal_hooks" - } - ] + "source_text": "int count" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "internal_hooks" - } - ] + "source_text": "int count" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2006, + "line": 2661, "column": 1, - "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count)" }, "start": { "filename": "json/cJSON.c", - "line": 2006, + "line": 2661, "column": 1, - "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count)" }, "end": { "filename": "json/cJSON.c", - "line": 2025, + "line": 2699, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 223, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count);" + } + ] }, { - "name": "add_item_to_array", + "name": "cJSON_CreateDoubleArray", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "array", + "name": "numbers", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *array", + "source_text": "const double *numbers", "components": [ { "model": "CPointer", @@ -3547,20 +4214,18 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *array", + "source_text": "const double *numbers", "components": [ { "model": "CPointer", @@ -3568,7 +4233,11 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" } ] }, @@ -3576,80 +4245,59 @@ "callback_policy": null }, { - "name": "item", + "name": "count", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "cJSON *item", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int count" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "cJSON *item", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "cJSON" - } - ] + "source_text": "int count" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2027, + "line": 2701, "column": 1, - "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count)" }, "start": { "filename": "json/cJSON.c", - "line": 2027, + "line": 2701, "column": 1, - "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count)" }, "end": { "filename": "json/cJSON.c", - "line": 2058, + "line": 2739, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 224, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count);" + } + ] }, { - "name": "cast_away_const", + "name": "cJSON_CreateStringArray", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -3657,19 +4305,17 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "string", + "name": "strings", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void * string", + "source_text": "const char *const *strings", "components": [ { "model": "CPointer", @@ -3677,18 +4323,25 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CPointer", "qualifiers": [ "const" ], - "source_text": "const void" + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void * string", + "source_text": "const char *const *strings", "components": [ { "model": "CPointer", @@ -3696,92 +4349,103 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CPointer", "qualifiers": [ "const" ], - "source_text": "const void" + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2073, + "line": 2741, "column": 1, - "source_line": "static void* cast_away_const(const void* string)" + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count)" }, "start": { "filename": "json/cJSON.c", - "line": 2073, + "line": 2741, "column": 1, - "source_line": "static void* cast_away_const(const void* string)" + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count)" }, "end": { "filename": "json/cJSON.c", - "line": 2076, + "line": 2779, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 225, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count);" + } + ] }, { - "name": "add_item_to_object", + "name": "cJSON_AddItemToArray", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { - "name": "object", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const object", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const object", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -3793,87 +4457,104 @@ "callback_policy": null }, { - "name": "string", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const string", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const string", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2061, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2061, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2064, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "item", + "filename": "json/cJSON.h", + "line": 228, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item);" + } + ] + }, + { + "name": "cJSON_AddItemToObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -3885,38 +4566,42 @@ "callback_policy": null }, { - "name": "hooks", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -3924,62 +4609,77 @@ "callback_policy": null }, { - "name": "constant_key", + "name": "item", "type": { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON_bool constant_key", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2082, + "line": 2119, "column": 1, - "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 2082, + "line": 2119, "column": 1, - "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 2117, + "line": 2122, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 229, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);" + } + ] }, { - "name": "replace_item_in_object", + "name": "cJSON_AddItemToObjectCS", "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON_bool" }, "parameters": [ { @@ -3995,13 +4695,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, @@ -4067,11 +4761,11 @@ "callback_policy": null }, { - "name": "replacement", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *replacement", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", @@ -4079,20 +4773,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *replacement", + "source_text": "cJSON *item", "components": [ { "model": "CPointer", @@ -4106,82 +4794,52 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "case_sensitive", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON_bool case_sensitive", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2427, + "line": 2125, "column": 1, - "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 2427, + "line": 2125, "column": 1, - "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 2448, + "line": 2128, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 233, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);" + } + ] }, { - "name": "cJSON_Duplicate_rec", + "name": "cJSON_AddItemReferenceToArray", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "cJSON", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "reference": "cJSON_bool" }, "parameters": [ { - "name": "item", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -4189,22 +4847,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const cJSON", - "name": "cJSON", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -4220,35 +4870,36 @@ "callback_policy": null }, { - "name": "depth", + "name": "item", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t depth", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "recurse", - "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON_bool recurse", - "name": "cJSON_bool", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "cJSON_bool" + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "source_location": null, "callback_policy": null @@ -4261,45 +4912,43 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2789, + "line": 2130, "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 2789, + "line": 2130, "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 2873, + "line": 2138, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 2782, + "filename": "json/cJSON.h", + "line": 235, "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse);" + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);" } ] }, { - "name": "skip_oneline_comment", + "name": "cJSON_AddItemReferenceToObject", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "cJSON_bool" }, "parameters": [ { - "name": "input", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -4307,21 +4956,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -4329,68 +4971,20 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 2875, - "column": 1, - "source_line": "static void skip_oneline_comment(char **input)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 2875, - "column": 1, - "source_line": "static void skip_oneline_comment(char **input)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 2886, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "skip_multiline_comment", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "input", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "const char *string", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -4398,30 +4992,64 @@ }, { "model": "CChar", - "qualifiers": [], - "source_text": "char" - } + "qualifiers": [ + "const" + ], + "source_text": "const char" + } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "const char *string", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CChar", + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char" + "source_text": "" + }, + { + "reference": "cJSON" } ] }, @@ -4429,47 +5057,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2888, + "line": 2140, "column": 1, - "source_line": "static void skip_multiline_comment(char **input)" + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" }, "start": { "filename": "json/cJSON.c", - "line": 2888, + "line": 2140, "column": 1, - "source_line": "static void skip_multiline_comment(char **input)" + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" }, "end": { "filename": "json/cJSON.c", - "line": 2900, + "line": 2148, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 236, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);" + } + ] }, { - "name": "minify_string", + "name": "cJSON_DetachItemViaPointer", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "input", + "name": "parent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "cJSON *parent", "components": [ { "model": "CPointer", @@ -4477,21 +5120,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "cJSON *parent", "components": [ { "model": "CPointer", @@ -4499,14 +5135,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, @@ -4514,48 +5143,38 @@ "callback_policy": null }, { - "name": "output", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **output", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **output", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, @@ -4563,47 +5182,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2902, + "line": 2258, "column": 1, - "source_line": "static void minify_string(char **input, char **output) {" + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" }, "start": { "filename": "json/cJSON.c", - "line": 2902, + "line": 2258, "column": 1, - "source_line": "static void minify_string(char **input, char **output) {" + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" }, "end": { "filename": "json/cJSON.c", - "line": 2922, + "line": 2292, "column": 1, "source_line": "}" }, - "declaration_locations": [] - } - ], - "structs": [ + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 239, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);" + } + ] + }, { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ + "name": "cJSON_DetachItemFromArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ { - "name": "json", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *json", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -4611,2935 +5245,20512 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 89, - "column": 5, - "source_line": " const unsigned char *json;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "position", + "name": "which", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "size_t position", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int which" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 90, - "column": 5, - "source_line": " size_t position;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null } ], - "anonymous_id": "struct@json/cJSON.c:88:1", - "is_incomplete": false, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 88, + "line": 2294, "column": 1, - "source_line": "typedef struct {" - } - }, - { - "reference": "struct internal_hooks" - }, - { - "reference": "struct@json/cJSON.c:289:1" - }, - { - "reference": "struct@json/cJSON.c:478:1" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "error", - "name": "error", - "type": { - "reference": "struct@json/cJSON.c:88:1" + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)" }, - "source_location": { + "start": { "filename": "json/cJSON.c", - "line": 88, + "line": 2294, "column": 1, - "source_line": "typedef struct {" + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)" }, - "declaration_locations": [] - }, - { - "reference": "internal_hooks" - }, - { - "reference": "parse_buffer" - }, - { - "reference": "printbuffer" - } - ], - "variables": [ - { - "name": "global_error", - "type": { - "reference": "error" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ NULL, 0 }" - }, - "bit_width": null, - "source_location": { + "end": { "filename": "json/cJSON.c", - "line": 92, + "line": 2302, "column": 1, - "source_line": "static error global_error = { NULL, 0 };" + "source_line": "}" }, - "callback_policy": null, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 240, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which);" + } + ] }, { - "name": "global_hooks", - "type": { - "reference": "internal_hooks" + "name": "cJSON_DeleteItemFromArray", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "storage": [ - "static" + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + } ], - "initializer": { - "source_text": "{ internal_malloc, internal_free, internal_realloc }" - }, - "bit_width": null, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 186, + "line": 2304, "column": 1, - "source_line": "static internal_hooks global_hooks = { internal_malloc, internal_free, internal_realloc };" + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which)" }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "_CRT_SECURE_NO_DEPRECATE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 28, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_DEPRECATE" - } - }, - { - "name": "true", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "json/cJSON.c", - "line": 63, - "column": 1, - "source_line": "#undef true" - } - }, - { - "name": "true", - "value": "((cJSON_bool)1)", - "function_like": false, - "directive": "define", - "source_location": { + "start": { "filename": "json/cJSON.c", - "line": 65, + "line": 2304, "column": 1, - "source_line": "#define true ((cJSON_bool)1)" - } - }, - { - "name": "false", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which)" + }, + "end": { "filename": "json/cJSON.c", - "line": 68, + "line": 2307, "column": 1, - "source_line": "#undef false" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 241, + "column": 1, + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which);" + } + ] }, { - "name": "false", - "value": "((cJSON_bool)0)", - "function_like": false, - "directive": "define", + "name": "cJSON_DetachItemFromObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 70, + "line": 2309, "column": 1, - "source_line": "#define false ((cJSON_bool)0)" - } - }, - { - "name": "isinf", - "value": "(isnan((d - d)) && !isnan(d))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)" + }, + "start": { "filename": "json/cJSON.c", - "line": 74, + "line": 2309, "column": 1, - "source_line": "#define isinf(d) (isnan((d - d)) && !isnan(d))" - } - }, - { - "name": "isnan", - "value": "(d != d)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)" + }, + "end": { "filename": "json/cJSON.c", - "line": 77, + "line": 2314, "column": 1, - "source_line": "#define isnan(d) (d != d)" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 242, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string);" + } + ] }, { - "name": "NAN", - "value": "sqrt(-1.0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 82, - "column": 1, - "source_line": "#define NAN sqrt(-1.0)" - } - }, - { - "name": "NAN", - "value": "0.0/0.0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 84, - "column": 1, - "source_line": "#define NAN 0.0/0.0" - } - }, - { - "name": "internal_malloc", - "value": "malloc", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 178, - "column": 1, - "source_line": "#define internal_malloc malloc" - } - }, - { - "name": "internal_free", - "value": "free", - "function_like": false, - "directive": "define", + "name": "cJSON_DetachItemFromObjectCaseSensitive", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 179, + "line": 2316, "column": 1, - "source_line": "#define internal_free free" - } - }, - { - "name": "internal_realloc", - "value": "realloc", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" + }, + "start": { "filename": "json/cJSON.c", - "line": 180, + "line": 2316, "column": 1, - "source_line": "#define internal_realloc realloc" - } - }, - { - "name": "static_strlen", - "value": "(sizeof(string_literal) - sizeof(\"\"))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" + }, + "end": { "filename": "json/cJSON.c", - "line": 184, + "line": 2321, "column": 1, - "source_line": "#define static_strlen(string_literal) (sizeof(string_literal) - sizeof(\"\"))" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 243, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);" + } + ] }, { - "name": "can_read", - "value": "((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))", - "function_like": true, - "directive": "define", + "name": "cJSON_DeleteItemFromObject", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 299, + "line": 2323, "column": 1, - "source_line": "#define can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))" - } - }, - { - "name": "can_access_at_index", - "value": "((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string)" + }, + "start": { "filename": "json/cJSON.c", - "line": 301, + "line": 2323, "column": 1, - "source_line": "#define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))" - } - }, - { - "name": "cannot_access_at_index", - "value": "(!can_access_at_index(buffer, index))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string)" + }, + "end": { "filename": "json/cJSON.c", - "line": 302, + "line": 2326, "column": 1, - "source_line": "#define cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index))" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 244, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string);" + } + ] }, { - "name": "buffer_at_offset", - "value": "((buffer)->content + (buffer)->offset)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 304, - "column": 1, - "source_line": "#define buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset)" - } - }, - { - "name": "cjson_min", - "value": "(((a) < (b)) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 1237, - "column": 1, - "source_line": "#define cjson_min(a, b) (((a) < (b)) ? (a) : (b))" - } - } - ], - "includes": [ - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 40, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 41, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 42, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 43, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, + "name": "cJSON_DeleteItemFromObjectCaseSensitive", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 44, + "line": 2328, "column": 1, - "source_line": "#include " - } - }, - { - "target": "ctype.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" + }, + "start": { "filename": "json/cJSON.c", - "line": 45, + "line": 2328, "column": 1, - "source_line": "#include " - } - }, - { - "target": "float.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" + }, + "end": { "filename": "json/cJSON.c", - "line": 46, + "line": 2331, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 245, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);" + } + ] }, { - "target": "locale.h", - "kind": "system", - "resolved_path": null, + "name": "cJSON_InsertItemInArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 49, + "line": 2334, "column": 1, - "source_line": "#include " - } - }, - { - "target": "cJSON.h", - "kind": "local", - "resolved_path": "json/cJSON.h", - "source_location": { + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" + }, + "start": { "filename": "json/cJSON.c", - "line": 59, + "line": 2334, "column": 1, - "source_line": "#include \"cJSON.h\"" - } - } - ], - "raw_directives": [ - { - "directive": "if", - "argument": "!defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)", - "source_location": { + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" + }, + "end": { "filename": "json/cJSON.c", - "line": 27, + "line": 2366, "column": 1, - "source_line": "#if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 248, + "column": 1, + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem);" + } + ] }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 29, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__GNUC__", + "name": "cJSON_ReplaceItemViaPointer", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "parent", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "replacement", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 31, + "line": 2368, "column": 1, - "source_line": "#ifdef __GNUC__" - } - }, - { - "directive": "pragma", - "argument": "GCC visibility push(default)", - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" + }, + "start": { "filename": "json/cJSON.c", - "line": 32, + "line": 2368, "column": 1, - "source_line": "#pragma GCC visibility push(default)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" + }, + "end": { "filename": "json/cJSON.c", - "line": 33, + "line": 2415, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 249, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement);" + } + ] }, { - "directive": "if", - "argument": "defined(_MSC_VER)", + "name": "cJSON_ReplaceItemInArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 34, + "line": 2417, "column": 1, - "source_line": "#if defined(_MSC_VER)" - } - }, - { - "directive": "pragma", - "argument": "warning (push)", - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" + }, + "start": { "filename": "json/cJSON.c", - "line": 35, + "line": 2417, "column": 1, - "source_line": "#pragma warning (push)" - } - }, - { - "directive": "pragma", - "argument": "warning (disable : 4001)", - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" + }, + "end": { "filename": "json/cJSON.c", - "line": 37, + "line": 2425, "column": 1, - "source_line": "#pragma warning (disable : 4001)" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 250, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem);" + } + ] }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 38, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "ENABLE_LOCALES", - "source_location": { - "filename": "json/cJSON.c", - "line": 48, - "column": 1, - "source_line": "#ifdef ENABLE_LOCALES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 50, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER)", - "source_location": { - "filename": "json/cJSON.c", - "line": 52, - "column": 1, - "source_line": "#if defined(_MSC_VER)" - } - }, - { - "directive": "pragma", - "argument": "warning (pop)", - "source_location": { - "filename": "json/cJSON.c", - "line": 53, - "column": 1, - "source_line": "#pragma warning (pop)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 54, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__GNUC__", - "source_location": { - "filename": "json/cJSON.c", - "line": 55, - "column": 1, - "source_line": "#ifdef __GNUC__" - } - }, - { - "directive": "pragma", - "argument": "GCC visibility pop", - "source_location": { - "filename": "json/cJSON.c", - "line": 56, - "column": 1, - "source_line": "#pragma GCC visibility pop" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 57, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "true", - "source_location": { - "filename": "json/cJSON.c", - "line": 62, - "column": 1, - "source_line": "#ifdef true" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 64, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "false", - "source_location": { - "filename": "json/cJSON.c", - "line": 67, - "column": 1, - "source_line": "#ifdef false" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 69, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "isinf", - "source_location": { - "filename": "json/cJSON.c", - "line": 73, - "column": 1, - "source_line": "#ifndef isinf" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 75, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "isnan", - "source_location": { - "filename": "json/cJSON.c", - "line": 76, - "column": 1, - "source_line": "#ifndef isnan" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 78, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "NAN", - "source_location": { - "filename": "json/cJSON.c", - "line": 80, - "column": 1, - "source_line": "#ifndef NAN" - } - }, - { - "directive": "ifdef", - "argument": "_WIN32", - "source_location": { - "filename": "json/cJSON.c", - "line": 81, - "column": 1, - "source_line": "#ifdef _WIN32" - } - }, - { - "directive": "else", - "argument": null, + "name": "cJSON_ReplaceItemInObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 83, + "line": 2450, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" + }, + "start": { "filename": "json/cJSON.c", - "line": 85, + "line": 2450, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" + }, + "end": { "filename": "json/cJSON.c", - "line": 86, + "line": 2453, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 251, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem);" + } + ] }, { - "directive": "if", - "argument": "(CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 19)", - "source_location": { - "filename": "json/cJSON.c", - "line": 120, - "column": 1, - "source_line": "#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 19)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 122, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER)", - "source_location": { - "filename": "json/cJSON.c", - "line": 163, - "column": 1, - "source_line": "#if defined(_MSC_VER)" - } - }, - { - "directive": "else", - "argument": null, + "name": "cJSON_ReplaceItemInObjectCaseSensitive", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 177, + "line": 2455, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" + }, + "start": { "filename": "json/cJSON.c", - "line": 181, + "line": 2455, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "ENABLE_LOCALES", - "source_location": { + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" + }, + "end": { "filename": "json/cJSON.c", - "line": 281, + "line": 2458, "column": 1, - "source_line": "#ifdef ENABLE_LOCALES" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 252, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object,const char *string,cJSON *newitem);" + } + ] }, { - "directive": "else", - "argument": null, + "name": "cJSON_Duplicate", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "recurse", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 284, + "line": 2784, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" + }, + "start": { "filename": "json/cJSON.c", - "line": 286, + "line": 2784, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))", - "source_location": { + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" + }, + "end": { "filename": "json/cJSON.c", - "line": 2066, + "line": 2787, "column": 1, - "source_line": "#if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic push", - "source_location": { - "filename": "json/cJSON.c", - "line": 2067, - "column": 5, - "source_line": " #pragma GCC diagnostic push" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 255, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse);" + } + ] }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 2068, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__GNUC__", - "source_location": { - "filename": "json/cJSON.c", - "line": 2069, - "column": 1, - "source_line": "#ifdef __GNUC__" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic ignored \"-Wcast-qual\"", - "source_location": { - "filename": "json/cJSON.c", - "line": 2070, - "column": 1, - "source_line": "#pragma GCC diagnostic ignored \"-Wcast-qual\"" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 2071, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))", - "source_location": { - "filename": "json/cJSON.c", - "line": 2077, - "column": 1, - "source_line": "#if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic pop", - "source_location": { - "filename": "json/cJSON.c", - "line": 2078, - "column": 5, - "source_line": " #pragma GCC diagnostic pop" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 2079, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'isinf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 74, - "column": 1, - "source_line": "#define isinf(d) (isnan((d - d)) && !isnan(d))" - }, - "unit_kind": "macro", - "unit_name": "isinf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'isnan' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 77, - "column": 1, - "source_line": "#define isnan(d) (d != d)" - }, - "unit_kind": "macro", - "unit_name": "isnan" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'static_strlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 184, - "column": 1, - "source_line": "#define static_strlen(string_literal) (sizeof(string_literal) - sizeof(\"\"))" + "name": "cJSON_Compare", + "result_type": { + "reference": "cJSON_bool" }, - "unit_kind": "macro", - "unit_name": "static_strlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'can_read' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const a", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const a", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const b", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const b", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 299, + "line": 3072, "column": 1, - "source_line": "#define can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))" + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" }, - "unit_kind": "macro", - "unit_name": "can_read" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'can_access_at_index' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 301, + "line": 3072, "column": 1, - "source_line": "#define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))" + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" }, - "unit_kind": "macro", - "unit_name": "can_access_at_index" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cannot_access_at_index' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 302, + "line": 3195, "column": 1, - "source_line": "#define cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "cannot_access_at_index" + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 261, + "column": 1, + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive);" + } + ] }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'buffer_at_offset' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 304, - "column": 1, - "source_line": "#define buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset)" + "name": "cJSON_Minify", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "buffer_at_offset" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cjson_min' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "json", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *json", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *json", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1237, + "line": 2924, "column": 1, - "source_line": "#define cjson_min(a, b) (((a) < (b)) ? (a) : (b))" + "source_line": "void cJSON_Minify(char *json)" }, - "unit_kind": "macro", - "unit_name": "cjson_min" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'char *'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 94, + "line": 2924, "column": 1, - "source_line": "CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void)" + "source_line": "void cJSON_Minify(char *json)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 99, + "line": 2970, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 266, + "column": 1, + "source_line": "void cJSON_Minify(char *json);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_GetNumberValue(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 109, - "column": 1, - "source_line": "CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item)" + "name": "cJSON_AddNullToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'char*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 124, - "column": 1, - "source_line": "CJSON_PUBLIC(const char*) cJSON_Version(void)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*allocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 158, - "column": 5, - "source_line": " void *(CJSON_CDECL *allocate)(size_t size);" - }, - "unit_kind": "struct_field", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*deallocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 159, - "column": 5, - "source_line": " void (CJSON_CDECL *deallocate)(void *pointer);" - }, - "unit_kind": "struct_field", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*reallocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 160, - "column": 5, - "source_line": " void *(CJSON_CDECL *reallocate)(void *pointer, size_t size);" - }, - "unit_kind": "struct_field", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_malloc(size_t size)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 165, + "line": 2150, "column": 1, - "source_line": "static void * CJSON_CDECL internal_malloc(size_t size)" + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_free(void *pointer)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 169, + "line": 2150, "column": 1, - "source_line": "static void CJSON_CDECL internal_free(void *pointer)" + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_realloc(void *pointer, size_t size)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 173, + "line": 2160, "column": 1, - "source_line": "static void * CJSON_CDECL internal_realloc(void *pointer, size_t size)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 270, + "column": 1, + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_InitHooks(cJSON_Hooks* hooks)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 209, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks)" + "name": "cJSON_AddTrueToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Delete(cJSON *item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 253, + "line": 2162, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)" + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_SetNumberHelper(cJSON *object, double number)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 411, + "line": 2162, "column": 1, - "source_line": "CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number)" + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 435, + "line": 2172, "column": 1, - "source_line": "CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 271, + "column": 1, + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "name": "cJSON_AddFalseToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1131, + "line": 2174, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 1147, + "line": 2174, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1227, + "line": 2184, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 272, + "column": 1, + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "name": "cJSON_AddBoolToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1232, + "line": 2186, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length)" + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 1307, + "line": 2186, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item)" + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1312, + "line": 2196, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1317, - "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1348, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_GetArraySize(const cJSON *array)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1899, - "column": 1, - "source_line": "CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1941, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1983, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1988, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_HasObjectItem(const cJSON *object, const char *string)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1993, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToArray(cJSON *array, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2061, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2119, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2125, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2130, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2140, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2150, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2162, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 273, + "column": 1, + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2174, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)" + "name": "cJSON_AddNumberToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "number", + "type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2186, + "line": 2198, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", "line": 2198, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2210, + "line": 2208, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 274, + "column": 1, + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2222, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" + "name": "cJSON_AddStringToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2234, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2246, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2258, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2294, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromArray(cJSON *array, int which)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2304, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2309, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2316, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromObject(cJSON *object, const char *string)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2323, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2328, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2334, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2368, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2417, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2450, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2455, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2461, + "line": 2210, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)" + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2472, + "line": 2210, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)" + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2483, + "line": 2220, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 275, + "column": 1, + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2494, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)" + "name": "cJSON_AddRawToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2505, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2531, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2548, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2560, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2571, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2581, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2598, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2609, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2621, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2661, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2701, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2741, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2784, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Minify(char *json)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "raw", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2924, + "line": 2222, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_Minify(char *json)" + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsInvalid(const cJSON * const item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2972, + "line": 2222, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item)" + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsFalse(const cJSON * const item)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2982, + "line": 2232, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 276, + "column": 1, + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsTrue(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2992, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item)" + "name": "cJSON_AddObjectToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsBool(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3003, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsNull(const cJSON * const item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 3012, + "line": 2234, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item)" + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsNumber(const cJSON * const item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 3022, + "line": 2234, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item)" + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsString(const cJSON * const item)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 3032, + "line": 2244, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 277, + "column": 1, + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsArray(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3042, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item)" + "name": "cJSON_AddArrayToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsObject(const cJSON * const item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 3052, + "line": 2246, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item)" + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsRaw(const cJSON * const item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 3062, + "line": 2246, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item)" + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 3072, + "line": 2256, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 278, + "column": 1, + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name);" + } + ] }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3197, - "column": 1, - "source_line": "CJSON_PUBLIC(void *) cJSON_malloc(size_t size)" + "name": "cJSON_SetNumberHelper", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_free(void *object)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3202, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_free(void *object)" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] - }, - "json/cJSON.h": { - "filename": "json/cJSON.h", - "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [], - "macros": [ - { - "name": "cJSON__h", - "value": null, - "function_like": false, - "directive": "define", + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "number", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double number" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double number" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "json/cJSON.h", - "line": 24, + "filename": "json/cJSON.c", + "line": 411, "column": 1, - "source_line": "#define cJSON__h" - } - }, - { - "name": "__WINDOWS__", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 32, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 411, "column": 1, - "source_line": "#define __WINDOWS__" - } - }, - { - "name": "CJSON_CDECL", - "value": "__cdecl", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 55, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 432, "column": 1, - "source_line": "#define CJSON_CDECL __cdecl" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 283, + "column": 1, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number);" + } + ] }, { - "name": "CJSON_STDCALL", - "value": "__stdcall", - "function_like": false, - "directive": "define", + "name": "cJSON_SetValuestring", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "valuestring", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "json/cJSON.h", - "line": 56, + "filename": "json/cJSON.c", + "line": 435, "column": 1, - "source_line": "#define CJSON_STDCALL __stdcall" - } - }, - { - "name": "CJSON_EXPORT_SYMBOLS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 60, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 435, "column": 1, - "source_line": "#define CJSON_EXPORT_SYMBOLS" - } - }, - { - "name": "CJSON_PUBLIC", - "value": "type CJSON_STDCALL", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 64, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 476, "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type CJSON_STDCALL" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 286, + "column": 1, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring);" + } + ] }, { - "name": "CJSON_PUBLIC", - "value": "__declspec(dllexport) type CJSON_STDCALL", - "function_like": true, - "directive": "define", + "name": "cJSON_malloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "json/cJSON.h", - "line": 66, + "filename": "json/cJSON.c", + "line": 3197, "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL" - } - }, - { - "name": "CJSON_PUBLIC", - "value": "__declspec(dllimport) type CJSON_STDCALL", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 68, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL" - } - }, - { - "name": "CJSON_CDECL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 71, - "column": 1, - "source_line": "#define CJSON_CDECL" - } - }, - { - "name": "CJSON_STDCALL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 72, - "column": 1, - "source_line": "#define CJSON_STDCALL" - } - }, - { - "name": "CJSON_PUBLIC", - "value": "__attribute__((visibility(\"default\"))) type", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 75, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __attribute__((visibility(\"default\"))) type" - } - }, - { - "name": "CJSON_PUBLIC", - "value": "type", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 77, + "source_line": "void * cJSON_malloc(size_t size)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3197, "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type" - } - }, - { - "name": "CJSON_VERSION_MAJOR", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 82, + "source_line": "void * cJSON_malloc(size_t size)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3200, "column": 1, - "source_line": "#define CJSON_VERSION_MAJOR 1" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 299, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size);" + } + ] }, { - "name": "CJSON_VERSION_MINOR", - "value": "7", - "function_like": false, - "directive": "define", + "name": "cJSON_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "json/cJSON.h", - "line": 83, + "filename": "json/cJSON.c", + "line": 3202, "column": 1, - "source_line": "#define CJSON_VERSION_MINOR 7" - } - }, - { - "name": "CJSON_VERSION_PATCH", - "value": "19", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 84, + "source_line": "void cJSON_free(void *object)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3202, "column": 1, - "source_line": "#define CJSON_VERSION_PATCH 19" - } - }, - { - "name": "cJSON_Invalid", - "value": "(0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 89, + "source_line": "void cJSON_free(void *object)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3206, "column": 1, - "source_line": "#define cJSON_Invalid (0)" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 300, + "column": 1, + "source_line": "void cJSON_free(void *object);" + } + ] }, { - "name": "cJSON_False", - "value": "(1 << 0)", - "function_like": false, - "directive": "define", + "name": "case_insensitive_strcmp", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "string1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *string1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *string1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *string2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *string2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "json/cJSON.h", - "line": 90, + "filename": "json/cJSON.c", + "line": 133, "column": 1, - "source_line": "#define cJSON_False (1 << 0)" - } - }, - { - "name": "cJSON_True", - "value": "(1 << 1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 91, + "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 133, "column": 1, - "source_line": "#define cJSON_True (1 << 1)" - } - }, - { - "name": "cJSON_NULL", - "value": "(1 << 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 92, + "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 154, "column": 1, - "source_line": "#define cJSON_NULL (1 << 2)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "cJSON_Number", - "value": "(1 << 3)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 93, - "column": 1, - "source_line": "#define cJSON_Number (1 << 3)" + "name": "cJSON_strdup", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "internal_hooks", + "name": "internal_hooks", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "internal_hooks", + "members": [ + { + "name": "allocate", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *( *allocate)(size_t size)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameter_types": [ + { + "reference": "size_t" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 158, + "column": 5, + "source_line": " void *( *allocate)(size_t size);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "deallocate", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void ( *deallocate)(void *pointer)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 159, + "column": 5, + "source_line": " void ( *deallocate)(void *pointer);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "reallocate", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *( *reallocate)(void *pointer, size_t size)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "reference": "size_t" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 160, + "column": 5, + "source_line": " void *( *reallocate)(void *pointer, size_t size);" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.c", + "line": 156, + "column": 1, + "source_line": "typedef struct internal_hooks" + } + }, + "source_location": { + "filename": "json/cJSON.c", + "line": 156, + "column": 1, + "source_line": "typedef struct internal_hooks" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 188, + "column": 1, + "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 188, + "column": 1, + "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 207, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "cJSON_New_Item", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 241, + "column": 1, + "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 241, + "column": 1, + "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 250, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get_decimal_point", + "result_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + }, + "parameters": [], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 279, + "column": 1, + "source_line": "static unsigned char get_decimal_point(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 279, + "column": 1, + "source_line": "static unsigned char get_decimal_point(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 287, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "parse_number", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "parse_buffer", + "name": "parse_buffer", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "content", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *content", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 291, + "column": 5, + "source_line": " const unsigned char *content;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "length", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 292, + "column": 5, + "source_line": " size_t length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "offset", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 293, + "column": 5, + "source_line": " size_t offset;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "depth", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 294, + "column": 5, + "source_line": " size_t depth;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hooks", + "type": { + "reference": "internal_hooks" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 295, + "column": 5, + "source_line": " internal_hooks hooks;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.c", + "line": 289, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "json/cJSON.c", + "line": 289, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 307, + "column": 1, + "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 307, + "column": 1, + "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 408, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "ensure", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "printbuffer", + "name": "printbuffer", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 480, + "column": 5, + "source_line": " unsigned char *buffer;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "length", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 481, + "column": 5, + "source_line": " size_t length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "offset", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 482, + "column": 5, + "source_line": " size_t offset;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "depth", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 483, + "column": 5, + "source_line": " size_t depth;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "noalloc", + "type": { + "reference": "cJSON_bool" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 484, + "column": 5, + "source_line": " cJSON_bool noalloc;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 485, + "column": 5, + "source_line": " cJSON_bool format;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hooks", + "type": { + "reference": "internal_hooks" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 486, + "column": 5, + "source_line": " internal_hooks hooks;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.c", + "line": 478, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "json/cJSON.c", + "line": 478, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "needed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 490, + "column": 1, + "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 490, + "column": 1, + "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 573, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "update_offset", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 576, + "column": 1, + "source_line": "static void update_offset(printbuffer * const buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 576, + "column": 1, + "source_line": "static void update_offset(printbuffer * const buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 586, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "compare_double", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 589, + "column": 1, + "source_line": "static cJSON_bool compare_double(double a, double b)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 589, + "column": 1, + "source_line": "static cJSON_bool compare_double(double a, double b)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 593, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "print_number", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 596, + "column": 1, + "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 596, + "column": 1, + "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 663, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "parse_hex4", + "result_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 666, + "column": 1, + "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 666, + "column": 1, + "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 699, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "utf16_literal_to_utf8", + "result_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + }, + "parameters": [ + { + "name": "input_pointer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pointer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char **output_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char **output_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 703, + "column": 1, + "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 703, + "column": 1, + "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 821, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "parse_string", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 824, + "column": 1, + "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 824, + "column": 1, + "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 951, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "print_string_ptr", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 954, + "column": 1, + "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 954, + "column": 1, + "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1073, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "print_string", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1076, + "column": 1, + "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1076, + "column": 1, + "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1079, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "parse_value", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1368, + "column": 1, + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1368, + "column": 1, + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1420, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1082, + "column": 1, + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);" + } + ] + }, + { + "name": "print_value", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1423, + "column": 1, + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1423, + "column": 1, + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1494, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1083, + "column": 1, + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);" + } + ] + }, + { + "name": "parse_array", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1497, + "column": 1, + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1497, + "column": 1, + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1592, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1084, + "column": 1, + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);" + } + ] + }, + { + "name": "print_array", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1595, + "column": 1, + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1595, + "column": 1, + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1659, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1085, + "column": 1, + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);" + } + ] + }, + { + "name": "parse_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1662, + "column": 1, + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1662, + "column": 1, + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1777, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1086, + "column": 1, + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);" + } + ] + }, + { + "name": "print_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1780, + "column": 1, + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1780, + "column": 1, + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1896, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1087, + "column": 1, + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);" + } + ] + }, + { + "name": "buffer_skip_whitespace", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1090, + "column": 1, + "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1090, + "column": 1, + "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1113, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "skip_utf8_bom", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1116, + "column": 1, + "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1116, + "column": 1, + "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1129, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "print", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1239, + "column": 1, + "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1239, + "column": 1, + "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1304, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get_array_item", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "index", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1922, + "column": 1, + "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1922, + "column": 1, + "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1939, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get_object_item", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1951, + "column": 1, + "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1951, + "column": 1, + "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1981, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "suffix_object", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "prev", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1999, + "column": 1, + "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1999, + "column": 1, + "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2003, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "create_reference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2006, + "column": 1, + "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2006, + "column": 1, + "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2025, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "add_item_to_array", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2027, + "column": 1, + "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2027, + "column": 1, + "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2058, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "cast_away_const", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2073, + "column": 1, + "source_line": "static void* cast_away_const(const void* string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2073, + "column": 1, + "source_line": "static void* cast_away_const(const void* string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2076, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "add_item_to_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "constant_key", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2082, + "column": 1, + "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2082, + "column": 1, + "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2117, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "replace_item_in_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "replacement", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2427, + "column": 1, + "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2427, + "column": 1, + "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2448, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "cJSON_Duplicate_rec", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "recurse", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2789, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2789, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2873, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 2782, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse);" + } + ] + }, + { + "name": "skip_oneline_comment", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2875, + "column": 1, + "source_line": "static void skip_oneline_comment(char **input)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2875, + "column": 1, + "source_line": "static void skip_oneline_comment(char **input)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2886, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "skip_multiline_comment", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2888, + "column": 1, + "source_line": "static void skip_multiline_comment(char **input)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2888, + "column": 1, + "source_line": "static void skip_multiline_comment(char **input)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2900, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "minify_string", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2902, + "column": 1, + "source_line": "static void minify_string(char **input, char **output) {" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2902, + "column": 1, + "source_line": "static void minify_string(char **input, char **output) {" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2922, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [ + { + "reference": "struct cJSON" + }, + { + "reference": "struct cJSON_Hooks" + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "json", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *json", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 89, + "column": 5, + "source_line": " const unsigned char *json;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "position", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 90, + "column": 5, + "source_line": " size_t position;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.c", + "line": 88, + "column": 1, + "source_line": "typedef struct {" + } + } + ], + "unions": [], + "enums": [], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON", + "name": "cJSON", + "type": { + "reference": "struct cJSON" + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 103, + "column": 1, + "source_line": "typedef struct cJSON" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON_Hooks", + "name": "cJSON_Hooks", + "type": { + "reference": "struct cJSON_Hooks" + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 125, + "column": 1, + "source_line": "typedef struct cJSON_Hooks" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "cJSON_bool", + "name": "cJSON_bool", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "typedef int cJSON_bool" + }, + "source_location": { + "filename": "json/cJSON.h", + "line": 132, + "column": 1, + "source_line": "typedef int cJSON_bool;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "error", + "name": "error", + "type": { + "reference": "struct@:0:0" + }, + "source_location": { + "filename": "json/cJSON.c", + "line": 88, + "column": 1, + "source_line": "typedef struct {" + }, + "declaration_locations": [] + } + ], + "variables": [ + { + "name": "global_error", + "type": { + "reference": "error" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ ((void *)0) , 0 }" + }, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 92, + "column": 1, + "source_line": "static error global_error = { " + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "global_hooks", + "type": { + "reference": "internal_hooks" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ malloc, free, realloc }" + }, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.c", + "line": 186, + "column": 1, + "source_line": "static internal_hooks global_hooks = { malloc, free, realloc };" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + }, + "json/cJSON.h": { + "filename": "json/cJSON.h", + "language": "c", + "preprocessing": "compiler", + "original_source_paths": [ + "json/cJSON.h" + ], + "functions": [ + { + "name": "cJSON_Version", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 147, + "column": 1, + "source_line": "const char* cJSON_Version(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 147, + "column": 1, + "source_line": "const char* cJSON_Version(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_InitHooks", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON_Hooks * hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON_Hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON_Hooks * hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON_Hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 150, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 150, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Parse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 154, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 154, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ParseWithLength", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer_length", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 155, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 155, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ParseWithOpts", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 158, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 158, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ParseWithLengthOpts", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer_length", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 159, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 159, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Print", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 162, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 162, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_PrintUnformatted", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 164, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 164, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_PrintBuffered", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "prebuffer", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int prebuffer" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int prebuffer" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fmt", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 166, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 166, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_PrintPreallocated", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "length", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 169, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 169, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Delete", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 171, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 171, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetArraySize", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 174, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 174, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetArrayItem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 176, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 176, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetObjectItem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 178, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 178, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetObjectItemCaseSensitive", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 179, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 179, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_HasObjectItem", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 180, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 180, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetErrorPtr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 182, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 182, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetStringValue", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 185, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 185, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_GetNumberValue", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 186, + "column": 1, + "source_line": "double cJSON_GetNumberValue(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 186, + "column": 1, + "source_line": "double cJSON_GetNumberValue(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsInvalid", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 189, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 189, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsFalse", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 190, + "column": 1, + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 190, + "column": 1, + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsTrue", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 191, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 191, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsBool", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 192, + "column": 1, + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 192, + "column": 1, + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsNull", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 193, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 193, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsNumber", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 194, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 194, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsString", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 195, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 195, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 196, + "column": 1, + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 196, + "column": 1, + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 197, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 197, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_IsRaw", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 198, + "column": 1, + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 198, + "column": 1, + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateNull", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 201, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 201, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateTrue", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 202, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 202, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateFalse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 203, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 203, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateBool", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 204, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 204, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateNumber", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "num", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double num" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double num" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 205, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 205, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateString", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 206, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 206, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateRaw", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "raw", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 208, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 208, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 209, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 209, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 210, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 210, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateStringReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 214, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 214, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateObjectReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 217, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 217, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateArrayReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 218, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 218, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateIntArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const int *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const int *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 222, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 222, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateFloatArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 223, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 223, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateDoubleArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 224, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 224, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_CreateStringArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "strings", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *const *strings", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *const *strings", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 225, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 225, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddItemToArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 228, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 228, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddItemToObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 229, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 229, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddItemToObjectCS", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 233, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 233, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddItemReferenceToArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 235, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 235, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddItemReferenceToObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 236, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 236, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DetachItemViaPointer", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "parent", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 239, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 239, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DetachItemFromArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 240, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 240, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DeleteItemFromArray", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 241, + "column": 1, + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 241, + "column": 1, + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DetachItemFromObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 242, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 242, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DetachItemFromObjectCaseSensitive", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 243, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 243, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DeleteItemFromObject", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 244, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 244, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_DeleteItemFromObjectCaseSensitive", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 245, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 245, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_InsertItemInArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 248, + "column": 1, + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 248, + "column": 1, + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ReplaceItemViaPointer", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "parent", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "replacement", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 249, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 249, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ReplaceItemInArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 250, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 250, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ReplaceItemInObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 251, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 251, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_ReplaceItemInObjectCaseSensitive", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 252, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object,const char *string,cJSON *newitem);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 252, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object,const char *string,cJSON *newitem);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Duplicate", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "recurse", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 255, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 255, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Compare", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const a", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const a", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const b", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const b", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 261, + "column": 1, + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 261, + "column": 1, + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_Minify", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "json", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *json", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *json", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 266, + "column": 1, + "source_line": "void cJSON_Minify(char *json);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 266, + "column": 1, + "source_line": "void cJSON_Minify(char *json);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddNullToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 270, + "column": 1, + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 270, + "column": 1, + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddTrueToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 271, + "column": 1, + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 271, + "column": 1, + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddFalseToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 272, + "column": 1, + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 272, + "column": 1, + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddBoolToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 273, + "column": 1, + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 273, + "column": 1, + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddNumberToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "number", + "type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 274, + "column": 1, + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 274, + "column": 1, + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddStringToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 275, + "column": 1, + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 275, + "column": 1, + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddRawToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "raw", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 276, + "column": 1, + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 276, + "column": 1, + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddObjectToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 277, + "column": 1, + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 277, + "column": 1, + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_AddArrayToObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 278, + "column": 1, + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 278, + "column": 1, + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_SetNumberHelper", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "number", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double number" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double number" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 283, + "column": 1, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 283, + "column": 1, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_SetValuestring", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "valuestring", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 286, + "column": 1, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 286, + "column": 1, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_malloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 299, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 299, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "cJSON_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.h", + "line": 300, + "column": 1, + "source_line": "void cJSON_free(void *object);" + }, + "start": { + "filename": "json/cJSON.h", + "line": 300, + "column": 1, + "source_line": "void cJSON_free(void *object);" + }, + "end": null, + "declaration_locations": [] + } + ], + "structs": [ + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "cJSON", + "members": [ + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 106, + "column": 5, + "source_line": " struct cJSON *next;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "prev", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 107, + "column": 5, + "source_line": " struct cJSON *prev;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct cJSON" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 109, + "column": 5, + "source_line": " struct cJSON *child;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 112, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valuestring", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *valuestring", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 115, + "column": 5, + "source_line": " char *valuestring;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valueint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int valueint" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 117, + "column": 5, + "source_line": " int valueint;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "valuedouble", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double valuedouble" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 119, + "column": 5, + "source_line": " double valuedouble;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 122, + "column": 5, + "source_line": " char *string;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.h", + "line": 103, + "column": 1, + "source_line": "typedef struct cJSON" + } + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "cJSON_Hooks", + "members": [ + { + "name": "malloc_fn", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *( *malloc_fn)(size_t sz)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameter_types": [ + { + "reference": "size_t" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 128, + "column": 7, + "source_line": " void *( *malloc_fn)(size_t sz);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "free_fn", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void ( *free_fn)(void *ptr)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *ptr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/cJSON.h", + "line": 129, + "column": 7, + "source_line": " void ( *free_fn)(void *ptr);" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/cJSON.h", + "line": 125, + "column": 1, + "source_line": "typedef struct cJSON_Hooks" + } + } + ], + "unions": [], + "enums": [], + "typedefs": [ + { + "reference": "cJSON" + }, + { + "reference": "cJSON_Hooks" + }, + { + "reference": "cJSON_bool" + } + ], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "cJSON_Version": { + "name": "cJSON_Version", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 124, + "column": 1, + "source_line": "const char* cJSON_Version(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 124, + "column": 1, + "source_line": "const char* cJSON_Version(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 147, + "column": 1, + "source_line": "const char* cJSON_Version(void);" + } + ] + }, + "cJSON_InitHooks": { + "name": "cJSON_InitHooks", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON_Hooks * hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON_Hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON_Hooks * hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON_Hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 209, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 209, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 238, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 150, + "column": 1, + "source_line": "void cJSON_InitHooks(cJSON_Hooks* hooks);" + } + ] + }, + "cJSON_Parse": { + "name": "cJSON_Parse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1227, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1227, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1230, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 154, + "column": 1, + "source_line": "cJSON * cJSON_Parse(const char *value);" + } + ] + }, + "cJSON_ParseWithLength": { + "name": "cJSON_ParseWithLength", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer_length", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1232, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1232, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1235, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 155, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLength(const char *value, size_t buffer_length);" + } + ] + }, + "cJSON_ParseWithOpts": { + "name": "cJSON_ParseWithOpts", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1131, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1131, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1144, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 158, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated);" + } + ] + }, + "cJSON_ParseWithLengthOpts": { + "name": "cJSON_ParseWithLengthOpts", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer_length", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "return_parse_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **return_parse_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "require_null_terminated", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1147, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1147, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1224, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 159, + "column": 1, + "source_line": "cJSON * cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated);" + } + ] + }, + "cJSON_Print": { + "name": "cJSON_Print", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1307, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1307, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1310, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 162, + "column": 1, + "source_line": "char * cJSON_Print(const cJSON *item);" + } + ] + }, + "cJSON_PrintUnformatted": { + "name": "cJSON_PrintUnformatted", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1312, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1312, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1315, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 164, + "column": 1, + "source_line": "char * cJSON_PrintUnformatted(const cJSON *item);" + } + ] + }, + "cJSON_PrintBuffered": { + "name": "cJSON_PrintBuffered", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "prebuffer", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int prebuffer" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int prebuffer" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fmt", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1317, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1317, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1346, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 166, + "column": 1, + "source_line": "char * cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);" + } + ] + }, + "cJSON_PrintPreallocated": { + "name": "cJSON_PrintPreallocated", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "length", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int length" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1348, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1348, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1365, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 169, + "column": 1, + "source_line": "cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);" + } + ] + }, + "cJSON_Delete": { + "name": "cJSON_Delete", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 253, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 253, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 276, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 171, + "column": 1, + "source_line": "void cJSON_Delete(cJSON *item);" + } + ] + }, + "cJSON_GetArraySize": { + "name": "cJSON_GetArraySize", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1899, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1899, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1920, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 174, + "column": 1, + "source_line": "int cJSON_GetArraySize(const cJSON *array);" + } + ] + }, + "cJSON_GetArrayItem": { + "name": "cJSON_GetArrayItem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1941, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1941, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1949, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 176, + "column": 1, + "source_line": "cJSON * cJSON_GetArrayItem(const cJSON *array, int index);" + } + ] + }, + "cJSON_GetObjectItem": { + "name": "cJSON_GetObjectItem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1983, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1983, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1986, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 178, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItem(const cJSON * const object, const char * const string);" + } + ] + }, + "cJSON_GetObjectItemCaseSensitive": { + "name": "cJSON_GetObjectItemCaseSensitive", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1988, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1988, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1991, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 179, + "column": 1, + "source_line": "cJSON * cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string);" + } + ] + }, + "cJSON_HasObjectItem": { + "name": "cJSON_HasObjectItem", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 1993, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 1993, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 1996, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 180, + "column": 1, + "source_line": "cJSON_bool cJSON_HasObjectItem(const cJSON *object, const char *string);" + } + ] + }, + "cJSON_GetErrorPtr": { + "name": "cJSON_GetErrorPtr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 94, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 94, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 97, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 182, + "column": 1, + "source_line": "const char * cJSON_GetErrorPtr(void);" + } + ] + }, + "cJSON_GetStringValue": { + "name": "cJSON_GetStringValue", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 99, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 99, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 107, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 185, + "column": 1, + "source_line": "char * cJSON_GetStringValue(const cJSON * const item);" + } + ] + }, + "cJSON_GetNumberValue": { + "name": "cJSON_GetNumberValue", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 109, + "column": 1, + "source_line": "double cJSON_GetNumberValue(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 109, + "column": 1, + "source_line": "double cJSON_GetNumberValue(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 117, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 186, + "column": 1, + "source_line": "double cJSON_GetNumberValue(const cJSON * const item);" + } + ] + }, + "cJSON_IsInvalid": { + "name": "cJSON_IsInvalid", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2972, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2972, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2980, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 189, + "column": 1, + "source_line": "cJSON_bool cJSON_IsInvalid(const cJSON * const item);" + } + ] + }, + "cJSON_IsFalse": { + "name": "cJSON_IsFalse", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2982, + "column": 1, + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2982, + "column": 1, + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2990, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 190, + "column": 1, + "source_line": "cJSON_bool cJSON_IsFalse(const cJSON * const item);" + } + ] + }, + "cJSON_IsTrue": { + "name": "cJSON_IsTrue", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2992, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2992, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3000, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 191, + "column": 1, + "source_line": "cJSON_bool cJSON_IsTrue(const cJSON * const item);" + } + ] + }, + "cJSON_IsBool": { + "name": "cJSON_IsBool", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3003, + "column": 1, + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3003, + "column": 1, + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3011, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 192, + "column": 1, + "source_line": "cJSON_bool cJSON_IsBool(const cJSON * const item);" + } + ] + }, + "cJSON_IsNull": { + "name": "cJSON_IsNull", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3012, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3012, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3020, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 193, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNull(const cJSON * const item);" + } + ] + }, + "cJSON_IsNumber": { + "name": "cJSON_IsNumber", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3022, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3022, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3030, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 194, + "column": 1, + "source_line": "cJSON_bool cJSON_IsNumber(const cJSON * const item);" + } + ] + }, + "cJSON_IsString": { + "name": "cJSON_IsString", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3032, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3032, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3040, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 195, + "column": 1, + "source_line": "cJSON_bool cJSON_IsString(const cJSON * const item);" + } + ] + }, + "cJSON_IsArray": { + "name": "cJSON_IsArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3042, + "column": 1, + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3042, + "column": 1, + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3050, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 196, + "column": 1, + "source_line": "cJSON_bool cJSON_IsArray(const cJSON * const item);" + } + ] + }, + "cJSON_IsObject": { + "name": "cJSON_IsObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3052, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3052, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3060, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 197, + "column": 1, + "source_line": "cJSON_bool cJSON_IsObject(const cJSON * const item);" + } + ] + }, + "cJSON_IsRaw": { + "name": "cJSON_IsRaw", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3062, + "column": 1, + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3062, + "column": 1, + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3070, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 198, + "column": 1, + "source_line": "cJSON_bool cJSON_IsRaw(const cJSON * const item);" + } + ] + }, + "cJSON_CreateNull": { + "name": "cJSON_CreateNull", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2461, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2461, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2470, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 201, + "column": 1, + "source_line": "cJSON * cJSON_CreateNull(void);" + } + ] + }, + "cJSON_CreateTrue": { + "name": "cJSON_CreateTrue", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2472, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2472, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2481, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 202, + "column": 1, + "source_line": "cJSON * cJSON_CreateTrue(void);" + } + ] + }, + "cJSON_CreateFalse": { + "name": "cJSON_CreateFalse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2483, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2483, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2492, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 203, + "column": 1, + "source_line": "cJSON * cJSON_CreateFalse(void);" + } + ] + }, + "cJSON_CreateBool": { + "name": "cJSON_CreateBool", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2494, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2494, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2503, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 204, + "column": 1, + "source_line": "cJSON * cJSON_CreateBool(cJSON_bool boolean);" + } + ] + }, + "cJSON_CreateNumber": { + "name": "cJSON_CreateNumber", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "num", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double num" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double num" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2505, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2505, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2529, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 205, + "column": 1, + "source_line": "cJSON * cJSON_CreateNumber(double num);" + } + ] + }, + "cJSON_CreateString": { + "name": "cJSON_CreateString", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2531, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2531, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2546, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 206, + "column": 1, + "source_line": "cJSON * cJSON_CreateString(const char *string);" + } + ] + }, + "cJSON_CreateRaw": { + "name": "cJSON_CreateRaw", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "name": "cJSON_String", - "value": "(1 << 4)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 94, - "column": 1, - "source_line": "#define cJSON_String (1 << 4)" - } - }, + "name": "raw", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2581, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2581, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2596, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "cJSON_Array", - "value": "(1 << 5)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 95, - "column": 1, - "source_line": "#define cJSON_Array (1 << 5)" + "filename": "json/cJSON.h", + "line": 208, + "column": 1, + "source_line": "cJSON * cJSON_CreateRaw(const char *raw);" + } + ] + }, + "cJSON_CreateArray": { + "name": "cJSON_CreateArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2598, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2598, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2607, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "cJSON_Object", - "value": "(1 << 6)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 96, - "column": 1, - "source_line": "#define cJSON_Object (1 << 6)" + "filename": "json/cJSON.h", + "line": 209, + "column": 1, + "source_line": "cJSON * cJSON_CreateArray(void);" + } + ] + }, + "cJSON_CreateObject": { + "name": "cJSON_CreateObject", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2609, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2609, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2618, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "cJSON_Raw", - "value": "(1 << 7)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 97, - "column": 1, - "source_line": "#define cJSON_Raw (1 << 7) /* raw json */" + "filename": "json/cJSON.h", + "line": 210, + "column": 1, + "source_line": "cJSON * cJSON_CreateObject(void);" + } + ] + }, + "cJSON_CreateStringReference": { + "name": "cJSON_CreateStringReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2548, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2548, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2558, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "cJSON_IsReference", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 99, - "column": 1, - "source_line": "#define cJSON_IsReference 256" + "filename": "json/cJSON.h", + "line": 214, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringReference(const char *string);" + } + ] + }, + "cJSON_CreateObjectReference": { + "name": "cJSON_CreateObjectReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "name": "cJSON_StringIsConst", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 100, - "column": 1, - "source_line": "#define cJSON_StringIsConst 512" - } - }, + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2560, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2560, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2569, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "CJSON_NESTING_LIMIT", - "value": "1000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 137, - "column": 1, - "source_line": "#define CJSON_NESTING_LIMIT 1000" + "filename": "json/cJSON.h", + "line": 217, + "column": 1, + "source_line": "cJSON * cJSON_CreateObjectReference(const cJSON *child);" + } + ] + }, + "cJSON_CreateArrayReference": { + "name": "cJSON_CreateArrayReference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "name": "CJSON_CIRCULAR_LIMIT", - "value": "10000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 143, - "column": 1, - "source_line": "#define CJSON_CIRCULAR_LIMIT 10000" - } - }, + "name": "child", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *child", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2571, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child) {" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2571, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child) {" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2579, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "cJSON_SetIntValue", - "value": "((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 281, - "column": 1, - "source_line": "#define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))" + "filename": "json/cJSON.h", + "line": 218, + "column": 1, + "source_line": "cJSON * cJSON_CreateArrayReference(const cJSON *child);" + } + ] + }, + "cJSON_CreateIntArray": { + "name": "cJSON_CreateIntArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "name": "cJSON_SetNumberValue", - "value": "((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 284, - "column": 1, - "source_line": "#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))" - } + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const int *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const int *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "cJSON_SetBoolValue", - "value": "( (object != NULL && ((object)->type & (cJSON_False|cJSON_True))) ? (object)->type=((object)->type &(~(cJSON_False|cJSON_True)))|((boolValue)?cJSON_True:cJSON_False) : cJSON_Invalid )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 289, - "column": 1, - "source_line": "#define cJSON_SetBoolValue(object, boolValue) ( \\" + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2621, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2621, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2659, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 222, + "column": 1, + "source_line": "cJSON * cJSON_CreateIntArray(const int *numbers, int count);" + } + ] + }, + "cJSON_CreateFloatArray": { + "name": "cJSON_CreateFloatArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } + ] + }, + "parameters": [ + { + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "cJSON_ArrayForEach", - "value": "for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 296, - "column": 1, - "source_line": "#define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)" - } + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null } ], - "includes": [ + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2661, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2661, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2699, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 86, - "column": 1, - "source_line": "#include " - } + "filename": "json/cJSON.h", + "line": 223, + "column": 1, + "source_line": "cJSON * cJSON_CreateFloatArray(const float *numbers, int count);" } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "cJSON__h", - "source_location": { - "filename": "json/cJSON.h", - "line": 23, - "column": 1, - "source_line": "#ifndef cJSON__h" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "json/cJSON.h", - "line": 26, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 29, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(__WINDOWS__) && (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))", - "source_location": { - "filename": "json/cJSON.h", - "line": 31, - "column": 1, - "source_line": "#if !defined(__WINDOWS__) && (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 33, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__WINDOWS__", - "source_location": { - "filename": "json/cJSON.h", - "line": 35, - "column": 1, - "source_line": "#ifdef __WINDOWS__" - } - }, - { - "directive": "if", - "argument": "!defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS) && !defined(CJSON_EXPORT_SYMBOLS)", - "source_location": { - "filename": "json/cJSON.h", - "line": 59, - "column": 1, - "source_line": "#if !defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS) && !defined(CJSON_EXPORT_SYMBOLS)" + ] + }, + "cJSON_CreateDoubleArray": { + "name": "cJSON_CreateDoubleArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 61, - "column": 1, - "source_line": "#endif" - } + "name": "numbers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *numbers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "if", - "argument": "defined(CJSON_HIDE_SYMBOLS)", - "source_location": { - "filename": "json/cJSON.h", - "line": 63, - "column": 1, - "source_line": "#if defined(CJSON_HIDE_SYMBOLS)" - } - }, + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2701, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2701, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2739, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "elif", - "argument": "defined(CJSON_EXPORT_SYMBOLS)", - "source_location": { - "filename": "json/cJSON.h", - "line": 65, - "column": 1, - "source_line": "#elif defined(CJSON_EXPORT_SYMBOLS)" + "filename": "json/cJSON.h", + "line": 224, + "column": 1, + "source_line": "cJSON * cJSON_CreateDoubleArray(const double *numbers, int count);" + } + ] + }, + "cJSON_CreateStringArray": { + "name": "cJSON_CreateStringArray", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } - }, + ] + }, + "parameters": [ { - "directive": "elif", - "argument": "defined(CJSON_IMPORT_SYMBOLS)", - "source_location": { - "filename": "json/cJSON.h", - "line": 67, - "column": 1, - "source_line": "#elif defined(CJSON_IMPORT_SYMBOLS)" - } + "name": "strings", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *const *strings", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *const *strings", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 69, - "column": 1, - "source_line": "#endif" - } - }, + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2741, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2741, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2779, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "else", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 70, - "column": 1, - "source_line": "#else /* !__WINDOWS__ */" - } - }, + "filename": "json/cJSON.h", + "line": 225, + "column": 1, + "source_line": "cJSON * cJSON_CreateStringArray(const char *const *strings, int count);" + } + ] + }, + "cJSON_AddItemToArray": { + "name": "cJSON_AddItemToArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ { - "directive": "if", - "argument": "(defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(CJSON_API_VISIBILITY)", - "source_location": { - "filename": "json/cJSON.h", - "line": 74, - "column": 1, - "source_line": "#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(CJSON_API_VISIBILITY)" - } + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "else", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 76, - "column": 1, - "source_line": "#else" - } - }, + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2061, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2061, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2064, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 78, - "column": 1, - "source_line": "#endif" - } - }, + "filename": "json/cJSON.h", + "line": 228, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item);" + } + ] + }, + "cJSON_AddItemToObject": { + "name": "cJSON_AddItemToObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 79, - "column": 1, - "source_line": "#endif" - } + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifndef", - "argument": "CJSON_NESTING_LIMIT", - "source_location": { - "filename": "json/cJSON.h", - "line": 136, - "column": 1, - "source_line": "#ifndef CJSON_NESTING_LIMIT" - } + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 138, - "column": 1, - "source_line": "#endif" - } - }, + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2119, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2119, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2122, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "ifndef", - "argument": "CJSON_CIRCULAR_LIMIT", - "source_location": { - "filename": "json/cJSON.h", - "line": 142, - "column": 1, - "source_line": "#ifndef CJSON_CIRCULAR_LIMIT" - } - }, + "filename": "json/cJSON.h", + "line": 229, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);" + } + ] + }, + "cJSON_AddItemToObjectCS": { + "name": "cJSON_AddItemToObjectCS", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 144, - "column": 1, - "source_line": "#endif" - } + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "json/cJSON.h", - "line": 302, - "column": 1, - "source_line": "#ifdef __cplusplus" - } + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 304, - "column": 1, - "source_line": "#endif" - } - }, + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2125, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2125, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2128, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 306, - "column": 1, - "source_line": "#endif" - } + "filename": "json/cJSON.h", + "line": 233, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);" } - ], - "macro_dependencies": [], - "diagnostics": [ + ] + }, + "cJSON_AddItemReferenceToArray": { + "name": "cJSON_AddItemReferenceToArray", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 64, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type CJSON_STDCALL" + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 66, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL" + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2130, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2130, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2138, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 68, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL" + "filename": "json/cJSON.h", + "line": 235, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);" + } + ] + }, + "cJSON_AddItemReferenceToObject": { + "name": "cJSON_AddItemReferenceToObject", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 75, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __attribute__((visibility(\"default\"))) type" + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 77, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type" + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2140, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2140, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2148, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetIntValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 281, - "column": 1, - "source_line": "#define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))" + "filename": "json/cJSON.h", + "line": 236, + "column": 1, + "source_line": "cJSON_bool cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);" + } + ] + }, + "cJSON_DetachItemViaPointer": { + "name": "cJSON_DetachItemViaPointer", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "cJSON_SetIntValue" - }, + { + "reference": "cJSON" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetNumberValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 284, - "column": 1, - "source_line": "#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))" + "name": "parent", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "cJSON_SetNumberValue" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetBoolValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 289, - "column": 1, - "source_line": "#define cJSON_SetBoolValue(object, boolValue) ( \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *parent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "cJSON_SetBoolValue" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_ArrayForEach' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 296, - "column": 1, - "source_line": "#define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)" + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "macro", - "unit_name": "cJSON_ArrayForEach" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 27, - "column": 1, - "source_line": "extern \"C\"" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2258, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2258, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2292, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 239, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);" } ] - } - }, - "functions": { - "case_insensitive_strcmp": { - "name": "case_insensitive_strcmp", + }, + "cJSON_DetachItemFromArray": { + "name": "cJSON_DetachItemFromArray", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "string1", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string1", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -7547,18 +25758,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string1", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -7566,11 +25773,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -7578,11 +25781,67 @@ "callback_policy": null }, { - "name": "string2", + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 2294, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 2294, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 2302, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 240, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromArray(cJSON *array, int which);" + } + ] + }, + "cJSON_DeleteItemFromArray": { + "name": "cJSON_DeleteItemFromArray", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string2", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -7590,18 +25849,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *string2", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", @@ -7609,51 +25864,67 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "which", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int which" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 133, + "line": 2304, "column": 1, - "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which)" }, "start": { "filename": "json/cJSON.c", - "line": 133, + "line": 2304, "column": 1, - "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which)" }, "end": { "filename": "json/cJSON.c", - "line": 154, + "line": 2307, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - "cJSON_strdup": { - "name": "cJSON_strdup", + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 241, + "column": 1, + "source_line": "void cJSON_DeleteItemFromArray(cJSON *array, int which);" + } + ] + }, + "cJSON_DetachItemFromObject": { + "name": "cJSON_DetachItemFromObject", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -7661,19 +25932,17 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "string", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * string", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -7681,18 +25950,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * string", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -7700,11 +25965,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -7712,38 +25973,42 @@ "callback_policy": null }, { - "name": "hooks", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -7751,35 +26016,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 188, + "line": 2309, "column": 1, - "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 188, + "line": 2309, "column": 1, - "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 207, + "line": 2314, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 242, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string);" + } + ] }, - "cJSON_New_Item": { - "name": "cJSON_New_Item", + "cJSON_DetachItemFromObjectCaseSensitive": { + "name": "cJSON_DetachItemFromObjectCaseSensitive", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -7797,38 +26067,77 @@ }, "parameters": [ { - "name": "hooks", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", "components": [ { "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", "qualifiers": [ "const" ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -7836,86 +26145,56 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 241, + "line": 2316, "column": 1, - "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 241, + "line": 2316, "column": 1, - "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 250, + "line": 2321, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 243, + "column": 1, + "source_line": "cJSON * cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);" + } + ] }, - "get_decimal_point": { - "name": "get_decimal_point", + "cJSON_DeleteItemFromObject": { + "name": "cJSON_DeleteItemFromObject", "result_type": { - "model": "CUnsignedChar", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned char" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 279, - "column": 1, - "source_line": "static unsigned char get_decimal_point(void)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 279, - "column": 1, - "source_line": "static unsigned char get_decimal_point(void)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "parse_number": { - "name": "parse_number", - "result_type": { - "reference": "cJSON_bool" + "source_text": "void" }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -7926,13 +26205,11 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -7944,38 +26221,42 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -7983,86 +26264,75 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 307, + "line": 2323, "column": 1, - "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 307, + "line": 2323, "column": 1, - "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 408, + "line": 2326, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 244, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObject(cJSON *object, const char *string);" + } + ] }, - "ensure": { - "name": "ensure", + "cJSON_DeleteItemFromObjectCaseSensitive": { + "name": "cJSON_DeleteItemFromObjectCaseSensitive", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const p", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const p", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -8070,195 +26340,217 @@ "callback_policy": null }, { - "name": "needed", + "name": "string", "type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 490, + "line": 2328, "column": 1, - "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" }, "start": { "filename": "json/cJSON.c", - "line": 490, + "line": 2328, "column": 1, - "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" }, "end": { "filename": "json/cJSON.c", - "line": 573, + "line": 2331, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 245, + "column": 1, + "source_line": "void cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);" + } + ] }, - "update_offset": { - "name": "update_offset", + "cJSON_InsertItemInArray": { + "name": "cJSON_InsertItemInArray", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "cJSON_bool" }, "parameters": [ { - "name": "buffer", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const buffer", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const buffer", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 576, - "column": 1, - "source_line": "static void update_offset(printbuffer * const buffer)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 576, - "column": 1, - "source_line": "static void update_offset(printbuffer * const buffer)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 586, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compare_double": { - "name": "compare_double", - "result_type": { - "reference": "cJSON_bool" - }, - "parameters": [ + }, { - "name": "a", + "name": "which", "type": { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double a" + "source_text": "int which" }, "declared_type": { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double a" + "source_text": "int which" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "newitem", "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double b" + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double b" + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 589, + "line": 2334, "column": 1, - "source_line": "static cJSON_bool compare_double(double a, double b)" + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" }, "start": { "filename": "json/cJSON.c", - "line": 589, + "line": 2334, "column": 1, - "source_line": "static cJSON_bool compare_double(double a, double b)" + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" }, "end": { "filename": "json/cJSON.c", - "line": 593, + "line": 2366, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 248, + "column": 1, + "source_line": "cJSON_bool cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem);" + } + ] }, - "print_number": { - "name": "print_number", + "cJSON_ReplaceItemViaPointer": { + "name": "cJSON_ReplaceItemViaPointer", "result_type": { "reference": "cJSON_bool" }, "parameters": [ { - "name": "item", + "name": "parent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const parent", "components": [ { "model": "CPointer", @@ -8275,7 +26567,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const parent", "components": [ { "model": "CPointer", @@ -8293,28 +26585,11 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "printbuffer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", @@ -8324,55 +26599,14 @@ "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 596, - "column": 1, - "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 596, - "column": 1, - "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 663, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "parse_hex4": { - "name": "parse_hex4", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned" - }, - "parameters": [ - { - "name": "input", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", @@ -8382,32 +26616,42 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "replacement", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "cJSON * replacement", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -8415,82 +26659,73 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 666, + "line": 2368, "column": 1, - "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" }, "start": { "filename": "json/cJSON.c", - "line": 666, + "line": 2368, "column": 1, - "source_line": "static unsigned parse_hex4(const unsigned char * const input)" + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" }, "end": { "filename": "json/cJSON.c", - "line": 699, + "line": 2415, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 249, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement);" + } + ] }, - "utf16_literal_to_utf8": { - "name": "utf16_literal_to_utf8", + "cJSON_ReplaceItemInArray": { + "name": "cJSON_ReplaceItemInArray", "result_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON_bool" }, "parameters": [ { - "name": "input_pointer", + "name": "array", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input_pointer", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input_pointer", + "source_text": "cJSON *array", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "cJSON" } ] }, @@ -8498,58 +26733,26 @@ "callback_policy": null }, { - "name": "input_end", + "name": "which", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const unsigned char * const input_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] + "source_text": "int which" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const unsigned char * const input_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] + "source_text": "int which" }, "source_location": null, "callback_policy": null }, { - "name": "output_pointer", + "name": "newitem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char **output_pointer", + "source_text": "cJSON *newitem", "components": [ { "model": "CPointer", @@ -8557,21 +26760,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char **output_pointer", + "source_text": "cJSON *newitem", "components": [ { "model": "CPointer", @@ -8579,14 +26775,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, @@ -8594,51 +26783,54 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 703, + "line": 2417, "column": 1, - "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" }, "start": { "filename": "json/cJSON.c", - "line": 703, + "line": 2417, "column": 1, - "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" }, "end": { "filename": "json/cJSON.c", - "line": 821, + "line": 2425, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 250, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem);" + } + ] }, - "parse_string": { - "name": "parse_string", + "cJSON_ReplaceItemInObject": { + "name": "cJSON_ReplaceItemInObject", "result_type": { "reference": "cJSON_bool" }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -8649,13 +26841,11 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -8667,38 +26857,77 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char *string", "components": [ { "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", "qualifiers": [ "const" ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "newitem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *newitem", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" } ] }, @@ -8706,80 +26935,116 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 824, + "line": 2450, "column": 1, - "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" }, "start": { "filename": "json/cJSON.c", - "line": 824, + "line": 2450, "column": 1, - "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" }, "end": { "filename": "json/cJSON.c", - "line": 951, + "line": 2453, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 251, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem);" + } + ] }, - "print_string_ptr": { - "name": "print_string_ptr", + "cJSON_ReplaceItemInObjectCaseSensitive": { + "name": "cJSON_ReplaceItemInObjectCaseSensitive", "result_type": { "reference": "cJSON_bool" }, "parameters": [ { - "name": "input", + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char * const input", + "source_text": "const char *string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const unsigned char" + "source_text": "const char" } ] }, @@ -8787,38 +27052,34 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "newitem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "cJSON *newitem", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "cJSON *newitem", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "reference": "cJSON" } ] }, @@ -8826,37 +27087,54 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 954, + "line": 2455, "column": 1, - "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" }, "start": { "filename": "json/cJSON.c", - "line": 954, + "line": 2455, "column": 1, - "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" }, "end": { "filename": "json/cJSON.c", - "line": 1073, + "line": 2458, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 252, + "column": 1, + "source_line": "cJSON_bool cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object,const char *string,cJSON *newitem);" + } + ] }, - "print_string": { - "name": "print_string", + "cJSON_Duplicate": { + "name": "cJSON_Duplicate", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { @@ -8864,13 +27142,11 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -8881,13 +27157,11 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "const cJSON *item", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { @@ -8899,84 +27173,61 @@ "callback_policy": null }, { - "name": "p", + "name": "recurse", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "printbuffer * const p", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "printbuffer" - } - ] + "reference": "cJSON_bool" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "printbuffer * const p", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "printbuffer" - } - ] + "reference": "cJSON_bool" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1076, + "line": 2784, "column": 1, - "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" }, "start": { "filename": "json/cJSON.c", - "line": 1076, + "line": 2784, "column": 1, - "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" }, "end": { "filename": "json/cJSON.c", - "line": 1079, + "line": 2787, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 255, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate(const cJSON *item, cJSON_bool recurse);" + } + ] }, - "parse_value": { - "name": "parse_value", + "cJSON_Compare": { + "name": "cJSON_Compare", "result_type": { "reference": "cJSON_bool" }, "parameters": [ { - "name": "item", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const a", "components": [ { "model": "CPointer", @@ -8993,7 +27244,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const cJSON * const a", "components": [ { "model": "CPointer", @@ -9011,11 +27262,11 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "b", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const b", "components": [ { "model": "CPointer", @@ -9025,14 +27276,14 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const cJSON * const b", "components": [ { "model": "CPointer", @@ -9042,126 +27293,98 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1368, + "line": 3072, "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" }, "start": { "filename": "json/cJSON.c", - "line": 1368, + "line": 3072, "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" }, "end": { "filename": "json/cJSON.c", - "line": 1420, + "line": 3195, "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "json/cJSON.c", - "line": 1082, - "column": 1, - "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);" - } - ] - }, - "print_value": { - "name": "print_value", - "result_type": { - "reference": "cJSON_bool" - }, - "parameters": [ - { - "name": "item", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const cJSON * const item", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "cJSON" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const cJSON * const item", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "cJSON" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "output_buffer", + "filename": "json/cJSON.h", + "line": 261, + "column": 1, + "source_line": "cJSON_bool cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive);" + } + ] + }, + "cJSON_Minify": { + "name": "cJSON_Minify", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "json", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "char *json", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "char *json", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, @@ -9169,52 +27392,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1423, + "line": 2924, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "void cJSON_Minify(char *json)" }, "start": { "filename": "json/cJSON.c", - "line": 1423, + "line": 2924, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "void cJSON_Minify(char *json)" }, "end": { "filename": "json/cJSON.c", - "line": 1494, + "line": 2970, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1083, + "filename": "json/cJSON.h", + "line": 266, "column": 1, - "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "void cJSON_Minify(char *json);" } ] }, - "parse_array": { - "name": "parse_array", + "cJSON_AddNullToObject": { + "name": "cJSON_AddNullToObject", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9231,7 +27464,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9249,11 +27482,11 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9263,14 +27496,18 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9280,7 +27517,11 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -9288,52 +27529,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1497, + "line": 2150, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name)" }, "start": { "filename": "json/cJSON.c", - "line": 1497, + "line": 2150, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name)" }, "end": { "filename": "json/cJSON.c", - "line": 1592, + "line": 2160, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1084, + "filename": "json/cJSON.h", + "line": 270, "column": 1, - "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);" + "source_line": "cJSON* cJSON_AddNullToObject(cJSON * const object, const char * const name);" } ] }, - "print_array": { - "name": "print_array", + "cJSON_AddTrueToObject": { + "name": "cJSON_AddTrueToObject", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9350,7 +27601,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9368,11 +27619,11 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9382,14 +27633,18 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9399,7 +27654,11 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -9407,52 +27666,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1595, + "line": 2162, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name)" }, "start": { "filename": "json/cJSON.c", - "line": 1595, + "line": 2162, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name)" }, "end": { "filename": "json/cJSON.c", - "line": 1659, + "line": 2172, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1085, + "filename": "json/cJSON.h", + "line": 271, "column": 1, - "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "cJSON* cJSON_AddTrueToObject(cJSON * const object, const char * const name);" } ] }, - "parse_object": { - "name": "parse_object", + "cJSON_AddFalseToObject": { + "name": "cJSON_AddFalseToObject", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9469,7 +27738,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9487,11 +27756,11 @@ "callback_policy": null }, { - "name": "input_buffer", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9501,14 +27770,18 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const input_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9518,7 +27791,11 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -9526,52 +27803,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1662, + "line": 2174, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name)" }, "start": { "filename": "json/cJSON.c", - "line": 1662, + "line": 2174, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name)" }, "end": { "filename": "json/cJSON.c", - "line": 1777, + "line": 2184, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1086, + "filename": "json/cJSON.h", + "line": 272, "column": 1, - "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);" + "source_line": "cJSON* cJSON_AddFalseToObject(cJSON * const object, const char * const name);" } ] }, - "print_object": { - "name": "print_object", + "cJSON_AddBoolToObject": { + "name": "cJSON_AddBoolToObject", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9588,7 +27875,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9606,11 +27893,11 @@ "callback_policy": null }, { - "name": "output_buffer", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9620,14 +27907,18 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "printbuffer * const output_buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9637,54 +27928,67 @@ "source_text": "" }, { - "reference": "printbuffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "boolean", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1780, + "line": 2186, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" }, "start": { "filename": "json/cJSON.c", - "line": 1780, + "line": 2186, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" }, "end": { "filename": "json/cJSON.c", - "line": 1896, + "line": 2196, "column": 1, "source_line": "}" }, "declaration_locations": [ { - "filename": "json/cJSON.c", - "line": 1087, + "filename": "json/cJSON.h", + "line": 273, "column": 1, - "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);" + "source_line": "cJSON* cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean);" } ] }, - "buffer_skip_whitespace": { - "name": "buffer_skip_whitespace", + "cJSON_AddNumberToObject": { + "name": "cJSON_AddNumberToObject", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -9692,17 +27996,17 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "buffer", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const buffer", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9712,14 +28016,14 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const buffer", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9729,65 +28033,19 @@ "source_text": "" }, { - "reference": "parse_buffer" + "reference": "cJSON" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "json/cJSON.c", - "line": 1090, - "column": 1, - "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" - }, - "start": { - "filename": "json/cJSON.c", - "line": 1090, - "column": 1, - "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" - }, - "end": { - "filename": "json/cJSON.c", - "line": 1113, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "skip_utf8_bom": { - "name": "skip_utf8_bom", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "parse_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "parse_buffer" - } - ] - }, - "parameters": [ + }, { - "name": "buffer", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9797,14 +28055,18 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "parse_buffer * const buffer", + "source_text": "const char * const name", "components": [ { "model": "CPointer", @@ -9814,47 +28076,75 @@ "source_text": "" }, { - "reference": "parse_buffer" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "number", + "type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double number" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1116, + "line": 2198, "column": 1, - "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" }, "start": { "filename": "json/cJSON.c", - "line": 1116, + "line": 2198, "column": 1, - "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" }, "end": { "filename": "json/cJSON.c", - "line": 1129, + "line": 2208, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 274, + "column": 1, + "source_line": "cJSON* cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number);" + } + ] }, - "print": { - "name": "print", + "cJSON_AddStringToObject": { + "name": "cJSON_AddStringToObject", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "cJSON", "components": [ { "model": "CPointer", @@ -9862,19 +28152,17 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "cJSON" } ] }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9891,7 +28179,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const item", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -9909,22 +28197,58 @@ "callback_policy": null }, { - "name": "format", + "name": "name", "type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "declared_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "hooks", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -9934,14 +28258,18 @@ "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", + "source_text": "const char * const string", "components": [ { "model": "CPointer", @@ -9951,7 +28279,11 @@ "source_text": "" }, { - "reference": "internal_hooks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -9959,35 +28291,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1239, + "line": 2210, "column": 1, - "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" }, "start": { "filename": "json/cJSON.c", - "line": 1239, + "line": 2210, "column": 1, - "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" }, "end": { "filename": "json/cJSON.c", - "line": 1304, + "line": 2220, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 275, + "column": 1, + "source_line": "cJSON* cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string);" + } + ] }, - "get_array_item": { - "name": "get_array_item", + "cJSON_AddRawToObject": { + "name": "cJSON_AddRawToObject", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -10005,34 +28342,85 @@ }, "parameters": [ { - "name": "array", + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *array", + "source_text": "const char * const name", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *array", + "source_text": "const char * const name", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -10040,46 +28428,87 @@ "callback_policy": null }, { - "name": "index", + "name": "raw", "type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1922, + "line": 2222, "column": 1, - "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" }, "start": { "filename": "json/cJSON.c", - "line": 1922, + "line": 2222, "column": 1, - "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" }, "end": { "filename": "json/cJSON.c", - "line": 1939, + "line": 2232, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 276, + "column": 1, + "source_line": "cJSON* cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw);" + } + ] }, - "get_object_item": { - "name": "get_object_item", + "cJSON_AddObjectToObject": { + "name": "cJSON_AddObjectToObject", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -10101,7 +28530,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const object", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -10118,7 +28547,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON * const object", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", @@ -10181,64 +28610,70 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "case_sensitive", - "type": { - "reference": "cJSON_bool" - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1951, + "line": 2234, "column": 1, - "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name)" }, "start": { "filename": "json/cJSON.c", - "line": 1951, + "line": 2234, "column": 1, - "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name)" }, "end": { "filename": "json/cJSON.c", - "line": 1981, + "line": 2244, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 277, + "column": 1, + "source_line": "cJSON* cJSON_AddObjectToObject(cJSON * const object, const char * const name);" + } + ] }, - "suffix_object": { - "name": "suffix_object", + "cJSON_AddArrayToObject": { + "name": "cJSON_AddArrayToObject", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "prev", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *prev", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { @@ -10249,11 +28684,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *prev", + "source_text": "cJSON * const object", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { @@ -10265,34 +28702,46 @@ "callback_policy": null }, { - "name": "item", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *item", + "source_text": "const char * const name", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *item", + "source_text": "const char * const name", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -10300,57 +28749,52 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 1999, + "line": 2246, "column": 1, - "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name)" }, "start": { "filename": "json/cJSON.c", - "line": 1999, + "line": 2246, "column": 1, - "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name)" }, "end": { "filename": "json/cJSON.c", - "line": 2003, + "line": 2256, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 278, + "column": 1, + "source_line": "cJSON* cJSON_AddArrayToObject(cJSON * const object, const char * const name);" + } + ] }, - "create_reference": { - "name": "create_reference", + "cJSON_SetNumberHelper": { + "name": "cJSON_SetNumberHelper", "result_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "cJSON", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "cJSON" - } - ] + "source_text": "double" }, "parameters": [ { - "name": "item", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -10365,7 +28809,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -10381,84 +28825,79 @@ "callback_policy": null }, { - "name": "hooks", + "name": "number", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "internal_hooks" - } - ] + "source_text": "double number" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "const internal_hooks * const hooks", - "components": [ - { - "model": "CPointer", - "qualifiers": [ - "const" - ], - "source_text": "" - }, - { - "reference": "internal_hooks" - } - ] + "source_text": "double number" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2006, + "line": 411, "column": 1, - "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number)" }, "start": { "filename": "json/cJSON.c", - "line": 2006, + "line": 411, "column": 1, - "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number)" }, "end": { "filename": "json/cJSON.c", - "line": 2025, + "line": 432, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 283, + "column": 1, + "source_line": "double cJSON_SetNumberHelper(cJSON *object, double number);" + } + ] }, - "add_item_to_array": { - "name": "add_item_to_array", + "cJSON_SetValuestring": { + "name": "cJSON_SetValuestring", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "array", + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *array", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -10473,7 +28912,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *array", + "source_text": "cJSON *object", "components": [ { "model": "CPointer", @@ -10489,11 +28928,11 @@ "callback_policy": null }, { - "name": "item", + "name": "valuestring", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *item", + "source_text": "const char *valuestring", "components": [ { "model": "CPointer", @@ -10501,14 +28940,18 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *item", + "source_text": "const char *valuestring", "components": [ { "model": "CPointer", @@ -10516,7 +28959,11 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -10524,35 +28971,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2027, + "line": 435, "column": 1, - "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring)" }, "start": { "filename": "json/cJSON.c", - "line": 2027, + "line": 435, "column": 1, - "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring)" }, "end": { "filename": "json/cJSON.c", - "line": 2058, + "line": 476, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 286, + "column": 1, + "source_line": "char* cJSON_SetValuestring(cJSON *object, const char *valuestring);" + } + ] }, - "cast_away_const": { - "name": "cast_away_const", + "cJSON_malloc": { + "name": "cJSON_malloc", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -10572,11 +29024,63 @@ }, "parameters": [ { - "name": "string", + "name": "size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 3197, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 3197, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 3200, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 299, + "column": 1, + "source_line": "void * cJSON_malloc(size_t size);" + } + ] + }, + "cJSON_free": { + "name": "cJSON_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "object", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void * string", + "source_text": "void *object", "components": [ { "model": "CPointer", @@ -10585,17 +29089,15 @@ }, { "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void * string", + "source_text": "void *object", "components": [ { "model": "CPointer", @@ -10604,10 +29106,8 @@ }, { "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "qualifiers": [], + "source_text": "void" } ] }, @@ -10615,72 +29115,83 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2073, + "line": 3202, "column": 1, - "source_line": "static void* cast_away_const(const void* string)" + "source_line": "void cJSON_free(void *object)" }, "start": { "filename": "json/cJSON.c", - "line": 2073, + "line": 3202, "column": 1, - "source_line": "static void* cast_away_const(const void* string)" + "source_line": "void cJSON_free(void *object)" }, "end": { "filename": "json/cJSON.c", - "line": 2076, + "line": 3206, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "json/cJSON.h", + "line": 300, + "column": 1, + "source_line": "void cJSON_free(void *object);" + } + ] }, - "add_item_to_object": { - "name": "add_item_to_object", + "case_insensitive_strcmp": { + "name": "case_insensitive_strcmp", "result_type": { - "reference": "cJSON_bool" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "object", + "name": "string1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const object", + "source_text": "const unsigned char *string1", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const object", + "source_text": "const unsigned char *string1", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -10688,85 +29199,133 @@ "callback_policy": null }, { - "name": "string", + "name": "string2", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const string", + "source_text": "const unsigned char *string2", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * const string", + "source_text": "const unsigned char *string2", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 133, + "column": 1, + "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 133, + "column": 1, + "source_line": "static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 154, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "cJSON_strdup": { + "name": "cJSON_strdup", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ { - "name": "item", + "name": "string", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const unsigned char * string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON * const item", + "source_text": "const unsigned char * string", "components": [ { "model": "CPointer", - "qualifiers": [ - "const" - ], + "qualifiers": [], "source_text": "" }, { - "reference": "cJSON" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -10811,17 +29370,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "constant_key", - "type": { - "reference": "cJSON_bool" - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -10833,102 +29381,183 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2082, + "line": 188, "column": 1, - "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" }, "start": { "filename": "json/cJSON.c", - "line": 2082, + "line": 188, "column": 1, - "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" + "source_line": "static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)" }, "end": { "filename": "json/cJSON.c", - "line": 2117, + "line": 207, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "replace_item_in_object": { - "name": "replace_item_in_object", + "cJSON_New_Item": { + "name": "cJSON_New_Item", "result_type": { - "reference": "cJSON_bool" + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, "parameters": [ { - "name": "object", + "name": "hooks", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *object", + "source_text": "const internal_hooks * const hooks", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "internal_hooks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *object", + "source_text": "const internal_hooks * const hooks", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "internal_hooks" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 241, + "column": 1, + "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 241, + "column": 1, + "source_line": "static cJSON *cJSON_New_Item(const internal_hooks * const hooks)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 250, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "get_decimal_point": { + "name": "get_decimal_point", + "result_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + }, + "parameters": [], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 279, + "column": 1, + "source_line": "static unsigned char get_decimal_point(void)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 279, + "column": 1, + "source_line": "static unsigned char get_decimal_point(void)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 287, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "parse_number": { + "name": "parse_number", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ { - "name": "string", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *string", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "" + }, + { + "reference": "cJSON" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *string", + "source_text": "cJSON * const item", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "" + }, + { + "reference": "cJSON" } ] }, @@ -10936,50 +29565,43 @@ "callback_policy": null }, { - "name": "replacement", + "name": "input_buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *replacement", + "source_text": "parse_buffer * const input_buffer", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "parse_buffer" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON *replacement", + "source_text": "parse_buffer * const input_buffer", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "parse_buffer" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "case_sensitive", - "type": { - "reference": "cJSON_bool" - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -10991,30 +29613,30 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2427, + "line": 307, "column": 1, - "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" }, "start": { "filename": "json/cJSON.c", - "line": 2427, + "line": 307, "column": 1, - "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" + "source_line": "static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)" }, "end": { "filename": "json/cJSON.c", - "line": 2448, + "line": 408, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "cJSON_Duplicate_rec": { - "name": "cJSON_Duplicate_rec", + "ensure": { + "name": "ensure", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "cJSON", + "source_text": "unsigned char", "components": [ { "model": "CPointer", @@ -11022,40 +29644,46 @@ "source_text": "" }, { - "reference": "cJSON" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "parameters": [ { - "name": "item", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "printbuffer * const p", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "printbuffer" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const cJSON *item", + "source_text": "printbuffer * const p", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "reference": "cJSON" + "reference": "printbuffer" } ] }, @@ -11063,7 +29691,7 @@ "callback_policy": null }, { - "name": "depth", + "name": "needed", "type": { "reference": "size_t" }, @@ -11072,53 +29700,37 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "recurse", - "type": { - "reference": "cJSON_bool" - }, - "declared_type": { - "reference": "cJSON_bool" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2789, + "line": 490, "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" }, "start": { "filename": "json/cJSON.c", - "line": 2789, + "line": 490, "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" + "source_line": "static unsigned char* ensure(printbuffer * const p, size_t needed)" }, "end": { "filename": "json/cJSON.c", - "line": 2873, + "line": 573, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "json/cJSON.c", - "line": 2782, - "column": 1, - "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse);" - } - ] + "declaration_locations": [] }, - "skip_oneline_comment": { - "name": "skip_oneline_comment", + "update_offset": { + "name": "update_offset", "result_type": { "model": "CVoid", "qualifiers": [], @@ -11126,48 +29738,38 @@ }, "parameters": [ { - "name": "input", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "printbuffer * const buffer", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "printbuffer" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "printbuffer * const buffer", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "printbuffer" } ] }, @@ -11184,77 +29786,56 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2875, + "line": 576, "column": 1, - "source_line": "static void skip_oneline_comment(char **input)" + "source_line": "static void update_offset(printbuffer * const buffer)" }, "start": { "filename": "json/cJSON.c", - "line": 2875, + "line": 576, "column": 1, - "source_line": "static void skip_oneline_comment(char **input)" + "source_line": "static void update_offset(printbuffer * const buffer)" }, "end": { "filename": "json/cJSON.c", - "line": 2886, + "line": 586, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "skip_multiline_comment": { - "name": "skip_multiline_comment", + "compare_double": { + "name": "compare_double", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "cJSON_bool" }, "parameters": [ { - "name": "input", + "name": "a", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "char **input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "double a" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "char **input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" }, "source_location": null, "callback_policy": null @@ -11269,124 +29850,185 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2888, + "line": 589, "column": 1, - "source_line": "static void skip_multiline_comment(char **input)" + "source_line": "static cJSON_bool compare_double(double a, double b)" }, "start": { "filename": "json/cJSON.c", - "line": 2888, + "line": 589, "column": 1, - "source_line": "static void skip_multiline_comment(char **input)" + "source_line": "static cJSON_bool compare_double(double a, double b)" }, "end": { "filename": "json/cJSON.c", - "line": 2900, + "line": 593, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "minify_string": { - "name": "minify_string", + "print_number": { + "name": "print_number", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "cJSON_bool" }, "parameters": [ { - "name": "input", + "name": "item", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "const cJSON * const item", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "cJSON" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **input", + "source_text": "printbuffer * const output_buffer", "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ { "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "printbuffer" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/cJSON.c", + "line": 596, + "column": 1, + "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + }, + "start": { + "filename": "json/cJSON.c", + "line": 596, + "column": 1, + "source_line": "static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer)" + }, + "end": { + "filename": "json/cJSON.c", + "line": 663, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "parse_hex4": { + "name": "parse_hex4", + "result_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned" + }, + "parameters": [ { - "name": "output", + "name": "input", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **output", + "source_text": "const unsigned char * const input", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **output", + "source_text": "const unsigned char * const input", "components": [ { "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], + "qualifiers": [ + "const" + ], "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -11403,2093 +30045,3315 @@ "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 2902, + "line": 666, "column": 1, - "source_line": "static void minify_string(char **input, char **output) {" + "source_line": "static unsigned parse_hex4(const unsigned char * const input)" }, "start": { "filename": "json/cJSON.c", - "line": 2902, + "line": 666, "column": 1, - "source_line": "static void minify_string(char **input, char **output) {" + "source_line": "static unsigned parse_hex4(const unsigned char * const input)" }, "end": { "filename": "json/cJSON.c", - "line": 2922, + "line": 699, "column": 1, "source_line": "}" }, "declaration_locations": [] - } - }, - "structs": { - "internal_hooks": { - "reference": "struct internal_hooks" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "error": { - "reference": "error" - }, - "internal_hooks": { - "reference": "internal_hooks" - }, - "parse_buffer": { - "reference": "parse_buffer" - }, - "printbuffer": { - "reference": "printbuffer" - } - }, - "variables": { - "global_error": { - "name": "global_error", - "type": { - "reference": "error" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ NULL, 0 }" - }, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 92, - "column": 1, - "source_line": "static error global_error = { NULL, 0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "global_hooks": { - "name": "global_hooks", - "type": { - "reference": "internal_hooks" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ internal_malloc, internal_free, internal_realloc }" - }, - "bit_width": null, - "source_location": { - "filename": "json/cJSON.c", - "line": 186, - "column": 1, - "source_line": "static internal_hooks global_hooks = { internal_malloc, internal_free, internal_realloc };" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "_CRT_SECURE_NO_DEPRECATE": { - "name": "_CRT_SECURE_NO_DEPRECATE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 28, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_DEPRECATE" - } - }, - "true": { - "name": "true", - "value": "((cJSON_bool)1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 65, - "column": 1, - "source_line": "#define true ((cJSON_bool)1)" - } - }, - "false": { - "name": "false", - "value": "((cJSON_bool)0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 70, - "column": 1, - "source_line": "#define false ((cJSON_bool)0)" - } - }, - "isinf": { - "name": "isinf", - "value": "(isnan((d - d)) && !isnan(d))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 74, - "column": 1, - "source_line": "#define isinf(d) (isnan((d - d)) && !isnan(d))" - } - }, - "isnan": { - "name": "isnan", - "value": "(d != d)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 77, - "column": 1, - "source_line": "#define isnan(d) (d != d)" - } - }, - "NAN": { - "name": "NAN", - "value": "0.0/0.0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 84, - "column": 1, - "source_line": "#define NAN 0.0/0.0" - } - }, - "internal_malloc": { - "name": "internal_malloc", - "value": "malloc", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 178, - "column": 1, - "source_line": "#define internal_malloc malloc" - } - }, - "internal_free": { - "name": "internal_free", - "value": "free", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 179, - "column": 1, - "source_line": "#define internal_free free" - } - }, - "internal_realloc": { - "name": "internal_realloc", - "value": "realloc", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 180, - "column": 1, - "source_line": "#define internal_realloc realloc" - } - }, - "static_strlen": { - "name": "static_strlen", - "value": "(sizeof(string_literal) - sizeof(\"\"))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 184, - "column": 1, - "source_line": "#define static_strlen(string_literal) (sizeof(string_literal) - sizeof(\"\"))" - } - }, - "can_read": { - "name": "can_read", - "value": "((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 299, - "column": 1, - "source_line": "#define can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))" - } - }, - "can_access_at_index": { - "name": "can_access_at_index", - "value": "((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 301, - "column": 1, - "source_line": "#define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))" - } - }, - "cannot_access_at_index": { - "name": "cannot_access_at_index", - "value": "(!can_access_at_index(buffer, index))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 302, - "column": 1, - "source_line": "#define cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index))" - } - }, - "buffer_at_offset": { - "name": "buffer_at_offset", - "value": "((buffer)->content + (buffer)->offset)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 304, - "column": 1, - "source_line": "#define buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset)" - } - }, - "cjson_min": { - "name": "cjson_min", - "value": "(((a) < (b)) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.c", - "line": 1237, - "column": 1, - "source_line": "#define cjson_min(a, b) (((a) < (b)) ? (a) : (b))" - } - }, - "cJSON__h": { - "name": "cJSON__h", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 24, - "column": 1, - "source_line": "#define cJSON__h" - } - }, - "__WINDOWS__": { - "name": "__WINDOWS__", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 32, - "column": 1, - "source_line": "#define __WINDOWS__" - } - }, - "CJSON_CDECL": { - "name": "CJSON_CDECL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 71, - "column": 1, - "source_line": "#define CJSON_CDECL" - } - }, - "CJSON_STDCALL": { - "name": "CJSON_STDCALL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 72, - "column": 1, - "source_line": "#define CJSON_STDCALL" - } - }, - "CJSON_EXPORT_SYMBOLS": { - "name": "CJSON_EXPORT_SYMBOLS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 60, - "column": 1, - "source_line": "#define CJSON_EXPORT_SYMBOLS" - } - }, - "CJSON_PUBLIC": { - "name": "CJSON_PUBLIC", - "value": "type", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 77, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type" - } - }, - "CJSON_VERSION_MAJOR": { - "name": "CJSON_VERSION_MAJOR", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 82, - "column": 1, - "source_line": "#define CJSON_VERSION_MAJOR 1" - } - }, - "CJSON_VERSION_MINOR": { - "name": "CJSON_VERSION_MINOR", - "value": "7", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 83, - "column": 1, - "source_line": "#define CJSON_VERSION_MINOR 7" - } - }, - "CJSON_VERSION_PATCH": { - "name": "CJSON_VERSION_PATCH", - "value": "19", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 84, - "column": 1, - "source_line": "#define CJSON_VERSION_PATCH 19" - } - }, - "cJSON_Invalid": { - "name": "cJSON_Invalid", - "value": "(0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 89, - "column": 1, - "source_line": "#define cJSON_Invalid (0)" - } - }, - "cJSON_False": { - "name": "cJSON_False", - "value": "(1 << 0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 90, - "column": 1, - "source_line": "#define cJSON_False (1 << 0)" - } - }, - "cJSON_True": { - "name": "cJSON_True", - "value": "(1 << 1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 91, - "column": 1, - "source_line": "#define cJSON_True (1 << 1)" - } - }, - "cJSON_NULL": { - "name": "cJSON_NULL", - "value": "(1 << 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 92, - "column": 1, - "source_line": "#define cJSON_NULL (1 << 2)" - } - }, - "cJSON_Number": { - "name": "cJSON_Number", - "value": "(1 << 3)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 93, - "column": 1, - "source_line": "#define cJSON_Number (1 << 3)" - } - }, - "cJSON_String": { - "name": "cJSON_String", - "value": "(1 << 4)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 94, - "column": 1, - "source_line": "#define cJSON_String (1 << 4)" - } - }, - "cJSON_Array": { - "name": "cJSON_Array", - "value": "(1 << 5)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 95, - "column": 1, - "source_line": "#define cJSON_Array (1 << 5)" - } - }, - "cJSON_Object": { - "name": "cJSON_Object", - "value": "(1 << 6)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 96, - "column": 1, - "source_line": "#define cJSON_Object (1 << 6)" - } - }, - "cJSON_Raw": { - "name": "cJSON_Raw", - "value": "(1 << 7)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 97, - "column": 1, - "source_line": "#define cJSON_Raw (1 << 7) /* raw json */" - } - }, - "cJSON_IsReference": { - "name": "cJSON_IsReference", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 99, - "column": 1, - "source_line": "#define cJSON_IsReference 256" - } - }, - "cJSON_StringIsConst": { - "name": "cJSON_StringIsConst", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 100, - "column": 1, - "source_line": "#define cJSON_StringIsConst 512" - } - }, - "CJSON_NESTING_LIMIT": { - "name": "CJSON_NESTING_LIMIT", - "value": "1000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 137, - "column": 1, - "source_line": "#define CJSON_NESTING_LIMIT 1000" - } - }, - "CJSON_CIRCULAR_LIMIT": { - "name": "CJSON_CIRCULAR_LIMIT", - "value": "10000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 143, - "column": 1, - "source_line": "#define CJSON_CIRCULAR_LIMIT 10000" - } - }, - "cJSON_SetIntValue": { - "name": "cJSON_SetIntValue", - "value": "((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 281, - "column": 1, - "source_line": "#define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))" - } - }, - "cJSON_SetNumberValue": { - "name": "cJSON_SetNumberValue", - "value": "((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 284, - "column": 1, - "source_line": "#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))" - } - }, - "cJSON_SetBoolValue": { - "name": "cJSON_SetBoolValue", - "value": "( (object != NULL && ((object)->type & (cJSON_False|cJSON_True))) ? (object)->type=((object)->type &(~(cJSON_False|cJSON_True)))|((boolValue)?cJSON_True:cJSON_False) : cJSON_Invalid )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 289, - "column": 1, - "source_line": "#define cJSON_SetBoolValue(object, boolValue) ( \\" - } }, - "cJSON_ArrayForEach": { - "name": "cJSON_ArrayForEach", - "value": "for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "json/cJSON.h", - "line": 296, - "column": 1, - "source_line": "#define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)" - } - } - }, - "includes": { - "json/cJSON.c:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "utf16_literal_to_utf8": { + "name": "utf16_literal_to_utf8", + "result_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + }, + "parameters": [ + { + "name": "input_pointer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pointer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char **output_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char **output_pointer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 40, + "line": 703, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + }, + "start": { "filename": "json/cJSON.c", - "line": 41, + "line": 703, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)" + }, + "end": { "filename": "json/cJSON.c", - "line": 42, + "line": 821, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, - "json/cJSON.c:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "parse_string": { + "name": "parse_string", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 43, + "line": 824, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:limits.h": { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + }, + "start": { "filename": "json/cJSON.c", - "line": 44, + "line": 824, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:ctype.h": { - "target": "ctype.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { "filename": "json/cJSON.c", - "line": 45, + "line": 951, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, - "json/cJSON.c:float.h": { - "target": "float.h", - "kind": "system", - "resolved_path": null, + "print_string_ptr": { + "name": "print_string_ptr", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char * const input", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/cJSON.c", - "line": 46, + "line": 954, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:locale.h": { - "target": "locale.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + }, + "start": { "filename": "json/cJSON.c", - "line": 49, + "line": 954, "column": 1, - "source_line": "#include " - } - }, - "json/cJSON.c:cJSON.h": { - "target": "cJSON.h", - "kind": "local", - "resolved_path": "json/cJSON.h", - "source_location": { + "source_line": "static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffer * const output_buffer)" + }, + "end": { "filename": "json/cJSON.c", - "line": 59, + "line": 1073, "column": 1, - "source_line": "#include \"cJSON.h\"" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "json/cJSON.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "json/cJSON.h", - "line": 86, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "json/cJSON.c": [ - "case_insensitive_strcmp", - "cJSON_strdup", - "cJSON_New_Item", - "get_decimal_point", - "parse_number", - "ensure", - "update_offset", - "compare_double", - "print_number", - "parse_hex4", - "utf16_literal_to_utf8", - "parse_string", - "print_string_ptr", - "print_string", - "parse_value", - "print_value", - "parse_array", - "print_array", - "parse_object", - "print_object", - "buffer_skip_whitespace", - "skip_utf8_bom", - "print", - "get_array_item", - "get_object_item", - "suffix_object", - "create_reference", - "add_item_to_array", - "cast_away_const", - "add_item_to_object", - "replace_item_in_object", - "cJSON_Duplicate_rec", - "skip_oneline_comment", - "skip_multiline_comment", - "minify_string" - ], - "json/cJSON.h": [] - }, - "enum_constants": {}, - "include_graph": { - "json/cJSON.c": [ - "json/cJSON.h" - ], - "json/cJSON.h": [] - }, - "system_includes": { - "json/cJSON.c": [ - "ctype.h", - "float.h", - "limits.h", - "locale.h", - "math.h", - "stdio.h", - "stdlib.h", - "string.h" - ], - "json/cJSON.h": [ - "stddef.h" - ] - }, - "unresolved_includes": { - "json/cJSON.c": [], - "json/cJSON.h": [] - }, - "header_source_pairs": { - "json/cJSON.h": [ - "json/cJSON.c" - ] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'isinf' is recorded but not expanded.", - "severity": "warning", - "location": { + "print_string": { + "name": "print_string", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const p", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 74, + "line": 1076, "column": 1, - "source_line": "#define isinf(d) (isnan((d - d)) && !isnan(d))" + "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" }, - "unit_kind": "macro", - "unit_name": "isinf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'isnan' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 77, + "line": 1076, "column": 1, - "source_line": "#define isnan(d) (d != d)" + "source_line": "static cJSON_bool print_string(const cJSON * const item, printbuffer * const p)" }, - "unit_kind": "macro", - "unit_name": "isnan" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'static_strlen' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 184, + "line": 1079, "column": 1, - "source_line": "#define static_strlen(string_literal) (sizeof(string_literal) - sizeof(\"\"))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "static_strlen" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'can_read' is recorded but not expanded.", - "severity": "warning", - "location": { + "parse_value": { + "name": "parse_value", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 299, + "line": 1368, "column": 1, - "source_line": "#define can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))" + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" }, - "unit_kind": "macro", - "unit_name": "can_read" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'can_access_at_index' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { + "filename": "json/cJSON.c", + "line": 1368, + "column": 1, + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)" + }, + "end": { "filename": "json/cJSON.c", - "line": 301, + "line": 1420, "column": 1, - "source_line": "#define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "can_access_at_index" + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1082, + "column": 1, + "source_line": "static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cannot_access_at_index' is recorded but not expanded.", - "severity": "warning", - "location": { + "print_value": { + "name": "print_value", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 302, + "line": 1423, "column": 1, - "source_line": "#define cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index))" + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "macro", - "unit_name": "cannot_access_at_index" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'buffer_at_offset' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 304, + "line": 1423, "column": 1, - "source_line": "#define buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset)" + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "macro", - "unit_name": "buffer_at_offset" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cjson_min' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1237, + "line": 1494, "column": 1, - "source_line": "#define cjson_min(a, b) (((a) < (b)) ? (a) : (b))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "cjson_min" + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1083, + "column": 1, + "source_line": "static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'char *'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 94, - "column": 1, - "source_line": "CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void)" + "parse_array": { + "name": "parse_array", + "result_type": { + "reference": "cJSON_bool" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 99, + "line": 1497, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item)" + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_GetNumberValue(const cJSON * const item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 109, + "line": 1497, "column": 1, - "source_line": "CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item)" + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'char*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 124, + "line": 1592, "column": 1, - "source_line": "CJSON_PUBLIC(const char*) cJSON_Version(void)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*allocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 158, - "column": 5, - "source_line": " void *(CJSON_CDECL *allocate)(size_t size);" - }, - "unit_kind": "struct_field", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*deallocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 159, - "column": 5, - "source_line": " void (CJSON_CDECL *deallocate)(void *pointer);" + "source_line": "}" }, - "unit_kind": "struct_field", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1084, + "column": 1, + "source_line": "static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_FIELD_DECLARATION", - "message": "Unsupported declarator syntax after parsed type layers: '*reallocate'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 160, - "column": 5, - "source_line": " void *(CJSON_CDECL *reallocate)(void *pointer, size_t size);" + "print_array": { + "name": "print_array", + "result_type": { + "reference": "cJSON_bool" }, - "unit_kind": "struct_field", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_malloc(size_t size)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 165, + "line": 1595, "column": 1, - "source_line": "static void * CJSON_CDECL internal_malloc(size_t size)" + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_free(void *pointer)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 169, + "line": 1595, "column": 1, - "source_line": "static void CJSON_CDECL internal_free(void *pointer)" + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'internal_realloc(void *pointer, size_t size)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 173, + "line": 1659, "column": 1, - "source_line": "static void * CJSON_CDECL internal_realloc(void *pointer, size_t size)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1085, + "column": 1, + "source_line": "static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_InitHooks(cJSON_Hooks* hooks)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 209, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks)" + "parse_object": { + "name": "parse_object", + "result_type": { + "reference": "cJSON_bool" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Delete(cJSON *item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const input_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 253, + "line": 1662, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)" + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_SetNumberHelper(cJSON *object, double number)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 411, + "line": 1662, "column": 1, - "source_line": "CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number)" + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 435, + "line": 1777, "column": 1, - "source_line": "CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1086, + "column": 1, + "source_line": "static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "print_object": { + "name": "print_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "printbuffer * const output_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "printbuffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1131, + "line": 1780, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)" + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 1147, + "line": 1780, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)" + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1227, + "line": 1896, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 1087, + "column": 1, + "source_line": "static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);" + } + ] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1232, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length)" + "buffer_skip_whitespace": { + "name": "buffer_skip_whitespace", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1307, + "line": 1090, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item)" + "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 1312, + "line": 1090, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item)" + "source_line": "static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1317, + "line": 1113, "column": 1, - "source_line": "CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1348, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)" + "skip_utf8_bom": { + "name": "skip_utf8_bom", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_GetArraySize(const cJSON *array)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "parse_buffer * const buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "parse_buffer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1899, + "line": 1116, "column": 1, - "source_line": "CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array)" + "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 1941, + "line": 1116, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)" + "source_line": "static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 1983, + "line": 1129, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 1988, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)" + "print": { + "name": "print", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_HasObjectItem(const cJSON *object, const char *string)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "format", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 1993, + "line": 1239, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string)" + "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToArray(cJSON *array, cJSON *item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2061, + "line": 1239, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item)" + "source_line": "static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * const hooks)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2119, + "line": 1304, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2125, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)" + "get_array_item": { + "name": "get_array_item", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "index", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2130, + "line": 1922, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)" + "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2140, + "line": 1922, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)" + "source_line": "static cJSON* get_array_item(const cJSON *array, size_t index)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2150, + "line": 1939, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2162, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)" + "get_object_item": { + "name": "get_object_item", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const name", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2174, + "line": 1951, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)" + "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2186, + "line": 1951, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)" + "source_line": "static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2198, + "line": 1981, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2210, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)" + "suffix_object": { + "name": "suffix_object", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "prev", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *prev", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2222, + "line": 1999, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)" + "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2234, + "line": 1999, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)" + "source_line": "static void suffix_object(cJSON *prev, cJSON *item)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2246, + "line": 2003, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2258, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)" + "create_reference": { + "name": "create_reference", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2294, + "line": 2006, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)" + "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromArray(cJSON *array, int which)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2304, + "line": 2006, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)" + "source_line": "static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2309, + "line": 2025, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2316, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)" + "add_item_to_array": { + "name": "add_item_to_array", + "result_type": { + "reference": "cJSON_bool" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromObject(cJSON *object, const char *string)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "array", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *array", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2323, + "line": 2027, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string)" + "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2328, + "line": 2027, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)" + "source_line": "static cJSON_bool add_item_to_array(cJSON *array, cJSON *item)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2334, + "line": 2058, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2368, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)" + "cast_away_const": { + "name": "cast_away_const", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2417, + "line": 2073, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)" + "source_line": "static void* cast_away_const(const void* string)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2450, + "line": 2073, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)" + "source_line": "static void* cast_away_const(const void* string)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2455, + "line": 2076, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "add_item_to_object": { + "name": "add_item_to_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const object", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * const string", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON * const item", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hooks", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const internal_hooks * const hooks", + "components": [ + { + "model": "CPointer", + "qualifiers": [ + "const" + ], + "source_text": "" + }, + { + "reference": "internal_hooks" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "constant_key", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2461, + "line": 2082, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)" + "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2472, + "line": 2082, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)" + "source_line": "static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2483, + "line": 2117, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "replace_item_in_object": { + "name": "replace_item_in_object", + "result_type": { + "reference": "cJSON_bool" + }, + "parameters": [ + { + "name": "object", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *object", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *string", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "replacement", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON *replacement", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "case_sensitive", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2494, + "line": 2427, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)" + "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2505, + "line": 2427, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)" + "source_line": "static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2531, + "line": 2448, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2548, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string)" + "cJSON_Duplicate_rec": { + "name": "cJSON_Duplicate_rec", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "cJSON", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "item", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const cJSON *item", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "cJSON" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "recurse", + "type": { + "reference": "cJSON_bool" + }, + "declared_type": { + "reference": "cJSON_bool" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2560, + "line": 2789, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)" + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2571, + "line": 2789, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {" + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2581, + "line": 2873, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [ + { + "filename": "json/cJSON.c", + "line": 2782, + "column": 1, + "source_line": "cJSON * cJSON_Duplicate_rec(const cJSON *item, size_t depth, cJSON_bool recurse);" + } + ] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2598, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)" + "skip_oneline_comment": { + "name": "skip_oneline_comment", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2609, + "line": 2875, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)" + "source_line": "static void skip_oneline_comment(char **input)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2621, + "line": 2875, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)" + "source_line": "static void skip_oneline_comment(char **input)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2661, + "line": 2886, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2701, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count)" + "skip_multiline_comment": { + "name": "skip_multiline_comment", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2741, + "line": 2888, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count)" + "source_line": "static void skip_multiline_comment(char **input)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2784, + "line": 2888, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse)" + "source_line": "static void skip_multiline_comment(char **input)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Minify(char *json)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 2924, + "line": 2900, "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_Minify(char *json)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsInvalid(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 2972, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item)" + "minify_string": { + "name": "minify_string", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsFalse(const cJSON * const item)'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "json/cJSON.c", - "line": 2982, + "line": 2902, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item)" + "source_line": "static void minify_string(char **input, char **output) {" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsTrue(const cJSON * const item)'.", - "severity": "warning", - "location": { + "start": { "filename": "json/cJSON.c", - "line": 2992, + "line": 2902, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item)" + "source_line": "static void minify_string(char **input, char **output) {" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsBool(const cJSON * const item)'.", - "severity": "warning", - "location": { + "end": { "filename": "json/cJSON.c", - "line": 3003, + "line": 2922, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null + "declaration_locations": [] + } + }, + "structs": { + "cJSON": { + "reference": "struct cJSON" }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsNull(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3012, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item)" - }, - "unit_kind": "declarator", - "unit_name": null + "cJSON_Hooks": { + "reference": "struct cJSON_Hooks" + } + }, + "unions": {}, + "enums": {}, + "typedefs": { + "cJSON": { + "reference": "cJSON" }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsNumber(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3022, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item)" - }, - "unit_kind": "declarator", - "unit_name": null + "cJSON_Hooks": { + "reference": "cJSON_Hooks" }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsString(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3032, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item)" - }, - "unit_kind": "declarator", - "unit_name": null + "cJSON_bool": { + "reference": "cJSON_bool" }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsArray(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3042, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item)" + "error": { + "reference": "error" + } + }, + "variables": { + "global_error": { + "name": "global_error", + "type": { + "reference": "error" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsObject(const cJSON * const item)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3052, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ ((void *)0) , 0 }" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_IsRaw(const cJSON * const item)'.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "json/cJSON.c", - "line": 3062, + "line": 92, "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item)" + "source_line": "static error global_error = { " }, - "unit_kind": "declarator", - "unit_name": null + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3072, - "column": 1, - "source_line": "CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)" + "global_hooks": { + "name": "global_hooks", + "type": { + "reference": "internal_hooks" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '*'.", - "severity": "warning", - "location": { - "filename": "json/cJSON.c", - "line": 3197, - "column": 1, - "source_line": "CJSON_PUBLIC(void *) cJSON_malloc(size_t size)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ malloc, free, realloc }" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'cJSON_free(void *object)'.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "json/cJSON.c", - "line": 3202, - "column": 1, - "source_line": "CJSON_PUBLIC(void) cJSON_free(void *object)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 64, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type CJSON_STDCALL" - }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 66, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL" - }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 68, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL" - }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 75, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) __attribute__((visibility(\"default\"))) type" - }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CJSON_PUBLIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 77, - "column": 1, - "source_line": "#define CJSON_PUBLIC(type) type" - }, - "unit_kind": "macro", - "unit_name": "CJSON_PUBLIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetIntValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 281, - "column": 1, - "source_line": "#define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))" - }, - "unit_kind": "macro", - "unit_name": "cJSON_SetIntValue" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetNumberValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 284, - "column": 1, - "source_line": "#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))" - }, - "unit_kind": "macro", - "unit_name": "cJSON_SetNumberValue" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_SetBoolValue' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "json/cJSON.h", - "line": 289, + "line": 186, "column": 1, - "source_line": "#define cJSON_SetBoolValue(object, boolValue) ( \\" + "source_line": "static internal_hooks global_hooks = { malloc, free, realloc };" }, - "unit_kind": "macro", - "unit_name": "cJSON_SetBoolValue" - }, + "callback_policy": null, + "declaration_locations": [] + } + }, + "macros": {}, + "includes": {}, + "functions_by_file": { + "json/cJSON.c": [ + "cJSON_Version", + "cJSON_InitHooks", + "cJSON_Parse", + "cJSON_ParseWithLength", + "cJSON_ParseWithOpts", + "cJSON_ParseWithLengthOpts", + "cJSON_Print", + "cJSON_PrintUnformatted", + "cJSON_PrintBuffered", + "cJSON_PrintPreallocated", + "cJSON_Delete", + "cJSON_GetArraySize", + "cJSON_GetArrayItem", + "cJSON_GetObjectItem", + "cJSON_GetObjectItemCaseSensitive", + "cJSON_HasObjectItem", + "cJSON_GetErrorPtr", + "cJSON_GetStringValue", + "cJSON_GetNumberValue", + "cJSON_IsInvalid", + "cJSON_IsFalse", + "cJSON_IsTrue", + "cJSON_IsBool", + "cJSON_IsNull", + "cJSON_IsNumber", + "cJSON_IsString", + "cJSON_IsArray", + "cJSON_IsObject", + "cJSON_IsRaw", + "cJSON_CreateNull", + "cJSON_CreateTrue", + "cJSON_CreateFalse", + "cJSON_CreateBool", + "cJSON_CreateNumber", + "cJSON_CreateString", + "cJSON_CreateRaw", + "cJSON_CreateArray", + "cJSON_CreateObject", + "cJSON_CreateStringReference", + "cJSON_CreateObjectReference", + "cJSON_CreateArrayReference", + "cJSON_CreateIntArray", + "cJSON_CreateFloatArray", + "cJSON_CreateDoubleArray", + "cJSON_CreateStringArray", + "cJSON_AddItemToArray", + "cJSON_AddItemToObject", + "cJSON_AddItemToObjectCS", + "cJSON_AddItemReferenceToArray", + "cJSON_AddItemReferenceToObject", + "cJSON_DetachItemViaPointer", + "cJSON_DetachItemFromArray", + "cJSON_DeleteItemFromArray", + "cJSON_DetachItemFromObject", + "cJSON_DetachItemFromObjectCaseSensitive", + "cJSON_DeleteItemFromObject", + "cJSON_DeleteItemFromObjectCaseSensitive", + "cJSON_InsertItemInArray", + "cJSON_ReplaceItemViaPointer", + "cJSON_ReplaceItemInArray", + "cJSON_ReplaceItemInObject", + "cJSON_ReplaceItemInObjectCaseSensitive", + "cJSON_Duplicate", + "cJSON_Compare", + "cJSON_Minify", + "cJSON_AddNullToObject", + "cJSON_AddTrueToObject", + "cJSON_AddFalseToObject", + "cJSON_AddBoolToObject", + "cJSON_AddNumberToObject", + "cJSON_AddStringToObject", + "cJSON_AddRawToObject", + "cJSON_AddObjectToObject", + "cJSON_AddArrayToObject", + "cJSON_SetNumberHelper", + "cJSON_SetValuestring", + "cJSON_malloc", + "cJSON_free", + "case_insensitive_strcmp", + "cJSON_strdup", + "cJSON_New_Item", + "get_decimal_point", + "parse_number", + "ensure", + "update_offset", + "compare_double", + "print_number", + "parse_hex4", + "utf16_literal_to_utf8", + "parse_string", + "print_string_ptr", + "print_string", + "parse_value", + "print_value", + "parse_array", + "print_array", + "parse_object", + "print_object", + "buffer_skip_whitespace", + "skip_utf8_bom", + "print", + "get_array_item", + "get_object_item", + "suffix_object", + "create_reference", + "add_item_to_array", + "cast_away_const", + "add_item_to_object", + "replace_item_in_object", + "cJSON_Duplicate_rec", + "skip_oneline_comment", + "skip_multiline_comment", + "minify_string" + ], + "json/cJSON.h": [ + "cJSON_Version", + "cJSON_InitHooks", + "cJSON_Parse", + "cJSON_ParseWithLength", + "cJSON_ParseWithOpts", + "cJSON_ParseWithLengthOpts", + "cJSON_Print", + "cJSON_PrintUnformatted", + "cJSON_PrintBuffered", + "cJSON_PrintPreallocated", + "cJSON_Delete", + "cJSON_GetArraySize", + "cJSON_GetArrayItem", + "cJSON_GetObjectItem", + "cJSON_GetObjectItemCaseSensitive", + "cJSON_HasObjectItem", + "cJSON_GetErrorPtr", + "cJSON_GetStringValue", + "cJSON_GetNumberValue", + "cJSON_IsInvalid", + "cJSON_IsFalse", + "cJSON_IsTrue", + "cJSON_IsBool", + "cJSON_IsNull", + "cJSON_IsNumber", + "cJSON_IsString", + "cJSON_IsArray", + "cJSON_IsObject", + "cJSON_IsRaw", + "cJSON_CreateNull", + "cJSON_CreateTrue", + "cJSON_CreateFalse", + "cJSON_CreateBool", + "cJSON_CreateNumber", + "cJSON_CreateString", + "cJSON_CreateRaw", + "cJSON_CreateArray", + "cJSON_CreateObject", + "cJSON_CreateStringReference", + "cJSON_CreateObjectReference", + "cJSON_CreateArrayReference", + "cJSON_CreateIntArray", + "cJSON_CreateFloatArray", + "cJSON_CreateDoubleArray", + "cJSON_CreateStringArray", + "cJSON_AddItemToArray", + "cJSON_AddItemToObject", + "cJSON_AddItemToObjectCS", + "cJSON_AddItemReferenceToArray", + "cJSON_AddItemReferenceToObject", + "cJSON_DetachItemViaPointer", + "cJSON_DetachItemFromArray", + "cJSON_DeleteItemFromArray", + "cJSON_DetachItemFromObject", + "cJSON_DetachItemFromObjectCaseSensitive", + "cJSON_DeleteItemFromObject", + "cJSON_DeleteItemFromObjectCaseSensitive", + "cJSON_InsertItemInArray", + "cJSON_ReplaceItemViaPointer", + "cJSON_ReplaceItemInArray", + "cJSON_ReplaceItemInObject", + "cJSON_ReplaceItemInObjectCaseSensitive", + "cJSON_Duplicate", + "cJSON_Compare", + "cJSON_Minify", + "cJSON_AddNullToObject", + "cJSON_AddTrueToObject", + "cJSON_AddFalseToObject", + "cJSON_AddBoolToObject", + "cJSON_AddNumberToObject", + "cJSON_AddStringToObject", + "cJSON_AddRawToObject", + "cJSON_AddObjectToObject", + "cJSON_AddArrayToObject", + "cJSON_SetNumberHelper", + "cJSON_SetValuestring", + "cJSON_malloc", + "cJSON_free" + ] + }, + "enum_constants": {}, + "include_graph": { + "json/cJSON.c": [], + "json/cJSON.h": [] + }, + "system_includes": { + "json/cJSON.c": [], + "json/cJSON.h": [] + }, + "unresolved_includes": { + "json/cJSON.c": [], + "json/cJSON.h": [] + }, + "header_source_pairs": { + "json/cJSON.h": [ + "json/cJSON.c" + ] + }, + "diagnostics": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'cJSON_ArrayForEach' is recorded but not expanded.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'cJSON'.", + "severity": "error", "location": { "filename": "json/cJSON.h", - "line": 296, + "line": 103, "column": 1, - "source_line": "#define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)" + "source_line": "typedef struct cJSON" }, - "unit_kind": "macro", - "unit_name": "cJSON_ArrayForEach" + "unit_kind": "struct", + "unit_name": "cJSON" }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'cJSON_Hooks'.", + "severity": "error", "location": { "filename": "json/cJSON.h", - "line": 27, + "line": 125, "column": 1, - "source_line": "extern \"C\"" + "source_line": "typedef struct cJSON_Hooks" }, - "unit_kind": "declarator", - "unit_name": null + "unit_kind": "struct", + "unit_name": "cJSON_Hooks" } ] } diff --git a/tests/parser/c/fixtures/json/jsmn.json b/tests/parser/c/fixtures/json/jsmn.json index e2130b8f4..be5557ee9 100644 --- a/tests/parser/c/fixtures/json/jsmn.json +++ b/tests/parser/c/fixtures/json/jsmn.json @@ -3,521 +3,2144 @@ "json/jsmn.h": { "filename": "json/jsmn.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [], - "macros": [ + "preprocessing": "compiler", + "original_source_paths": [ + "json/jsmn.h" + ], + "functions": [ { - "name": "JSMN_H", - "value": null, - "function_like": false, - "directive": "define", + "name": "jsmn_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "jsmn_parser", + "name": "jsmn_parser", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "jsmn_parser", + "members": [ + { + "name": "pos", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int pos" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 84, + "column": 3, + "source_line": " unsigned int pos;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "toknext", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int toknext" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 85, + "column": 3, + "source_line": " unsigned int toknext;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "toksuper", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int toksuper" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 86, + "column": 3, + "source_line": " int toksuper;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/jsmn.h", + "line": 83, + "column": 1, + "source_line": "typedef struct jsmn_parser {" + } + }, + "source_location": { + "filename": "json/jsmn.h", + "line": 83, + "column": 1, + "source_line": "typedef struct jsmn_parser {" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 25, + "line": 459, "column": 1, - "source_line": "#define JSMN_H" - } - }, - { - "name": "JSMN_API", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern void jsmn_init(jsmn_parser *parser) {" + }, + "start": { "filename": "json/jsmn.h", - "line": 34, + "line": 459, "column": 1, - "source_line": "#define JSMN_API static" - } - }, - { - "name": "JSMN_API", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern void jsmn_init(jsmn_parser *parser) {" + }, + "end": { "filename": "json/jsmn.h", - "line": 36, + "line": 463, "column": 1, - "source_line": "#define JSMN_API extern" - } - } - ], - "includes": [ + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/jsmn.h", + "line": 92, + "column": 1, + "source_line": "extern void jsmn_init(jsmn_parser *parser);" + } + ] + }, { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, + "name": "jsmn_parse", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "jsmntok_t", + "name": "jsmntok_t", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "jsmntok", + "members": [ + { + "name": "type", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "jsmntype_t", + "name": "jsmntype_t", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "JSMN_UNDEFINED", + "value": "0", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + { + "name": "JSMN_OBJECT", + "value": "1 << 0", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + { + "name": "JSMN_ARRAY", + "value": "1 << 1", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + { + "name": "JSMN_STRING", + "value": "1 << 2", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + { + "name": "JSMN_PRIMITIVE", + "value": "1 << 3", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 70, + "column": 3, + "source_line": " jsmntype_t type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int start" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 71, + "column": 3, + "source_line": " int start;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "end", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int end" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 72, + "column": 3, + "source_line": " int end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "json/jsmn.h", + "line": 73, + "column": 3, + "source_line": " int size;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "json/jsmn.h", + "line": 69, + "column": 1, + "source_line": "typedef struct jsmntok {" + } + }, + "source_location": { + "filename": "json/jsmn.h", + "line": 69, + "column": 1, + "source_line": "typedef struct jsmntok {" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_tokens", + "type": { + "model": "CUnsignedInt", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned int num_tokens" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned int num_tokens" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 27, + "line": 268, "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "JSMN_H", - "source_location": { + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + }, + "start": { "filename": "json/jsmn.h", - "line": 24, + "line": 268, "column": 1, - "source_line": "#ifndef JSMN_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + }, + "end": { "filename": "json/jsmn.h", - "line": 29, + "line": 453, "column": 1, - "source_line": "#ifdef __cplusplus" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "json/jsmn.h", + "line": 99, + "column": 1, + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + } + ] }, { - "directive": "endif", - "argument": null, + "name": "jsmn_alloc_token", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 31, + "line": 106, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "JSMN_STATIC", - "source_location": { + "source_line": "static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens," + }, + "start": { "filename": "json/jsmn.h", - "line": 33, + "line": 106, "column": 1, - "source_line": "#ifdef JSMN_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens," + }, + "end": { "filename": "json/jsmn.h", - "line": 35, + "line": 119, "column": 1, - "source_line": "#else" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "jsmn_fill_token", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "token", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *token", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *token", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "type", + "type": { + "reference": "jsmntype_t" + }, + "declared_type": { + "reference": "jsmntype_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "start", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int start" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "end", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int end" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int end" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 37, + "line": 124, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { + "source_line": "static void jsmn_fill_token(jsmntok_t *token, const jsmntype_t type," + }, + "start": { "filename": "json/jsmn.h", - "line": 74, + "line": 124, "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void jsmn_fill_token(jsmntok_t *token, const jsmntype_t type," + }, + "end": { "filename": "json/jsmn.h", - "line": 76, + "line": 130, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "JSMN_HEADER", + "name": "jsmn_parse_primitive", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 102, + "line": 135, "column": 1, - "source_line": "#ifndef JSMN_HEADER" - } - }, - { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { + "source_line": "static int jsmn_parse_primitive(jsmn_parser *parser, const char *js," + }, + "start": { "filename": "json/jsmn.h", - "line": 115, + "line": 135, "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int jsmn_parse_primitive(jsmn_parser *parser, const char *js," + }, + "end": { "filename": "json/jsmn.h", - "line": 117, + "line": 188, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "JSMN_STRICT", + "name": "jsmn_parse_string", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "json/jsmn.h", - "line": 145, + "line": 193, "column": 1, - "source_line": "#ifndef JSMN_STRICT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int jsmn_parse_string(jsmn_parser *parser, const char *js," + }, + "start": { "filename": "json/jsmn.h", - "line": 148, + "line": 193, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "JSMN_STRICT", - "source_location": { + "source_line": "static int jsmn_parse_string(jsmn_parser *parser, const char *js," + }, + "end": { "filename": "json/jsmn.h", - "line": 166, + "line": 263, "column": 1, - "source_line": "#ifdef JSMN_STRICT" - } - }, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [ { - "directive": "endif", - "argument": null, + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "jsmnerr", + "constants": [ + { + "name": "JSMN_ERROR_NOMEM", + "value": "-1", + "source_location": { + "filename": "json/jsmn.h", + "line": 54, + "column": 1, + "source_line": "enum jsmnerr {" + } + }, + { + "name": "JSMN_ERROR_INVAL", + "value": "-2", + "source_location": { + "filename": "json/jsmn.h", + "line": 54, + "column": 1, + "source_line": "enum jsmnerr {" + } + }, + { + "name": "JSMN_ERROR_PART", + "value": "-3", + "source_location": { + "filename": "json/jsmn.h", + "line": 54, + "column": 1, + "source_line": "enum jsmnerr {" + } + } + ], + "anonymous_id": null, "source_location": { "filename": "json/jsmn.h", - "line": 170, + "line": 54, "column": 1, - "source_line": "#endif" + "source_line": "enum jsmnerr {" } - }, + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "jsmn_init": { + "name": "jsmn_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { - "filename": "json/jsmn.h", - "line": 183, - "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } - }, + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 459, + "column": 1, + "source_line": "extern void jsmn_init(jsmn_parser *parser) {" + }, + "start": { + "filename": "json/jsmn.h", + "line": 459, + "column": 1, + "source_line": "extern void jsmn_init(jsmn_parser *parser) {" + }, + "end": { + "filename": "json/jsmn.h", + "line": 463, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 185, - "column": 1, - "source_line": "#endif" - } - }, + "filename": "json/jsmn.h", + "line": 92, + "column": 1, + "source_line": "extern void jsmn_init(jsmn_parser *parser);" + } + ] + }, + "jsmn_parse": { + "name": "jsmn_parse", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { - "filename": "json/jsmn.h", - "line": 217, - "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 219, - "column": 1, - "source_line": "#endif" - } + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "JSMN_STRICT", - "source_location": { - "filename": "json/jsmn.h", - "line": 293, - "column": 1, - "source_line": "#ifdef JSMN_STRICT" - } + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 298, - "column": 1, - "source_line": "#endif" - } + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { - "filename": "json/jsmn.h", - "line": 300, - "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } - }, + "name": "num_tokens", + "type": { + "model": "CUnsignedInt", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned int num_tokens" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned int num_tokens" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 268, + "column": 1, + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + }, + "start": { + "filename": "json/jsmn.h", + "line": 268, + "column": 1, + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + }, + "end": { + "filename": "json/jsmn.h", + "line": 453, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 302, - "column": 1, - "source_line": "#endif" + "filename": "json/jsmn.h", + "line": 99, + "column": 1, + "source_line": "extern int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len," + } + ] + }, + "jsmn_alloc_token": { + "name": "jsmn_alloc_token", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" } - }, + ] + }, + "parameters": [ { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { - "filename": "json/jsmn.h", - "line": 314, - "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "else", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 336, - "column": 1, - "source_line": "#else" - } + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 359, - "column": 1, - "source_line": "#endif" - } - }, + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 106, + "column": 1, + "source_line": "static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens," + }, + "start": { + "filename": "json/jsmn.h", + "line": 106, + "column": 1, + "source_line": "static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens," + }, + "end": { + "filename": "json/jsmn.h", + "line": 119, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "jsmn_fill_token": { + "name": "jsmn_fill_token", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "directive": "ifdef", - "argument": "JSMN_PARENT_LINKS", - "source_location": { - "filename": "json/jsmn.h", - "line": 383, - "column": 1, - "source_line": "#ifdef JSMN_PARENT_LINKS" - } + "name": "token", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *token", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *token", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "else", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 385, - "column": 1, - "source_line": "#else" - } + "name": "type", + "type": { + "reference": "jsmntype_t" + }, + "declared_type": { + "reference": "jsmntype_t" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 394, - "column": 1, - "source_line": "#endif" - } + "name": "start", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int start" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "JSMN_STRICT", - "source_location": { - "filename": "json/jsmn.h", - "line": 397, - "column": 1, - "source_line": "#ifdef JSMN_STRICT" - } - }, + "name": "end", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int end" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int end" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 124, + "column": 1, + "source_line": "static void jsmn_fill_token(jsmntok_t *token, const jsmntype_t type," + }, + "start": { + "filename": "json/jsmn.h", + "line": 124, + "column": 1, + "source_line": "static void jsmn_fill_token(jsmntok_t *token, const jsmntype_t type," + }, + "end": { + "filename": "json/jsmn.h", + "line": 130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "jsmn_parse_primitive": { + "name": "jsmn_parse_primitive", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "directive": "else", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 421, - "column": 1, - "source_line": "#else" - } + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 424, - "column": 1, - "source_line": "#endif" - } + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "JSMN_STRICT", - "source_location": { - "filename": "json/jsmn.h", - "line": 435, - "column": 1, - "source_line": "#ifdef JSMN_STRICT" - } + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 439, - "column": 1, - "source_line": "#endif" - } + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 465, - "column": 1, - "source_line": "#endif /* JSMN_HEADER */" - } + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 135, + "column": 1, + "source_line": "static int jsmn_parse_primitive(jsmn_parser *parser, const char *js," + }, + "start": { + "filename": "json/jsmn.h", + "line": 135, + "column": 1, + "source_line": "static int jsmn_parse_primitive(jsmn_parser *parser, const char *js," + }, + "end": { + "filename": "json/jsmn.h", + "line": 188, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "jsmn_parse_string": { + "name": "jsmn_parse_string", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "parser", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmn_parser *parser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmn_parser" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "json/jsmn.h", - "line": 467, - "column": 1, - "source_line": "#ifdef __cplusplus" - } + "name": "js", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *js", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 469, - "column": 1, - "source_line": "#endif" - } + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "json/jsmn.h", - "line": 471, - "column": 1, - "source_line": "#endif /* JSMN_H */" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ + "name": "tokens", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "jsmntok_t *tokens", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "jsmntok_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "json/jsmn.h", - "line": 30, - "column": 1, - "source_line": "extern \"C\" {" + "name": "num_tokens", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" }, - "unit_kind": "declarator", - "unit_name": null + "source_location": null, + "callback_policy": null } - ] + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "json/jsmn.h", + "line": 193, + "column": 1, + "source_line": "static int jsmn_parse_string(jsmn_parser *parser, const char *js," + }, + "start": { + "filename": "json/jsmn.h", + "line": 193, + "column": 1, + "source_line": "static int jsmn_parse_string(jsmn_parser *parser, const char *js," + }, + "end": { + "filename": "json/jsmn.h", + "line": 263, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] } }, - "functions": {}, "structs": {}, "unions": {}, - "enums": {}, + "enums": { + "jsmnerr": { + "reference": "enum jsmnerr" + } + }, "typedefs": {}, "variables": {}, - "macros": { - "JSMN_H": { - "name": "JSMN_H", - "value": null, - "function_like": false, - "directive": "define", + "macros": {}, + "includes": {}, + "functions_by_file": { + "json/jsmn.h": [ + "jsmn_init", + "jsmn_parse", + "jsmn_alloc_token", + "jsmn_fill_token", + "jsmn_parse_primitive", + "jsmn_parse_string" + ] + }, + "enum_constants": { + "JSMN_UNDEFINED": { + "name": "JSMN_UNDEFINED", + "value": "0", "source_location": { "filename": "json/jsmn.h", - "line": 25, + "line": 46, "column": 1, - "source_line": "#define JSMN_H" + "source_line": "typedef enum {" } }, - "JSMN_API": { - "name": "JSMN_API", - "value": "extern", - "function_like": false, - "directive": "define", + "JSMN_OBJECT": { + "name": "JSMN_OBJECT", + "value": "1 << 0", "source_location": { "filename": "json/jsmn.h", - "line": 36, + "line": 46, "column": 1, - "source_line": "#define JSMN_API extern" + "source_line": "typedef enum {" } - } - }, - "includes": { - "json/jsmn.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, + }, + "JSMN_ARRAY": { + "name": "JSMN_ARRAY", + "value": "1 << 1", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + "JSMN_STRING": { + "name": "JSMN_STRING", + "value": "1 << 2", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + "JSMN_PRIMITIVE": { + "name": "JSMN_PRIMITIVE", + "value": "1 << 3", + "source_location": { + "filename": "json/jsmn.h", + "line": 46, + "column": 1, + "source_line": "typedef enum {" + } + }, + "JSMN_ERROR_NOMEM": { + "name": "JSMN_ERROR_NOMEM", + "value": "-1", + "source_location": { + "filename": "json/jsmn.h", + "line": 54, + "column": 1, + "source_line": "enum jsmnerr {" + } + }, + "JSMN_ERROR_INVAL": { + "name": "JSMN_ERROR_INVAL", + "value": "-2", + "source_location": { + "filename": "json/jsmn.h", + "line": 54, + "column": 1, + "source_line": "enum jsmnerr {" + } + }, + "JSMN_ERROR_PART": { + "name": "JSMN_ERROR_PART", + "value": "-3", "source_location": { "filename": "json/jsmn.h", - "line": 27, + "line": 54, "column": 1, - "source_line": "#include " + "source_line": "enum jsmnerr {" } } }, - "functions_by_file": { - "json/jsmn.h": [] - }, - "enum_constants": {}, "include_graph": { "json/jsmn.h": [] }, "system_includes": { - "json/jsmn.h": [ - "stddef.h" - ] + "json/jsmn.h": [] }, "unresolved_includes": { "json/jsmn.h": [] @@ -525,19 +2148,5 @@ "header_source_pairs": { "json/jsmn.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "json/jsmn.h", - "line": 30, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/linmath/linmath.json b/tests/parser/c/fixtures/linmath/linmath.json index 5cf2d51f8..26ff9d619 100644 --- a/tests/parser/c/fixtures/linmath/linmath.json +++ b/tests/parser/c/fixtures/linmath/linmath.json @@ -3,1839 +3,9566 @@ "linmath/linmath.h": { "filename": "linmath/linmath.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [ + "preprocessing": "compiler", + "original_source_paths": [ + "linmath/linmath.h" + ], + "functions": [ { - "model": "CTypedef", - "qualifiers": [], - "source_text": "mat4x4", - "name": "mat4x4", - "type": { - "model": "CComposedType", + "name": "vec2_add", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "typedef vec4 mat4x4[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { "model": "CTypedef", "qualifiers": [], - "source_text": "vec4", - "name": "vec4", - "type": null, - "source_location": null, + "source_text": "vec2", + "name": "vec2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef float vec2[2]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 1, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, "declaration_locations": [] - } - ] - }, + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 105, - "column": 1, - "source_line": "typedef vec4 mat4x4[4];" + "line": 70, + "column": 24, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 24, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 136, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, "declaration_locations": [] }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "quat", - "name": "quat", - "type": { - "model": "CComposedType", + "name": "vec2_sub", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "typedef float quat[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "void" }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 442, - "column": 1, - "source_line": "typedef float quat[4];" + "line": 70, + "column": 138, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "declaration_locations": [] - } - ], - "variables": [], - "macros": [ - { - "name": "LINMATH_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 2, - "column": 1, - "source_line": "#define LINMATH_H" - } - }, - { - "name": "LINMATH_H_FUNC", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { + "line": 70, + "column": 138, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { "filename": "linmath/linmath.h", - "line": 9, - "column": 1, - "source_line": "#define LINMATH_H_FUNC static" - } + "line": 70, + "column": 250, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "value": "static inline", - "function_like": false, - "directive": "define", + "name": "vec2_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 11, - "column": 1, - "source_line": "#define LINMATH_H_FUNC static inline" - } - }, - { - "name": "LINMATH_H_DEFINE_VEC", - "value": "typedef float vec##n[n]; LINMATH_H_FUNC void vec##n##_add(vec##n r, vec##n const a, vec##n const b) { int i; for(i=0; ib[i] ? a[i] : b[i]; } LINMATH_H_FUNC void vec##n##_dup(vec##n r, vec##n const src) { int i; for(i=0; ib[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", - "line": 14, - "column": 1, - "source_line": "#define LINMATH_H_DEFINE_VEC(n) \\" - } - }, - { - "name": "quat_add", - "value": "vec4_add", - "function_like": false, - "directive": "define", - "source_location": { + "line": 70, + "column": 252, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { "filename": "linmath/linmath.h", - "line": 443, - "column": 1, - "source_line": "#define quat_add vec4_add" - } + "line": 70, + "column": 364, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "name": "quat_sub", - "value": "vec4_sub", - "function_like": false, - "directive": "define", + "name": "vec2_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 444, - "column": 1, - "source_line": "#define quat_sub vec4_sub" - } - }, - { - "name": "quat_norm", - "value": "vec4_norm", - "function_like": false, - "directive": "define", - "source_location": { + "line": 70, + "column": 366, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", - "line": 445, - "column": 1, - "source_line": "#define quat_norm vec4_norm" - } - }, - { - "name": "quat_scale", - "value": "vec4_scale", - "function_like": false, - "directive": "define", - "source_location": { + "line": 70, + "column": 366, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { "filename": "linmath/linmath.h", - "line": 446, - "column": 1, - "source_line": "#define quat_scale vec4_scale" - } + "line": 70, + "column": 498, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "name": "quat_mul_inner", - "value": "vec4_mul_inner", - "function_like": false, - "directive": "define", + "name": "vec2_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 447, - "column": 1, - "source_line": "#define quat_mul_inner vec4_mul_inner" - } - } - ], - "includes": [ - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "line": 70, + "column": 500, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", - "line": 4, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "line": 70, + "column": 500, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { "filename": "linmath/linmath.h", - "line": 5, - "column": 1, - "source_line": "#include " - } + "line": 70, + "column": 580, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "name": "vec2_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 6, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "LINMATH_H", - "source_location": { + "line": 70, + "column": 582, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", - "line": 1, - "column": 1, - "source_line": "#ifndef LINMATH_H" - } - }, - { - "directive": "ifdef", - "argument": "LINMATH_NO_INLINE", - "source_location": { + "line": 70, + "column": 582, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { "filename": "linmath/linmath.h", - "line": 8, - "column": 1, - "source_line": "#ifdef LINMATH_NO_INLINE" - } + "line": 70, + "column": 685, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "vec2_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 10, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 70, + "column": 687, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", - "line": 12, - "column": 1, - "source_line": "#endif" - } + "line": 70, + "column": 687, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 811, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "vec2_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 605, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [ - { - "name": "LINMATH_H_DEFINE_VEC", - "context": "declaration", - "source_location": { + "line": 70, + "column": 813, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { "filename": "linmath/linmath.h", "line": 70, - "column": 1, - "source_line": "LINMATH_H_DEFINE_VEC(2)" + "column": 813, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_DEFINE_VEC(2)\nLINMATH_H_DEFINE_VEC(3)\nLINMATH_H_DEFINE_VEC(4)\n\nLINMATH_H_FUNC void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 81, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + "line": 70, + "column": 937, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec2_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 89, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" + "line": 70, + "column": 939, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 97, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" + "line": 70, + "column": 939, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 106, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_identity(mat4x4 M)" + "line": 70, + "column": 1034, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_identity(mat4x4 M)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "vec3", + "name": "vec3", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef float vec3[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 1, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 113, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_dup(mat4x4 M, mat4x4 const N)" + "line": 71, + "column": 24, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_dup(mat4x4 M, mat4x4 const N)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 119, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_row(vec4 r, mat4x4 const M, int i)" + "line": 71, + "column": 24, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_row(vec4 r, mat4x4 const M, int i)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 125, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_col(vec4 r, mat4x4 const M, int i)" + "line": 71, + "column": 136, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_col(vec4 r, mat4x4 const M, int i)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 131, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + "line": 71, + "column": 138, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_transpose(mat4x4 M, mat4x4 const N)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 140, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "line": 71, + "column": 138, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 146, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "line": 71, + "column": 250, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 152, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + "line": 71, + "column": 252, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 158, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + "line": 71, + "column": 252, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 165, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "line": 71, + "column": 364, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 176, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + "line": 71, + "column": 366, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 185, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate(mat4x4 T, float x, float y, float z)" + "line": 71, + "column": 366, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_translate(mat4x4 T, float x, float y, float z)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 192, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + "line": 71, + "column": 498, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 202, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + "line": 71, + "column": 500, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 208, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + "line": 71, + "column": 500, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 242, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + "line": 71, + "column": 580, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 254, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + "line": 71, + "column": 582, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 266, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" + "line": 71, + "column": 582, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 278, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_invert(mat4x4 T, mat4x4 const M)" + "line": 71, + "column": 685, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_invert(mat4x4 T, mat4x4 const M)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 319, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" + "line": 71, + "column": 687, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 342, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "line": 71, + "column": 687, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 358, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "line": 71, + "column": 811, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 374, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" + "line": 71, + "column": 813, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 400, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" + "line": 71, + "column": 813, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 449, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_identity(quat q)" + "line": 71, + "column": 937, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_identity(quat q)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec3_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 454, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul(quat r, quat const p, quat const q)" + "line": 71, + "column": 939, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_mul(quat r, quat const p, quat const q)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 467, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_conj(quat r, quat const q)" + "line": 71, + "column": 939, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_conj(quat r, quat const q)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 474, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_rotate(quat r, float angle, vec3 const axis) {" + "line": 71, + "column": 1034, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_rotate(quat r, float angle, vec3 const axis)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec4_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "vec4", + "name": "vec4", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef float vec4[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 1, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 482, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" + "line": 72, + "column": 24, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "start": { "filename": "linmath/linmath.h", - "line": 502, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_quat(mat4x4 M, quat const q)" + "line": 72, + "column": 24, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_from_quat(mat4x4 M, quat const q)" - }, - { - "name": "LINMATH_H_FUNC", - "context": "declaration", - "source_location": { + "end": { "filename": "linmath/linmath.h", - "line": 532, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + "line": 72, + "column": 136, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec4_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 546, - "column": 1, - "source_line": "LINMATH_H_FUNC void quat_from_mat4x4(quat q, mat4x4 const M)" + "line": 72, + "column": 138, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void quat_from_mat4x4(quat q, mat4x4 const M)" + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 138, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 250, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] }, { - "name": "LINMATH_H_FUNC", - "context": "declaration", + "name": "vec4_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 576, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" + "line": 72, + "column": 252, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "source_text": "LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINMATH_H_DEFINE_VEC' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 14, - "column": 1, - "source_line": "#define LINMATH_H_DEFINE_VEC(n) \\" + "line": 72, + "column": 252, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro", - "unit_name": "LINMATH_H_DEFINE_VEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'LINMATH_H_DEFINE_VEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 70, - "column": 1, - "source_line": "LINMATH_H_DEFINE_VEC(2)" + "line": 72, + "column": 364, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_DEFINE_VEC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 81, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + "line": 72, + "column": 366, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 89, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" + "line": 72, + "column": 366, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 97, - "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" + "line": 72, + "column": 498, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 106, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_identity(mat4x4 M)" + "line": 72, + "column": 500, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 113, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_dup(mat4x4 M, mat4x4 const N)" + "line": 72, + "column": 500, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 119, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_row(vec4 r, mat4x4 const M, int i)" + "line": 72, + "column": 580, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 125, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_col(vec4 r, mat4x4 const M, int i)" + "line": 72, + "column": 582, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 131, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + "line": 72, + "column": 582, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 140, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "line": 72, + "column": 685, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "linmath/linmath.h", - "line": 146, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "name": "vec4_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 687, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 687, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 811, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 152, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + "line": 72, + "column": 813, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 813, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 937, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 158, - "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + "line": 72, + "column": 939, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 939, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 1034, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec3_mul_cross", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 165, + "line": 74, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "source_line": "static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 176, + "line": 74, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + "source_line": "static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 185, + "line": 79, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate(mat4x4 T, float x, float y, float z)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec3_reflect", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 192, + "line": 81, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + "source_line": "static inline void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 202, + "line": 81, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + "source_line": "static inline void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 208, + "line": 87, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_mul_cross", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 242, + "line": 89, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "static inline void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 254, + "line": 89, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "static inline void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 266, + "line": 95, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "vec4_reflect", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 278, + "line": 97, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_invert(mat4x4 T, mat4x4 const M)" + "source_line": "static inline void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 319, + "line": 97, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" + "source_line": "static inline void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 342, + "line": 103, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_identity", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "mat4x4", + "name": "mat4x4", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef vec4 mat4x4[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "vec4" + } + ] + }, + "source_location": { + "filename": "linmath/linmath.h", + "line": 105, + "column": 1, + "source_line": "typedef vec4 mat4x4[4];" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 358, + "line": 106, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "source_line": "static inline void mat4x4_identity(mat4x4 M)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 374, + "line": 106, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" + "source_line": "static inline void mat4x4_identity(mat4x4 M)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 400, + "line": 112, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "N", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 449, + "line": 113, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_identity(quat q)" + "source_line": "static inline void mat4x4_dup(mat4x4 M, mat4x4 const N)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 454, + "line": 113, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul(quat r, quat const p, quat const q)" + "source_line": "static inline void mat4x4_dup(mat4x4 M, mat4x4 const N)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 467, + "line": 118, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_conj(quat r, quat const q)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_row", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 474, + "line": 119, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_rotate(quat r, float angle, vec3 const axis) {" + "source_line": "static inline void mat4x4_row(vec4 r, mat4x4 const M, int i)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 482, + "line": 119, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" + "source_line": "static inline void mat4x4_row(vec4 r, mat4x4 const M, int i)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "end": { + "filename": "linmath/linmath.h", + "line": 124, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_col", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 502, + "line": 125, + "column": 1, + "source_line": "static inline void mat4x4_col(vec4 r, mat4x4 const M, int i)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 125, + "column": 1, + "source_line": "static inline void mat4x4_col(vec4 r, mat4x4 const M, int i)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 130, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_quat(mat4x4 M, quat const q)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_transpose", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "N", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 532, + "line": 131, + "column": 1, + "source_line": "static inline void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 131, + "column": 1, + "source_line": "static inline void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 139, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 546, + "line": 140, + "column": 1, + "source_line": "static inline void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 140, + "column": 1, + "source_line": "static inline void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 145, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_from_mat4x4(quat q, mat4x4 const M)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "name": "mat4x4_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 576, + "line": 146, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" + "source_line": "static inline void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - } - ] - } - }, - "functions": {}, - "structs": {}, - "unions": {}, - "enums": {}, - "typedefs": { - "mat4x4": { - "reference": "mat4x4" - }, - "quat": { - "reference": "quat" - } - }, - "variables": {}, - "macros": { - "LINMATH_H": { - "name": "LINMATH_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "linmath/linmath.h", - "line": 2, + "start": { + "filename": "linmath/linmath.h", + "line": 146, + "column": 1, + "source_line": "static inline void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 151, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "k", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float k" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float k" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 152, + "column": 1, + "source_line": "static inline void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 152, + "column": 1, + "source_line": "static inline void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 157, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_scale_aniso", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 158, + "column": 1, + "source_line": "static inline void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 158, + "column": 1, + "source_line": "static inline void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 164, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_mul", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 165, + "column": 1, + "source_line": "static inline void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 165, + "column": 1, + "source_line": "static inline void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 175, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_mul_vec4", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 176, + "column": 1, + "source_line": "static inline void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 176, + "column": 1, + "source_line": "static inline void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 184, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_translate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "T", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 185, + "column": 1, + "source_line": "static inline void mat4x4_translate(mat4x4 T, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 185, + "column": 1, + "source_line": "static inline void mat4x4_translate(mat4x4 T, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 191, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_translate_in_place", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 192, + "column": 1, + "source_line": "static inline void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 192, + "column": 1, + "source_line": "static inline void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 201, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_from_vec3_mul_outer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 202, + "column": 1, + "source_line": "static inline void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 202, + "column": 1, + "source_line": "static inline void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 207, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_rotate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 208, + "column": 1, + "source_line": "static inline void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 208, + "column": 1, + "source_line": "static inline void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 241, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_rotate_X", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "Q", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 242, + "column": 1, + "source_line": "static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 242, + "column": 1, + "source_line": "static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 253, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_rotate_Y", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "Q", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 254, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 254, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 265, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_rotate_Z", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "Q", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 266, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 266, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 277, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_invert", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "T", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 278, + "column": 1, + "source_line": "static inline void mat4x4_invert(mat4x4 T, mat4x4 const M)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 278, + "column": 1, + "source_line": "static inline void mat4x4_invert(mat4x4 T, mat4x4 const M)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 318, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_orthonormalize", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 319, + "column": 1, + "source_line": "static inline void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 319, + "column": 1, + "source_line": "static inline void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 340, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_frustum", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "l", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "r", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 342, + "column": 1, + "source_line": "static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 342, + "column": 1, + "source_line": "static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 357, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_ortho", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "l", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "r", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 358, + "column": 1, + "source_line": "static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 358, + "column": 1, + "source_line": "static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 373, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_perspective", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "m", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_fov", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y_fov" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y_fov" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "aspect", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float aspect" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float aspect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 374, + "column": 1, + "source_line": "static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 374, + "column": 1, + "source_line": "static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 399, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_look_at", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "m", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "eye", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "center", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "up", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 400, + "column": 1, + "source_line": "static inline void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 400, + "column": 1, + "source_line": "static inline void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 440, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_identity", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "q", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "quat", + "name": "quat", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef float quat[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": { + "filename": "linmath/linmath.h", + "line": 442, + "column": 1, + "source_line": "typedef float quat[4];" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 449, + "column": 1, + "source_line": "static inline void quat_identity(quat q)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 449, + "column": 1, + "source_line": "static inline void quat_identity(quat q)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 453, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_mul", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 454, + "column": 1, + "source_line": "static inline void quat_mul(quat r, quat const p, quat const q)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 454, + "column": 1, + "source_line": "static inline void quat_mul(quat r, quat const p, quat const q)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 466, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_conj", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 467, + "column": 1, + "source_line": "static inline void quat_conj(quat r, quat const q)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 467, + "column": 1, + "source_line": "static inline void quat_conj(quat r, quat const q)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 473, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_rotate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "axis", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 474, + "column": 1, + "source_line": "static inline void quat_rotate(quat r, float angle, vec3 const axis) {" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 474, + "column": 1, + "source_line": "static inline void quat_rotate(quat r, float angle, vec3 const axis) {" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 481, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_mul_vec3", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 482, + "column": 1, + "source_line": "static inline void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 482, + "column": 1, + "source_line": "static inline void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 501, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_from_quat", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 502, + "column": 1, + "source_line": "static inline void mat4x4_from_quat(mat4x4 M, quat const q)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 502, + "column": 1, + "source_line": "static inline void mat4x4_from_quat(mat4x4 M, quat const q)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 530, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4o_mul_quat", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 532, + "column": 1, + "source_line": "static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 532, + "column": 1, + "source_line": "static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 545, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "quat_from_mat4x4", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 546, + "column": 1, + "source_line": "static inline void quat_from_mat4x4(quat q, mat4x4 const M)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 546, + "column": 1, + "source_line": "static inline void quat_from_mat4x4(quat q, mat4x4 const M)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 574, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "mat4x4_arcball", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "_a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "_b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 576, + "column": 1, + "source_line": "static inline void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 576, + "column": 1, + "source_line": "static inline void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 604, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "vec2_add": { + "name": "vec2_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 24, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 24, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 136, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_sub": { + "name": "vec2_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 138, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 138, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 250, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_scale": { + "name": "vec2_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 252, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 252, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 364, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_mul_inner": { + "name": "vec2_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 366, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 366, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 498, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_len": { + "name": "vec2_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 500, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 500, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 580, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_norm": { + "name": "vec2_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 582, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 582, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 685, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_min": { + "name": "vec2_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 687, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 687, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 811, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_max": { + "name": "vec2_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 813, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 813, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 937, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec2_dup": { + "name": "vec2_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 939, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 939, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 70, + "column": 1034, + "source_line": "typedef float vec2[2]; static inline void vec2_add(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] + b[i]; } static inline void vec2_sub(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i] - b[i]; } static inline void vec2_scale(vec2 r, vec2 const v, float const s) { int i; for(i=0; i<2; ++i) r[i] = v[i] * s; } static inline float vec2_mul_inner(vec2 const a, vec2 const b) { float p = 0.f; int i; for(i=0; i<2; ++i) p += b[i]*a[i]; return p; } static inline float vec2_len(vec2 const v) { return sqrtf(vec2_mul_inner(v,v)); } static inline void vec2_norm(vec2 r, vec2 const v) { float k = 1.f / vec2_len(v); vec2_scale(r, v, k); } static inline void vec2_min(vec2 r, vec2 const a, vec2 const b) { int i; for(i=0; i<2; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec2_dup(vec2 r, vec2 const src) { int i; for(i=0; i<2; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_add": { + "name": "vec3_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 24, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 24, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 136, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_sub": { + "name": "vec3_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 138, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 138, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 250, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_scale": { + "name": "vec3_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 252, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 252, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 364, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_mul_inner": { + "name": "vec3_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 366, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 366, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 498, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_len": { + "name": "vec3_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 500, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 500, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 580, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_norm": { + "name": "vec3_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 582, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 582, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 685, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_min": { + "name": "vec3_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 687, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 687, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 811, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_max": { + "name": "vec3_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 813, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 813, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 937, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_dup": { + "name": "vec3_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 939, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 939, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 71, + "column": 1034, + "source_line": "typedef float vec3[3]; static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] + b[i]; } static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i] - b[i]; } static inline void vec3_scale(vec3 r, vec3 const v, float const s) { int i; for(i=0; i<3; ++i) r[i] = v[i] * s; } static inline float vec3_mul_inner(vec3 const a, vec3 const b) { float p = 0.f; int i; for(i=0; i<3; ++i) p += b[i]*a[i]; return p; } static inline float vec3_len(vec3 const v) { return sqrtf(vec3_mul_inner(v,v)); } static inline void vec3_norm(vec3 r, vec3 const v) { float k = 1.f / vec3_len(v); vec3_scale(r, v, k); } static inline void vec3_min(vec3 r, vec3 const a, vec3 const b) { int i; for(i=0; i<3; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec3_dup(vec3 r, vec3 const src) { int i; for(i=0; i<3; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_add": { + "name": "vec4_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 24, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 24, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 136, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_sub": { + "name": "vec4_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 138, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 138, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 250, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_scale": { + "name": "vec4_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "float const s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 252, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 252, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 364, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_mul_inner": { + "name": "vec4_mul_inner", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 366, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 366, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 498, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_len": { + "name": "vec4_len", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 500, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 500, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 580, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_norm": { + "name": "vec4_norm", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 582, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 582, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 685, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_min": { + "name": "vec4_min", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 687, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 687, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 811, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_max": { + "name": "vec4_max", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 813, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 813, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 937, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec4_dup": { + "name": "vec4_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 939, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 939, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 72, + "column": 1034, + "source_line": "typedef float vec4[4]; static inline void vec4_add(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] + b[i]; } static inline void vec4_sub(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i] - b[i]; } static inline void vec4_scale(vec4 r, vec4 const v, float const s) { int i; for(i=0; i<4; ++i) r[i] = v[i] * s; } static inline float vec4_mul_inner(vec4 const a, vec4 const b) { float p = 0.f; int i; for(i=0; i<4; ++i) p += b[i]*a[i]; return p; } static inline float vec4_len(vec4 const v) { return sqrtf(vec4_mul_inner(v,v)); } static inline void vec4_norm(vec4 r, vec4 const v) { float k = 1.f / vec4_len(v); vec4_scale(r, v, k); } static inline void vec4_min(vec4 r, vec4 const a, vec4 const b) { int i; for(i=0; i<4; ++i) r[i] = a[i]b[i] ? a[i] : b[i]; } static inline void vec4_dup(vec4 r, vec4 const src) { int i; for(i=0; i<4; ++i) r[i] = src[i]; }" + }, + "declaration_locations": [] + }, + "vec3_mul_cross": { + "name": "vec3_mul_cross", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 74, + "column": 1, + "source_line": "static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 74, + "column": 1, + "source_line": "static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 79, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "vec3_reflect": { + "name": "vec3_reflect", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 81, + "column": 1, + "source_line": "static inline void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 81, + "column": 1, + "source_line": "static inline void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 87, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "vec4_mul_cross": { + "name": "vec4_mul_cross", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 89, + "column": 1, + "source_line": "static inline void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 89, + "column": 1, + "source_line": "static inline void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 95, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "vec4_reflect": { + "name": "vec4_reflect", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 97, + "column": 1, + "source_line": "static inline void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 97, + "column": 1, + "source_line": "static inline void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 103, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_identity": { + "name": "mat4x4_identity", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 106, + "column": 1, + "source_line": "static inline void mat4x4_identity(mat4x4 M)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 106, + "column": 1, + "source_line": "static inline void mat4x4_identity(mat4x4 M)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 112, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_dup": { + "name": "mat4x4_dup", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "N", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 113, + "column": 1, + "source_line": "static inline void mat4x4_dup(mat4x4 M, mat4x4 const N)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 113, + "column": 1, + "source_line": "static inline void mat4x4_dup(mat4x4 M, mat4x4 const N)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 118, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_row": { + "name": "mat4x4_row", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 119, + "column": 1, + "source_line": "static inline void mat4x4_row(vec4 r, mat4x4 const M, int i)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 119, + "column": 1, + "source_line": "static inline void mat4x4_row(vec4 r, mat4x4 const M, int i)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 124, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_col": { + "name": "mat4x4_col", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 125, + "column": 1, + "source_line": "static inline void mat4x4_col(vec4 r, mat4x4 const M, int i)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 125, + "column": 1, + "source_line": "static inline void mat4x4_col(vec4 r, mat4x4 const M, int i)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_transpose": { + "name": "mat4x4_transpose", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "N", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 131, + "column": 1, + "source_line": "static inline void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 131, + "column": 1, + "source_line": "static inline void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 139, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_add": { + "name": "mat4x4_add", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 140, + "column": 1, + "source_line": "static inline void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 140, + "column": 1, + "source_line": "static inline void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 145, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_sub": { + "name": "mat4x4_sub", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 146, + "column": 1, + "source_line": "static inline void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 146, + "column": 1, + "source_line": "static inline void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 151, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_scale": { + "name": "mat4x4_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "k", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float k" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float k" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 152, + "column": 1, + "source_line": "static inline void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 152, + "column": 1, + "source_line": "static inline void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 157, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_scale_aniso": { + "name": "mat4x4_scale_aniso", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 158, + "column": 1, + "source_line": "static inline void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 158, + "column": 1, + "source_line": "static inline void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 164, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_mul": { + "name": "mat4x4_mul", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 165, + "column": 1, + "source_line": "static inline void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 165, + "column": 1, + "source_line": "static inline void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 175, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_mul_vec4": { + "name": "mat4x4_mul_vec4", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec4" + }, + "declared_type": { + "reference": "vec4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 176, + "column": 1, + "source_line": "static inline void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 176, + "column": 1, + "source_line": "static inline void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 184, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_translate": { + "name": "mat4x4_translate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "T", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 185, + "column": 1, + "source_line": "static inline void mat4x4_translate(mat4x4 T, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 185, + "column": 1, + "source_line": "static inline void mat4x4_translate(mat4x4 T, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 191, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_translate_in_place": { + "name": "mat4x4_translate_in_place", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 192, + "column": 1, + "source_line": "static inline void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 192, + "column": 1, + "source_line": "static inline void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 201, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_from_vec3_mul_outer": { + "name": "mat4x4_from_vec3_mul_outer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 202, + "column": 1, + "source_line": "static inline void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 202, + "column": 1, + "source_line": "static inline void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 207, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_rotate": { + "name": "mat4x4_rotate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 208, + "column": 1, + "source_line": "static inline void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 208, + "column": 1, + "source_line": "static inline void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 241, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "mat4x4_rotate_X": { + "name": "mat4x4_rotate_X", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "Q", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "linmath/linmath.h", + "line": 242, + "column": 1, + "source_line": "static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 242, "column": 1, - "source_line": "#define LINMATH_H" - } + "source_line": "static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 253, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, - "LINMATH_H_FUNC": { - "name": "LINMATH_H_FUNC", - "value": "static inline", - "function_like": false, - "directive": "define", + "mat4x4_rotate_Y": { + "name": "mat4x4_rotate_Y", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "Q", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 11, + "line": 254, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + }, + "start": { + "filename": "linmath/linmath.h", + "line": 254, + "column": 1, + "source_line": "static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + }, + "end": { + "filename": "linmath/linmath.h", + "line": 265, "column": 1, - "source_line": "#define LINMATH_H_FUNC static inline" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "LINMATH_H_DEFINE_VEC": { - "name": "LINMATH_H_DEFINE_VEC", - "value": "typedef float vec##n[n]; LINMATH_H_FUNC void vec##n##_add(vec##n r, vec##n const a, vec##n const b) { int i; for(i=0; ib[i] ? a[i] : b[i]; } LINMATH_H_FUNC void vec##n##_dup(vec##n r, vec##n const src) { int i; for(i=0; i" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "linmath/linmath.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, + "mat4x4_frustum": { + "name": "mat4x4_frustum", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "l", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "r", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "linmath/linmath.h", - "line": 5, + "line": 342, "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "linmath/linmath.h": [] - }, - "enum_constants": {}, - "include_graph": { - "linmath/linmath.h": [] - }, - "system_includes": { - "linmath/linmath.h": [ - "math.h", - "string.h" - ] - }, - "unresolved_includes": { - "linmath/linmath.h": [] - }, - "header_source_pairs": { - "linmath/linmath.h": [] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINMATH_H_DEFINE_VEC' is recorded but not expanded.", - "severity": "warning", - "location": { + "source_line": "static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + }, + "start": { "filename": "linmath/linmath.h", - "line": 14, + "line": 342, "column": 1, - "source_line": "#define LINMATH_H_DEFINE_VEC(n) \\" + "source_line": "static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" }, - "unit_kind": "macro", - "unit_name": "LINMATH_H_DEFINE_VEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'LINMATH_H_DEFINE_VEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 70, + "line": 357, "column": 1, - "source_line": "LINMATH_H_DEFINE_VEC(2)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_DEFINE_VEC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4_ortho": { + "name": "mat4x4_ortho", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "l", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float l" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "r", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 81, + "line": 358, "column": 1, - "source_line": "LINMATH_H_FUNC void vec3_reflect(vec3 r, vec3 const v, vec3 const n)" + "source_line": "static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 89, + "line": 358, "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_mul_cross(vec4 r, vec4 const a, vec4 const b)" + "source_line": "static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 97, + "line": 373, "column": 1, - "source_line": "LINMATH_H_FUNC void vec4_reflect(vec4 r, vec4 const v, vec4 const n)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4_perspective": { + "name": "mat4x4_perspective", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "m", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_fov", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y_fov" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y_fov" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "aspect", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float aspect" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float aspect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 106, + "line": 374, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_identity(mat4x4 M)" + "source_line": "static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 113, + "line": 374, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_dup(mat4x4 M, mat4x4 const N)" + "source_line": "static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 119, + "line": 399, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_row(vec4 r, mat4x4 const M, int i)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4_look_at": { + "name": "mat4x4_look_at", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "m", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "eye", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "center", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "up", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 125, + "line": 400, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_col(vec4 r, mat4x4 const M, int i)" + "source_line": "static inline void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 131, + "line": 400, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_transpose(mat4x4 M, mat4x4 const N)" + "source_line": "static inline void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 140, + "line": 440, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_add(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_identity": { + "name": "quat_identity", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 146, + "line": 449, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_sub(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "source_line": "static inline void quat_identity(quat q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 152, + "line": 449, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale(mat4x4 M, mat4x4 const a, float k)" + "source_line": "static inline void quat_identity(quat q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 158, + "line": 453, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_scale_aniso(mat4x4 M, mat4x4 const a, float x, float y, float z)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_mul": { + "name": "quat_mul", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 165, + "line": 454, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul(mat4x4 M, mat4x4 const a, mat4x4 const b)" + "source_line": "static inline void quat_mul(quat r, quat const p, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 176, + "line": 454, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_mul_vec4(vec4 r, mat4x4 const M, vec4 const v)" + "source_line": "static inline void quat_mul(quat r, quat const p, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 185, + "line": 466, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate(mat4x4 T, float x, float y, float z)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_conj": { + "name": "quat_conj", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 192, + "line": 467, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)" + "source_line": "static inline void quat_conj(quat r, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 202, + "line": 467, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 const a, vec3 const b)" + "source_line": "static inline void quat_conj(quat r, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 208, + "line": 473, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate(mat4x4 R, mat4x4 const M, float x, float y, float z, float angle)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_rotate": { + "name": "quat_rotate", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "angle", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float angle" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "axis", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 242, + "line": 474, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_X(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "static inline void quat_rotate(quat r, float angle, vec3 const axis) {" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 254, + "line": 474, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Y(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "static inline void quat_rotate(quat r, float angle, vec3 const axis) {" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 266, + "line": 481, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_rotate_Z(mat4x4 Q, mat4x4 const M, float angle)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_mul_vec3": { + "name": "quat_mul_vec3", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "reference": "vec3" + }, + "declared_type": { + "reference": "vec3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 278, + "line": 482, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_invert(mat4x4 T, mat4x4 const M)" + "source_line": "static inline void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 319, + "line": 482, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_orthonormalize(mat4x4 R, mat4x4 const M)" + "source_line": "static inline void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 342, + "line": 501, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4_from_quat": { + "name": "mat4x4_from_quat", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 358, + "line": 502, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f)" + "source_line": "static inline void mat4x4_from_quat(mat4x4 M, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 374, + "line": 502, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f)" + "source_line": "static inline void mat4x4_from_quat(mat4x4 M, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 400, + "line": 530, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_look_at(mat4x4 m, vec3 const eye, vec3 const center, vec3 const up)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4o_mul_quat": { + "name": "mat4x4o_mul_quat", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 449, + "line": 532, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_identity(quat q)" + "source_line": "static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 454, + "line": 532, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul(quat r, quat const p, quat const q)" + "source_line": "static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 467, + "line": 545, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_conj(quat r, quat const q)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "quat_from_mat4x4": { + "name": "quat_from_mat4x4", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "q", + "type": { + "reference": "quat" + }, + "declared_type": { + "reference": "quat" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 474, + "line": 546, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_rotate(quat r, float angle, vec3 const axis) {" + "source_line": "static inline void quat_from_mat4x4(quat q, mat4x4 const M)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 482, + "line": 546, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_mul_vec3(vec3 r, quat const q, vec3 const v)" + "source_line": "static inline void quat_from_mat4x4(quat q, mat4x4 const M)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 502, + "line": 574, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_from_quat(mat4x4 M, quat const q)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "mat4x4_arcball": { + "name": "mat4x4_arcball", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "R", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "M", + "type": { + "reference": "mat4x4" + }, + "declared_type": { + "reference": "mat4x4" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "_a", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "_b", + "type": { + "reference": "vec2" + }, + "declared_type": { + "reference": "vec2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "linmath/linmath.h", - "line": 532, + "line": 576, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4o_mul_quat(mat4x4 R, mat4x4 const M, quat const q)" + "source_line": "static inline void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "linmath/linmath.h", - "line": 546, + "line": 576, "column": 1, - "source_line": "LINMATH_H_FUNC void quat_from_mat4x4(quat q, mat4x4 const M)" + "source_line": "static inline void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'LINMATH_H_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": { "filename": "linmath/linmath.h", - "line": 576, + "line": 604, "column": 1, - "source_line": "LINMATH_H_FUNC void mat4x4_arcball(mat4x4 R, mat4x4 const M, vec2 const _a, vec2 const _b, float s)" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "LINMATH_H_FUNC" + "declaration_locations": [] } - ] + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, + "functions_by_file": { + "linmath/linmath.h": [ + "vec2_add", + "vec2_sub", + "vec2_scale", + "vec2_mul_inner", + "vec2_len", + "vec2_norm", + "vec2_min", + "vec2_max", + "vec2_dup", + "vec3_add", + "vec3_sub", + "vec3_scale", + "vec3_mul_inner", + "vec3_len", + "vec3_norm", + "vec3_min", + "vec3_max", + "vec3_dup", + "vec4_add", + "vec4_sub", + "vec4_scale", + "vec4_mul_inner", + "vec4_len", + "vec4_norm", + "vec4_min", + "vec4_max", + "vec4_dup", + "vec3_mul_cross", + "vec3_reflect", + "vec4_mul_cross", + "vec4_reflect", + "mat4x4_identity", + "mat4x4_dup", + "mat4x4_row", + "mat4x4_col", + "mat4x4_transpose", + "mat4x4_add", + "mat4x4_sub", + "mat4x4_scale", + "mat4x4_scale_aniso", + "mat4x4_mul", + "mat4x4_mul_vec4", + "mat4x4_translate", + "mat4x4_translate_in_place", + "mat4x4_from_vec3_mul_outer", + "mat4x4_rotate", + "mat4x4_rotate_X", + "mat4x4_rotate_Y", + "mat4x4_rotate_Z", + "mat4x4_invert", + "mat4x4_orthonormalize", + "mat4x4_frustum", + "mat4x4_ortho", + "mat4x4_perspective", + "mat4x4_look_at", + "quat_identity", + "quat_mul", + "quat_conj", + "quat_rotate", + "quat_mul_vec3", + "mat4x4_from_quat", + "mat4x4o_mul_quat", + "quat_from_mat4x4", + "mat4x4_arcball" + ] + }, + "enum_constants": {}, + "include_graph": { + "linmath/linmath.h": [] + }, + "system_includes": { + "linmath/linmath.h": [] + }, + "unresolved_includes": { + "linmath/linmath.h": [] + }, + "header_source_pairs": { + "linmath/linmath.h": [] + }, + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/nanosvg/nanosvg.json b/tests/parser/c/fixtures/nanosvg/nanosvg.json index 4b2eb1ed0..e99fa03a2 100644 --- a/tests/parser/c/fixtures/nanosvg/nanosvg.json +++ b/tests/parser/c/fixtures/nanosvg/nanosvg.json @@ -3,463 +3,78 @@ "nanosvg/nanosvg.h": { "filename": "nanosvg/nanosvg.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "nanosvg/nanosvg.h" + ], "functions": [ { - "name": "nsvg__isspace", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char c" - }, - "declared_type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 228, - "column": 1, - "source_line": "static int nsvg__isspace(char c)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 228, - "column": 1, - "source_line": "static int nsvg__isspace(char c)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 231, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__isdigit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char c" - }, - "declared_type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 233, - "column": 1, - "source_line": "static int nsvg__isdigit(char c)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 233, - "column": 1, - "source_line": "static int nsvg__isdigit(char c)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 236, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__parseContent", + "name": "nsvgParseFromFile", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contentCb", - "type": { - "model": "CComposedType", + { + "model": "CTypedef", "qualifiers": [], - "source_text": "void (*contentCb)(void* ud, const char* s)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", + "source_text": "NSVGimage", + "name": "NSVGimage", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGimage", + "members": [ + { + "name": "width", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "float width" }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*contentCb)(void* ud, const char* s)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 171, + "column": 2, + "source_line": " float width;" }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ud", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 248, - "column": 1, - "source_line": "static void nsvg__parseContent(char* s," - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 248, - "column": 1, - "source_line": "static void nsvg__parseContent(char* s," - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 258, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__parseElement", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "startelCb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "callback_policy": null, + "declaration_locations": [] }, - "parameter_types": [ - { - "model": "CComposedType", + { + "name": "height", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "float height" }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 172, + "column": 2, + "source_line": " float height;" }, - { + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "shapes", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char ** attr", + "source_text": "NSVGshape * shapes", "components": [ { "model": "CPointer", @@ -467,120 +82,855 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CTypedef", "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "source_text": "NSVGshape", + "name": "NSVGshape", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGshape", + "members": [ + { + "name": "id", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char id[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 147, + "column": 2, + "source_line": " char id[64];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fill", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGpaint", + "name": "NSVGpaint", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaint", + "members": [ + { + "name": "type", + "type": { + "model": "CSignedChar", + "qualifiers": [], + "source_text": "signed char type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 129, + "column": 2, + "source_line": " signed char type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": null, + "type": { + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "color", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int color" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 131, + "column": 3, + "source_line": " unsigned int color;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "gradient", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGgradient * gradient", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGgradient", + "name": "NSVGgradient", + "type": null, + "source_location": null, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 132, + "column": 3, + "source_line": " NSVGgradient* gradient;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 130, + "column": 2, + "source_line": " union {" + } + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 130, + "column": 2, + "source_line": " union {" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 128, + "column": 1, + "source_line": "typedef struct NSVGpaint {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 128, + "column": 1, + "source_line": "typedef struct NSVGpaint {" + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 148, + "column": 2, + "source_line": " NSVGpaint fill;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stroke", + "type": { + "reference": "NSVGpaint" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 149, + "column": 2, + "source_line": " NSVGpaint stroke;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "opacity", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float opacity" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 150, + "column": 2, + "source_line": " float opacity;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeWidth", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float strokeWidth" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 151, + "column": 2, + "source_line": " float strokeWidth;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeDashOffset", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float strokeDashOffset" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 152, + "column": 2, + "source_line": " float strokeDashOffset;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeDashArray", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float strokeDashArray[8]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "8", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 153, + "column": 2, + "source_line": " float strokeDashArray[8];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeDashCount", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeDashCount" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 154, + "column": 2, + "source_line": " char strokeDashCount;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeLineJoin", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeLineJoin" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 155, + "column": 2, + "source_line": " char strokeLineJoin;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeLineCap", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeLineCap" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 156, + "column": 2, + "source_line": " char strokeLineCap;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "miterLimit", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float miterLimit" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 157, + "column": 2, + "source_line": " float miterLimit;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fillRule", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char fillRule" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 158, + "column": 2, + "source_line": " char fillRule;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "paintOrder", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char paintOrder" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 159, + "column": 5, + "source_line": " unsigned char paintOrder;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "flags", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char flags" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 160, + "column": 2, + "source_line": " unsigned char flags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bounds", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float bounds[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 161, + "column": 2, + "source_line": " float bounds[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fillGradient", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char fillGradient[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 162, + "column": 2, + "source_line": " char fillGradient[64];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeGradient", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char strokeGradient[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 163, + "column": 2, + "source_line": " char strokeGradient[64];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xform", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float xform[6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 164, + "column": 2, + "source_line": " float xform[6];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "paths", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath * paths", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGpath", + "name": "NSVGpath", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGpath", + "members": [ + { + "name": "pts", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * pts", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 138, + "column": 2, + "source_line": " float* pts;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "npts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int npts" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 139, + "column": 2, + "source_line": " int npts;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "closed", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char closed" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 140, + "column": 2, + "source_line": " char closed;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bounds", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float bounds[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 141, + "column": 2, + "source_line": " float bounds[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGpath * next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct NSVGpath" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 142, + "column": 2, + "source_line": " struct NSVGpath* next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 136, + "column": 1, + "source_line": "typedef struct NSVGpath" + } + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 136, + "column": 1, + "source_line": "typedef struct NSVGpath" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 165, + "column": 2, + "source_line": " NSVGpath* paths;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGshape * next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct NSVGshape" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 166, + "column": 2, + "source_line": " struct NSVGshape* next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 145, + "column": 1, + "source_line": "typedef struct NSVGshape" + } + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 145, + "column": 1, + "source_line": "typedef struct NSVGshape" + }, + "declaration_locations": [] } ] }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 173, + "column": 2, + "source_line": " NSVGshape* shapes;" }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char ** attr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 169, + "column": 1, + "source_line": "typedef struct NSVGimage" } - ] - }, - "source_location": null, - "callback_policy": null - }, + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 169, + "column": 1, + "source_line": "typedef struct NSVGimage" + }, + "declaration_locations": [] + } + ] + }, + "parameters": [ { - "name": "endelCb", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*endelCb)(void* ud, const char* el)", + "source_text": "const char * filename", "components": [ { "model": "CPointer", @@ -588,61 +938,18 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } + "model": "CChar", + "qualifiers": [ + "const" ], - "is_variadic": false, - "prototype_style": "prototype" + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*endelCb)(void* ud, const char* el)", + "source_text": "const char * filename", "components": [ { "model": "CPointer", @@ -650,54 +957,11 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } + "model": "CChar", + "qualifiers": [ + "const" ], - "is_variadic": false, - "prototype_style": "prototype" + "source_text": "const char" } ] }, @@ -705,11 +969,11 @@ "callback_policy": null }, { - "name": "ud", + "name": "units", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * ud", + "source_text": "const char * units", "components": [ { "model": "CPointer", @@ -717,16 +981,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * ud", + "source_text": "const char * units", "components": [ { "model": "CPointer", @@ -734,49 +1000,81 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 260, + "line": 3200, "column": 1, - "source_line": "static void nsvg__parseElement(char* s," + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 260, + "line": 3200, "column": 1, - "source_line": "static void nsvg__parseElement(char* s," + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 334, + "line": 3227, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvg.h", + "line": 177, + "column": 1, + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi);" + } + ] }, { - "name": "nsvg__parseXML", + "name": "nsvgParse", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] }, "parameters": [ { @@ -819,11 +1117,11 @@ "callback_policy": null }, { - "name": "startelCb", + "name": "units", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", + "source_text": "const char * units", "components": [ { "model": "CPointer", @@ -831,85 +1129,18 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char ** attr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } + "model": "CChar", + "qualifiers": [ + "const" ], - "is_variadic": false, - "prototype_style": "prototype" + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", + "source_text": "const char * units", "components": [ { "model": "CPointer", @@ -917,78 +1148,11 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char ** attr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } + "model": "CChar", + "qualifiers": [ + "const" ], - "is_variadic": false, - "prototype_style": "prototype" + "source_text": "const char" } ] }, @@ -996,11 +1160,77 @@ "callback_policy": null }, { - "name": "endelCb", + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3173, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3173, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3198, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "nanosvg/nanosvg.h", + "line": 181, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi);" + } + ] + }, + { + "name": "nsvgDuplicatePath", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "parameters": [ + { + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*endelCb)(void* ud, const char* el)", + "source_text": "NSVGpath * p", "components": [ { "model": "CPointer", @@ -1008,61 +1238,14 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" + "reference": "NSVGpath" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void (*endelCb)(void* ud, const char* el)", + "source_text": "NSVGpath * p", "components": [ { "model": "CPointer", @@ -1070,195 +1253,60 @@ "source_text": "" }, { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * el", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" + "reference": "NSVGpath" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3229, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3229, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3257, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "contentCb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*contentCb)(void* ud, const char* s)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*contentCb)(void* ud, const char* s)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * ud", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "filename": "nanosvg/nanosvg.h", + "line": 184, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p);" + } + ] + }, + { + "name": "nsvgDelete", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "ud", + "name": "image", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * ud", + "source_text": "NSVGimage * image", "components": [ { "model": "CPointer", @@ -1266,16 +1314,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "NSVGimage" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * ud", + "source_text": "NSVGimage * image", "components": [ { "model": "CPointer", @@ -1283,9 +1329,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "NSVGimage" } ] }, @@ -1300,67 +1344,50 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 336, + "line": 3259, "column": 1, - "source_line": "int nsvg__parseXML(char* input," + "source_line": "void nsvgDelete(NSVGimage* image)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 336, + "line": 3259, "column": 1, - "source_line": "int nsvg__parseXML(char* input," + "source_line": "void nsvgDelete(NSVGimage* image)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 364, + "line": 3273, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvg.h", + "line": 187, + "column": 1, + "source_line": "void nsvgDelete(NSVGimage* image);" + } + ] }, { - "name": "nsvg__xformIdentity", + "name": "nsvg__isspace", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "t", + "name": "c", "type": { - "model": "CComposedType", + "model": "CChar", "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "char c" }, "declared_type": { - "model": "CComposedType", + "model": "CChar", "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "char c" }, "source_location": null, "callback_policy": null @@ -1375,97 +1402,43 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 478, + "line": 228, "column": 1, - "source_line": "static void nsvg__xformIdentity(float* t)" + "source_line": "static int nsvg__isspace(char c)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 478, + "line": 228, "column": 1, - "source_line": "static void nsvg__xformIdentity(float* t)" + "source_line": "static int nsvg__isspace(char c)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 483, + "line": 231, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__xformSetTranslation", + "name": "nsvg__isdigit", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "t", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ty", + "name": "c", "type": { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float ty" + "source_text": "char c" }, "declared_type": { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float ty" + "source_text": "char c" }, "source_location": null, "callback_policy": null @@ -1480,97 +1453,58 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 485, + "line": 233, "column": 1, - "source_line": "static void nsvg__xformSetTranslation(float* t, float tx, float ty)" + "source_line": "static int nsvg__isdigit(char c)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 485, + "line": 233, "column": 1, - "source_line": "static void nsvg__xformSetTranslation(float* t, float tx, float ty)" + "source_line": "static int nsvg__isdigit(char c)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 490, + "line": 236, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__xformSetScale", + "name": "nsvg__minf", "result_type": { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" }, "parameters": [ { - "name": "t", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", + "name": "a", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float sx" + "source_text": "float a" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float sx" + "source_text": "float a" }, "source_location": null, "callback_policy": null }, { - "name": "sy", + "name": "b", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float sy" + "source_text": "float b" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float sy" + "source_text": "float b" }, "source_location": null, "callback_policy": null @@ -1579,88 +1513,66 @@ "storage": [ "static" ], - "specifiers": [], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 492, + "line": 238, "column": 1, - "source_line": "static void nsvg__xformSetScale(float* t, float sx, float sy)" + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 492, + "line": 238, "column": 1, - "source_line": "static void nsvg__xformSetScale(float* t, float sx, float sy)" + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 497, - "column": 1, - "source_line": "}" + "line": 238, + "column": 74, + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" }, "declaration_locations": [] }, { - "name": "nsvg__xformSetSkewX", + "name": "nsvg__maxf", "result_type": { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" }, "parameters": [ { - "name": "t", + "name": "a", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float a" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float a" }, "source_location": null, "callback_policy": null }, { - "name": "a", + "name": "b", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float b" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float b" }, "source_location": null, "callback_policy": null @@ -1669,32 +1581,34 @@ "storage": [ "static" ], - "specifiers": [], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 499, + "line": 239, "column": 1, - "source_line": "static void nsvg__xformSetSkewX(float* t, float a)" + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 499, + "line": 239, "column": 1, - "source_line": "static void nsvg__xformSetSkewX(float* t, float a)" + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 504, - "column": 1, - "source_line": "}" + "line": 239, + "column": 74, + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" }, "declaration_locations": [] }, { - "name": "nsvg__xformSetSkewY", + "name": "nsvg__parseContent", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1702,11 +1616,11 @@ }, "parameters": [ { - "name": "t", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "char * s", "components": [ { "model": "CPointer", @@ -1714,106 +1628,16 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 506, - "column": 1, - "source_line": "static void nsvg__xformSetSkewY(float* t, float a)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 506, - "column": 1, - "source_line": "static void nsvg__xformSetSkewY(float* t, float a)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 511, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__xformSetRotation", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "t", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "char * s", "components": [ { "model": "CPointer", @@ -1821,9 +1645,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, @@ -1831,62 +1655,11 @@ "callback_policy": null }, { - "name": "a", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 513, - "column": 1, - "source_line": "static void nsvg__xformSetRotation(float* t, float a)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 513, - "column": 1, - "source_line": "static void nsvg__xformSetRotation(float* t, float a)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 519, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__xformMultiply", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "t", + "name": "contentCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*contentCb)(void* ud, const char* s)", "components": [ { "model": "CPointer", @@ -1894,16 +1667,61 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*contentCb)(void* ud, const char* s)", "components": [ { "model": "CPointer", @@ -1911,9 +1729,54 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, @@ -1921,11 +1784,11 @@ "callback_policy": null }, { - "name": "s", + "name": "ud", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * s", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -1933,16 +1796,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * s", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -1950,9 +1813,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -1969,26 +1832,26 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 521, + "line": 248, "column": 1, - "source_line": "static void nsvg__xformMultiply(float* t, float* s)" + "source_line": "static void nsvg__parseContent(char* s," }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 521, + "line": 248, "column": 1, - "source_line": "static void nsvg__xformMultiply(float* t, float* s)" + "source_line": "static void nsvg__parseContent(char* s," }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 532, + "line": 258, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__xformInverse", + "name": "nsvg__parseElement", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1996,11 +1859,11 @@ }, "parameters": [ { - "name": "inv", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * inv", + "source_text": "char * s", "components": [ { "model": "CPointer", @@ -2008,16 +1871,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * inv", + "source_text": "char * s", "components": [ { "model": "CPointer", @@ -2025,9 +1888,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, @@ -2035,11 +1898,11 @@ "callback_policy": null }, { - "name": "t", + "name": "startelCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", "components": [ { "model": "CPointer", @@ -2047,16 +1910,85 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char ** attr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", "components": [ { "model": "CPointer", @@ -2064,74 +1996,90 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char ** attr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 534, - "column": 1, - "source_line": "static void nsvg__xformInverse(float* inv, float* t)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 534, - "column": 1, - "source_line": "static void nsvg__xformInverse(float* inv, float* t)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 548, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__xformPremultiply", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "t", + "name": "endelCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*endelCb)(void* ud, const char* el)", "components": [ { "model": "CPointer", @@ -2139,21 +2087,128 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void (*endelCb)(void* ud, const char* el)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "ud", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * s", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -2161,16 +2216,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * s", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -2178,9 +2233,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -2197,38 +2252,38 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 550, + "line": 260, "column": 1, - "source_line": "static void nsvg__xformPremultiply(float* t, float* s)" + "source_line": "static void nsvg__parseElement(char* s," }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 550, + "line": 260, "column": 1, - "source_line": "static void nsvg__xformPremultiply(float* t, float* s)" + "source_line": "static void nsvg__parseElement(char* s," }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 556, + "line": 334, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__xformPoint", + "name": "nsvg__parseXML", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "dx", + "name": "input", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dx", + "source_text": "char * input", "components": [ { "model": "CPointer", @@ -2236,16 +2291,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dx", + "source_text": "char * input", "components": [ { "model": "CPointer", @@ -2253,9 +2308,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float" + "source_text": "char" } ] }, @@ -2263,11 +2318,11 @@ "callback_policy": null }, { - "name": "dy", + "name": "startelCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dy", + "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", "components": [ { "model": "CPointer", @@ -2275,16 +2330,85 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char ** attr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dy", + "source_text": "void (*startelCb)(void* ud, const char* el, const char** attr)", "components": [ { "model": "CPointer", @@ -2292,9 +2416,78 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char ** attr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, @@ -2302,41 +2495,11 @@ "callback_policy": null }, { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "t", + "name": "endelCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*endelCb)(void* ud, const char* el)", "components": [ { "model": "CPointer", @@ -2344,16 +2507,61 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void (*endelCb)(void* ud, const char* el)", "components": [ { "model": "CPointer", @@ -2361,74 +2569,66 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * el", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 558, - "column": 1, - "source_line": "static void nsvg__xformPoint(float* dx, float* dy, float x, float y, float* t)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 558, - "column": 1, - "source_line": "static void nsvg__xformPoint(float* dx, float* dy, float x, float y, float* t)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 562, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__xformVec", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "dx", + "name": "contentCb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * dx", + "source_text": "void (*contentCb)(void* ud, const char* s)", "components": [ { "model": "CPointer", @@ -2436,38 +2636,61 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * dy", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * dy", + "source_text": "void (*contentCb)(void* ud, const char* s)", "components": [ { "model": "CPointer", @@ -2475,9 +2698,54 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CFunctionType", "qualifiers": [], - "source_text": "float" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * ud", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, @@ -2485,41 +2753,11 @@ "callback_policy": null }, { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "t", + "name": "ud", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -2527,16 +2765,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * t", + "source_text": "void * ud", "components": [ { "model": "CPointer", @@ -2544,9 +2782,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -2554,47 +2792,45 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 564, + "line": 336, "column": 1, - "source_line": "static void nsvg__xformVec(float* dx, float* dy, float x, float y, float* t)" + "source_line": "int nsvg__parseXML(char* input," }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 564, + "line": 336, "column": 1, - "source_line": "static void nsvg__xformVec(float* dx, float* dy, float x, float y, float* t)" + "source_line": "int nsvg__parseXML(char* input," }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 568, + "line": 364, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__ptInBounds", + "name": "nsvg__xformIdentity", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "pt", + "name": "t", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * pt", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2611,7 +2847,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * pt", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2627,13 +2863,49 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 478, + "column": 1, + "source_line": "static void nsvg__xformIdentity(float* t)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 478, + "column": 1, + "source_line": "static void nsvg__xformIdentity(float* t)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 483, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformSetTranslation", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "bounds", + "name": "t", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * bounds", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2650,7 +2922,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * bounds", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2666,6 +2938,36 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "tx", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tx" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ty", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -2677,103 +2979,97 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 572, + "line": 485, "column": 1, - "source_line": "static int nsvg__ptInBounds(float* pt, float* bounds)" + "source_line": "static void nsvg__xformSetTranslation(float* t, float tx, float ty)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 572, + "line": 485, "column": 1, - "source_line": "static int nsvg__ptInBounds(float* pt, float* bounds)" + "source_line": "static void nsvg__xformSetTranslation(float* t, float tx, float ty)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 575, + "line": 490, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__evalBezier", + "name": "nsvg__xformSetScale", "result_type": { - "model": "CDouble", + "model": "CVoid", "qualifiers": [], - "source_text": "double" + "source_text": "void" }, "parameters": [ { "name": "t", "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double t" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p0", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double p0" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double p0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p1", - "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double p1" + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double p1" + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "p2", + "name": "sx", "type": { - "model": "CDouble", + "model": "CFloat", "qualifiers": [], - "source_text": "double p2" + "source_text": "float sx" }, "declared_type": { - "model": "CDouble", + "model": "CFloat", "qualifiers": [], - "source_text": "double p2" + "source_text": "float sx" }, "source_location": null, "callback_policy": null }, { - "name": "p3", + "name": "sy", "type": { - "model": "CDouble", + "model": "CFloat", "qualifiers": [], - "source_text": "double p3" + "source_text": "float sy" }, "declared_type": { - "model": "CDouble", + "model": "CFloat", "qualifiers": [], - "source_text": "double p3" + "source_text": "float sy" }, "source_location": null, "callback_policy": null @@ -2788,26 +3084,26 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 578, + "line": 492, "column": 1, - "source_line": "static double nsvg__evalBezier(double t, double p0, double p1, double p2, double p3)" + "source_line": "static void nsvg__xformSetScale(float* t, float sx, float sy)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 578, + "line": 492, "column": 1, - "source_line": "static double nsvg__evalBezier(double t, double p0, double p1, double p2, double p3)" + "source_line": "static void nsvg__xformSetScale(float* t, float sx, float sy)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 582, + "line": 497, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__curveBounds", + "name": "nsvg__xformSetSkewX", "result_type": { "model": "CVoid", "qualifiers": [], @@ -2815,11 +3111,11 @@ }, "parameters": [ { - "name": "bounds", + "name": "t", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * bounds", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2836,7 +3132,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * bounds", + "source_text": "float * t", "components": [ { "model": "CPointer", @@ -2854,40 +3150,16 @@ "callback_policy": null }, { - "name": "curve", + "name": "a", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float * curve", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float a" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float * curve", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float a" }, "source_location": null, "callback_policy": null @@ -2902,79 +3174,82 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 584, + "line": 499, "column": 1, - "source_line": "static void nsvg__curveBounds(float* bounds, float* curve)" + "source_line": "static void nsvg__xformSetSkewX(float* t, float a)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 584, + "line": 499, "column": 1, - "source_line": "static void nsvg__curveBounds(float* bounds, float* curve)" + "source_line": "static void nsvg__xformSetSkewX(float* t, float a)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 633, + "line": 504, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__encodePaintOrder", + "name": "nsvg__xformSetSkewY", "result_type": { - "model": "CUnsignedChar", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "t", "type": { - "model": "CEnum", + "model": "CComposedType", "qualifiers": [], - "source_text": "enum NSVGpaintOrder a", - "name": "NSVGpaintOrder", - "constants": [], - "anonymous_id": null, - "source_location": null + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "reference": "enum NSVGpaintOrder" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CEnum", + "model": "CComposedType", "qualifiers": [], - "source_text": "enum NSVGpaintOrder b", - "name": "NSVGpaintOrder", - "constants": [], - "anonymous_id": null, - "source_location": null - }, - "declared_type": { - "reference": "enum NSVGpaintOrder" + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "a", "type": { - "model": "CEnum", + "model": "CFloat", "qualifiers": [], - "source_text": "enum NSVGpaintOrder c", - "name": "NSVGpaintOrder", - "constants": [], - "anonymous_id": null, - "source_location": null + "source_text": "float a" }, "declared_type": { - "reference": "enum NSVGpaintOrder" + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" }, "source_location": null, "callback_policy": null @@ -2989,42 +3264,1290 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 635, + "line": 506, "column": 1, - "source_line": "static unsigned char nsvg__encodePaintOrder(enum NSVGpaintOrder a, enum NSVGpaintOrder b, enum NSVGpaintOrder c) {" + "source_line": "static void nsvg__xformSetSkewY(float* t, float a)" }, "start": { "filename": "nanosvg/nanosvg.h", - "line": 635, + "line": 506, "column": 1, - "source_line": "static unsigned char nsvg__encodePaintOrder(enum NSVGpaintOrder a, enum NSVGpaintOrder b, enum NSVGpaintOrder c) {" + "source_line": "static void nsvg__xformSetSkewY(float* t, float a)" }, "end": { "filename": "nanosvg/nanosvg.h", - "line": 637, + "line": 511, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "nsvg__createParser", + "name": "nsvg__xformSetRotation", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "NSVGparser", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", + "source_text": "void" + }, + "parameters": [ + { + "name": "t", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGparser", - "name": "NSVGparser", - "type": { + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "a", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 513, + "column": 1, + "source_line": "static void nsvg__xformSetRotation(float* t, float a)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 513, + "column": 1, + "source_line": "static void nsvg__xformSetRotation(float* t, float a)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 519, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformMultiply", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "t", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 521, + "column": 1, + "source_line": "static void nsvg__xformMultiply(float* t, float* s)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 521, + "column": 1, + "source_line": "static void nsvg__xformMultiply(float* t, float* s)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 532, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformInverse", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "inv", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * inv", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * inv", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 534, + "column": 1, + "source_line": "static void nsvg__xformInverse(float* inv, float* t)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 534, + "column": 1, + "source_line": "static void nsvg__xformInverse(float* inv, float* t)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 548, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformPremultiply", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "t", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 550, + "column": 1, + "source_line": "static void nsvg__xformPremultiply(float* t, float* s)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 550, + "column": 1, + "source_line": "static void nsvg__xformPremultiply(float* t, float* s)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 556, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformPoint", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "dx", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dx", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dx", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dy", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dy", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dy", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 558, + "column": 1, + "source_line": "static void nsvg__xformPoint(float* dx, float* dy, float x, float y, float* t)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 558, + "column": 1, + "source_line": "static void nsvg__xformPoint(float* dx, float* dy, float x, float y, float* t)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 562, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__xformVec", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "dx", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dx", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dx", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dy", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dy", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * dy", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * t", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 564, + "column": 1, + "source_line": "static void nsvg__xformVec(float* dx, float* dy, float x, float y, float* t)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 564, + "column": 1, + "source_line": "static void nsvg__xformVec(float* dx, float* dy, float x, float y, float* t)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 568, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__ptInBounds", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "pt", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * pt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * pt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bounds", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * bounds", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * bounds", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 572, + "column": 1, + "source_line": "static int nsvg__ptInBounds(float* pt, float* bounds)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 572, + "column": 1, + "source_line": "static int nsvg__ptInBounds(float* pt, float* bounds)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 575, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__evalBezier", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "t", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p0", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p0" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p1" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p2", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p2" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p3", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p3" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double p3" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 578, + "column": 1, + "source_line": "static double nsvg__evalBezier(double t, double p0, double p1, double p2, double p3)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 578, + "column": 1, + "source_line": "static double nsvg__evalBezier(double t, double p0, double p1, double p2, double p3)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 582, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__curveBounds", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "bounds", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * bounds", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * bounds", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "curve", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * curve", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float * curve", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 584, + "column": 1, + "source_line": "static void nsvg__curveBounds(float* bounds, float* curve)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 584, + "column": 1, + "source_line": "static void nsvg__curveBounds(float* bounds, float* curve)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 633, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__encodePaintOrder", + "result_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaintOrder", + "constants": [ + { + "name": "NSVG_PAINT_FILL", + "value": "0x00", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + { + "name": "NSVG_PAINT_MARKERS", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + { + "name": "NSVG_PAINT_STROKE", + "value": "0x02", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + "declared_type": { + "reference": "enum NSVGpaintOrder" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "reference": "enum NSVGpaintOrder" + }, + "declared_type": { + "reference": "enum NSVGpaintOrder" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "reference": "enum NSVGpaintOrder" + }, + "declared_type": { + "reference": "enum NSVGpaintOrder" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 635, + "column": 1, + "source_line": "static unsigned char nsvg__encodePaintOrder(enum NSVGpaintOrder a, enum NSVGpaintOrder b, enum NSVGpaintOrder c) {" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 635, + "column": 1, + "source_line": "static unsigned char nsvg__encodePaintOrder(enum NSVGpaintOrder a, enum NSVGpaintOrder b, enum NSVGpaintOrder c) {" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 637, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__createParser", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGparser", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGparser", + "name": "NSVGparser", + "type": { "model": "CStruct", "qualifiers": [], "source_text": "", @@ -3035,13 +4558,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGattrib attr[NSVG_MAX_ATTR]", + "source_text": "NSVGattrib attr[128]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "NSVG_MAX_ATTR", + "bound": "128", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -3087,7 +4610,7 @@ "filename": "nanosvg/nanosvg.h", "line": 424, "column": 2, - "source_line": "\tchar id[64];" + "source_line": " char id[64];" }, "callback_policy": null, "declaration_locations": [] @@ -3122,7 +4645,7 @@ "filename": "nanosvg/nanosvg.h", "line": 425, "column": 2, - "source_line": "\tfloat xform[6];" + "source_line": " float xform[6];" }, "callback_policy": null, "declaration_locations": [] @@ -3141,7 +4664,7 @@ "filename": "nanosvg/nanosvg.h", "line": 426, "column": 2, - "source_line": "\tunsigned int fillColor;" + "source_line": " unsigned int fillColor;" }, "callback_policy": null, "declaration_locations": [] @@ -3160,7 +4683,7 @@ "filename": "nanosvg/nanosvg.h", "line": 427, "column": 2, - "source_line": "\tunsigned int strokeColor;" + "source_line": " unsigned int strokeColor;" }, "callback_policy": null, "declaration_locations": [] @@ -3179,7 +4702,7 @@ "filename": "nanosvg/nanosvg.h", "line": 428, "column": 2, - "source_line": "\tfloat opacity;" + "source_line": " float opacity;" }, "callback_policy": null, "declaration_locations": [] @@ -3198,7 +4721,7 @@ "filename": "nanosvg/nanosvg.h", "line": 429, "column": 2, - "source_line": "\tfloat fillOpacity;" + "source_line": " float fillOpacity;" }, "callback_policy": null, "declaration_locations": [] @@ -3217,7 +4740,7 @@ "filename": "nanosvg/nanosvg.h", "line": 430, "column": 2, - "source_line": "\tfloat strokeOpacity;" + "source_line": " float strokeOpacity;" }, "callback_policy": null, "declaration_locations": [] @@ -3252,7 +4775,7 @@ "filename": "nanosvg/nanosvg.h", "line": 431, "column": 2, - "source_line": "\tchar fillGradient[64];" + "source_line": " char fillGradient[64];" }, "callback_policy": null, "declaration_locations": [] @@ -3287,7 +4810,7 @@ "filename": "nanosvg/nanosvg.h", "line": 432, "column": 2, - "source_line": "\tchar strokeGradient[64];" + "source_line": " char strokeGradient[64];" }, "callback_policy": null, "declaration_locations": [] @@ -3306,7 +4829,7 @@ "filename": "nanosvg/nanosvg.h", "line": 433, "column": 2, - "source_line": "\tfloat strokeWidth;" + "source_line": " float strokeWidth;" }, "callback_policy": null, "declaration_locations": [] @@ -3325,7 +4848,7 @@ "filename": "nanosvg/nanosvg.h", "line": 434, "column": 2, - "source_line": "\tfloat strokeDashOffset;" + "source_line": " float strokeDashOffset;" }, "callback_policy": null, "declaration_locations": [] @@ -3335,13 +4858,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float strokeDashArray[NSVG_MAX_DASHES]", + "source_text": "float strokeDashArray[8]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "NSVG_MAX_DASHES", + "bound": "8", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -3360,7 +4883,7 @@ "filename": "nanosvg/nanosvg.h", "line": 435, "column": 2, - "source_line": "\tfloat strokeDashArray[NSVG_MAX_DASHES];" + "source_line": " float strokeDashArray[8];" }, "callback_policy": null, "declaration_locations": [] @@ -3379,7 +4902,7 @@ "filename": "nanosvg/nanosvg.h", "line": 436, "column": 2, - "source_line": "\tint strokeDashCount;" + "source_line": " int strokeDashCount;" }, "callback_policy": null, "declaration_locations": [] @@ -3398,7 +4921,7 @@ "filename": "nanosvg/nanosvg.h", "line": 437, "column": 2, - "source_line": "\tchar strokeLineJoin;" + "source_line": " char strokeLineJoin;" }, "callback_policy": null, "declaration_locations": [] @@ -3417,7 +4940,7 @@ "filename": "nanosvg/nanosvg.h", "line": 438, "column": 2, - "source_line": "\tchar strokeLineCap;" + "source_line": " char strokeLineCap;" }, "callback_policy": null, "declaration_locations": [] @@ -3436,7 +4959,7 @@ "filename": "nanosvg/nanosvg.h", "line": 439, "column": 2, - "source_line": "\tfloat miterLimit;" + "source_line": " float miterLimit;" }, "callback_policy": null, "declaration_locations": [] @@ -3455,7 +4978,7 @@ "filename": "nanosvg/nanosvg.h", "line": 440, "column": 2, - "source_line": "\tchar fillRule;" + "source_line": " char fillRule;" }, "callback_policy": null, "declaration_locations": [] @@ -3474,7 +4997,7 @@ "filename": "nanosvg/nanosvg.h", "line": 441, "column": 2, - "source_line": "\tfloat fontSize;" + "source_line": " float fontSize;" }, "callback_policy": null, "declaration_locations": [] @@ -3493,7 +5016,7 @@ "filename": "nanosvg/nanosvg.h", "line": 442, "column": 2, - "source_line": "\tunsigned int stopColor;" + "source_line": " unsigned int stopColor;" }, "callback_policy": null, "declaration_locations": [] @@ -3512,7 +5035,7 @@ "filename": "nanosvg/nanosvg.h", "line": 443, "column": 2, - "source_line": "\tfloat stopOpacity;" + "source_line": " float stopOpacity;" }, "callback_policy": null, "declaration_locations": [] @@ -3531,7 +5054,7 @@ "filename": "nanosvg/nanosvg.h", "line": 444, "column": 2, - "source_line": "\tfloat stopOffset;" + "source_line": " float stopOffset;" }, "callback_policy": null, "declaration_locations": [] @@ -3550,7 +5073,7 @@ "filename": "nanosvg/nanosvg.h", "line": 445, "column": 2, - "source_line": "\tchar hasFill;" + "source_line": " char hasFill;" }, "callback_policy": null, "declaration_locations": [] @@ -3569,7 +5092,7 @@ "filename": "nanosvg/nanosvg.h", "line": 446, "column": 2, - "source_line": "\tchar hasStroke;" + "source_line": " char hasStroke;" }, "callback_policy": null, "declaration_locations": [] @@ -3588,7 +5111,7 @@ "filename": "nanosvg/nanosvg.h", "line": 447, "column": 2, - "source_line": "\tchar visible;" + "source_line": " char visible;" }, "callback_policy": null, "declaration_locations": [] @@ -3639,7 +5162,7 @@ "filename": "nanosvg/nanosvg.h", "line": 460, "column": 2, - "source_line": "\tNSVGattrib attr[NSVG_MAX_ATTR];" + "source_line": " NSVGattrib attr[128];" }, "callback_policy": null, "declaration_locations": [] @@ -3658,7 +5181,7 @@ "filename": "nanosvg/nanosvg.h", "line": 461, "column": 2, - "source_line": "\tint attrHead;" + "source_line": " int attrHead;" }, "callback_policy": null, "declaration_locations": [] @@ -3689,7 +5212,7 @@ "filename": "nanosvg/nanosvg.h", "line": 462, "column": 2, - "source_line": "\tfloat* pts;" + "source_line": " float* pts;" }, "callback_policy": null, "declaration_locations": [] @@ -3708,7 +5231,7 @@ "filename": "nanosvg/nanosvg.h", "line": 463, "column": 2, - "source_line": "\tint npts;" + "source_line": " int npts;" }, "callback_policy": null, "declaration_locations": [] @@ -3727,7 +5250,7 @@ "filename": "nanosvg/nanosvg.h", "line": 464, "column": 2, - "source_line": "\tint cpts;" + "source_line": " int cpts;" }, "callback_policy": null, "declaration_locations": [] @@ -3745,13 +5268,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpath", - "name": "NSVGpath", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGpath" } ] }, @@ -3762,7 +5279,7 @@ "filename": "nanosvg/nanosvg.h", "line": 465, "column": 2, - "source_line": "\tNSVGpath* plist;" + "source_line": " NSVGpath* plist;" }, "callback_policy": null, "declaration_locations": [] @@ -3780,13 +5297,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGimage", - "name": "NSVGimage", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGimage" } ] }, @@ -3797,7 +5308,7 @@ "filename": "nanosvg/nanosvg.h", "line": 466, "column": 2, - "source_line": "\tNSVGimage* image;" + "source_line": " NSVGimage* image;" }, "callback_policy": null, "declaration_locations": [] @@ -3851,7 +5362,7 @@ "filename": "nanosvg/nanosvg.h", "line": 453, "column": 2, - "source_line": "\tchar* className;" + "source_line": " char* className;" }, "callback_policy": null, "declaration_locations": [] @@ -3882,7 +5393,7 @@ "filename": "nanosvg/nanosvg.h", "line": 454, "column": 2, - "source_line": "\tchar* propertiesText;" + "source_line": " char* propertiesText;" }, "callback_policy": null, "declaration_locations": [] @@ -3911,7 +5422,7 @@ "filename": "nanosvg/nanosvg.h", "line": 455, "column": 2, - "source_line": "\tstruct NSVGstyleDeclaration* next;" + "source_line": " struct NSVGstyleDeclaration* next;" }, "callback_policy": null, "declaration_locations": [] @@ -3943,7 +5454,7 @@ "filename": "nanosvg/nanosvg.h", "line": 467, "column": 2, - "source_line": "\tNSVGstyleDeclaration* styles;" + "source_line": " NSVGstyleDeclaration* styles;" }, "callback_policy": null, "declaration_locations": [] @@ -4001,7 +5512,7 @@ "filename": "nanosvg/nanosvg.h", "line": 407, "column": 2, - "source_line": "\tchar id[64];" + "source_line": " char id[64];" }, "callback_policy": null, "declaration_locations": [] @@ -4036,7 +5547,7 @@ "filename": "nanosvg/nanosvg.h", "line": 408, "column": 2, - "source_line": "\tchar ref[64];" + "source_line": " char ref[64];" }, "callback_policy": null, "declaration_locations": [] @@ -4055,7 +5566,7 @@ "filename": "nanosvg/nanosvg.h", "line": 409, "column": 2, - "source_line": "\tsigned char type;" + "source_line": " signed char type;" }, "callback_policy": null, "declaration_locations": [] @@ -4086,7 +5597,7 @@ "filename": "nanosvg/nanosvg.h", "line": 411, "column": 3, - "source_line": "\t\tNSVGlinearData linear;" + "source_line": " NSVGlinearData linear;" }, "callback_policy": null, "declaration_locations": [] @@ -4109,19 +5620,19 @@ "filename": "nanosvg/nanosvg.h", "line": 412, "column": 3, - "source_line": "\t\tNSVGradialData radial;" + "source_line": " NSVGradialData radial;" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "union@nanosvg/nanosvg.h:410:2", + "anonymous_id": "union@:0:0", "is_incomplete": false, "source_location": { "filename": "nanosvg/nanosvg.h", "line": 410, "column": 2, - "source_line": "\tunion {" + "source_line": " union {" } }, "storage": [], @@ -4131,7 +5642,7 @@ "filename": "nanosvg/nanosvg.h", "line": 410, "column": 2, - "source_line": "\tunion {" + "source_line": " union {" }, "callback_policy": null, "declaration_locations": [] @@ -4150,7 +5661,7 @@ "filename": "nanosvg/nanosvg.h", "line": 414, "column": 2, - "source_line": "\tchar spread;" + "source_line": " char spread;" }, "callback_policy": null, "declaration_locations": [] @@ -4169,7 +5680,7 @@ "filename": "nanosvg/nanosvg.h", "line": 415, "column": 2, - "source_line": "\tchar units;" + "source_line": " char units;" }, "callback_policy": null, "declaration_locations": [] @@ -4204,7 +5715,7 @@ "filename": "nanosvg/nanosvg.h", "line": 416, "column": 2, - "source_line": "\tfloat xform[6];" + "source_line": " float xform[6];" }, "callback_policy": null, "declaration_locations": [] @@ -4223,7 +5734,7 @@ "filename": "nanosvg/nanosvg.h", "line": 417, "column": 2, - "source_line": "\tint nstops;" + "source_line": " int nstops;" }, "callback_policy": null, "declaration_locations": [] @@ -4245,8 +5756,66 @@ "qualifiers": [], "source_text": "NSVGgradientStop", "name": "NSVGgradientStop", - "type": null, - "source_location": null, + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGgradientStop", + "members": [ + { + "name": "color", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int color" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 116, + "column": 2, + "source_line": " unsigned int color;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "offset", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float offset" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 117, + "column": 2, + "source_line": " float offset;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 115, + "column": 1, + "source_line": "typedef struct NSVGgradientStop {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 115, + "column": 1, + "source_line": "typedef struct NSVGgradientStop {" + }, "declaration_locations": [] } ] @@ -4258,7 +5827,7 @@ "filename": "nanosvg/nanosvg.h", "line": 418, "column": 2, - "source_line": "\tNSVGgradientStop* stops;" + "source_line": " NSVGgradientStop* stops;" }, "callback_policy": null, "declaration_locations": [] @@ -4287,7 +5856,7 @@ "filename": "nanosvg/nanosvg.h", "line": 419, "column": 2, - "source_line": "\tstruct NSVGgradientData* next;" + "source_line": " struct NSVGgradientData* next;" }, "callback_policy": null, "declaration_locations": [] @@ -4319,7 +5888,7 @@ "filename": "nanosvg/nanosvg.h", "line": 468, "column": 2, - "source_line": "\tNSVGgradientData* gradients;" + "source_line": " NSVGgradientData* gradients;" }, "callback_policy": null, "declaration_locations": [] @@ -4337,13 +5906,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGshape", - "name": "NSVGshape", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGshape" } ] }, @@ -4354,7 +5917,7 @@ "filename": "nanosvg/nanosvg.h", "line": 469, "column": 2, - "source_line": "\tNSVGshape* shapesTail;" + "source_line": " NSVGshape* shapesTail;" }, "callback_policy": null, "declaration_locations": [] @@ -4373,7 +5936,7 @@ "filename": "nanosvg/nanosvg.h", "line": 470, "column": 2, - "source_line": "\tfloat viewMinx, viewMiny, viewWidth, viewHeight;" + "source_line": " float viewMinx, viewMiny, viewWidth, viewHeight;" }, "callback_policy": null, "declaration_locations": [] @@ -4392,7 +5955,7 @@ "filename": "nanosvg/nanosvg.h", "line": 470, "column": 2, - "source_line": "\tfloat viewMinx, viewMiny, viewWidth, viewHeight;" + "source_line": " float viewMinx, viewMiny, viewWidth, viewHeight;" }, "callback_policy": null, "declaration_locations": [] @@ -4411,7 +5974,7 @@ "filename": "nanosvg/nanosvg.h", "line": 470, "column": 2, - "source_line": "\tfloat viewMinx, viewMiny, viewWidth, viewHeight;" + "source_line": " float viewMinx, viewMiny, viewWidth, viewHeight;" }, "callback_policy": null, "declaration_locations": [] @@ -4430,7 +5993,7 @@ "filename": "nanosvg/nanosvg.h", "line": 470, "column": 2, - "source_line": "\tfloat viewMinx, viewMiny, viewWidth, viewHeight;" + "source_line": " float viewMinx, viewMiny, viewWidth, viewHeight;" }, "callback_policy": null, "declaration_locations": [] @@ -4449,7 +6012,7 @@ "filename": "nanosvg/nanosvg.h", "line": 471, "column": 2, - "source_line": "\tint alignX, alignY, alignType;" + "source_line": " int alignX, alignY, alignType;" }, "callback_policy": null, "declaration_locations": [] @@ -4468,7 +6031,7 @@ "filename": "nanosvg/nanosvg.h", "line": 471, "column": 2, - "source_line": "\tint alignX, alignY, alignType;" + "source_line": " int alignX, alignY, alignType;" }, "callback_policy": null, "declaration_locations": [] @@ -4487,7 +6050,7 @@ "filename": "nanosvg/nanosvg.h", "line": 471, "column": 2, - "source_line": "\tint alignX, alignY, alignType;" + "source_line": " int alignX, alignY, alignType;" }, "callback_policy": null, "declaration_locations": [] @@ -4506,7 +6069,7 @@ "filename": "nanosvg/nanosvg.h", "line": 472, "column": 2, - "source_line": "\tfloat dpi;" + "source_line": " float dpi;" }, "callback_policy": null, "declaration_locations": [] @@ -4525,7 +6088,7 @@ "filename": "nanosvg/nanosvg.h", "line": 473, "column": 2, - "source_line": "\tchar pathFlag;" + "source_line": " char pathFlag;" }, "callback_policy": null, "declaration_locations": [] @@ -4544,7 +6107,7 @@ "filename": "nanosvg/nanosvg.h", "line": 474, "column": 2, - "source_line": "\tchar defsFlag;" + "source_line": " char defsFlag;" }, "callback_policy": null, "declaration_locations": [] @@ -4563,7 +6126,7 @@ "filename": "nanosvg/nanosvg.h", "line": 475, "column": 2, - "source_line": "\tchar styleFlag;" + "source_line": " char styleFlag;" }, "callback_policy": null, "declaration_locations": [] @@ -4708,13 +6271,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpath", - "name": "NSVGpath", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGpath" } ] }, @@ -4785,13 +6342,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpaint", - "name": "NSVGpaint", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGpaint" } ] }, @@ -6166,7 +7717,7 @@ "filename": "nanosvg/nanosvg.h", "line": 393, "column": 2, - "source_line": "\tfloat value;" + "source_line": " float value;" }, "callback_policy": null, "declaration_locations": [] @@ -6185,7 +7736,7 @@ "filename": "nanosvg/nanosvg.h", "line": 394, "column": 2, - "source_line": "\tint units;" + "source_line": " int units;" }, "callback_policy": null, "declaration_locations": [] @@ -6413,8 +7964,172 @@ "qualifiers": [], "source_text": "NSVGgradient", "name": "NSVGgradient", - "type": null, - "source_location": null, + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGgradient", + "members": [ + { + "name": "xform", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float xform[6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 121, + "column": 2, + "source_line": " float xform[6];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "spread", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char spread" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 122, + "column": 2, + "source_line": " char spread;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fx", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float fx" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 123, + "column": 2, + "source_line": " float fx, fy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fy", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float fy" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 123, + "column": 2, + "source_line": " float fx, fy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "nstops", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nstops" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 124, + "column": 2, + "source_line": " int nstops;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stops", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGgradientStop stops[1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "NSVGgradientStop" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 125, + "column": 2, + "source_line": " NSVGgradientStop stops[1];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 120, + "column": 1, + "source_line": "typedef struct NSVGgradient {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 120, + "column": 1, + "source_line": "typedef struct NSVGgradient {" + }, "declaration_locations": [] } ] @@ -6782,13 +8497,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGshape", - "name": "NSVGshape", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGshape" } ] }, @@ -14835,13 +16544,7 @@ { "name": "n", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t n", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -15207,13 +16910,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGgradient", - "name": "NSVGgradient", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGgradient" } ] }, @@ -15507,475 +17204,26 @@ "source_line": "}" }, "declaration_locations": [] + } + ], + "structs": [ + { + "reference": "struct NSVGgradientStop" }, { - "name": "nsvgParse", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGimage", - "name": "NSVGimage", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "input", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "units", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dpi", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3173, - "column": 1, - "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3173, - "column": 1, - "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3198, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "reference": "struct NSVGgradient" }, { - "name": "nsvgParseFromFile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGimage", - "name": "NSVGimage", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "units", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dpi", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3200, - "column": 1, - "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3200, - "column": 1, - "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3227, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "reference": "struct NSVGpaint" }, { - "name": "nsvgDuplicatePath", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpath", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpath", - "name": "NSVGpath", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpath * p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpath", - "name": "NSVGpath", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpath * p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGpath" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3229, - "column": 1, - "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3229, - "column": 1, - "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3257, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "reference": "struct NSVGpath" }, { - "name": "nsvgDelete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "image", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage * image", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGimage", - "name": "NSVGimage", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage * image", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGimage" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3259, - "column": 1, - "source_line": "void nsvgDelete(NSVGimage* image)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3259, - "column": 1, - "source_line": "void nsvgDelete(NSVGimage* image)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3273, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ + "reference": "struct NSVGshape" + }, { - "reference": "struct NSVGcoordinate" + "reference": "struct NSVGimage" }, { "model": "CStruct", @@ -15995,7 +17243,7 @@ "filename": "nanosvg/nanosvg.h", "line": 398, "column": 2, - "source_line": "\tNSVGcoordinate x1, y1, x2, y2;" + "source_line": " NSVGcoordinate x1, y1, x2, y2;" }, "callback_policy": null, "declaration_locations": [] @@ -16012,7 +17260,7 @@ "filename": "nanosvg/nanosvg.h", "line": 398, "column": 2, - "source_line": "\tNSVGcoordinate x1, y1, x2, y2;" + "source_line": " NSVGcoordinate x1, y1, x2, y2;" }, "callback_policy": null, "declaration_locations": [] @@ -16029,7 +17277,7 @@ "filename": "nanosvg/nanosvg.h", "line": 398, "column": 2, - "source_line": "\tNSVGcoordinate x1, y1, x2, y2;" + "source_line": " NSVGcoordinate x1, y1, x2, y2;" }, "callback_policy": null, "declaration_locations": [] @@ -16046,7 +17294,7 @@ "filename": "nanosvg/nanosvg.h", "line": 398, "column": 2, - "source_line": "\tNSVGcoordinate x1, y1, x2, y2;" + "source_line": " NSVGcoordinate x1, y1, x2, y2;" }, "callback_policy": null, "declaration_locations": [] @@ -16079,7 +17327,7 @@ "filename": "nanosvg/nanosvg.h", "line": 402, "column": 2, - "source_line": "\tNSVGcoordinate cx, cy, r, fx, fy;" + "source_line": " NSVGcoordinate cx, cy, r, fx, fy;" }, "callback_policy": null, "declaration_locations": [] @@ -16096,7 +17344,7 @@ "filename": "nanosvg/nanosvg.h", "line": 402, "column": 2, - "source_line": "\tNSVGcoordinate cx, cy, r, fx, fy;" + "source_line": " NSVGcoordinate cx, cy, r, fx, fy;" }, "callback_policy": null, "declaration_locations": [] @@ -16113,7 +17361,7 @@ "filename": "nanosvg/nanosvg.h", "line": 402, "column": 2, - "source_line": "\tNSVGcoordinate cx, cy, r, fx, fy;" + "source_line": " NSVGcoordinate cx, cy, r, fx, fy;" }, "callback_policy": null, "declaration_locations": [] @@ -16130,7 +17378,7 @@ "filename": "nanosvg/nanosvg.h", "line": 402, "column": 2, - "source_line": "\tNSVGcoordinate cx, cy, r, fx, fy;" + "source_line": " NSVGcoordinate cx, cy, r, fx, fy;" }, "callback_policy": null, "declaration_locations": [] @@ -16147,7 +17395,7 @@ "filename": "nanosvg/nanosvg.h", "line": 402, "column": 2, - "source_line": "\tNSVGcoordinate cx, cy, r, fx, fy;" + "source_line": " NSVGcoordinate cx, cy, r, fx, fy;" }, "callback_policy": null, "declaration_locations": [] @@ -16160,19 +17408,7 @@ "line": 401, "column": 1, "source_line": "typedef struct NSVGradialData {" - } - }, - { - "reference": "struct NSVGgradientData" - }, - { - "reference": "struct NSVGattrib" - }, - { - "reference": "struct NSVGstyleDeclaration" - }, - { - "reference": "struct NSVGparser" + } }, { "model": "CStruct", @@ -16208,7 +17444,7 @@ "filename": "nanosvg/nanosvg.h", "line": 1322, "column": 2, - "source_line": "\tconst char* name;" + "source_line": " const char* name;" }, "callback_policy": null, "declaration_locations": [] @@ -16227,7 +17463,7 @@ "filename": "nanosvg/nanosvg.h", "line": 1323, "column": 2, - "source_line": "\tunsigned int color;" + "source_line": " unsigned int color;" }, "callback_policy": null, "declaration_locations": [] @@ -16245,6 +17481,269 @@ ], "unions": [], "enums": [ + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaintType", + "constants": [ + { + "name": "NSVG_PAINT_UNDEF", + "value": "-1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_NONE", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_COLOR", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_LINEAR_GRADIENT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_RADIAL_GRADIENT", + "value": "3", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGspreadType", + "constants": [ + { + "name": "NSVG_SPREAD_PAD", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "name": "NSVG_SPREAD_REFLECT", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "name": "NSVG_SPREAD_REPEAT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGlineJoin", + "constants": [ + { + "name": "NSVG_JOIN_MITER", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "name": "NSVG_JOIN_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "name": "NSVG_JOIN_BEVEL", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGlineCap", + "constants": [ + { + "name": "NSVG_CAP_BUTT", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "name": "NSVG_CAP_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "name": "NSVG_CAP_SQUARE", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGfillRule", + "constants": [ + { + "name": "NSVG_FILLRULE_NONZERO", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + { + "name": "NSVG_FILLRULE_EVENODD", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGflags", + "constants": [ + { + "name": "NSVG_FLAGS_VISIBLE", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + } + }, + { + "reference": "enum NSVGpaintOrder" + }, { "model": "CEnum", "qualifiers": [], @@ -16398,7 +17897,100 @@ ], "typedefs": [ { - "reference": "NSVGcoordinate" + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGgradientStop", + "name": "NSVGgradientStop", + "type": { + "reference": "struct NSVGgradientStop" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 115, + "column": 1, + "source_line": "typedef struct NSVGgradientStop {" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGgradient", + "name": "NSVGgradient", + "type": { + "reference": "struct NSVGgradient" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 120, + "column": 1, + "source_line": "typedef struct NSVGgradient {" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGpaint", + "name": "NSVGpaint", + "type": { + "reference": "struct NSVGpaint" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 128, + "column": 1, + "source_line": "typedef struct NSVGpaint {" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGpath", + "name": "NSVGpath", + "type": { + "reference": "struct NSVGpath" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 136, + "column": 1, + "source_line": "typedef struct NSVGpath" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGshape", + "name": "NSVGshape", + "type": { + "reference": "struct NSVGshape" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 145, + "column": 1, + "source_line": "typedef struct NSVGshape" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGimage", + "name": "NSVGimage", + "type": { + "reference": "struct NSVGimage" + }, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 169, + "column": 1, + "source_line": "typedef struct NSVGimage" + }, + "declaration_locations": [] }, { "model": "CTypedef", @@ -16432,18 +18024,6 @@ }, "declaration_locations": [] }, - { - "reference": "NSVGgradientData" - }, - { - "reference": "NSVGattrib" - }, - { - "reference": "NSVGstyleDeclaration" - }, - { - "reference": "NSVGparser" - }, { "model": "CTypedef", "qualifiers": [], @@ -16485,7 +18065,7 @@ }, "storage": [], "initializer": { - "source_text": "{\n\n\t{ \"red\", NSVG_RGB(255, 0, 0) },\n\t{ \"green\", NSVG_RGB( 0, 128, 0) },\n\t{ \"blue\", NSVG_RGB( 0, 0, 255) },\n\t{ \"yellow\", NSVG_RGB(255, 255, 0) },\n\t{ \"cyan\", NSVG_RGB( 0, 255, 255) },\n\t{ \"magenta\", NSVG_RGB(255, 0, 255) },\n\t{ \"black\", NSVG_RGB( 0, 0, 0) },\n\t{ \"grey\", NSVG_RGB(128, 128, 128) },\n\t{ \"gray\", NSVG_RGB(128, 128, 128) },\n\t{ \"white\", NSVG_RGB(255, 255, 255) },\n\n \n\t{ \"aliceblue\", NSVG_RGB(240, 248, 255) },\n\t{ \"antiquewhite\", NSVG_RGB(250, 235, 215) },\n\t{ \"aqua\", NSVG_RGB( 0, 255, 255) },\n\t{ \"aquamarine\", NSVG_RGB(127, 255, 212) },\n\t{ \"azure\", NSVG_RGB(240, 255, 255) },\n\t{ \"beige\", NSVG_RGB(245, 245, 220) },\n\t{ \"bisque\", NSVG_RGB(255, 228, 196) },\n\t{ \"blanchedalmond\", NSVG_RGB(255, 235, 205) },\n\t{ \"blueviolet\", NSVG_RGB(138, 43, 226) },\n\t{ \"brown\", NSVG_RGB(165, 42, 42) },\n\t{ \"burlywood\", NSVG_RGB(222, 184, 135) },\n\t{ \"cadetblue\", NSVG_RGB( 95, 158, 160) },\n\t{ \"chartreuse\", NSVG_RGB(127, 255, 0) },\n\t{ \"chocolate\", NSVG_RGB(210, 105, 30) },\n\t{ \"coral\", NSVG_RGB(255, 127, 80) },\n\t{ \"cornflowerblue\", NSVG_RGB(100, 149, 237) },\n\t{ \"cornsilk\", NSVG_RGB(255, 248, 220) },\n\t{ \"crimson\", NSVG_RGB(220, 20, 60) },\n\t{ \"darkblue\", NSVG_RGB( 0, 0, 139) },\n\t{ \"darkcyan\", NSVG_RGB( 0, 139, 139) },\n\t{ \"darkgoldenrod\", NSVG_RGB(184, 134, 11) },\n\t{ \"darkgray\", NSVG_RGB(169, 169, 169) },\n\t{ \"darkgreen\", NSVG_RGB( 0, 100, 0) },\n\t{ \"darkgrey\", NSVG_RGB(169, 169, 169) },\n\t{ \"darkkhaki\", NSVG_RGB(189, 183, 107) },\n\t{ \"darkmagenta\", NSVG_RGB(139, 0, 139) },\n\t{ \"darkolivegreen\", NSVG_RGB( 85, 107, 47) },\n\t{ \"darkorange\", NSVG_RGB(255, 140, 0) },\n\t{ \"darkorchid\", NSVG_RGB(153, 50, 204) },\n\t{ \"darkred\", NSVG_RGB(139, 0, 0) },\n\t{ \"darksalmon\", NSVG_RGB(233, 150, 122) },\n\t{ \"darkseagreen\", NSVG_RGB(143, 188, 143) },\n\t{ \"darkslateblue\", NSVG_RGB( 72, 61, 139) },\n\t{ \"darkslategray\", NSVG_RGB( 47, 79, 79) },\n\t{ \"darkslategrey\", NSVG_RGB( 47, 79, 79) },\n\t{ \"darkturquoise\", NSVG_RGB( 0, 206, 209) },\n\t{ \"darkviolet\", NSVG_RGB(148, 0, 211) },\n\t{ \"deeppink\", NSVG_RGB(255, 20, 147) },\n\t{ \"deepskyblue\", NSVG_RGB( 0, 191, 255) },\n\t{ \"dimgray\", NSVG_RGB(105, 105, 105) },\n\t{ \"dimgrey\", NSVG_RGB(105, 105, 105) },\n\t{ \"dodgerblue\", NSVG_RGB( 30, 144, 255) },\n\t{ \"firebrick\", NSVG_RGB(178, 34, 34) },\n\t{ \"floralwhite\", NSVG_RGB(255, 250, 240) },\n\t{ \"forestgreen\", NSVG_RGB( 34, 139, 34) },\n\t{ \"fuchsia\", NSVG_RGB(255, 0, 255) },\n\t{ \"gainsboro\", NSVG_RGB(220, 220, 220) },\n\t{ \"ghostwhite\", NSVG_RGB(248, 248, 255) },\n\t{ \"gold\", NSVG_RGB(255, 215, 0) },\n\t{ \"goldenrod\", NSVG_RGB(218, 165, 32) },\n\t{ \"greenyellow\", NSVG_RGB(173, 255, 47) },\n\t{ \"honeydew\", NSVG_RGB(240, 255, 240) },\n\t{ \"hotpink\", NSVG_RGB(255, 105, 180) },\n\t{ \"indianred\", NSVG_RGB(205, 92, 92) },\n\t{ \"indigo\", NSVG_RGB( 75, 0, 130) },\n\t{ \"ivory\", NSVG_RGB(255, 255, 240) },\n\t{ \"khaki\", NSVG_RGB(240, 230, 140) },\n\t{ \"lavender\", NSVG_RGB(230, 230, 250) },\n\t{ \"lavenderblush\", NSVG_RGB(255, 240, 245) },\n\t{ \"lawngreen\", NSVG_RGB(124, 252, 0) },\n\t{ \"lemonchiffon\", NSVG_RGB(255, 250, 205) },\n\t{ \"lightblue\", NSVG_RGB(173, 216, 230) },\n\t{ \"lightcoral\", NSVG_RGB(240, 128, 128) },\n\t{ \"lightcyan\", NSVG_RGB(224, 255, 255) },\n\t{ \"lightgoldenrodyellow\", NSVG_RGB(250, 250, 210) },\n\t{ \"lightgray\", NSVG_RGB(211, 211, 211) },\n\t{ \"lightgreen\", NSVG_RGB(144, 238, 144) },\n\t{ \"lightgrey\", NSVG_RGB(211, 211, 211) },\n\t{ \"lightpink\", NSVG_RGB(255, 182, 193) },\n\t{ \"lightsalmon\", NSVG_RGB(255, 160, 122) },\n\t{ \"lightseagreen\", NSVG_RGB( 32, 178, 170) },\n\t{ \"lightskyblue\", NSVG_RGB(135, 206, 250) },\n\t{ \"lightslategray\", NSVG_RGB(119, 136, 153) },\n\t{ \"lightslategrey\", NSVG_RGB(119, 136, 153) },\n\t{ \"lightsteelblue\", NSVG_RGB(176, 196, 222) },\n\t{ \"lightyellow\", NSVG_RGB(255, 255, 224) },\n\t{ \"lime\", NSVG_RGB( 0, 255, 0) },\n\t{ \"limegreen\", NSVG_RGB( 50, 205, 50) },\n\t{ \"linen\", NSVG_RGB(250, 240, 230) },\n\t{ \"maroon\", NSVG_RGB(128, 0, 0) },\n\t{ \"mediumaquamarine\", NSVG_RGB(102, 205, 170) },\n\t{ \"mediumblue\", NSVG_RGB( 0, 0, 205) },\n\t{ \"mediumorchid\", NSVG_RGB(186, 85, 211) },\n\t{ \"mediumpurple\", NSVG_RGB(147, 112, 219) },\n\t{ \"mediumseagreen\", NSVG_RGB( 60, 179, 113) },\n\t{ \"mediumslateblue\", NSVG_RGB(123, 104, 238) },\n\t{ \"mediumspringgreen\", NSVG_RGB( 0, 250, 154) },\n\t{ \"mediumturquoise\", NSVG_RGB( 72, 209, 204) },\n\t{ \"mediumvioletred\", NSVG_RGB(199, 21, 133) },\n\t{ \"midnightblue\", NSVG_RGB( 25, 25, 112) },\n\t{ \"mintcream\", NSVG_RGB(245, 255, 250) },\n\t{ \"mistyrose\", NSVG_RGB(255, 228, 225) },\n\t{ \"moccasin\", NSVG_RGB(255, 228, 181) },\n\t{ \"navajowhite\", NSVG_RGB(255, 222, 173) },\n\t{ \"navy\", NSVG_RGB( 0, 0, 128) },\n\t{ \"oldlace\", NSVG_RGB(253, 245, 230) },\n\t{ \"olive\", NSVG_RGB(128, 128, 0) },\n\t{ \"olivedrab\", NSVG_RGB(107, 142, 35) },\n\t{ \"orange\", NSVG_RGB(255, 165, 0) },\n\t{ \"orangered\", NSVG_RGB(255, 69, 0) },\n\t{ \"orchid\", NSVG_RGB(218, 112, 214) },\n\t{ \"palegoldenrod\", NSVG_RGB(238, 232, 170) },\n\t{ \"palegreen\", NSVG_RGB(152, 251, 152) },\n\t{ \"paleturquoise\", NSVG_RGB(175, 238, 238) },\n\t{ \"palevioletred\", NSVG_RGB(219, 112, 147) },\n\t{ \"papayawhip\", NSVG_RGB(255, 239, 213) },\n\t{ \"peachpuff\", NSVG_RGB(255, 218, 185) },\n\t{ \"peru\", NSVG_RGB(205, 133, 63) },\n\t{ \"pink\", NSVG_RGB(255, 192, 203) },\n\t{ \"plum\", NSVG_RGB(221, 160, 221) },\n\t{ \"powderblue\", NSVG_RGB(176, 224, 230) },\n\t{ \"purple\", NSVG_RGB(128, 0, 128) },\n\t{ \"rosybrown\", NSVG_RGB(188, 143, 143) },\n\t{ \"royalblue\", NSVG_RGB( 65, 105, 225) },\n\t{ \"saddlebrown\", NSVG_RGB(139, 69, 19) },\n\t{ \"salmon\", NSVG_RGB(250, 128, 114) },\n\t{ \"sandybrown\", NSVG_RGB(244, 164, 96) },\n\t{ \"seagreen\", NSVG_RGB( 46, 139, 87) },\n\t{ \"seashell\", NSVG_RGB(255, 245, 238) },\n\t{ \"sienna\", NSVG_RGB(160, 82, 45) },\n\t{ \"silver\", NSVG_RGB(192, 192, 192) },\n\t{ \"skyblue\", NSVG_RGB(135, 206, 235) },\n\t{ \"slateblue\", NSVG_RGB(106, 90, 205) },\n\t{ \"slategray\", NSVG_RGB(112, 128, 144) },\n\t{ \"slategrey\", NSVG_RGB(112, 128, 144) },\n\t{ \"snow\", NSVG_RGB(255, 250, 250) },\n\t{ \"springgreen\", NSVG_RGB( 0, 255, 127) },\n\t{ \"steelblue\", NSVG_RGB( 70, 130, 180) },\n\t{ \"tan\", NSVG_RGB(210, 180, 140) },\n\t{ \"teal\", NSVG_RGB( 0, 128, 128) },\n\t{ \"thistle\", NSVG_RGB(216, 191, 216) },\n\t{ \"tomato\", NSVG_RGB(255, 99, 71) },\n\t{ \"turquoise\", NSVG_RGB( 64, 224, 208) },\n\t{ \"violet\", NSVG_RGB(238, 130, 238) },\n\t{ \"wheat\", NSVG_RGB(245, 222, 179) },\n\t{ \"whitesmoke\", NSVG_RGB(245, 245, 245) },\n\t{ \"yellowgreen\", NSVG_RGB(154, 205, 50) },\n \n}" + "source_text": "{ { \"red\", (((unsigned int)255) | ((unsigned int)0 << 8) | ((unsigned int)0 << 16)) }, { \"green\", (((unsigned int)0) | ((unsigned int)128 << 8) | ((unsigned int)0 << 16)) }, { \"blue\", (((unsigned int)0) | ((unsigned int)0 << 8) | ((unsigned int)255 << 16)) }, { \"yellow\", (((unsigned int)255) | ((unsigned int)255 << 8) | ((unsigned int)0 << 16)) }, { \"cyan\", (((unsigned int)0) | ((unsigned int)255 << 8) | ((unsigned int)255 << 16)) }, { \"magenta\", (((unsigned int)255) | ((unsigned int)0 << 8) | ((unsigned int)255 << 16)) }, { \"black\", (((unsigned int)0) | ((unsigned int)0 << 8) | ((unsigned int)0 << 16)) }, { \"grey\", (((unsigned int)128) | ((unsigned int)128 << 8) | ((unsigned int)128 << 16)) }, { \"gray\", (((unsigned int)128) | ((unsigned int)128 << 8) | ((unsigned int)128 << 16)) }, { \"white\", (((unsigned int)255) | ((unsigned int)255 << 8) | ((unsigned int)255 << 16)) }, }" }, "bit_width": null, "source_location": { @@ -16498,650 +18078,1789 @@ "declaration_locations": [] } ], - "macros": [ - { - "name": "NANOSVG_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 30, - "column": 1, - "source_line": "#define NANOSVG_H" - } - }, - { - "name": "NSVG_PI", - "value": "(3.14159265358979323846264338327f)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 202, - "column": 1, - "source_line": "#define NSVG_PI (3.14159265358979323846264338327f)" - } - }, - { - "name": "NSVG_KAPPA90", - "value": "(0.5522847493f)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 203, - "column": 1, - "source_line": "#define NSVG_KAPPA90 (0.5522847493f)\t// Length proportional to radius of a cubic bezier handle for 90deg arcs." - } - }, - { - "name": "NSVG_ALIGN_MIN", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 205, - "column": 1, - "source_line": "#define NSVG_ALIGN_MIN 0" - } - }, - { - "name": "NSVG_ALIGN_MID", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 206, - "column": 1, - "source_line": "#define NSVG_ALIGN_MID 1" - } - }, - { - "name": "NSVG_ALIGN_MAX", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 207, - "column": 1, - "source_line": "#define NSVG_ALIGN_MAX 2" - } - }, - { - "name": "NSVG_ALIGN_NONE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 208, - "column": 1, - "source_line": "#define NSVG_ALIGN_NONE 0" - } - }, - { - "name": "NSVG_ALIGN_MEET", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 209, - "column": 1, - "source_line": "#define NSVG_ALIGN_MEET 1" - } - }, - { - "name": "NSVG_ALIGN_SLICE", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 210, - "column": 1, - "source_line": "#define NSVG_ALIGN_SLICE 2" - } - }, - { - "name": "NSVG_NOTUSED", - "value": "do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 212, - "column": 1, - "source_line": "#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)" - } - }, - { - "name": "NSVG_RGB", - "value": "(((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 213, - "column": 1, - "source_line": "#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))" - } - }, - { - "name": "NSVG_INLINE", - "value": "inline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 219, - "column": 2, - "source_line": "\t#define NSVG_INLINE inline" - } - }, - { - "name": "NSVG_INLINE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 221, - "column": 2, - "source_line": "\t#define NSVG_INLINE" - } - }, - { - "name": "NSVG_INLINE", - "value": "inline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 224, - "column": 2, - "source_line": "\t#define NSVG_INLINE inline" - } - }, - { - "name": "NSVG_XML_TAG", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 244, - "column": 1, - "source_line": "#define NSVG_XML_TAG 1" - } - }, - { - "name": "NSVG_XML_CONTENT", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 245, - "column": 1, - "source_line": "#define NSVG_XML_CONTENT 2" - } - }, - { - "name": "NSVG_XML_MAX_ATTRIBS", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 246, - "column": 1, - "source_line": "#define NSVG_XML_MAX_ATTRIBS 256" - } - }, - { - "name": "NSVG_MAX_ATTR", - "value": "128", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 369, - "column": 1, - "source_line": "#define NSVG_MAX_ATTR 128" - } - }, - { - "name": "NSVG_MAX_DASHES", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 376, - "column": 1, - "source_line": "#define NSVG_MAX_DASHES 8" - } - }, - { - "name": "NSVG_MAX_CLASSES", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 377, - "column": 1, - "source_line": "#define NSVG_MAX_CLASSES 32" - } - }, - { - "name": "NSVG_EPSILON", - "value": "(1e-12)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 570, - "column": 1, - "source_line": "#define NSVG_EPSILON (1e-12)" - } - } - ], - "includes": [ - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 197, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 198, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 199, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 200, - "column": 1, - "source_line": "#include " - } - } + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + }, + "nanosvg/nanosvgrast.h": { + "filename": "nanosvg/nanosvgrast.h", + "language": "c", + "preprocessing": "compiler", + "original_source_paths": [ + "nanosvg/nanosvgrast.h", + "nanosvg/nanosvg.h" ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "NANOSVG_H", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 29, - "column": 1, - "source_line": "#ifndef NANOSVG_H" - } - }, - { - "directive": "ifndef", - "argument": "NANOSVG_CPLUSPLUS", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 32, - "column": 1, - "source_line": "#ifndef NANOSVG_CPLUSPLUS" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 33, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 35, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 36, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "NANOSVG_CPLUSPLUS", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 189, - "column": 1, - "source_line": "#ifndef NANOSVG_CPLUSPLUS" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 190, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 192, - "column": 1, - "source_line": "#endif" - } - }, + "functions": [ { - "directive": "endif", - "argument": null, + "name": "nsvgParseFromFile", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "units", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 193, + "line": 177, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "NANOSVG_IMPLEMENTATION", - "source_location": { + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi);" + }, + "start": { "filename": "nanosvg/nanosvg.h", - "line": 195, + "line": 177, "column": 1, - "source_line": "#ifdef NANOSVG_IMPLEMENTATION" - } + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi);" + }, + "end": null, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "_MSC_VER", + "name": "nsvgParse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "parameters": [ + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char * input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char * input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "units", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 215, + "line": 181, "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "pragma", - "argument": "warning (disable: 4996)", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 216, - "column": 2, - "source_line": "\t#pragma warning (disable: 4996) // Switch off security warnings" - } - }, - { - "directive": "pragma", - "argument": "warning (disable: 4100)", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 217, - "column": 2, - "source_line": "\t#pragma warning (disable: 4100) // Switch off unreferenced formal parameter warnings" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 218, - "column": 2, - "source_line": "\t#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 220, - "column": 2, - "source_line": "\t#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 222, - "column": 2, - "source_line": "\t#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi);" + }, + "start": { "filename": "nanosvg/nanosvg.h", - "line": 223, + "line": 181, "column": 1, - "source_line": "#else" - } + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi);" + }, + "end": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "nsvgDuplicatePath", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath * p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath * p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 225, + "line": 184, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "NANOSVG_ALL_COLOR_KEYWORDS", - "source_location": { + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p);" + }, + "start": { "filename": "nanosvg/nanosvg.h", - "line": 1339, + "line": 184, "column": 1, - "source_line": "#ifdef NANOSVG_ALL_COLOR_KEYWORDS" - } + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p);" + }, + "end": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "nsvgDelete", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "image", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvg.h", - "line": 1477, + "line": 187, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "void nsvgDelete(NSVGimage* image);" + }, + "start": { "filename": "nanosvg/nanosvg.h", - "line": 3275, + "line": 187, "column": 1, - "source_line": "#endif // NANOSVG_IMPLEMENTATION" - } + "source_line": "void nsvgDelete(NSVGimage* image);" + }, + "end": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3277, - "column": 1, - "source_line": "#endif // NANOSVG_H" - } - } - ], - "macro_dependencies": [ - { - "name": "NSVG_INLINE", - "context": "declaration", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 238, - "column": 1, - "source_line": "static NSVG_INLINE float nsvg__minf(float a, float b) { return a < b ? a : b; }" + "name": "nsvgCreateRasterizer", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGrasterizer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGrasterizer", + "name": "NSVGrasterizer", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGrasterizer", + "members": [ + { + "name": "px", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float px" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 125, + "column": 2, + "source_line": " float px, py;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "py", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float py" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 125, + "column": 2, + "source_line": " float px, py;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "tessTol", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tessTol" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 127, + "column": 2, + "source_line": " float tessTol;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "distTol", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float distTol" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 128, + "column": 2, + "source_line": " float distTol;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "edges", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGedge * edges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGedge", + "name": "NSVGedge", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGedge", + "members": [ + { + "name": "x0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 90, + "column": 2, + "source_line": " float x0,y0, x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 90, + "column": 2, + "source_line": " float x0,y0, x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 90, + "column": 2, + "source_line": " float x0,y0, x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 90, + "column": 2, + "source_line": " float x0,y0, x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dir", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int dir" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 91, + "column": 2, + "source_line": " int dir;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGedge * next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct NSVGedge" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 92, + "column": 2, + "source_line": " struct NSVGedge* next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 89, + "column": 1, + "source_line": "typedef struct NSVGedge {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 89, + "column": 1, + "source_line": "typedef struct NSVGedge {" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 130, + "column": 2, + "source_line": " NSVGedge* edges;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "nedges", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nedges" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 131, + "column": 2, + "source_line": " int nedges;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cedges", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cedges" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 132, + "column": 2, + "source_line": " int cedges;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "points", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpoint * points", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGpoint", + "name": "NSVGpoint", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGpoint", + "members": [ + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 96, + "column": 2, + "source_line": " float x, y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 96, + "column": 2, + "source_line": " float x, y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dx", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dx" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 97, + "column": 2, + "source_line": " float dx, dy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dy", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dy" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 97, + "column": 2, + "source_line": " float dx, dy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "len", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float len" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 98, + "column": 2, + "source_line": " float len;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dmx", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dmx" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 99, + "column": 2, + "source_line": " float dmx, dmy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dmy", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dmy" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 99, + "column": 2, + "source_line": " float dmx, dmy;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "flags", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char flags" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 100, + "column": 2, + "source_line": " unsigned char flags;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 95, + "column": 1, + "source_line": "typedef struct NSVGpoint {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 95, + "column": 1, + "source_line": "typedef struct NSVGpoint {" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 134, + "column": 2, + "source_line": " NSVGpoint* points;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "npoints", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int npoints" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 135, + "column": 2, + "source_line": " int npoints;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cpoints", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cpoints" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 136, + "column": 2, + "source_line": " int cpoints;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "points2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpoint * points2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpoint" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 138, + "column": 2, + "source_line": " NSVGpoint* points2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "npoints2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int npoints2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 139, + "column": 2, + "source_line": " int npoints2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cpoints2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cpoints2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 140, + "column": 2, + "source_line": " int cpoints2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "freelist", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGactiveEdge * freelist", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGactiveEdge", + "name": "NSVGactiveEdge", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGactiveEdge", + "members": [ + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 104, + "column": 2, + "source_line": " int x,dx;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int dx" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 104, + "column": 2, + "source_line": " int x,dx;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ey", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ey" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 105, + "column": 2, + "source_line": " float ey;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dir", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int dir" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 106, + "column": 2, + "source_line": " int dir;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGactiveEdge *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct NSVGactiveEdge" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 107, + "column": 2, + "source_line": " struct NSVGactiveEdge *next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 103, + "column": 1, + "source_line": "typedef struct NSVGactiveEdge {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 103, + "column": 1, + "source_line": "typedef struct NSVGactiveEdge {" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 142, + "column": 2, + "source_line": " NSVGactiveEdge* freelist;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "pages", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGmemPage * pages", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGmemPage", + "name": "NSVGmemPage", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGmemPage", + "members": [ + { + "name": "mem", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char mem[1024]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1024", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 111, + "column": 2, + "source_line": " unsigned char mem[1024];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 112, + "column": 2, + "source_line": " int size;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGmemPage * next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct NSVGmemPage" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 113, + "column": 2, + "source_line": " struct NSVGmemPage* next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 110, + "column": 1, + "source_line": "typedef struct NSVGmemPage {" + } + }, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 110, + "column": 1, + "source_line": "typedef struct NSVGmemPage {" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 143, + "column": 2, + "source_line": " NSVGmemPage* pages;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "curpage", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGmemPage * curpage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGmemPage" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 144, + "column": 2, + "source_line": " NSVGmemPage* curpage;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "scanline", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * scanline", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 146, + "column": 2, + "source_line": " unsigned char* scanline;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cscanline", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cscanline" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 147, + "column": 2, + "source_line": " int cscanline;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bitmap", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * bitmap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 149, + "column": 2, + "source_line": " unsigned char* bitmap;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 150, + "column": 2, + "source_line": " int width, height, stride;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 150, + "column": 2, + "source_line": " int width, height, stride;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 150, + "column": 2, + "source_line": " int width, height, stride;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 123, + "column": 1, + "source_line": "struct NSVGrasterizer" + } + }, + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 36, + "column": 1, + "source_line": "typedef struct NSVGrasterizer NSVGrasterizer;" + }, + "declaration_locations": [] + } + ] }, - "source_text": "static NSVG_INLINE float nsvg__minf(float a, float b)" - }, - { - "name": "NSVG_INLINE", - "context": "declaration", + "parameters": [], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 239, - "column": 1, - "source_line": "static NSVG_INLINE float nsvg__maxf(float a, float b) { return a > b ? a : b; }" - }, - "source_text": "static NSVG_INLINE float nsvg__maxf(float a, float b)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NSVG_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvg.h", - "line": 212, - "column": 1, - "source_line": "#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)" - }, - "unit_kind": "macro", - "unit_name": "NSVG_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NSVG_RGB' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvg.h", - "line": 213, + "filename": "nanosvg/nanosvgrast.h", + "line": 153, "column": 1, - "source_line": "#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))" + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" }, - "unit_kind": "macro", - "unit_name": "NSVG_RGB" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvg.h", - "line": 34, + "start": { + "filename": "nanosvg/nanosvgrast.h", + "line": 153, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'NSVG_INLINE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvg.h", - "line": 238, + "end": { + "filename": "nanosvg/nanosvgrast.h", + "line": 167, "column": 1, - "source_line": "static NSVG_INLINE float nsvg__minf(float a, float b) { return a < b ? a : b; }" + "source_line": "}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "NSVG_INLINE" + "declaration_locations": [ + { + "filename": "nanosvg/nanosvgrast.h", + "line": 52, + "column": 1, + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void);" + } + ] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'NSVG_INLINE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvg.h", - "line": 239, - "column": 1, - "source_line": "static NSVG_INLINE float nsvg__maxf(float a, float b) { return a > b ? a : b; }" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "NSVG_INLINE" - } - ] - }, - "nanosvg/nanosvgrast.h": { - "filename": "nanosvg/nanosvgrast.h", - "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [ - { - "name": "nsvgCreateRasterizer", + "name": "nsvgRasterize", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "NSVGrasterizer", - "components": [ - { - "model": "CPointer", + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "NSVGrasterizer * r", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGrasterizer" + } + ] }, - { - "model": "CTypedef", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [], + "source_text": "NSVGrasterizer * r", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGrasterizer" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "image", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tx", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tx" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ty", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dst", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * dst", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * dst", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [], "specifiers": [], "is_variadic": false, @@ -17149,23 +19868,30 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvgrast.h", - "line": 153, + "line": 1375, "column": 1, - "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" + "source_line": "void nsvgRasterize(NSVGrasterizer* r," }, "start": { "filename": "nanosvg/nanosvgrast.h", - "line": 153, + "line": 1375, "column": 1, - "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" + "source_line": "void nsvgRasterize(NSVGrasterizer* r," }, "end": { "filename": "nanosvg/nanosvgrast.h", - "line": 167, + "line": 1468, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvgrast.h", + "line": 63, + "column": 1, + "source_line": "void nsvgRasterize(NSVGrasterizer* r," + } + ] }, { "name": "nsvgDeleteRasterizer", @@ -17188,13 +19914,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17240,7 +19960,14 @@ "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvgrast.h", + "line": 68, + "column": 1, + "source_line": "void nsvgDeleteRasterizer(NSVGrasterizer*);" + } + ] }, { "name": "nsvg__nextPage", @@ -17255,116 +19982,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGmemPage", - "name": "NSVGmemPage", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "NSVGmemPage", - "members": [ - { - "name": "mem", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char mem[NSVG__MEMPAGE_SIZE]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "NSVG__MEMPAGE_SIZE", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 111, - "column": 2, - "source_line": "\tunsigned char mem[NSVG__MEMPAGE_SIZE];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 112, - "column": 2, - "source_line": "\tint size;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct NSVGmemPage * next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct NSVGmemPage" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 113, - "column": 2, - "source_line": "\tstruct NSVGmemPage* next;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 110, - "column": 1, - "source_line": "typedef struct NSVGmemPage {" - } - }, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 110, - "column": 1, - "source_line": "typedef struct NSVGmemPage {" - }, - "declaration_locations": [] + "reference": "NSVGmemPage" } ] }, @@ -17382,13 +20000,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17494,13 +20106,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17583,13 +20189,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17786,13 +20386,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17908,13 +20502,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -17939,185 +20527,7 @@ { "name": "pt", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpoint", - "name": "NSVGpoint", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "NSVGpoint", - "members": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 96, - "column": 2, - "source_line": "\tfloat x, y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 96, - "column": 2, - "source_line": "\tfloat x, y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 97, - "column": 2, - "source_line": "\tfloat dx, dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dy", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 97, - "column": 2, - "source_line": "\tfloat dx, dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "len", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float len" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 98, - "column": 2, - "source_line": "\tfloat len;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dmx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dmx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 99, - "column": 2, - "source_line": "\tfloat dmx, dmy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dmy", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dmy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 99, - "column": 2, - "source_line": "\tfloat dmx, dmy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "flags", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char flags" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 100, - "column": 2, - "source_line": "\tunsigned char flags;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 95, - "column": 1, - "source_line": "typedef struct NSVGpoint {" - } - }, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 95, - "column": 1, - "source_line": "typedef struct NSVGpoint {" - }, - "declaration_locations": [] + "reference": "NSVGpoint" }, "declared_type": { "reference": "NSVGpoint" @@ -18174,13 +20584,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -18251,13 +20655,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -18604,13 +21002,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -18831,13 +21223,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -18872,13 +21258,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGshape", - "name": "NSVGshape", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGshape" } ] }, @@ -19155,13 +21535,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -19397,13 +21771,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -19639,13 +22007,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -19896,13 +22258,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -20128,13 +22484,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -20360,13 +22710,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -20607,13 +22951,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -20885,13 +23223,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -21072,13 +23404,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -21179,13 +23505,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -21220,13 +23540,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGshape", - "name": "NSVGshape", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGshape" } ] }, @@ -21426,138 +23740,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGactiveEdge", - "name": "NSVGactiveEdge", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "NSVGactiveEdge", - "members": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 104, - "column": 2, - "source_line": "\tint x,dx;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 104, - "column": 2, - "source_line": "\tint x,dx;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ey", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ey" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 105, - "column": 2, - "source_line": "\tfloat ey;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dir" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 106, - "column": 2, - "source_line": "\tint dir;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct NSVGactiveEdge *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct NSVGactiveEdge" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 107, - "column": 2, - "source_line": "\tstruct NSVGactiveEdge *next;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 103, - "column": 1, - "source_line": "typedef struct NSVGactiveEdge {" - } - }, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 103, - "column": 1, - "source_line": "typedef struct NSVGactiveEdge {" - }, - "declaration_locations": [] + "reference": "NSVGactiveEdge" } ] }, @@ -21565,27 +23748,6 @@ { "name": "r", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { "model": "CComposedType", "qualifiers": [], "source_text": "NSVGrasterizer * r", @@ -21600,268 +23762,127 @@ } ] }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGedge * e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGedge", - "name": "NSVGedge", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "NSVGedge", - "members": [ - { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 90, - "column": 2, - "source_line": "\tfloat x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 90, - "column": 2, - "source_line": "\tfloat x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 90, - "column": 2, - "source_line": "\tfloat x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 90, - "column": 2, - "source_line": "\tfloat x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dir" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 91, - "column": 2, - "source_line": "\tint dir;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct NSVGedge * next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct NSVGedge" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 92, - "column": 2, - "source_line": "\tstruct NSVGedge* next;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 89, - "column": 1, - "source_line": "typedef struct NSVGedge {" - } - }, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 89, - "column": 1, - "source_line": "typedef struct NSVGedge {" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGedge * e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGedge" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "startPoint", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float startPoint" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float startPoint" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 860, - "column": 1, - "source_line": "static NSVGactiveEdge* nsvg__addActive(NSVGrasterizer* r, NSVGedge* e, float startPoint)" - }, - "start": { - "filename": "nanosvg/nanosvgrast.h", - "line": 860, - "column": 1, - "source_line": "static NSVGactiveEdge* nsvg__addActive(NSVGrasterizer* r, NSVGedge* e, float startPoint)" - }, - "end": { - "filename": "nanosvg/nanosvgrast.h", - "line": 888, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvg__freeActive", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "r", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGrasterizer * r", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGrasterizer" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "e", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGedge * e", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGedge" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGedge * e", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGedge" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "startPoint", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float startPoint" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float startPoint" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvgrast.h", + "line": 860, + "column": 1, + "source_line": "static NSVGactiveEdge* nsvg__addActive(NSVGrasterizer* r, NSVGedge* e, float startPoint)" + }, + "start": { + "filename": "nanosvg/nanosvgrast.h", + "line": 860, + "column": 1, + "source_line": "static NSVGactiveEdge* nsvg__addActive(NSVGrasterizer* r, NSVGedge* e, float startPoint)" + }, + "end": { + "filename": "nanosvg/nanosvgrast.h", + "line": 888, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "nsvg__freeActive", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGrasterizer * r", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGrasterizer" + } + ] + }, "declared_type": { "model": "CComposedType", "qualifiers": [], @@ -22979,7 +25000,7 @@ "filename": "nanosvg/nanosvgrast.h", "line": 117, "column": 2, - "source_line": "\tsigned char type;" + "source_line": " signed char type;" }, "callback_policy": null, "declaration_locations": [] @@ -22998,7 +25019,7 @@ "filename": "nanosvg/nanosvgrast.h", "line": 118, "column": 2, - "source_line": "\tchar spread;" + "source_line": " char spread;" }, "callback_policy": null, "declaration_locations": [] @@ -23033,7 +25054,7 @@ "filename": "nanosvg/nanosvgrast.h", "line": 119, "column": 2, - "source_line": "\tfloat xform[6];" + "source_line": " float xform[6];" }, "callback_policy": null, "declaration_locations": [] @@ -23068,7 +25089,7 @@ "filename": "nanosvg/nanosvgrast.h", "line": 120, "column": 2, - "source_line": "\tunsigned int colors[256];" + "source_line": " unsigned int colors[256];" }, "callback_policy": null, "declaration_locations": [] @@ -23160,13 +25181,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "NSVGrasterizer" } ] }, @@ -23462,243 +25477,24 @@ "source_text": "NSVGcachedPaint * cache", "components": [ { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGcachedPaint" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "paint", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpaint * paint", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGpaint", - "name": "NSVGpaint", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpaint * paint", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGpaint" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "opacity", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float opacity" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float opacity" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1272, - "column": 1, - "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" - }, - "start": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1272, - "column": 1, - "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" - }, - "end": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1331, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "nsvgRasterize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "r", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "name": "NSVGrasterizer", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGrasterizer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "image", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage * image", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "NSVGimage", - "name": "NSVGimage", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage * image", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGimage" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ty", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ty" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ty" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGcachedPaint" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "dst", + "name": "paint", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * dst", + "source_text": "NSVGpaint * paint", "components": [ { "model": "CPointer", @@ -23706,16 +25502,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "NSVGpaint" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * dst", + "source_text": "NSVGpaint * paint", "components": [ { "model": "CPointer", @@ -23723,9 +25517,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "NSVGpaint" } ] }, @@ -23733,71 +25525,43 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", + "name": "opacity", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride" + "source_text": "float opacity" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride" + "source_text": "float opacity" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvgrast.h", - "line": 1375, + "line": 1272, "column": 1, - "source_line": "void nsvgRasterize(NSVGrasterizer* r," + "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" }, "start": { "filename": "nanosvg/nanosvgrast.h", - "line": 1375, + "line": 1272, "column": 1, - "source_line": "void nsvgRasterize(NSVGrasterizer* r," + "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" }, "end": { "filename": "nanosvg/nanosvgrast.h", - "line": 1468, + "line": 1331, "column": 1, "source_line": "}" }, @@ -23806,108 +25570,350 @@ ], "structs": [ { - "reference": "struct NSVGedge" - }, - { - "reference": "struct NSVGpoint" - }, - { - "reference": "struct NSVGactiveEdge" - }, - { - "reference": "struct NSVGmemPage" - }, - { - "reference": "struct NSVGcachedPaint" + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGgradientStop", + "members": [ + { + "name": "color", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int color" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 116, + "column": 2, + "source_line": " unsigned int color;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "offset", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float offset" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 117, + "column": 2, + "source_line": " float offset;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 115, + "column": 1, + "source_line": "typedef struct NSVGgradientStop {" + } }, { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": "NSVGrasterizer", + "name": "NSVGgradient", "members": [ { - "name": "px", + "name": "xform", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float xform[6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 121, + "column": 2, + "source_line": " float xform[6];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "spread", "type": { - "model": "CFloat", + "model": "CChar", "qualifiers": [], - "source_text": "float px" + "source_text": "char spread" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 125, + "filename": "nanosvg/nanosvg.h", + "line": 122, "column": 2, - "source_line": "\tfloat px, py;" + "source_line": " char spread;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "py", + "name": "fx", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float py" + "source_text": "float fx" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 125, + "filename": "nanosvg/nanosvg.h", + "line": 123, "column": 2, - "source_line": "\tfloat px, py;" + "source_line": " float fx, fy;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "tessTol", + "name": "fy", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float tessTol" + "source_text": "float fy" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 127, + "filename": "nanosvg/nanosvg.h", + "line": 123, "column": 2, - "source_line": "\tfloat tessTol;" + "source_line": " float fx, fy;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "distTol", + "name": "nstops", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float distTol" + "source_text": "int nstops" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 128, + "filename": "nanosvg/nanosvg.h", + "line": 124, + "column": 2, + "source_line": " int nstops;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stops", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGgradientStop stops[1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "NSVGgradientStop" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 125, "column": 2, - "source_line": "\tfloat distTol;" + "source_line": " NSVGgradientStop stops[1];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 120, + "column": 1, + "source_line": "typedef struct NSVGgradient {" + } + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaint", + "members": [ + { + "name": "type", + "type": { + "model": "CSignedChar", + "qualifiers": [], + "source_text": "signed char type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 129, + "column": 2, + "source_line": " signed char type;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "edges", + "name": null, + "type": { + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "color", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int color" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 131, + "column": 3, + "source_line": " unsigned int color;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "gradient", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGgradient * gradient", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "NSVGgradient", + "name": "NSVGgradient", + "type": null, + "source_location": null, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 132, + "column": 3, + "source_line": " NSVGgradient* gradient;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 130, + "column": 2, + "source_line": " union {" + } + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 130, + "column": 2, + "source_line": " union {" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 128, + "column": 1, + "source_line": "typedef struct NSVGpaint {" + } + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGpath", + "members": [ + { + "name": "pts", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGedge * edges", + "source_text": "float * pts", "components": [ { "model": "CPointer", @@ -23915,7 +25921,9 @@ "source_text": "" }, { - "reference": "NSVGedge" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -23923,58 +25931,93 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 130, + "filename": "nanosvg/nanosvg.h", + "line": 138, "column": 2, - "source_line": "\tNSVGedge* edges;" + "source_line": " float* pts;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "nedges", + "name": "npts", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int nedges" + "source_text": "int npts" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 131, + "filename": "nanosvg/nanosvg.h", + "line": 139, "column": 2, - "source_line": "\tint nedges;" + "source_line": " int npts;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "cedges", + "name": "closed", "type": { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int cedges" + "source_text": "char closed" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 132, + "filename": "nanosvg/nanosvg.h", + "line": 140, "column": 2, - "source_line": "\tint cedges;" + "source_line": " char closed;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "points", + "name": "bounds", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGpoint * points", + "source_text": "float bounds[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 141, + "column": 2, + "source_line": " float bounds[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct NSVGpath * next", "components": [ { "model": "CPointer", @@ -23982,7 +26025,7 @@ "source_text": "" }, { - "reference": "NSVGpoint" + "reference": "struct NSVGpath" } ] }, @@ -23990,66 +26033,176 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 134, + "filename": "nanosvg/nanosvg.h", + "line": 142, + "column": 2, + "source_line": " struct NSVGpath* next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 136, + "column": 1, + "source_line": "typedef struct NSVGpath" + } + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGshape", + "members": [ + { + "name": "id", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char id[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 147, "column": 2, - "source_line": "\tNSVGpoint* points;" + "source_line": " char id[64];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "npoints", + "name": "fill", "type": { - "model": "CInt", + "reference": "NSVGpaint" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 148, + "column": 2, + "source_line": " NSVGpaint fill;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stroke", + "type": { + "reference": "NSVGpaint" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 149, + "column": 2, + "source_line": " NSVGpaint stroke;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "opacity", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "int npoints" + "source_text": "float opacity" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 135, + "filename": "nanosvg/nanosvg.h", + "line": 150, "column": 2, - "source_line": "\tint npoints;" + "source_line": " float opacity;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "cpoints", + "name": "strokeWidth", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int cpoints" + "source_text": "float strokeWidth" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 136, + "filename": "nanosvg/nanosvg.h", + "line": 151, + "column": 2, + "source_line": " float strokeWidth;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeDashOffset", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float strokeDashOffset" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 152, "column": 2, - "source_line": "\tint cpoints;" + "source_line": " float strokeDashOffset;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "points2", + "name": "strokeDashArray", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGpoint * points2", + "source_text": "float strokeDashArray[8]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "8", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "NSVGpoint" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -24057,66 +26210,167 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 138, + "filename": "nanosvg/nanosvg.h", + "line": 153, "column": 2, - "source_line": "\tNSVGpoint* points2;" + "source_line": " float strokeDashArray[8];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "npoints2", + "name": "strokeDashCount", "type": { - "model": "CInt", + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeDashCount" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 154, + "column": 2, + "source_line": " char strokeDashCount;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeLineJoin", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeLineJoin" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 155, + "column": 2, + "source_line": " char strokeLineJoin;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "strokeLineCap", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char strokeLineCap" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 156, + "column": 2, + "source_line": " char strokeLineCap;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "miterLimit", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float miterLimit" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 157, + "column": 2, + "source_line": " float miterLimit;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fillRule", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char fillRule" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 158, + "column": 2, + "source_line": " char fillRule;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "paintOrder", + "type": { + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int npoints2" + "source_text": "unsigned char paintOrder" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 139, - "column": 2, - "source_line": "\tint npoints2;" + "filename": "nanosvg/nanosvg.h", + "line": 159, + "column": 5, + "source_line": " unsigned char paintOrder;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "cpoints2", + "name": "flags", "type": { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int cpoints2" + "source_text": "unsigned char flags" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 140, + "filename": "nanosvg/nanosvg.h", + "line": 160, "column": 2, - "source_line": "\tint cpoints2;" + "source_line": " unsigned char flags;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "freelist", + "name": "bounds", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGactiveEdge * freelist", + "source_text": "float bounds[4]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "NSVGactiveEdge" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -24124,28 +26378,34 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 142, + "filename": "nanosvg/nanosvg.h", + "line": 161, "column": 2, - "source_line": "\tNSVGactiveEdge* freelist;" + "source_line": " float bounds[4];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "pages", + "name": "fillGradient", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGmemPage * pages", + "source_text": "char fillGradient[64]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "NSVGmemPage" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, @@ -24153,28 +26413,34 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 143, + "filename": "nanosvg/nanosvg.h", + "line": 162, "column": 2, - "source_line": "\tNSVGmemPage* pages;" + "source_line": " char fillGradient[64];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "curpage", + "name": "strokeGradient", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGmemPage * curpage", + "source_text": "char strokeGradient[64]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "NSVGmemPage" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, @@ -24182,30 +26448,34 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 144, + "filename": "nanosvg/nanosvg.h", + "line": 163, "column": 2, - "source_line": "\tNSVGmemPage* curpage;" + "source_line": " char strokeGradient[64];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "scanline", + "name": "xform", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * scanline", + "source_text": "float xform[6]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CUnsignedChar", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "float" } ] }, @@ -24213,39 +26483,49 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 146, + "filename": "nanosvg/nanosvg.h", + "line": 164, "column": 2, - "source_line": "\tunsigned char* scanline;" + "source_line": " float xform[6];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "cscanline", + "name": "paths", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int cscanline" + "source_text": "NSVGpath * paths", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 147, + "filename": "nanosvg/nanosvg.h", + "line": 165, "column": 2, - "source_line": "\tint cscanline;" + "source_line": " NSVGpath* paths;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "bitmap", + "name": "next", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * bitmap", + "source_text": "struct NSVGshape * next", "components": [ { "model": "CPointer", @@ -24253,9 +26533,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "struct NSVGshape" } ] }, @@ -24263,29 +26541,45 @@ "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 149, + "filename": "nanosvg/nanosvg.h", + "line": 166, "column": 2, - "source_line": "\tunsigned char* bitmap;" + "source_line": " struct NSVGshape* next;" }, "callback_policy": null, "declaration_locations": [] - }, + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 145, + "column": 1, + "source_line": "typedef struct NSVGshape" + } + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "NSVGimage", + "members": [ { "name": "width", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int width" + "source_text": "float width" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 150, + "filename": "nanosvg/nanosvg.h", + "line": 171, "column": 2, - "source_line": "\tint width, height, stride;" + "source_line": " float width;" }, "callback_policy": null, "declaration_locations": [] @@ -24293,37 +26587,47 @@ { "name": "height", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int height" + "source_text": "float height" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 150, + "filename": "nanosvg/nanosvg.h", + "line": 172, "column": 2, - "source_line": "\tint width, height, stride;" + "source_line": " float height;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "stride", + "name": "shapes", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int stride" + "source_text": "NSVGshape * shapes", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGshape" + } + ] }, "storage": [], "initializer": null, "bit_width": null, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 150, + "filename": "nanosvg/nanosvg.h", + "line": 173, "column": 2, - "source_line": "\tint width, height, stride;" + "source_line": " NSVGshape* shapes;" }, "callback_policy": null, "declaration_locations": [] @@ -24332,15 +26636,320 @@ "anonymous_id": null, "is_incomplete": false, "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 123, + "filename": "nanosvg/nanosvg.h", + "line": 169, "column": 1, - "source_line": "struct NSVGrasterizer" + "source_line": "typedef struct NSVGimage" } } ], "unions": [], "enums": [ + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaintType", + "constants": [ + { + "name": "NSVG_PAINT_UNDEF", + "value": "-1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_NONE", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_COLOR", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_LINEAR_GRADIENT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "name": "NSVG_PAINT_RADIAL_GRADIENT", + "value": "3", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGspreadType", + "constants": [ + { + "name": "NSVG_SPREAD_PAD", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "name": "NSVG_SPREAD_REFLECT", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "name": "NSVG_SPREAD_REPEAT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGlineJoin", + "constants": [ + { + "name": "NSVG_JOIN_MITER", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "name": "NSVG_JOIN_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "name": "NSVG_JOIN_BEVEL", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGlineCap", + "constants": [ + { + "name": "NSVG_CAP_BUTT", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "name": "NSVG_CAP_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "name": "NSVG_CAP_SQUARE", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGfillRule", + "constants": [ + { + "name": "NSVG_FILLRULE_NONZERO", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + { + "name": "NSVG_FILLRULE_EVENODD", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGflags", + "constants": [ + { + "name": "NSVG_FLAGS_VISIBLE", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": "NSVGpaintOrder", + "constants": [ + { + "name": "NSVG_PAINT_FILL", + "value": "0x00", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + { + "name": "NSVG_PAINT_MARKERS", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + { + "name": "NSVG_PAINT_STROKE", + "value": "0x02", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + } + ], + "anonymous_id": null, + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, { "model": "CEnum", "qualifiers": [], @@ -24389,315 +26998,495 @@ ], "typedefs": [ { - "reference": "NSVGedge" + "reference": "NSVGgradientStop" }, { - "reference": "NSVGpoint" + "reference": "NSVGgradient" }, { - "reference": "NSVGactiveEdge" + "reference": "NSVGpaint" }, { - "reference": "NSVGmemPage" + "reference": "NSVGpath" }, { - "reference": "NSVGcachedPaint" + "reference": "NSVGshape" + }, + { + "reference": "NSVGimage" } ], "variables": [], - "macros": [ - { - "name": "NANOSVGRAST_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 26, - "column": 1, - "source_line": "#define NANOSVGRAST_H" + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "nsvgParseFromFile": { + "name": "nsvgParseFromFile", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" } - }, + ] + }, + "parameters": [ { - "name": "NSVG__SUBSAMPLES", - "value": "5", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 83, - "column": 1, - "source_line": "#define NSVG__SUBSAMPLES\t5" - } + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "NSVG__FIXSHIFT", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 84, - "column": 1, - "source_line": "#define NSVG__FIXSHIFT\t\t10" - } + "name": "units", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "NSVG__FIX", - "value": "(1 << NSVG__FIXSHIFT)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 85, - "column": 1, - "source_line": "#define NSVG__FIX\t\t\t(1 << NSVG__FIXSHIFT)" + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3200, + "column": 1, + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3200, + "column": 1, + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3227, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "nanosvg/nanosvg.h", + "line": 177, + "column": 1, + "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi);" + } + ] + }, + "nsvgParse": { + "name": "nsvgParse", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" } - }, + ] + }, + "parameters": [ { - "name": "NSVG__FIXMASK", - "value": "(NSVG__FIX-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 86, - "column": 1, - "source_line": "#define NSVG__FIXMASK\t\t(NSVG__FIX-1)" - } + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char * input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char * input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "NSVG__MEMPAGE_SIZE", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 87, - "column": 1, - "source_line": "#define NSVG__MEMPAGE_SIZE\t1024" - } + "name": "units", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * units", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "NSVG_PI", - "value": "(3.14159265358979323846264338327f)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 453, - "column": 1, - "source_line": "#define NSVG_PI (3.14159265358979323846264338327f)" - } + "name": "dpi", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float dpi" + }, + "source_location": null, + "callback_policy": null } ], - "includes": [ - { - "target": "nanosvg.h", - "kind": "local", - "resolved_path": "nanosvg/nanosvg.h", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 28, - "column": 1, - "source_line": "#include \"nanosvg.h\"" - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 79, - "column": 1, - "source_line": "#include " - } - }, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3173, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3173, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3198, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 80, - "column": 1, - "source_line": "#include " + "filename": "nanosvg/nanosvg.h", + "line": 181, + "column": 1, + "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi);" + } + ] + }, + "nsvgDuplicatePath": { + "name": "nsvgDuplicatePath", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" } - }, + ] + }, + "parameters": [ { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 81, - "column": 1, - "source_line": "#include " - } + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath * p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGpath * p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGpath" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "NANOSVGRAST_H", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 25, - "column": 1, - "source_line": "#ifndef NANOSVGRAST_H" - } - }, - { - "directive": "ifndef", - "argument": "NANOSVGRAST_CPLUSPLUS", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 30, - "column": 1, - "source_line": "#ifndef NANOSVGRAST_CPLUSPLUS" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 31, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 33, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 34, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "NANOSVGRAST_CPLUSPLUS", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 71, - "column": 1, - "source_line": "#ifndef NANOSVGRAST_CPLUSPLUS" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 72, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 74, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 75, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "NANOSVGRAST_IMPLEMENTATION", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 77, - "column": 1, - "source_line": "#ifdef NANOSVGRAST_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "NSVG_PI", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 452, - "column": 1, - "source_line": "#ifndef NSVG_PI" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 454, - "column": 1, - "source_line": "#endif" - } - }, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3229, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3229, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3257, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1470, - "column": 1, - "source_line": "#endif // NANOSVGRAST_IMPLEMENTATION" - } - }, + "filename": "nanosvg/nanosvg.h", + "line": 184, + "column": 1, + "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p);" + } + ] + }, + "nsvgDelete": { + "name": "nsvgDelete", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1472, - "column": 1, - "source_line": "#endif // NANOSVGRAST_H" - } + "name": "image", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "NSVGimage * image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "NSVGimage" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "macro_dependencies": [], - "diagnostics": [ + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 3259, + "column": 1, + "source_line": "void nsvgDelete(NSVGimage* image)" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 3259, + "column": 1, + "source_line": "void nsvgDelete(NSVGimage* image)" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 3273, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 32, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null + "filename": "nanosvg/nanosvg.h", + "line": 187, + "column": 1, + "source_line": "void nsvgDelete(NSVGimage* image);" } ] - } - }, - "functions": { + }, "nsvg__isspace": { "name": "nsvg__isspace", "result_type": { @@ -24800,6 +27589,142 @@ }, "declaration_locations": [] }, + "nsvg__minf": { + "name": "nsvg__minf", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 238, + "column": 1, + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 238, + "column": 1, + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 238, + "column": 74, + "source_line": "static inline float nsvg__minf(float a, float b) { return a < b ? a : b; }" + }, + "declaration_locations": [] + }, + "nsvg__maxf": { + "name": "nsvg__maxf", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 239, + "column": 1, + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" + }, + "start": { + "filename": "nanosvg/nanosvg.h", + "line": 239, + "column": 1, + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" + }, + "end": { + "filename": "nanosvg/nanosvg.h", + "line": 239, + "column": 74, + "source_line": "static inline float nsvg__maxf(float a, float b) { return a > b ? a : b; }" + }, + "declaration_locations": [] + }, "nsvg__parseContent": { "name": "nsvg__parseContent", "result_type": { @@ -38518,12 +41443,12 @@ }, "declaration_locations": [] }, - "nsvgParse": { - "name": "nsvgParse", + "nsvgCreateRasterizer": { + "name": "nsvgCreateRasterizer", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGimage", + "source_text": "NSVGrasterizer", "components": [ { "model": "CPointer", @@ -38531,303 +41456,57 @@ "source_text": "" }, { - "reference": "NSVGimage" + "reference": "NSVGrasterizer" } ] }, - "parameters": [ - { - "name": "input", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "units", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dpi", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "source_location": null, - "callback_policy": null - } - ], + "parameters": [], "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3173, + "filename": "nanosvg/nanosvgrast.h", + "line": 153, "column": 1, - "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" }, "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3173, + "filename": "nanosvg/nanosvgrast.h", + "line": 153, "column": 1, - "source_line": "NSVGimage* nsvgParse(char* input, const char* units, float dpi)" + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" }, "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3198, + "filename": "nanosvg/nanosvgrast.h", + "line": 167, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - "nsvgParseFromFile": { - "name": "nsvgParseFromFile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGimage" - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "units", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * units", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "declaration_locations": [ { - "name": "dpi", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dpi" - }, - "source_location": null, - "callback_policy": null + "filename": "nanosvg/nanosvgrast.h", + "line": 52, + "column": 1, + "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void);" } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3200, - "column": 1, - "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3200, - "column": 1, - "source_line": "NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3227, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + ] }, - "nsvgDuplicatePath": { - "name": "nsvgDuplicatePath", + "nsvgRasterize": { + "name": "nsvgRasterize", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "NSVGpath", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGpath" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "r", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGpath * p", + "source_text": "NSVGrasterizer * r", "components": [ { "model": "CPointer", @@ -38835,14 +41514,14 @@ "source_text": "" }, { - "reference": "NSVGpath" + "reference": "NSVGrasterizer" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGpath * p", + "source_text": "NSVGrasterizer * r", "components": [ { "model": "CPointer", @@ -38850,47 +41529,13 @@ "source_text": "" }, { - "reference": "NSVGpath" + "reference": "NSVGrasterizer" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3229, - "column": 1, - "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3229, - "column": 1, - "source_line": "NSVGpath* nsvgDuplicatePath(NSVGpath* p)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3257, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "nsvgDelete": { - "name": "nsvgDelete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { "name": "image", "type": { @@ -38925,51 +41570,137 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 3259, - "column": 1, - "source_line": "void nsvgDelete(NSVGimage* image)" - }, - "start": { - "filename": "nanosvg/nanosvg.h", - "line": 3259, - "column": 1, - "source_line": "void nsvgDelete(NSVGimage* image)" - }, - "end": { - "filename": "nanosvg/nanosvg.h", - "line": 3273, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "nsvgCreateRasterizer": { - "name": "nsvgCreateRasterizer", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer", - "components": [ - { - "model": "CPointer", + }, + { + "name": "tx", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float tx" }, - { - "reference": "NSVGrasterizer" - } - ] - }, - "parameters": [], + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float tx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ty", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float ty" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dst", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * dst", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char * dst", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [], "specifiers": [], "is_variadic": false, @@ -38977,23 +41708,30 @@ "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvgrast.h", - "line": 153, + "line": 1375, "column": 1, - "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" + "source_line": "void nsvgRasterize(NSVGrasterizer* r," }, "start": { "filename": "nanosvg/nanosvgrast.h", - "line": 153, + "line": 1375, "column": 1, - "source_line": "NSVGrasterizer* nsvgCreateRasterizer(void)" + "source_line": "void nsvgRasterize(NSVGrasterizer* r," }, "end": { "filename": "nanosvg/nanosvgrast.h", - "line": 167, + "line": 1468, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvgrast.h", + "line": 63, + "column": 1, + "source_line": "void nsvgRasterize(NSVGrasterizer* r," + } + ] }, "nsvgDeleteRasterizer": { "name": "nsvgDeleteRasterizer", @@ -39062,7 +41800,14 @@ "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "nanosvg/nanosvgrast.h", + "line": 68, + "column": 1, + "source_line": "void nsvgDeleteRasterizer(NSVGrasterizer*);" + } + ] }, "nsvg__nextPage": { "name": "nsvg__nextPage", @@ -44420,163 +47165,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGcachedPaint * cache", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGcachedPaint" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGcachedPaint * cache", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGcachedPaint" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "paint", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpaint * paint", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGpaint" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGpaint * paint", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGpaint" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "opacity", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float opacity" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float opacity" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1272, - "column": 1, - "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" - }, - "start": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1272, - "column": 1, - "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" - }, - "end": { - "filename": "nanosvg/nanosvgrast.h", - "line": 1331, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "nsvgRasterize": { - "name": "nsvgRasterize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "r", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGrasterizer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGrasterizer * r", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "NSVGrasterizer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "image", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "NSVGimage * image", + "source_text": "NSVGcachedPaint * cache", "components": [ { "model": "CPointer", @@ -44584,14 +47173,14 @@ "source_text": "" }, { - "reference": "NSVGimage" + "reference": "NSVGcachedPaint" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "NSVGimage * image", + "source_text": "NSVGcachedPaint * cache", "components": [ { "model": "CPointer", @@ -44599,7 +47188,7 @@ "source_text": "" }, { - "reference": "NSVGimage" + "reference": "NSVGcachedPaint" } ] }, @@ -44607,56 +47196,11 @@ "callback_policy": null }, { - "name": "tx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ty", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ty" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ty" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dst", + "name": "paint", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * dst", + "source_text": "NSVGpaint * paint", "components": [ { "model": "CPointer", @@ -44664,16 +47208,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "NSVGpaint" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char * dst", + "source_text": "NSVGpaint * paint", "components": [ { "model": "CPointer", @@ -44681,9 +47223,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "NSVGpaint" } ] }, @@ -44691,71 +47231,43 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", + "name": "opacity", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride" + "source_text": "float opacity" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride" + "source_text": "float opacity" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "nanosvg/nanosvgrast.h", - "line": 1375, + "line": 1272, "column": 1, - "source_line": "void nsvgRasterize(NSVGrasterizer* r," + "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" }, "start": { "filename": "nanosvg/nanosvgrast.h", - "line": 1375, + "line": 1272, "column": 1, - "source_line": "void nsvgRasterize(NSVGrasterizer* r," + "source_line": "static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opacity)" }, "end": { "filename": "nanosvg/nanosvgrast.h", - "line": 1468, + "line": 1331, "column": 1, "source_line": "}" }, @@ -44763,51 +47275,57 @@ } }, "structs": { - "NSVGcoordinate": { - "reference": "struct NSVGcoordinate" + "NSVGgradientStop": { + "reference": "struct NSVGgradientStop" }, - "NSVGlinearData": { - "reference": "struct NSVGlinearData" + "NSVGgradient": { + "reference": "struct NSVGgradient" }, - "NSVGradialData": { - "reference": "struct NSVGradialData" + "NSVGpaint": { + "reference": "struct NSVGpaint" }, - "NSVGgradientData": { - "reference": "struct NSVGgradientData" + "NSVGpath": { + "reference": "struct NSVGpath" }, - "NSVGattrib": { - "reference": "struct NSVGattrib" + "NSVGshape": { + "reference": "struct NSVGshape" }, - "NSVGstyleDeclaration": { - "reference": "struct NSVGstyleDeclaration" + "NSVGimage": { + "reference": "struct NSVGimage" }, - "NSVGparser": { - "reference": "struct NSVGparser" + "NSVGlinearData": { + "reference": "struct NSVGlinearData" + }, + "NSVGradialData": { + "reference": "struct NSVGradialData" }, "NSVGNamedColor": { "reference": "struct NSVGNamedColor" + } + }, + "unions": {}, + "enums": { + "NSVGpaintType": { + "reference": "enum NSVGpaintType" }, - "NSVGedge": { - "reference": "struct NSVGedge" + "NSVGspreadType": { + "reference": "enum NSVGspreadType" }, - "NSVGpoint": { - "reference": "struct NSVGpoint" + "NSVGlineJoin": { + "reference": "enum NSVGlineJoin" }, - "NSVGactiveEdge": { - "reference": "struct NSVGactiveEdge" + "NSVGlineCap": { + "reference": "enum NSVGlineCap" }, - "NSVGmemPage": { - "reference": "struct NSVGmemPage" + "NSVGfillRule": { + "reference": "enum NSVGfillRule" }, - "NSVGcachedPaint": { - "reference": "struct NSVGcachedPaint" + "NSVGflags": { + "reference": "enum NSVGflags" + }, + "NSVGpaintOrder": { + "reference": "enum NSVGpaintOrder" }, - "NSVGrasterizer": { - "reference": "struct NSVGrasterizer" - } - }, - "unions": {}, - "enums": { "NSVGgradientUnits": { "reference": "enum NSVGgradientUnits" }, @@ -44819,44 +47337,32 @@ } }, "typedefs": { - "NSVGcoordinate": { - "reference": "NSVGcoordinate" + "NSVGgradientStop": { + "reference": "NSVGgradientStop" }, - "NSVGlinearData": { - "reference": "NSVGlinearData" + "NSVGgradient": { + "reference": "NSVGgradient" }, - "NSVGradialData": { - "reference": "NSVGradialData" + "NSVGpaint": { + "reference": "NSVGpaint" }, - "NSVGgradientData": { - "reference": "NSVGgradientData" + "NSVGpath": { + "reference": "NSVGpath" }, - "NSVGattrib": { - "reference": "NSVGattrib" + "NSVGshape": { + "reference": "NSVGshape" }, - "NSVGstyleDeclaration": { - "reference": "NSVGstyleDeclaration" + "NSVGimage": { + "reference": "NSVGimage" + }, + "NSVGlinearData": { + "reference": "NSVGlinearData" }, - "NSVGparser": { - "reference": "NSVGparser" + "NSVGradialData": { + "reference": "NSVGradialData" }, "NSVGNamedColor": { "reference": "NSVGNamedColor" - }, - "NSVGedge": { - "reference": "NSVGedge" - }, - "NSVGpoint": { - "reference": "NSVGpoint" - }, - "NSVGactiveEdge": { - "reference": "NSVGactiveEdge" - }, - "NSVGmemPage": { - "reference": "NSVGmemPage" - }, - "NSVGcachedPaint": { - "reference": "NSVGcachedPaint" } }, "variables": { @@ -44883,7 +47389,7 @@ }, "storage": [], "initializer": { - "source_text": "{\n\n\t{ \"red\", NSVG_RGB(255, 0, 0) },\n\t{ \"green\", NSVG_RGB( 0, 128, 0) },\n\t{ \"blue\", NSVG_RGB( 0, 0, 255) },\n\t{ \"yellow\", NSVG_RGB(255, 255, 0) },\n\t{ \"cyan\", NSVG_RGB( 0, 255, 255) },\n\t{ \"magenta\", NSVG_RGB(255, 0, 255) },\n\t{ \"black\", NSVG_RGB( 0, 0, 0) },\n\t{ \"grey\", NSVG_RGB(128, 128, 128) },\n\t{ \"gray\", NSVG_RGB(128, 128, 128) },\n\t{ \"white\", NSVG_RGB(255, 255, 255) },\n\n \n\t{ \"aliceblue\", NSVG_RGB(240, 248, 255) },\n\t{ \"antiquewhite\", NSVG_RGB(250, 235, 215) },\n\t{ \"aqua\", NSVG_RGB( 0, 255, 255) },\n\t{ \"aquamarine\", NSVG_RGB(127, 255, 212) },\n\t{ \"azure\", NSVG_RGB(240, 255, 255) },\n\t{ \"beige\", NSVG_RGB(245, 245, 220) },\n\t{ \"bisque\", NSVG_RGB(255, 228, 196) },\n\t{ \"blanchedalmond\", NSVG_RGB(255, 235, 205) },\n\t{ \"blueviolet\", NSVG_RGB(138, 43, 226) },\n\t{ \"brown\", NSVG_RGB(165, 42, 42) },\n\t{ \"burlywood\", NSVG_RGB(222, 184, 135) },\n\t{ \"cadetblue\", NSVG_RGB( 95, 158, 160) },\n\t{ \"chartreuse\", NSVG_RGB(127, 255, 0) },\n\t{ \"chocolate\", NSVG_RGB(210, 105, 30) },\n\t{ \"coral\", NSVG_RGB(255, 127, 80) },\n\t{ \"cornflowerblue\", NSVG_RGB(100, 149, 237) },\n\t{ \"cornsilk\", NSVG_RGB(255, 248, 220) },\n\t{ \"crimson\", NSVG_RGB(220, 20, 60) },\n\t{ \"darkblue\", NSVG_RGB( 0, 0, 139) },\n\t{ \"darkcyan\", NSVG_RGB( 0, 139, 139) },\n\t{ \"darkgoldenrod\", NSVG_RGB(184, 134, 11) },\n\t{ \"darkgray\", NSVG_RGB(169, 169, 169) },\n\t{ \"darkgreen\", NSVG_RGB( 0, 100, 0) },\n\t{ \"darkgrey\", NSVG_RGB(169, 169, 169) },\n\t{ \"darkkhaki\", NSVG_RGB(189, 183, 107) },\n\t{ \"darkmagenta\", NSVG_RGB(139, 0, 139) },\n\t{ \"darkolivegreen\", NSVG_RGB( 85, 107, 47) },\n\t{ \"darkorange\", NSVG_RGB(255, 140, 0) },\n\t{ \"darkorchid\", NSVG_RGB(153, 50, 204) },\n\t{ \"darkred\", NSVG_RGB(139, 0, 0) },\n\t{ \"darksalmon\", NSVG_RGB(233, 150, 122) },\n\t{ \"darkseagreen\", NSVG_RGB(143, 188, 143) },\n\t{ \"darkslateblue\", NSVG_RGB( 72, 61, 139) },\n\t{ \"darkslategray\", NSVG_RGB( 47, 79, 79) },\n\t{ \"darkslategrey\", NSVG_RGB( 47, 79, 79) },\n\t{ \"darkturquoise\", NSVG_RGB( 0, 206, 209) },\n\t{ \"darkviolet\", NSVG_RGB(148, 0, 211) },\n\t{ \"deeppink\", NSVG_RGB(255, 20, 147) },\n\t{ \"deepskyblue\", NSVG_RGB( 0, 191, 255) },\n\t{ \"dimgray\", NSVG_RGB(105, 105, 105) },\n\t{ \"dimgrey\", NSVG_RGB(105, 105, 105) },\n\t{ \"dodgerblue\", NSVG_RGB( 30, 144, 255) },\n\t{ \"firebrick\", NSVG_RGB(178, 34, 34) },\n\t{ \"floralwhite\", NSVG_RGB(255, 250, 240) },\n\t{ \"forestgreen\", NSVG_RGB( 34, 139, 34) },\n\t{ \"fuchsia\", NSVG_RGB(255, 0, 255) },\n\t{ \"gainsboro\", NSVG_RGB(220, 220, 220) },\n\t{ \"ghostwhite\", NSVG_RGB(248, 248, 255) },\n\t{ \"gold\", NSVG_RGB(255, 215, 0) },\n\t{ \"goldenrod\", NSVG_RGB(218, 165, 32) },\n\t{ \"greenyellow\", NSVG_RGB(173, 255, 47) },\n\t{ \"honeydew\", NSVG_RGB(240, 255, 240) },\n\t{ \"hotpink\", NSVG_RGB(255, 105, 180) },\n\t{ \"indianred\", NSVG_RGB(205, 92, 92) },\n\t{ \"indigo\", NSVG_RGB( 75, 0, 130) },\n\t{ \"ivory\", NSVG_RGB(255, 255, 240) },\n\t{ \"khaki\", NSVG_RGB(240, 230, 140) },\n\t{ \"lavender\", NSVG_RGB(230, 230, 250) },\n\t{ \"lavenderblush\", NSVG_RGB(255, 240, 245) },\n\t{ \"lawngreen\", NSVG_RGB(124, 252, 0) },\n\t{ \"lemonchiffon\", NSVG_RGB(255, 250, 205) },\n\t{ \"lightblue\", NSVG_RGB(173, 216, 230) },\n\t{ \"lightcoral\", NSVG_RGB(240, 128, 128) },\n\t{ \"lightcyan\", NSVG_RGB(224, 255, 255) },\n\t{ \"lightgoldenrodyellow\", NSVG_RGB(250, 250, 210) },\n\t{ \"lightgray\", NSVG_RGB(211, 211, 211) },\n\t{ \"lightgreen\", NSVG_RGB(144, 238, 144) },\n\t{ \"lightgrey\", NSVG_RGB(211, 211, 211) },\n\t{ \"lightpink\", NSVG_RGB(255, 182, 193) },\n\t{ \"lightsalmon\", NSVG_RGB(255, 160, 122) },\n\t{ \"lightseagreen\", NSVG_RGB( 32, 178, 170) },\n\t{ \"lightskyblue\", NSVG_RGB(135, 206, 250) },\n\t{ \"lightslategray\", NSVG_RGB(119, 136, 153) },\n\t{ \"lightslategrey\", NSVG_RGB(119, 136, 153) },\n\t{ \"lightsteelblue\", NSVG_RGB(176, 196, 222) },\n\t{ \"lightyellow\", NSVG_RGB(255, 255, 224) },\n\t{ \"lime\", NSVG_RGB( 0, 255, 0) },\n\t{ \"limegreen\", NSVG_RGB( 50, 205, 50) },\n\t{ \"linen\", NSVG_RGB(250, 240, 230) },\n\t{ \"maroon\", NSVG_RGB(128, 0, 0) },\n\t{ \"mediumaquamarine\", NSVG_RGB(102, 205, 170) },\n\t{ \"mediumblue\", NSVG_RGB( 0, 0, 205) },\n\t{ \"mediumorchid\", NSVG_RGB(186, 85, 211) },\n\t{ \"mediumpurple\", NSVG_RGB(147, 112, 219) },\n\t{ \"mediumseagreen\", NSVG_RGB( 60, 179, 113) },\n\t{ \"mediumslateblue\", NSVG_RGB(123, 104, 238) },\n\t{ \"mediumspringgreen\", NSVG_RGB( 0, 250, 154) },\n\t{ \"mediumturquoise\", NSVG_RGB( 72, 209, 204) },\n\t{ \"mediumvioletred\", NSVG_RGB(199, 21, 133) },\n\t{ \"midnightblue\", NSVG_RGB( 25, 25, 112) },\n\t{ \"mintcream\", NSVG_RGB(245, 255, 250) },\n\t{ \"mistyrose\", NSVG_RGB(255, 228, 225) },\n\t{ \"moccasin\", NSVG_RGB(255, 228, 181) },\n\t{ \"navajowhite\", NSVG_RGB(255, 222, 173) },\n\t{ \"navy\", NSVG_RGB( 0, 0, 128) },\n\t{ \"oldlace\", NSVG_RGB(253, 245, 230) },\n\t{ \"olive\", NSVG_RGB(128, 128, 0) },\n\t{ \"olivedrab\", NSVG_RGB(107, 142, 35) },\n\t{ \"orange\", NSVG_RGB(255, 165, 0) },\n\t{ \"orangered\", NSVG_RGB(255, 69, 0) },\n\t{ \"orchid\", NSVG_RGB(218, 112, 214) },\n\t{ \"palegoldenrod\", NSVG_RGB(238, 232, 170) },\n\t{ \"palegreen\", NSVG_RGB(152, 251, 152) },\n\t{ \"paleturquoise\", NSVG_RGB(175, 238, 238) },\n\t{ \"palevioletred\", NSVG_RGB(219, 112, 147) },\n\t{ \"papayawhip\", NSVG_RGB(255, 239, 213) },\n\t{ \"peachpuff\", NSVG_RGB(255, 218, 185) },\n\t{ \"peru\", NSVG_RGB(205, 133, 63) },\n\t{ \"pink\", NSVG_RGB(255, 192, 203) },\n\t{ \"plum\", NSVG_RGB(221, 160, 221) },\n\t{ \"powderblue\", NSVG_RGB(176, 224, 230) },\n\t{ \"purple\", NSVG_RGB(128, 0, 128) },\n\t{ \"rosybrown\", NSVG_RGB(188, 143, 143) },\n\t{ \"royalblue\", NSVG_RGB( 65, 105, 225) },\n\t{ \"saddlebrown\", NSVG_RGB(139, 69, 19) },\n\t{ \"salmon\", NSVG_RGB(250, 128, 114) },\n\t{ \"sandybrown\", NSVG_RGB(244, 164, 96) },\n\t{ \"seagreen\", NSVG_RGB( 46, 139, 87) },\n\t{ \"seashell\", NSVG_RGB(255, 245, 238) },\n\t{ \"sienna\", NSVG_RGB(160, 82, 45) },\n\t{ \"silver\", NSVG_RGB(192, 192, 192) },\n\t{ \"skyblue\", NSVG_RGB(135, 206, 235) },\n\t{ \"slateblue\", NSVG_RGB(106, 90, 205) },\n\t{ \"slategray\", NSVG_RGB(112, 128, 144) },\n\t{ \"slategrey\", NSVG_RGB(112, 128, 144) },\n\t{ \"snow\", NSVG_RGB(255, 250, 250) },\n\t{ \"springgreen\", NSVG_RGB( 0, 255, 127) },\n\t{ \"steelblue\", NSVG_RGB( 70, 130, 180) },\n\t{ \"tan\", NSVG_RGB(210, 180, 140) },\n\t{ \"teal\", NSVG_RGB( 0, 128, 128) },\n\t{ \"thistle\", NSVG_RGB(216, 191, 216) },\n\t{ \"tomato\", NSVG_RGB(255, 99, 71) },\n\t{ \"turquoise\", NSVG_RGB( 64, 224, 208) },\n\t{ \"violet\", NSVG_RGB(238, 130, 238) },\n\t{ \"wheat\", NSVG_RGB(245, 222, 179) },\n\t{ \"whitesmoke\", NSVG_RGB(245, 245, 245) },\n\t{ \"yellowgreen\", NSVG_RGB(154, 205, 50) },\n \n}" + "source_text": "{ { \"red\", (((unsigned int)255) | ((unsigned int)0 << 8) | ((unsigned int)0 << 16)) }, { \"green\", (((unsigned int)0) | ((unsigned int)128 << 8) | ((unsigned int)0 << 16)) }, { \"blue\", (((unsigned int)0) | ((unsigned int)0 << 8) | ((unsigned int)255 << 16)) }, { \"yellow\", (((unsigned int)255) | ((unsigned int)255 << 8) | ((unsigned int)0 << 16)) }, { \"cyan\", (((unsigned int)0) | ((unsigned int)255 << 8) | ((unsigned int)255 << 16)) }, { \"magenta\", (((unsigned int)255) | ((unsigned int)0 << 8) | ((unsigned int)255 << 16)) }, { \"black\", (((unsigned int)0) | ((unsigned int)0 << 8) | ((unsigned int)0 << 16)) }, { \"grey\", (((unsigned int)128) | ((unsigned int)128 << 8) | ((unsigned int)128 << 16)) }, { \"gray\", (((unsigned int)128) | ((unsigned int)128 << 8) | ((unsigned int)128 << 16)) }, { \"white\", (((unsigned int)255) | ((unsigned int)255 << 8) | ((unsigned int)255 << 16)) }, }" }, "bit_width": null, "source_location": { @@ -44896,402 +47402,18 @@ "declaration_locations": [] } }, - "macros": { - "NANOSVG_H": { - "name": "NANOSVG_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 30, - "column": 1, - "source_line": "#define NANOSVG_H" - } - }, - "NSVG_PI": { - "name": "NSVG_PI", - "value": "(3.14159265358979323846264338327f)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 453, - "column": 1, - "source_line": "#define NSVG_PI (3.14159265358979323846264338327f)" - } - }, - "NSVG_KAPPA90": { - "name": "NSVG_KAPPA90", - "value": "(0.5522847493f)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 203, - "column": 1, - "source_line": "#define NSVG_KAPPA90 (0.5522847493f)\t// Length proportional to radius of a cubic bezier handle for 90deg arcs." - } - }, - "NSVG_ALIGN_MIN": { - "name": "NSVG_ALIGN_MIN", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 205, - "column": 1, - "source_line": "#define NSVG_ALIGN_MIN 0" - } - }, - "NSVG_ALIGN_MID": { - "name": "NSVG_ALIGN_MID", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 206, - "column": 1, - "source_line": "#define NSVG_ALIGN_MID 1" - } - }, - "NSVG_ALIGN_MAX": { - "name": "NSVG_ALIGN_MAX", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 207, - "column": 1, - "source_line": "#define NSVG_ALIGN_MAX 2" - } - }, - "NSVG_ALIGN_NONE": { - "name": "NSVG_ALIGN_NONE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 208, - "column": 1, - "source_line": "#define NSVG_ALIGN_NONE 0" - } - }, - "NSVG_ALIGN_MEET": { - "name": "NSVG_ALIGN_MEET", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 209, - "column": 1, - "source_line": "#define NSVG_ALIGN_MEET 1" - } - }, - "NSVG_ALIGN_SLICE": { - "name": "NSVG_ALIGN_SLICE", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 210, - "column": 1, - "source_line": "#define NSVG_ALIGN_SLICE 2" - } - }, - "NSVG_NOTUSED": { - "name": "NSVG_NOTUSED", - "value": "do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 212, - "column": 1, - "source_line": "#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)" - } - }, - "NSVG_RGB": { - "name": "NSVG_RGB", - "value": "(((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 213, - "column": 1, - "source_line": "#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))" - } - }, - "NSVG_INLINE": { - "name": "NSVG_INLINE", - "value": "inline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 224, - "column": 2, - "source_line": "\t#define NSVG_INLINE inline" - } - }, - "NSVG_XML_TAG": { - "name": "NSVG_XML_TAG", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 244, - "column": 1, - "source_line": "#define NSVG_XML_TAG 1" - } - }, - "NSVG_XML_CONTENT": { - "name": "NSVG_XML_CONTENT", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 245, - "column": 1, - "source_line": "#define NSVG_XML_CONTENT 2" - } - }, - "NSVG_XML_MAX_ATTRIBS": { - "name": "NSVG_XML_MAX_ATTRIBS", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 246, - "column": 1, - "source_line": "#define NSVG_XML_MAX_ATTRIBS 256" - } - }, - "NSVG_MAX_ATTR": { - "name": "NSVG_MAX_ATTR", - "value": "128", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 369, - "column": 1, - "source_line": "#define NSVG_MAX_ATTR 128" - } - }, - "NSVG_MAX_DASHES": { - "name": "NSVG_MAX_DASHES", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 376, - "column": 1, - "source_line": "#define NSVG_MAX_DASHES 8" - } - }, - "NSVG_MAX_CLASSES": { - "name": "NSVG_MAX_CLASSES", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 377, - "column": 1, - "source_line": "#define NSVG_MAX_CLASSES 32" - } - }, - "NSVG_EPSILON": { - "name": "NSVG_EPSILON", - "value": "(1e-12)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 570, - "column": 1, - "source_line": "#define NSVG_EPSILON (1e-12)" - } - }, - "NANOSVGRAST_H": { - "name": "NANOSVGRAST_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 26, - "column": 1, - "source_line": "#define NANOSVGRAST_H" - } - }, - "NSVG__SUBSAMPLES": { - "name": "NSVG__SUBSAMPLES", - "value": "5", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 83, - "column": 1, - "source_line": "#define NSVG__SUBSAMPLES\t5" - } - }, - "NSVG__FIXSHIFT": { - "name": "NSVG__FIXSHIFT", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 84, - "column": 1, - "source_line": "#define NSVG__FIXSHIFT\t\t10" - } - }, - "NSVG__FIX": { - "name": "NSVG__FIX", - "value": "(1 << NSVG__FIXSHIFT)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 85, - "column": 1, - "source_line": "#define NSVG__FIX\t\t\t(1 << NSVG__FIXSHIFT)" - } - }, - "NSVG__FIXMASK": { - "name": "NSVG__FIXMASK", - "value": "(NSVG__FIX-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 86, - "column": 1, - "source_line": "#define NSVG__FIXMASK\t\t(NSVG__FIX-1)" - } - }, - "NSVG__MEMPAGE_SIZE": { - "name": "NSVG__MEMPAGE_SIZE", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 87, - "column": 1, - "source_line": "#define NSVG__MEMPAGE_SIZE\t1024" - } - } - }, - "includes": { - "nanosvg/nanosvg.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 197, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvg.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 198, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvg.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 199, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvg.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvg.h", - "line": 200, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvgrast.h:nanosvg.h": { - "target": "nanosvg.h", - "kind": "local", - "resolved_path": "nanosvg/nanosvg.h", - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 28, - "column": 1, - "source_line": "#include \"nanosvg.h\"" - } - }, - "nanosvg/nanosvgrast.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 79, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvgrast.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 80, - "column": 1, - "source_line": "#include " - } - }, - "nanosvg/nanosvgrast.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 81, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "nanosvg/nanosvg.h": [ + "nsvgParseFromFile", + "nsvgParse", + "nsvgDuplicatePath", + "nsvgDelete", "nsvg__isspace", "nsvg__isdigit", + "nsvg__minf", + "nsvg__maxf", "nsvg__parseContent", "nsvg__parseElement", "nsvg__parseXML", @@ -45402,14 +47524,15 @@ "nsvg__viewAlign", "nsvg__scaleGradient", "nsvg__scaleToViewbox", - "nsvg__createGradients", - "nsvgParse", - "nsvgParseFromFile", - "nsvgDuplicatePath", - "nsvgDelete" + "nsvg__createGradients" ], "nanosvg/nanosvgrast.h": [ + "nsvgParseFromFile", + "nsvgParse", + "nsvgDuplicatePath", + "nsvgDelete", "nsvgCreateRasterizer", + "nsvgRasterize", "nsvgDeleteRasterizer", "nsvg__nextPage", "nsvg__resetPool", @@ -45449,11 +47572,210 @@ "nsvg__scanlineSolid", "nsvg__rasterizeSortedEdges", "nsvg__unpremultiplyAlpha", - "nsvg__initPaint", - "nsvgRasterize" + "nsvg__initPaint" ] }, "enum_constants": { + "NSVG_PAINT_UNDEF": { + "name": "NSVG_PAINT_UNDEF", + "value": "-1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + "NSVG_PAINT_NONE": { + "name": "NSVG_PAINT_NONE", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + "NSVG_PAINT_COLOR": { + "name": "NSVG_PAINT_COLOR", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + "NSVG_PAINT_LINEAR_GRADIENT": { + "name": "NSVG_PAINT_LINEAR_GRADIENT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + "NSVG_PAINT_RADIAL_GRADIENT": { + "name": "NSVG_PAINT_RADIAL_GRADIENT", + "value": "3", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + } + }, + "NSVG_SPREAD_PAD": { + "name": "NSVG_SPREAD_PAD", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + "NSVG_SPREAD_REFLECT": { + "name": "NSVG_SPREAD_REFLECT", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + "NSVG_SPREAD_REPEAT": { + "name": "NSVG_SPREAD_REPEAT", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + } + }, + "NSVG_JOIN_MITER": { + "name": "NSVG_JOIN_MITER", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + "NSVG_JOIN_ROUND": { + "name": "NSVG_JOIN_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + "NSVG_JOIN_BEVEL": { + "name": "NSVG_JOIN_BEVEL", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + } + }, + "NSVG_CAP_BUTT": { + "name": "NSVG_CAP_BUTT", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + "NSVG_CAP_ROUND": { + "name": "NSVG_CAP_ROUND", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + "NSVG_CAP_SQUARE": { + "name": "NSVG_CAP_SQUARE", + "value": "2", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + } + }, + "NSVG_FILLRULE_NONZERO": { + "name": "NSVG_FILLRULE_NONZERO", + "value": "0", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + "NSVG_FILLRULE_EVENODD": { + "name": "NSVG_FILLRULE_EVENODD", + "value": "1", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + } + }, + "NSVG_FLAGS_VISIBLE": { + "name": "NSVG_FLAGS_VISIBLE", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + } + }, + "NSVG_PAINT_FILL": { + "name": "NSVG_PAINT_FILL", + "value": "0x00", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + "NSVG_PAINT_MARKERS": { + "name": "NSVG_PAINT_MARKERS", + "value": "0x01", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, + "NSVG_PAINT_STROKE": { + "name": "NSVG_PAINT_STROKE", + "value": "0x02", + "source_location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, + "column": 1, + "source_line": "enum NSVGpaintOrder {" + } + }, "NSVG_USER_SPACE": { "name": "NSVG_USER_SPACE", "value": "0", @@ -45607,22 +47929,11 @@ }, "include_graph": { "nanosvg/nanosvg.h": [], - "nanosvg/nanosvgrast.h": [ - "nanosvg/nanosvg.h" - ] + "nanosvg/nanosvgrast.h": [] }, "system_includes": { - "nanosvg/nanosvg.h": [ - "math.h", - "stdio.h", - "stdlib.h", - "string.h" - ], - "nanosvg/nanosvgrast.h": [ - "math.h", - "stdlib.h", - "string.h" - ] + "nanosvg/nanosvg.h": [], + "nanosvg/nanosvgrast.h": [] }, "unresolved_includes": { "nanosvg/nanosvg.h": [], @@ -45634,82 +47945,173 @@ }, "diagnostics": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NSVG_NOTUSED' is recorded but not expanded.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGgradientStop'.", + "severity": "error", "location": { "filename": "nanosvg/nanosvg.h", - "line": 212, + "line": 115, "column": 1, - "source_line": "#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)" + "source_line": "typedef struct NSVGgradientStop {" }, - "unit_kind": "macro", - "unit_name": "NSVG_NOTUSED" + "unit_kind": "struct", + "unit_name": "NSVGgradientStop" }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NSVG_RGB' is recorded but not expanded.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGgradient'.", + "severity": "error", "location": { "filename": "nanosvg/nanosvg.h", - "line": 213, + "line": 120, "column": 1, - "source_line": "#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))" + "source_line": "typedef struct NSVGgradient {" }, - "unit_kind": "macro", - "unit_name": "NSVG_RGB" + "unit_kind": "struct", + "unit_name": "NSVGgradient" }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGpaint'.", + "severity": "error", "location": { "filename": "nanosvg/nanosvg.h", - "line": 34, + "line": 128, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "typedef struct NSVGpaint {" }, - "unit_kind": "declarator", - "unit_name": null + "unit_kind": "struct", + "unit_name": "NSVGpaint" }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'NSVG_INLINE'; provide preprocessed input to parse it.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGpath'.", + "severity": "error", "location": { "filename": "nanosvg/nanosvg.h", - "line": 238, + "line": 136, "column": 1, - "source_line": "static NSVG_INLINE float nsvg__minf(float a, float b) { return a < b ? a : b; }" + "source_line": "typedef struct NSVGpath" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "NSVG_INLINE" + "unit_kind": "struct", + "unit_name": "NSVGpath" }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'NSVG_INLINE'; provide preprocessed input to parse it.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGshape'.", + "severity": "error", "location": { "filename": "nanosvg/nanosvg.h", - "line": 239, + "line": 145, "column": 1, - "source_line": "static NSVG_INLINE float nsvg__maxf(float a, float b) { return a > b ? a : b; }" + "source_line": "typedef struct NSVGshape" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "NSVG_INLINE" + "unit_kind": "struct", + "unit_name": "NSVGshape" }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'NSVGimage'.", + "severity": "error", "location": { - "filename": "nanosvg/nanosvgrast.h", - "line": 32, + "filename": "nanosvg/nanosvg.h", + "line": 169, + "column": 1, + "source_line": "typedef struct NSVGimage" + }, + "unit_kind": "struct", + "unit_name": "NSVGimage" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGpaintType'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 74, + "column": 1, + "source_line": "enum NSVGpaintType {" + }, + "unit_kind": "enum", + "unit_name": "NSVGpaintType" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGspreadType'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 82, + "column": 1, + "source_line": "enum NSVGspreadType {" + }, + "unit_kind": "enum", + "unit_name": "NSVGspreadType" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGlineJoin'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 88, + "column": 1, + "source_line": "enum NSVGlineJoin {" + }, + "unit_kind": "enum", + "unit_name": "NSVGlineJoin" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGlineCap'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 94, + "column": 1, + "source_line": "enum NSVGlineCap {" + }, + "unit_kind": "enum", + "unit_name": "NSVGlineCap" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGfillRule'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 100, + "column": 1, + "source_line": "enum NSVGfillRule {" + }, + "unit_kind": "enum", + "unit_name": "NSVGfillRule" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGflags'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 105, + "column": 1, + "source_line": "enum NSVGflags {" + }, + "unit_kind": "enum", + "unit_name": "NSVGflags" + }, + { + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for enum tag 'NSVGpaintOrder'.", + "severity": "error", + "location": { + "filename": "nanosvg/nanosvg.h", + "line": 109, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "enum NSVGpaintOrder {" }, - "unit_kind": "declarator", - "unit_name": null + "unit_kind": "enum", + "unit_name": "NSVGpaintOrder" } ] } diff --git a/tests/parser/c/fixtures/stb/stb_c_lexer.json b/tests/parser/c/fixtures/stb/stb_c_lexer.json index 2d7fdc6aa..30e8b24f5 100644 --- a/tests/parser/c/fixtures/stb/stb_c_lexer.json +++ b/tests/parser/c/fixtures/stb/stb_c_lexer.json @@ -3,8 +3,10 @@ "stb/stb_c_lexer.h": { "filename": "stb/stb_c_lexer.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_c_lexer.h" + ], "functions": [ { "name": "stb_c_lexer_init", @@ -175,7 +177,7 @@ "filename": "stb/stb_c_lexer.h", "line": 120, "column": 4, - "source_line": " int string_storage_len;" + "source_line": " int string_storage_len;" }, "callback_policy": null, "declaration_locations": [] @@ -294,7 +296,7 @@ "filename": "stb/stb_c_lexer.h", "line": 129, "column": 4, - "source_line": " long int_number;" + "source_line": " long int_number;" }, "callback_policy": null, "declaration_locations": [] @@ -350,7 +352,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_c_lexer.h:113:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_c_lexer.h", @@ -528,29 +530,92 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 273, + "line": 144, "column": 1, - "source_line": "void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length)" + "source_line": "extern void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length);" }, "start": { "filename": "stb/stb_c_lexer.h", - "line": 273, + "line": 144, + "column": 1, + "source_line": "extern void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stb_c_lexer_get_token", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "lexer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 152, "column": 1, - "source_line": "void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length)" + "source_line": "extern int stb_c_lexer_get_token(stb_lexer *lexer);" }, - "end": { + "start": { "filename": "stb/stb_c_lexer.h", - "line": 280, + "line": 152, "column": 1, - "source_line": "}" + "source_line": "extern int stb_c_lexer_get_token(stb_lexer *lexer);" }, + "end": null, "declaration_locations": [] }, { @@ -701,7 +766,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_c_lexer.h:134:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_c_lexer.h", @@ -739,5641 +804,797 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 283, + "line": 161, "column": 1, - "source_line": "void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc)" + "source_line": "extern void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc);" }, "start": { "filename": "stb/stb_c_lexer.h", - "line": 283, + "line": 161, "column": 1, - "source_line": "void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 300, - "column": 1, - "source_line": "}" + "source_line": "extern void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc);" }, + "end": null, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [ { - "name": "stb__clex_token", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_eof", + "value": "256", + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "token", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int token" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int token" - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_parse_error", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_intlit", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 303, - "column": 1, - "source_line": "static int stb__clex_token(stb_lexer *lexer, int token, char *start, char *end)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 303, - "column": 1, - "source_line": "static int stb__clex_token(stb_lexer *lexer, int token, char *start, char *end)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 310, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__clex_eof", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "name": "CLEX_floatlit", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 313, - "column": 1, - "source_line": "static int stb__clex_eof(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 313, - "column": 1, - "source_line": "static int stb__clex_eof(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 317, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__clex_iswhite", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 319, - "column": 1, - "source_line": "static int stb__clex_iswhite(int x)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 319, - "column": 1, - "source_line": "static int stb__clex_iswhite(int x)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 322, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__strchr", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "name": "CLEX_id", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null }, { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 324, - "column": 1, - "source_line": "static const char *stb__strchr(const char *str, int ch)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 324, - "column": 1, - "source_line": "static const char *stb__strchr(const char *str, int ch)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 330, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__clex_parse_suffixes", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_dqstring", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "tokenid", - "type": { - "model": "CLong", - "qualifiers": [], - "source_text": "long tokenid" - }, - "declared_type": { - "model": "CLong", - "qualifiers": [], - "source_text": "long tokenid" - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_sqstring", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_charlit", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "cur", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *cur", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *cur", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_eq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "suffixes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *suffixes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *suffixes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 333, - "column": 1, - "source_line": "static int stb__clex_parse_suffixes(stb_lexer *lexer, long tokenid, char *start, char *cur, const char *suffixes)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 333, - "column": 1, - "source_line": "static int stb__clex_parse_suffixes(stb_lexer *lexer, long tokenid, char *start, char *cur, const char *suffixes)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 350, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__clex_pow", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ + "name": "CLEX_noteq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, { - "name": "base", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double base" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double base" - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_lesseq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "exponent", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int exponent" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int exponent" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 353, - "column": 1, - "source_line": "static double stb__clex_pow(double base, unsigned int exponent)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 353, - "column": 1, - "source_line": "static double stb__clex_pow(double base, unsigned int exponent)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 362, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__clex_parse_float", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ + "name": "CLEX_greatereq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_andand", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } }, { - "name": "q", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "CLEX_oror", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_shl", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_shr", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_plusplus", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_minusminus", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_pluseq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_minuseq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_muleq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_diveq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_modeq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_andeq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_oreq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_xoreq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_arrow", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_eqarrow", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_shleq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_shreq", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "CLEX_first_unused_token", + "value": null, + "source_location": { + "filename": "stb/stb_c_lexer.h", + "line": 177, + "column": 1, + "source_line": "enum" + } } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 364, - "column": 1, - "source_line": "static double stb__clex_parse_float(char *p, char **q)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 364, - "column": 1, - "source_line": "static double stb__clex_parse_float(char *p, char **q)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 445, + "line": 177, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, + "source_line": "enum" + } + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stb_c_lexer_init": { + "name": "stb_c_lexer_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stb__clex_parse_char", - "result_type": { - "model": "CInt", + "name": "lexer", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stb_lexer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "q", - "type": { - "model": "CComposedType", + { + "reference": "stb_lexer" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stream", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *input_stream", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *input_stream", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 448, - "column": 1, - "source_line": "static int stb__clex_parse_char(char *p, char **q)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 448, - "column": 1, - "source_line": "static int stb__clex_parse_char(char *p, char **q)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 467, - "column": 1, - "source_line": "}" + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stb__clex_parse_string", - "result_type": { - "model": "CInt", + "name": "input_stream_end", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", + "source_text": "const char *input_stream_end", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *input_stream_end", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "string_store", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *string_store", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "type", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int type" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int type" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 469, - "column": 1, - "source_line": "static int stb__clex_parse_string(stb_lexer *lexer, char *p, int type)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 469, - "column": 1, - "source_line": "static int stb__clex_parse_string(stb_lexer *lexer, char *p, int type)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 496, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_c_lexer_get_token", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 498, - "column": 1, - "source_line": "int stb_c_lexer_get_token(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 498, - "column": 1, - "source_line": "int stb_c_lexer_get_token(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 800, - "column": 1, - "source_line": "}" + "source_text": "char" + } + ] }, - "declaration_locations": [] - }, - { - "name": "print_token", - "result_type": { - "model": "CVoid", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", + "source_text": "char *string_store", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 808, - "column": 1, - "source_line": "static void print_token(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 808, - "column": 1, - "source_line": "static void print_token(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "dummy", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "extern" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 858, - "column": 6, - "source_line": "/**/ extern /**/" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 858, - "column": 6, - "source_line": "/**/ extern /**/" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 873, - "column": 1, - "source_line": "}" + "source_text": "char" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "main", - "result_type": { + "name": "store_length", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int store_length" }, - "parameters": [ - { - "name": "argc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "argv", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 875, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 875, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 899, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_c_lexer.h:113:1" - }, - { - "reference": "struct@stb/stb_c_lexer.h:134:1" - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "CLEX_eof", - "value": "256", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_parse_error", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_intlit", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_floatlit", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_id", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_dqstring", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_sqstring", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_charlit", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_eq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_noteq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_lesseq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_greatereq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_andand", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_oror", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_shl", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_shr", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_plusplus", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_minusminus", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_pluseq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_minuseq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_muleq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_diveq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_modeq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_andeq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_oreq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_xoreq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_arrow", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_eqarrow", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_shleq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_shreq", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "CLEX_first_unused_token", - "value": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_c_lexer.h:177:1", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 177, - "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "reference": "stb_lexer" - }, - { - "reference": "stb_lex_location" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb__clex_int", - "name": "stb__clex_int", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "typedef double stb__clex_int" - }, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 221, - "column": 1, - "source_line": "typedef double stb__clex_int;" - }, - "declaration_locations": [] - } - ], - "variables": [], - "macros": [ - { - "name": "STB_C_LEX_C_DECIMAL_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 60, - "column": 1, - "source_line": "#define STB_C_LEX_C_DECIMAL_INTS Y // \"0|[1-9][0-9]*\" CLEX_intlit" - } - }, - { - "name": "STB_C_LEX_C_HEX_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 61, - "column": 1, - "source_line": "#define STB_C_LEX_C_HEX_INTS Y // \"0x[0-9a-fA-F]+\" CLEX_intlit" - } - }, - { - "name": "STB_C_LEX_C_OCTAL_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 62, - "column": 1, - "source_line": "#define STB_C_LEX_C_OCTAL_INTS Y // \"[0-7]+\" CLEX_intlit" - } - }, - { - "name": "STB_C_LEX_C_DECIMAL_FLOATS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 63, - "column": 1, - "source_line": "#define STB_C_LEX_C_DECIMAL_FLOATS Y // \"[0-9]*(.[0-9]*([eE][-+]?[0-9]+)?) CLEX_floatlit" - } - }, - { - "name": "STB_C_LEX_C99_HEX_FLOATS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 64, - "column": 1, - "source_line": "#define STB_C_LEX_C99_HEX_FLOATS N // \"0x{hex}+(.{hex}*)?[pP][-+]?{hex}+ CLEX_floatlit" - } - }, - { - "name": "STB_C_LEX_C_IDENTIFIERS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 65, - "column": 1, - "source_line": "#define STB_C_LEX_C_IDENTIFIERS Y // \"[_a-zA-Z][_a-zA-Z0-9]*\" CLEX_id" - } - }, - { - "name": "STB_C_LEX_C_DQ_STRINGS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 66, - "column": 1, - "source_line": "#define STB_C_LEX_C_DQ_STRINGS Y // double-quote-delimited strings with escapes CLEX_dqstring" - } - }, - { - "name": "STB_C_LEX_C_SQ_STRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 67, - "column": 1, - "source_line": "#define STB_C_LEX_C_SQ_STRINGS N // single-quote-delimited strings with escapes CLEX_ssstring" - } - }, - { - "name": "STB_C_LEX_C_CHARS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 68, - "column": 1, - "source_line": "#define STB_C_LEX_C_CHARS Y // single-quote-delimited character with escape CLEX_charlits" - } - }, - { - "name": "STB_C_LEX_C_COMMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 69, - "column": 1, - "source_line": "#define STB_C_LEX_C_COMMENTS Y // \"/* comment */\"" - } - }, - { - "name": "STB_C_LEX_CPP_COMMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 70, - "column": 1, - "source_line": "#define STB_C_LEX_CPP_COMMENTS Y // \"// comment to end of line\\n\"" - } - }, - { - "name": "STB_C_LEX_C_COMPARISONS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 71, - "column": 1, - "source_line": "#define STB_C_LEX_C_COMPARISONS Y // \"==\" CLEX_eq \"!=\" CLEX_noteq \"<=\" CLEX_lesseq \">=\" CLEX_greatereq" - } - }, - { - "name": "STB_C_LEX_C_LOGICAL", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 72, - "column": 1, - "source_line": "#define STB_C_LEX_C_LOGICAL Y // \"&&\" CLEX_andand \"||\" CLEX_oror" - } - }, - { - "name": "STB_C_LEX_C_SHIFTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 73, - "column": 1, - "source_line": "#define STB_C_LEX_C_SHIFTS Y // \"<<\" CLEX_shl \">>\" CLEX_shr" - } - }, - { - "name": "STB_C_LEX_C_INCREMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 74, - "column": 1, - "source_line": "#define STB_C_LEX_C_INCREMENTS Y // \"++\" CLEX_plusplus \"--\" CLEX_minusminus" - } - }, - { - "name": "STB_C_LEX_C_ARROW", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 75, - "column": 1, - "source_line": "#define STB_C_LEX_C_ARROW Y // \"->\" CLEX_arrow" - } - }, - { - "name": "STB_C_LEX_EQUAL_ARROW", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 76, - "column": 1, - "source_line": "#define STB_C_LEX_EQUAL_ARROW N // \"=>\" CLEX_eqarrow" - } - }, - { - "name": "STB_C_LEX_C_BITWISEEQ", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 77, - "column": 1, - "source_line": "#define STB_C_LEX_C_BITWISEEQ Y // \"&=\" CLEX_andeq \"|=\" CLEX_oreq \"^=\" CLEX_xoreq" - } - }, - { - "name": "STB_C_LEX_C_ARITHEQ", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 78, - "column": 1, - "source_line": "#define STB_C_LEX_C_ARITHEQ Y // \"+=\" CLEX_pluseq \"-=\" CLEX_minuseq" - } - }, - { - "name": "STB_C_LEX_PARSE_SUFFIXES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 83, - "column": 1, - "source_line": "#define STB_C_LEX_PARSE_SUFFIXES N // letters after numbers are parsed as part of those numbers, and must be in suffix list below" - } - }, - { - "name": "STB_C_LEX_DECIMAL_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 84, - "column": 1, - "source_line": "#define STB_C_LEX_DECIMAL_SUFFIXES \"\" // decimal integer suffixes e.g. \"uUlL\" -- these are returned as-is in string storage" - } - }, - { - "name": "STB_C_LEX_HEX_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 85, - "column": 1, - "source_line": "#define STB_C_LEX_HEX_SUFFIXES \"\" // e.g. \"uUlL\"" - } - }, - { - "name": "STB_C_LEX_OCTAL_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 86, - "column": 1, - "source_line": "#define STB_C_LEX_OCTAL_SUFFIXES \"\" // e.g. \"uUlL\"" - } - }, - { - "name": "STB_C_LEX_FLOAT_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 87, - "column": 1, - "source_line": "#define STB_C_LEX_FLOAT_SUFFIXES \"\" //" - } - }, - { - "name": "STB_C_LEX_0_IS_EOF", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 89, - "column": 1, - "source_line": "#define STB_C_LEX_0_IS_EOF N // if Y, ends parsing at '\\0'; if N, returns '\\0' as token" - } - }, - { - "name": "STB_C_LEX_INTEGERS_AS_DOUBLES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 90, - "column": 1, - "source_line": "#define STB_C_LEX_INTEGERS_AS_DOUBLES N // parses integers as doubles so they can be larger than 'int', but only if STB_C_LEX_STDLIB==N" - } - }, - { - "name": "STB_C_LEX_MULTILINE_DSTRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 91, - "column": 1, - "source_line": "#define STB_C_LEX_MULTILINE_DSTRINGS N // allow newlines in double-quoted strings" - } - }, - { - "name": "STB_C_LEX_MULTILINE_SSTRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 92, - "column": 1, - "source_line": "#define STB_C_LEX_MULTILINE_SSTRINGS N // allow newlines in single-quoted strings" - } - }, - { - "name": "STB_C_LEX_USE_STDLIB", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 93, - "column": 1, - "source_line": "#define STB_C_LEX_USE_STDLIB Y // use strtod,strtol for parsing #s; otherwise inaccurate hack" - } - }, - { - "name": "STB_C_LEX_DOLLAR_IDENTIFIER", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 94, - "column": 1, - "source_line": "#define STB_C_LEX_DOLLAR_IDENTIFIER Y // allow $ as an identifier character" - } - }, - { - "name": "STB_C_LEX_FLOAT_NO_DECIMAL", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 95, - "column": 1, - "source_line": "#define STB_C_LEX_FLOAT_NO_DECIMAL Y // allow floats that have no decimal point if they have an exponent" - } - }, - { - "name": "STB_C_LEX_DEFINE_ALL_TOKEN_NAMES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 97, - "column": 1, - "source_line": "#define STB_C_LEX_DEFINE_ALL_TOKEN_NAMES N // if Y, all CLEX_ token names are defined, even if never returned" - } - }, - { - "name": "STB_C_LEX_DISCARD_PREPROCESSOR", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 100, - "column": 1, - "source_line": "#define STB_C_LEX_DISCARD_PREPROCESSOR Y // discard C-preprocessor directives (e.g. after prepocess" - } - }, - { - "name": "STB_C_LEXER_DEFINITIONS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 105, - "column": 1, - "source_line": "#define STB_C_LEXER_DEFINITIONS // This line prevents the header file from replacing your definitions" - } - }, - { - "name": "INCLUDE_STB_C_LEXER_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 111, - "column": 1, - "source_line": "#define INCLUDE_STB_C_LEXER_H" - } - }, - { - "name": "Y", - "value": "1", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 217, - "column": 1, - "source_line": "#define Y(x) 1" - } - }, - { - "name": "N", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 218, - "column": 1, - "source_line": "#define N(x) 0" - } - }, - { - "name": "intfield", - "value": "real_number", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 222, - "column": 1, - "source_line": "#define intfield real_number" - } - }, - { - "name": "STB__clex_int_as_double", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 223, - "column": 1, - "source_line": "#define STB__clex_int_as_double" - } - }, - { - "name": "intfield", - "value": "int_number", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 226, - "column": 1, - "source_line": "#define intfield int_number" - } - }, - { - "name": "STB__clex_parse_suffixes", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 233, - "column": 1, - "source_line": "#define STB__clex_parse_suffixes" - } - }, - { - "name": "STB__clex_hex_floats", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 237, - "column": 1, - "source_line": "#define STB__clex_hex_floats" - } - }, - { - "name": "STB__clex_hex_ints", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 241, - "column": 1, - "source_line": "#define STB__clex_hex_ints" - } - }, - { - "name": "STB__clex_decimal_ints", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 245, - "column": 1, - "source_line": "#define STB__clex_decimal_ints" - } - }, - { - "name": "STB__clex_octal_ints", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 249, - "column": 1, - "source_line": "#define STB__clex_octal_ints" - } - }, - { - "name": "STB__clex_decimal_floats", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 253, - "column": 1, - "source_line": "#define STB__clex_decimal_floats" - } - }, - { - "name": "STB__clex_discard_preprocessor", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 257, - "column": 1, - "source_line": "#define STB__clex_discard_preprocessor" - } - }, - { - "name": "STB__CLEX_use_stdlib", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 261, - "column": 1, - "source_line": "#define STB__CLEX_use_stdlib" - } - }, - { - "name": "Y", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 267, - "column": 1, - "source_line": "#undef Y" - } - }, - { - "name": "Y", - "value": "a", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 268, - "column": 1, - "source_line": "#define Y(a) a" - } - }, - { - "name": "N", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 269, - "column": 1, - "source_line": "#undef N" - } - }, - { - "name": "N", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 270, - "column": 1, - "source_line": "#define N(a)" - } - }, - { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 804, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_WARNINGS" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 262, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 805, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 806, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifdef", - "argument": "STB_C_LEXER_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 47, - "column": 1, - "source_line": "#ifdef STB_C_LEXER_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STB_C_LEXER_DEFINITIONS", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 48, - "column": 1, - "source_line": "#ifndef STB_C_LEXER_DEFINITIONS" - } - }, - { - "directive": "if", - "argument": "defined(Y) || defined(N)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 56, - "column": 1, - "source_line": "#if defined(Y) || defined(N)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 58, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 107, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 108, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "INCLUDE_STB_C_LEXER_H", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 110, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_C_LEXER_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 140, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 142, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 173, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 175, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 212, - "column": 1, - "source_line": "#endif // INCLUDE_STB_C_LEXER_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_C_LEXER_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 214, - "column": 1, - "source_line": "#ifdef STB_C_LEXER_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_INTEGERS_AS_DOUBLES(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 220, - "column": 1, - "source_line": "#if STB_C_LEX_INTEGERS_AS_DOUBLES(x)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 224, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 227, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_PARSE_SUFFIXES(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 232, - "column": 1, - "source_line": "#if STB_C_LEX_PARSE_SUFFIXES(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 234, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_C99_HEX_FLOATS(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 236, - "column": 1, - "source_line": "#if STB_C_LEX_C99_HEX_FLOATS(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 238, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_C_HEX_INTS(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 240, - "column": 1, - "source_line": "#if STB_C_LEX_C_HEX_INTS(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 242, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_C_DECIMAL_INTS(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 244, - "column": 1, - "source_line": "#if STB_C_LEX_C_DECIMAL_INTS(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 246, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_C_OCTAL_INTS(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 248, - "column": 1, - "source_line": "#if STB_C_LEX_C_OCTAL_INTS(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 250, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_C_DECIMAL_FLOATS(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 252, - "column": 1, - "source_line": "#if STB_C_LEX_C_DECIMAL_FLOATS(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 254, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_DISCARD_PREPROCESSOR(x)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 256, - "column": 1, - "source_line": "#if STB_C_LEX_DISCARD_PREPROCESSOR(x)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 258, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_C_LEX_USE_STDLIB(x) && (!defined(STB__clex_hex_floats) || __STDC_VERSION__ >= 199901L)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 260, - "column": 1, - "source_line": "#if STB_C_LEX_USE_STDLIB(x) && (!defined(STB__clex_hex_floats) || __STDC_VERSION__ >= 199901L)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 263, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_parse_suffixes", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 335, - "column": 4, - "source_line": " #ifdef STB__clex_parse_suffixes" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 346, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 348, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 352, - "column": 1, - "source_line": "#ifndef STB__CLEX_use_stdlib" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 371, - "column": 1, - "source_line": "#ifdef STB__clex_hex_floats" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 378, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 383, - "column": 1, - "source_line": "#ifdef STB__clex_hex_floats" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 388, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 399, - "column": 1, - "source_line": "#ifdef STB__clex_hex_floats" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 404, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 410, - "column": 1, - "source_line": "#ifdef STB__clex_hex_floats" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 419, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 432, - "column": 1, - "source_line": "#ifdef STB__clex_hex_floats" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 436, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 446, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_C_LEX_ISWHITE", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 504, - "column": 7, - "source_line": " #ifdef STB_C_LEX_ISWHITE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 513, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 516, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_discard_preprocessor", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 539, - "column": 7, - "source_line": " #ifdef STB__clex_discard_preprocessor" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 549, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STB__clex_hex_ints) || defined(STB__clex_hex_floats)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 680, - "column": 10, - "source_line": " #if defined(STB__clex_hex_ints) || defined(STB__clex_hex_floats)" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 685, - "column": 19, - "source_line": " #ifdef STB__clex_hex_floats" - } - }, - { - "directive": "ifdef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 691, - "column": 25, - "source_line": " #ifdef STB__CLEX_use_stdlib" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 693, - "column": 25, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 695, - "column": 25, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 703, - "column": 19, - "source_line": " #endif // STB__CLEX_hex_floats" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_hex_ints", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 705, - "column": 19, - "source_line": " #ifdef STB__clex_hex_ints" - } - }, - { - "directive": "ifdef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 706, - "column": 19, - "source_line": " #ifdef STB__CLEX_use_stdlib" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 708, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 723, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 727, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 730, - "column": 10, - "source_line": " #endif // defined(STB__clex_hex_ints) || defined(STB__clex_hex_floats)" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_decimal_floats", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 737, - "column": 10, - "source_line": " #ifdef STB__clex_decimal_floats" - } - }, - { - "directive": "ifdef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 744, - "column": 19, - "source_line": " #ifdef STB__CLEX_use_stdlib" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 746, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 748, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 755, - "column": 10, - "source_line": " #endif // STB__clex_decimal_floats" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_octal_ints", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 757, - "column": 10, - "source_line": " #ifdef STB__clex_octal_ints" - } - }, - { - "directive": "ifdef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 760, - "column": 13, - "source_line": " #ifdef STB__CLEX_use_stdlib" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 762, - "column": 13, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 774, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 777, - "column": 10, - "source_line": " #endif // STB__clex_octal_ints" - } - }, - { - "directive": "ifdef", - "argument": "STB__clex_decimal_ints", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 779, - "column": 10, - "source_line": " #ifdef STB__clex_decimal_ints" - } - }, - { - "directive": "ifdef", - "argument": "STB__CLEX_use_stdlib", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 782, - "column": 13, - "source_line": " #ifdef STB__CLEX_use_stdlib" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 784, - "column": 13, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 794, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 797, - "column": 10, - "source_line": " #endif // STB__clex_decimal_ints" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 801, - "column": 1, - "source_line": "#endif // STB_C_LEXER_IMPLEMENTATION" - } - }, - { - "directive": "ifdef", - "argument": "STB_C_LEXER_SELF_TEST", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 803, - "column": 1, - "source_line": "#ifdef STB_C_LEXER_SELF_TEST" - } - }, - { - "directive": "if", - "argument": "defined(STB__clex_int_as_double) && !defined(STB__CLEX_use_stdlib)", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 837, - "column": 7, - "source_line": " #if defined(STB__clex_int_as_double) && !defined(STB__CLEX_use_stdlib)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 839, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 841, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 864, - "column": 1, - "source_line": "#if 0 // not supported in C++ or C-pre-99, so don't try to compile it, but let our parser test it" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 866, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 900, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 217, - "column": 1, - "source_line": "#define Y(x) 1" - }, - "unit_kind": "macro", - "unit_name": "Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'N' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 218, - "column": 1, - "source_line": "#define N(x) 0" - }, - "unit_kind": "macro", - "unit_name": "N" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 268, - "column": 1, - "source_line": "#define Y(a) a" - }, - "unit_kind": "macro", - "unit_name": "Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'N' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 270, - "column": 1, - "source_line": "#define N(a)" - }, - "unit_kind": "macro", - "unit_name": "N" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 141, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stb__clex_int'.", - "severity": "error", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 225, - "column": 1, - "source_line": "typedef long stb__clex_int;" - }, - "unit_kind": "typedef", - "unit_name": "stb__clex_int" - } - ] - } - }, - "functions": { - "stb_c_lexer_init": { - "name": "stb_c_lexer_init", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_stream", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *input_stream", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *input_stream", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_stream_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *input_stream_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *input_stream_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "string_store", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *string_store", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *string_store", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "store_length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int store_length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int store_length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 273, - "column": 1, - "source_line": "void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 273, - "column": 1, - "source_line": "void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 280, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_c_lexer_get_location": { - "name": "stb_c_lexer_get_location", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *where", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *where", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "loc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lex_location *loc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lex_location" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lex_location *loc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lex_location" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 283, - "column": 1, - "source_line": "void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 283, - "column": 1, - "source_line": "void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 300, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_token": { - "name": "stb__clex_token", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "token", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int token" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int token" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 303, - "column": 1, - "source_line": "static int stb__clex_token(stb_lexer *lexer, int token, char *start, char *end)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 303, - "column": 1, - "source_line": "static int stb__clex_token(stb_lexer *lexer, int token, char *start, char *end)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 310, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_eof": { - "name": "stb__clex_eof", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 313, - "column": 1, - "source_line": "static int stb__clex_eof(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 313, - "column": 1, - "source_line": "static int stb__clex_eof(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 317, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_iswhite": { - "name": "stb__clex_iswhite", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 319, - "column": 1, - "source_line": "static int stb__clex_iswhite(int x)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 319, - "column": 1, - "source_line": "static int stb__clex_iswhite(int x)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 322, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__strchr": { - "name": "stb__strchr", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 324, - "column": 1, - "source_line": "static const char *stb__strchr(const char *str, int ch)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 324, - "column": 1, - "source_line": "static const char *stb__strchr(const char *str, int ch)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 330, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_parse_suffixes": { - "name": "stb__clex_parse_suffixes", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tokenid", - "type": { - "model": "CLong", - "qualifiers": [], - "source_text": "long tokenid" - }, - "declared_type": { - "model": "CLong", - "qualifiers": [], - "source_text": "long tokenid" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cur", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *cur", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *cur", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "suffixes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *suffixes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *suffixes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 333, - "column": 1, - "source_line": "static int stb__clex_parse_suffixes(stb_lexer *lexer, long tokenid, char *start, char *cur, const char *suffixes)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 333, - "column": 1, - "source_line": "static int stb__clex_parse_suffixes(stb_lexer *lexer, long tokenid, char *start, char *cur, const char *suffixes)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 350, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_pow": { - "name": "stb__clex_pow", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "base", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double base" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double base" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "exponent", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int exponent" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int exponent" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 353, - "column": 1, - "source_line": "static double stb__clex_pow(double base, unsigned int exponent)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 353, - "column": 1, - "source_line": "static double stb__clex_pow(double base, unsigned int exponent)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 362, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_parse_float": { - "name": "stb__clex_parse_float", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "q", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 364, - "column": 1, - "source_line": "static double stb__clex_parse_float(char *p, char **q)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 364, - "column": 1, - "source_line": "static double stb__clex_parse_float(char *p, char **q)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 445, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_parse_char": { - "name": "stb__clex_parse_char", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "q", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 448, - "column": 1, - "source_line": "static int stb__clex_parse_char(char *p, char **q)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 448, - "column": 1, - "source_line": "static int stb__clex_parse_char(char *p, char **q)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 467, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__clex_parse_string": { - "name": "stb__clex_parse_string", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "type", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int type" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int type" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 469, - "column": 1, - "source_line": "static int stb__clex_parse_string(stb_lexer *lexer, char *p, int type)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 469, - "column": 1, - "source_line": "static int stb__clex_parse_string(stb_lexer *lexer, char *p, int type)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 496, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_c_lexer_get_token": { - "name": "stb_c_lexer_get_token", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 498, - "column": 1, - "source_line": "int stb_c_lexer_get_token(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 498, - "column": 1, - "source_line": "int stb_c_lexer_get_token(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 800, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "print_token": { - "name": "print_token", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "lexer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_lexer *lexer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_lexer" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 808, - "column": 1, - "source_line": "static void print_token(stb_lexer *lexer)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 808, - "column": 1, - "source_line": "static void print_token(stb_lexer *lexer)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "dummy": { - "name": "dummy", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "extern" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 858, - "column": 6, - "source_line": "/**/ extern /**/" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 858, - "column": 6, - "source_line": "/**/ extern /**/" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 873, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "main": { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "argc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "argv", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 875, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_c_lexer.h", - "line": 875, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_c_lexer.h", - "line": 899, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": {}, - "unions": {}, - "enums": {}, - "typedefs": { - "stb_lexer": { - "reference": "stb_lexer" - }, - "stb_lex_location": { - "reference": "stb_lex_location" - }, - "stb__clex_int": { - "reference": "stb__clex_int" - } - }, - "variables": {}, - "macros": { - "STB_C_LEX_C_DECIMAL_INTS": { - "name": "STB_C_LEX_C_DECIMAL_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 60, - "column": 1, - "source_line": "#define STB_C_LEX_C_DECIMAL_INTS Y // \"0|[1-9][0-9]*\" CLEX_intlit" - } - }, - "STB_C_LEX_C_HEX_INTS": { - "name": "STB_C_LEX_C_HEX_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 61, - "column": 1, - "source_line": "#define STB_C_LEX_C_HEX_INTS Y // \"0x[0-9a-fA-F]+\" CLEX_intlit" - } - }, - "STB_C_LEX_C_OCTAL_INTS": { - "name": "STB_C_LEX_C_OCTAL_INTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 62, - "column": 1, - "source_line": "#define STB_C_LEX_C_OCTAL_INTS Y // \"[0-7]+\" CLEX_intlit" - } - }, - "STB_C_LEX_C_DECIMAL_FLOATS": { - "name": "STB_C_LEX_C_DECIMAL_FLOATS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 63, - "column": 1, - "source_line": "#define STB_C_LEX_C_DECIMAL_FLOATS Y // \"[0-9]*(.[0-9]*([eE][-+]?[0-9]+)?) CLEX_floatlit" - } - }, - "STB_C_LEX_C99_HEX_FLOATS": { - "name": "STB_C_LEX_C99_HEX_FLOATS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 64, - "column": 1, - "source_line": "#define STB_C_LEX_C99_HEX_FLOATS N // \"0x{hex}+(.{hex}*)?[pP][-+]?{hex}+ CLEX_floatlit" - } - }, - "STB_C_LEX_C_IDENTIFIERS": { - "name": "STB_C_LEX_C_IDENTIFIERS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 65, - "column": 1, - "source_line": "#define STB_C_LEX_C_IDENTIFIERS Y // \"[_a-zA-Z][_a-zA-Z0-9]*\" CLEX_id" - } - }, - "STB_C_LEX_C_DQ_STRINGS": { - "name": "STB_C_LEX_C_DQ_STRINGS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 66, - "column": 1, - "source_line": "#define STB_C_LEX_C_DQ_STRINGS Y // double-quote-delimited strings with escapes CLEX_dqstring" - } - }, - "STB_C_LEX_C_SQ_STRINGS": { - "name": "STB_C_LEX_C_SQ_STRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 67, - "column": 1, - "source_line": "#define STB_C_LEX_C_SQ_STRINGS N // single-quote-delimited strings with escapes CLEX_ssstring" - } - }, - "STB_C_LEX_C_CHARS": { - "name": "STB_C_LEX_C_CHARS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 68, - "column": 1, - "source_line": "#define STB_C_LEX_C_CHARS Y // single-quote-delimited character with escape CLEX_charlits" - } - }, - "STB_C_LEX_C_COMMENTS": { - "name": "STB_C_LEX_C_COMMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 69, - "column": 1, - "source_line": "#define STB_C_LEX_C_COMMENTS Y // \"/* comment */\"" - } - }, - "STB_C_LEX_CPP_COMMENTS": { - "name": "STB_C_LEX_CPP_COMMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 70, - "column": 1, - "source_line": "#define STB_C_LEX_CPP_COMMENTS Y // \"// comment to end of line\\n\"" - } - }, - "STB_C_LEX_C_COMPARISONS": { - "name": "STB_C_LEX_C_COMPARISONS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 71, - "column": 1, - "source_line": "#define STB_C_LEX_C_COMPARISONS Y // \"==\" CLEX_eq \"!=\" CLEX_noteq \"<=\" CLEX_lesseq \">=\" CLEX_greatereq" - } - }, - "STB_C_LEX_C_LOGICAL": { - "name": "STB_C_LEX_C_LOGICAL", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 72, - "column": 1, - "source_line": "#define STB_C_LEX_C_LOGICAL Y // \"&&\" CLEX_andand \"||\" CLEX_oror" - } - }, - "STB_C_LEX_C_SHIFTS": { - "name": "STB_C_LEX_C_SHIFTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 73, - "column": 1, - "source_line": "#define STB_C_LEX_C_SHIFTS Y // \"<<\" CLEX_shl \">>\" CLEX_shr" - } - }, - "STB_C_LEX_C_INCREMENTS": { - "name": "STB_C_LEX_C_INCREMENTS", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 74, - "column": 1, - "source_line": "#define STB_C_LEX_C_INCREMENTS Y // \"++\" CLEX_plusplus \"--\" CLEX_minusminus" - } - }, - "STB_C_LEX_C_ARROW": { - "name": "STB_C_LEX_C_ARROW", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 75, - "column": 1, - "source_line": "#define STB_C_LEX_C_ARROW Y // \"->\" CLEX_arrow" - } - }, - "STB_C_LEX_EQUAL_ARROW": { - "name": "STB_C_LEX_EQUAL_ARROW", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 76, - "column": 1, - "source_line": "#define STB_C_LEX_EQUAL_ARROW N // \"=>\" CLEX_eqarrow" - } - }, - "STB_C_LEX_C_BITWISEEQ": { - "name": "STB_C_LEX_C_BITWISEEQ", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 77, - "column": 1, - "source_line": "#define STB_C_LEX_C_BITWISEEQ Y // \"&=\" CLEX_andeq \"|=\" CLEX_oreq \"^=\" CLEX_xoreq" - } - }, - "STB_C_LEX_C_ARITHEQ": { - "name": "STB_C_LEX_C_ARITHEQ", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 78, - "column": 1, - "source_line": "#define STB_C_LEX_C_ARITHEQ Y // \"+=\" CLEX_pluseq \"-=\" CLEX_minuseq" - } - }, - "STB_C_LEX_PARSE_SUFFIXES": { - "name": "STB_C_LEX_PARSE_SUFFIXES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 83, - "column": 1, - "source_line": "#define STB_C_LEX_PARSE_SUFFIXES N // letters after numbers are parsed as part of those numbers, and must be in suffix list below" - } - }, - "STB_C_LEX_DECIMAL_SUFFIXES": { - "name": "STB_C_LEX_DECIMAL_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 84, - "column": 1, - "source_line": "#define STB_C_LEX_DECIMAL_SUFFIXES \"\" // decimal integer suffixes e.g. \"uUlL\" -- these are returned as-is in string storage" - } - }, - "STB_C_LEX_HEX_SUFFIXES": { - "name": "STB_C_LEX_HEX_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 85, - "column": 1, - "source_line": "#define STB_C_LEX_HEX_SUFFIXES \"\" // e.g. \"uUlL\"" - } - }, - "STB_C_LEX_OCTAL_SUFFIXES": { - "name": "STB_C_LEX_OCTAL_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 86, - "column": 1, - "source_line": "#define STB_C_LEX_OCTAL_SUFFIXES \"\" // e.g. \"uUlL\"" - } - }, - "STB_C_LEX_FLOAT_SUFFIXES": { - "name": "STB_C_LEX_FLOAT_SUFFIXES", - "value": "\"\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 87, - "column": 1, - "source_line": "#define STB_C_LEX_FLOAT_SUFFIXES \"\" //" - } - }, - "STB_C_LEX_0_IS_EOF": { - "name": "STB_C_LEX_0_IS_EOF", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 89, - "column": 1, - "source_line": "#define STB_C_LEX_0_IS_EOF N // if Y, ends parsing at '\\0'; if N, returns '\\0' as token" - } - }, - "STB_C_LEX_INTEGERS_AS_DOUBLES": { - "name": "STB_C_LEX_INTEGERS_AS_DOUBLES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 90, - "column": 1, - "source_line": "#define STB_C_LEX_INTEGERS_AS_DOUBLES N // parses integers as doubles so they can be larger than 'int', but only if STB_C_LEX_STDLIB==N" - } - }, - "STB_C_LEX_MULTILINE_DSTRINGS": { - "name": "STB_C_LEX_MULTILINE_DSTRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 91, - "column": 1, - "source_line": "#define STB_C_LEX_MULTILINE_DSTRINGS N // allow newlines in double-quoted strings" - } - }, - "STB_C_LEX_MULTILINE_SSTRINGS": { - "name": "STB_C_LEX_MULTILINE_SSTRINGS", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 92, - "column": 1, - "source_line": "#define STB_C_LEX_MULTILINE_SSTRINGS N // allow newlines in single-quoted strings" - } - }, - "STB_C_LEX_USE_STDLIB": { - "name": "STB_C_LEX_USE_STDLIB", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 93, - "column": 1, - "source_line": "#define STB_C_LEX_USE_STDLIB Y // use strtod,strtol for parsing #s; otherwise inaccurate hack" - } - }, - "STB_C_LEX_DOLLAR_IDENTIFIER": { - "name": "STB_C_LEX_DOLLAR_IDENTIFIER", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 94, - "column": 1, - "source_line": "#define STB_C_LEX_DOLLAR_IDENTIFIER Y // allow $ as an identifier character" - } - }, - "STB_C_LEX_FLOAT_NO_DECIMAL": { - "name": "STB_C_LEX_FLOAT_NO_DECIMAL", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 95, - "column": 1, - "source_line": "#define STB_C_LEX_FLOAT_NO_DECIMAL Y // allow floats that have no decimal point if they have an exponent" - } - }, - "STB_C_LEX_DEFINE_ALL_TOKEN_NAMES": { - "name": "STB_C_LEX_DEFINE_ALL_TOKEN_NAMES", - "value": "N", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 97, - "column": 1, - "source_line": "#define STB_C_LEX_DEFINE_ALL_TOKEN_NAMES N // if Y, all CLEX_ token names are defined, even if never returned" - } - }, - "STB_C_LEX_DISCARD_PREPROCESSOR": { - "name": "STB_C_LEX_DISCARD_PREPROCESSOR", - "value": "Y", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 100, - "column": 1, - "source_line": "#define STB_C_LEX_DISCARD_PREPROCESSOR Y // discard C-preprocessor directives (e.g. after prepocess" - } - }, - "STB_C_LEXER_DEFINITIONS": { - "name": "STB_C_LEXER_DEFINITIONS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 105, - "column": 1, - "source_line": "#define STB_C_LEXER_DEFINITIONS // This line prevents the header file from replacing your definitions" - } - }, - "INCLUDE_STB_C_LEXER_H": { - "name": "INCLUDE_STB_C_LEXER_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 111, - "column": 1, - "source_line": "#define INCLUDE_STB_C_LEXER_H" - } - }, - "Y": { - "name": "Y", - "value": "a", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 268, - "column": 1, - "source_line": "#define Y(a) a" - } - }, - "N": { - "name": "N", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 270, - "column": 1, - "source_line": "#define N(a)" - } - }, - "intfield": { - "name": "intfield", - "value": "int_number", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 226, - "column": 1, - "source_line": "#define intfield int_number" - } - }, - "STB__clex_int_as_double": { - "name": "STB__clex_int_as_double", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 223, - "column": 1, - "source_line": "#define STB__clex_int_as_double" - } - }, - "STB__clex_parse_suffixes": { - "name": "STB__clex_parse_suffixes", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 233, - "column": 1, - "source_line": "#define STB__clex_parse_suffixes" - } - }, - "STB__clex_hex_floats": { - "name": "STB__clex_hex_floats", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 237, - "column": 1, - "source_line": "#define STB__clex_hex_floats" - } - }, - "STB__clex_hex_ints": { - "name": "STB__clex_hex_ints", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 241, - "column": 1, - "source_line": "#define STB__clex_hex_ints" - } - }, - "STB__clex_decimal_ints": { - "name": "STB__clex_decimal_ints", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 245, - "column": 1, - "source_line": "#define STB__clex_decimal_ints" - } - }, - "STB__clex_octal_ints": { - "name": "STB__clex_octal_ints", - "value": null, - "function_like": false, - "directive": "define", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int store_length" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 249, + "line": 144, "column": 1, - "source_line": "#define STB__clex_octal_ints" - } - }, - "STB__clex_decimal_floats": { - "name": "STB__clex_decimal_floats", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length);" + }, + "start": { "filename": "stb/stb_c_lexer.h", - "line": 253, + "line": 144, "column": 1, - "source_line": "#define STB__clex_decimal_floats" - } + "source_line": "extern void stb_c_lexer_init(stb_lexer *lexer, const char *input_stream, const char *input_stream_end, char *string_store, int store_length);" + }, + "end": null, + "declaration_locations": [] }, - "STB__clex_discard_preprocessor": { - "name": "STB__clex_discard_preprocessor", - "value": null, - "function_like": false, - "directive": "define", + "stb_c_lexer_get_token": { + "name": "stb_c_lexer_get_token", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "lexer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 257, + "line": 152, "column": 1, - "source_line": "#define STB__clex_discard_preprocessor" - } - }, - "STB__CLEX_use_stdlib": { - "name": "STB__CLEX_use_stdlib", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern int stb_c_lexer_get_token(stb_lexer *lexer);" + }, + "start": { "filename": "stb/stb_c_lexer.h", - "line": 261, + "line": 152, "column": 1, - "source_line": "#define STB__CLEX_use_stdlib" - } + "source_line": "extern int stb_c_lexer_get_token(stb_lexer *lexer);" + }, + "end": null, + "declaration_locations": [] }, - "_CRT_SECURE_NO_WARNINGS": { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_c_lexer.h", - "line": 804, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_WARNINGS" - } - } - }, - "includes": { - "stb/stb_c_lexer.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "stb_c_lexer_get_location": { + "name": "stb_c_lexer_get_location", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "lexer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_lexer *lexer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lexer" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "where", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *where", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *where", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "loc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lex_location *loc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lex_location" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_lex_location *loc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_lex_location" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_c_lexer.h", - "line": 806, + "line": 161, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_c_lexer.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "extern void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc);" + }, + "start": { "filename": "stb/stb_c_lexer.h", - "line": 805, + "line": 161, "column": 1, - "source_line": "#include " - } + "source_line": "extern void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc);" + }, + "end": null, + "declaration_locations": [] } }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_c_lexer.h": [ "stb_c_lexer_init", - "stb_c_lexer_get_location", - "stb__clex_token", - "stb__clex_eof", - "stb__clex_iswhite", - "stb__strchr", - "stb__clex_parse_suffixes", - "stb__clex_pow", - "stb__clex_parse_float", - "stb__clex_parse_char", - "stb__clex_parse_string", "stb_c_lexer_get_token", - "print_token", - "dummy", - "main" + "stb_c_lexer_get_location" ] }, "enum_constants": { @@ -6692,10 +1913,7 @@ "stb/stb_c_lexer.h": [] }, "system_includes": { - "stb/stb_c_lexer.h": [ - "stdio.h", - "stdlib.h" - ] + "stb/stb_c_lexer.h": [] }, "unresolved_includes": { "stb/stb_c_lexer.h": [] @@ -6703,84 +1921,5 @@ "header_source_pairs": { "stb/stb_c_lexer.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 217, - "column": 1, - "source_line": "#define Y(x) 1" - }, - "unit_kind": "macro", - "unit_name": "Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'N' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 218, - "column": 1, - "source_line": "#define N(x) 0" - }, - "unit_kind": "macro", - "unit_name": "N" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 268, - "column": 1, - "source_line": "#define Y(a) a" - }, - "unit_kind": "macro", - "unit_name": "Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'N' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 270, - "column": 1, - "source_line": "#define N(a)" - }, - "unit_kind": "macro", - "unit_name": "N" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 141, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stb__clex_int'.", - "severity": "error", - "location": { - "filename": "stb/stb_c_lexer.h", - "line": 225, - "column": 1, - "source_line": "typedef long stb__clex_int;" - }, - "unit_kind": "typedef", - "unit_name": "stb__clex_int" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_connected_components.json b/tests/parser/c/fixtures/stb/stb_connected_components.json index 4e8f2ac31..7dc263c8c 100644 --- a/tests/parser/c/fixtures/stb/stb_connected_components.json +++ b/tests/parser/c/fixtures/stb/stb_connected_components.json @@ -3,15 +3,45 @@ "stb/stb_connected_components.h": { "filename": "stb/stb_connected_components.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_connected_components.h" + ], "functions": [ { - "name": "stbcc_query_grid_node_connection", + "name": "stbcc_grid_sizeof", "result_type": { - "model": "CInt", + "reference": "size_t" + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_connected_components.h", + "line": 100, + "column": 1, + "source_line": "extern size_t stbcc_grid_sizeof(void);" + }, + "start": { + "filename": "stb/stb_connected_components.h", + "line": 100, + "column": 1, + "source_line": "extern size_t stbcc_grid_sizeof(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbcc_init_grid", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -34,739 +64,12 @@ "type": { "model": "CStruct", "qualifiers": [], - "source_text": "", + "source_text": "typedef struct st_stbcc_grid stbcc_grid", "name": "st_stbcc_grid", - "members": [ - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 264, - "column": 4, - "source_line": " int w,h,cw,ch;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 264, - "column": 4, - "source_line": " int w,h,cw,ch;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cw", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cw" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 264, - "column": 4, - "source_line": " int w,h,cw,ch;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 264, - "column": 4, - "source_line": " int w,h,cw,ch;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "in_batched_update", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int in_batched_update" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 265, - "column": 4, - "source_line": " int in_batched_update;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "map", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char map[STBCC__GRID_COUNT_Y][STBCC__MAP_STRIDE]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__GRID_COUNT_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__MAP_STRIDE", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 267, - "column": 4, - "source_line": " unsigned char map[STBCC__GRID_COUNT_Y][STBCC__MAP_STRIDE]; // 1K x 1K => 1K x 128 => 128KB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "clump_for_node", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__clumpid clump_for_node[STBCC__GRID_COUNT_Y][STBCC__GRID_COUNT_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__GRID_COUNT_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__GRID_COUNT_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__clumpid", - "name": "stbcc__clumpid", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "typedef unsigned short stbcc__clumpid" - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 199, - "column": 1, - "source_line": "typedef unsigned short stbcc__clumpid;" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 268, - "column": 4, - "source_line": " stbcc__clumpid clump_for_node[STBCC__GRID_COUNT_Y][STBCC__GRID_COUNT_X]; // 1K x 1K x 2 = 2MB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster cluster[STBCC__CLUSTER_COUNT_Y][STBCC__CLUSTER_COUNT_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_COUNT_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_COUNT_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__cluster", - "name": "stbcc__cluster", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "num_clumps", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short num_clumps" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 255, - "column": 4, - "source_line": " short num_clumps;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_edge_clumps", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char num_edge_clumps" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 256, - "column": 4, - "source_line": " unsigned char num_edge_clumps;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "rebuild_adjacency", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char rebuild_adjacency" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 257, - "column": 4, - "source_line": " unsigned char rebuild_adjacency;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "clump", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__clump clump[STBCC__MAX_CLUMPS_PER_CLUSTER]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__MAX_CLUMPS_PER_CLUSTER", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__clump", - "name": "stbcc__clump", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "global_label", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__global_clumpid", - "name": "stbcc__global_clumpid", - "type": { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "f", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "clump_index", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int clump_index" - }, - "storage": [], - "initializer": null, - "bit_width": "12", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 232, - "column": 7, - "source_line": " unsigned int clump_index:12;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster_x", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int cluster_x" - }, - "storage": [], - "initializer": null, - "bit_width": "10", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 233, - "column": 7, - "source_line": " unsigned int cluster_x:10;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster_y", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int cluster_y" - }, - "storage": [], - "initializer": null, - "bit_width": "10", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 234, - "column": 7, - "source_line": " unsigned int cluster_y:10;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:231:4", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 231, - "column": 4, - "source_line": " struct {" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 231, - "column": 4, - "source_line": " struct {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "c", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int c" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 236, - "column": 4, - "source_line": " unsigned int c;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "union@stb/stb_connected_components.h:229:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 229, - "column": 1, - "source_line": "typedef union" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 229, - "column": 1, - "source_line": "typedef union" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 245, - "column": 4, - "source_line": " stbcc__global_clumpid global_label; // 4" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_adjacent", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char num_adjacent" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 246, - "column": 4, - "source_line": " unsigned char num_adjacent; // 1" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_adjacent", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char max_adjacent" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 247, - "column": 4, - "source_line": " unsigned char max_adjacent; // 1" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "adjacent_clump_list_index", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char adjacent_clump_list_index" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 248, - "column": 4, - "source_line": " unsigned char adjacent_clump_list_index; // 1" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "reserved", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char reserved" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 249, - "column": 4, - "source_line": " unsigned char reserved;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:243:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 243, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 243, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 258, - "column": 4, - "source_line": " stbcc__clump clump[STBCC__MAX_CLUMPS_PER_CLUSTER]; // 8 * 2^9 = 4KB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "adjacency_storage", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__relative_clumpid adjacency_storage[STBCC__CLUSTER_ADJACENCY_COUNT]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_ADJACENCY_COUNT", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__relative_clumpid", - "name": "stbcc__relative_clumpid", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "clump_index", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short clump_index" - }, - "storage": [], - "initializer": null, - "bit_width": "12", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 224, - "column": 4, - "source_line": " unsigned short clump_index:12;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster_dx", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "signed short cluster_dx" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 225, - "column": 6, - "source_line": " signed short cluster_dx:2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster_dy", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "signed short cluster_dy" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 226, - "column": 6, - "source_line": " signed short cluster_dy:2;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:222:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 222, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 222, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 259, - "column": 4, - "source_line": " stbcc__relative_clumpid adjacency_storage[STBCC__CLUSTER_ADJACENCY_COUNT]; // 256 bytes" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:253:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 253, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 253, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 269, - "column": 4, - "source_line": " stbcc__cluster cluster[STBCC__CLUSTER_COUNT_Y][STBCC__CLUSTER_COUNT_X]; // 1K x 4.5KB = 4.5MB" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], + "members": [], "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 262, - "column": 1, - "source_line": "struct st_stbcc_grid" - } + "is_incomplete": true, + "source_location": null }, "source_location": { "filename": "stb/stb_connected_components.h", @@ -797,97 +100,103 @@ "callback_policy": null }, { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", + "name": "map", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y1" + "source_text": "unsigned char *map", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y1" + "source_text": "unsigned char *map", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "x2", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int h" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 272, + "line": 103, "column": 1, - "source_line": "int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" + "source_line": "extern void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 272, - "column": 1, - "source_line": "int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 289, + "line": 103, "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbcc_query_grid_open", + "name": "stbcc_update_grid", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -954,39 +263,51 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "solid", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int solid" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int solid" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 291, + "line": 113, "column": 1, - "source_line": "int stbcc_query_grid_open(stbcc_grid *g, int x, int y)" + "source_line": "extern void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 291, + "line": 113, "column": 1, - "source_line": "int stbcc_query_grid_open(stbcc_grid *g, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 294, - "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbcc_get_unique_id", + "name": "stbcc_query_grid_node_connection", "result_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "int" }, "parameters": [ { @@ -1025,63 +346,90 @@ "callback_policy": null }, { - "name": "x", + "name": "x1", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int x1" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int x1" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "y1", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" + "source_text": "int y1" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" + "source_text": "int y1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x2" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x2" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y2" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y2" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 296, + "line": 116, "column": 1, - "source_line": "unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y)" + "source_line": "extern int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 296, - "column": 1, - "source_line": "unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 304, + "line": 116, "column": 1, - "source_line": "}" + "source_line": "extern int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbcc__build_clumps_for_cluster", + "name": "stbcc_update_batch_begin", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1122,78 +470,102 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_connected_components.h", + "line": 126, + "column": 1, + "source_line": "extern void stbcc_update_batch_begin(stbcc_grid *g);" + }, + "start": { + "filename": "stb/stb_connected_components.h", + "line": 126, + "column": 1, + "source_line": "extern void stbcc_update_batch_begin(stbcc_grid *g);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbcc_update_batch_end", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "cy", + "name": "g", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int cy" + "source_text": "stbcc_grid *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbcc_grid" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int cy" + "source_text": "stbcc_grid *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbcc_grid" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 863, + "line": 127, "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy)" + "source_line": "extern void stbcc_update_batch_end(stbcc_grid *g);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 863, - "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 1006, + "line": 127, "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_update_batch_end(stbcc_grid *g);" }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 317, - "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy);" - } - ] + "end": null, + "declaration_locations": [] }, { - "name": "stbcc__remove_connections_to_adjacent_cluster", + "name": "stbcc_query_grid_open", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -1232,324 +604,64 @@ "callback_policy": null }, { - "name": "cx", + "name": "x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int cx" + "source_text": "int x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int cx" + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "cy", + "name": "y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int cy" + "source_text": "int y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 775, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 775, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 831, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 318, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy);" - } - ] - }, - { - "name": "stbcc__add_connections_to_adjacent_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 711, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 711, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 773, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 319, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy);" - } - ] - }, - { - "name": "stbcc__clump_find", - "result_type": { - "reference": "stbcc__global_clumpid" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "reference": "stbcc__global_clumpid" - }, - "declared_type": { - "reference": "stbcc__global_clumpid" + "source_text": "int y" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 321, + "line": 130, "column": 1, - "source_line": "static stbcc__global_clumpid stbcc__clump_find(stbcc_grid *g, stbcc__global_clumpid n)" + "source_line": "extern int stbcc_query_grid_open(stbcc_grid *g, int x, int y);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 321, + "line": 130, "column": 1, - "source_line": "static stbcc__global_clumpid stbcc__clump_find(stbcc_grid *g, stbcc__global_clumpid n)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 332, - "column": 1, - "source_line": "}" + "source_line": "extern int stbcc_query_grid_open(stbcc_grid *g, int x, int y);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbcc__clump_union", + "name": "stbcc_get_unique_id", "result_type": { - "model": "CVoid", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int" }, "parameters": [ { @@ -1586,4035 +698,100 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "m", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__unpacked_clumpid", - "name": "stbcc__unpacked_clumpid", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "cluster_x", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int cluster_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 336, - "column": 4, - "source_line": " unsigned int cluster_x;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cluster_y", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int cluster_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 337, - "column": 4, - "source_line": " unsigned int cluster_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "clump_index", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int clump_index" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 338, - "column": 4, - "source_line": " unsigned int clump_index;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:334:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 334, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 334, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "declared_type": { - "reference": "stbcc__unpacked_clumpid" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "idx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 341, - "column": 1, - "source_line": "static void stbcc__clump_union(stbcc_grid *g, stbcc__unpacked_clumpid m, int x, int y, int idx)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 341, - "column": 1, - "source_line": "static void stbcc__clump_union(stbcc_grid *g, stbcc__unpacked_clumpid m, int x, int y, int idx)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 352, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__build_connected_components_for_clumps", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 354, - "column": 1, - "source_line": "static void stbcc__build_connected_components_for_clumps(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 354, - "column": 1, - "source_line": "static void stbcc__build_connected_components_for_clumps(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 405, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__build_all_connections_for_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 407, - "column": 1, - "source_line": "static void stbcc__build_all_connections_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 407, - "column": 1, - "source_line": "static void stbcc__build_all_connections_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 517, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__add_connections_to_adjacent_cluster_with_rebuild", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 519, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster_with_rebuild(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 519, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster_with_rebuild(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 526, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc_update_grid", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "solid", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int solid" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int solid" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 528, - "column": 1, - "source_line": "void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 528, - "column": 1, - "source_line": "void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 567, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc_update_batch_begin", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 569, - "column": 1, - "source_line": "void stbcc_update_batch_begin(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 569, - "column": 1, - "source_line": "void stbcc_update_batch_begin(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 573, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc_update_batch_end", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 575, - "column": 1, - "source_line": "void stbcc_update_batch_end(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 575, - "column": 1, - "source_line": "void stbcc_update_batch_end(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 580, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc_grid_sizeof", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 582, - "column": 1, - "source_line": "size_t stbcc_grid_sizeof(void)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 582, - "column": 1, - "source_line": "size_t stbcc_grid_sizeof(void)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 585, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc_init_grid", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "map", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *map", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *map", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 587, - "column": 1, - "source_line": "void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 587, - "column": 1, - "source_line": "void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 629, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__add_clump_connection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 632, - "column": 1, - "source_line": "static void stbcc__add_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 632, - "column": 1, - "source_line": "static void stbcc__add_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 667, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__remove_clump_connection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 669, - "column": 1, - "source_line": "static void stbcc__remove_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 669, - "column": 1, - "source_line": "static void stbcc__remove_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 709, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__incluster_find", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__tinypoint", - "name": "stbcc__tinypoint", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 308, - "column": 4, - "source_line": " unsigned char x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 308, - "column": 4, - "source_line": " unsigned char x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:306:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 306, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 306, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "parameters": [ - { - "name": "cbi", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info", - "name": "stbcc__cluster_build_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "parent", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__tinypoint parent[STBCC__CLUSTER_SIZE_Y][STBCC__CLUSTER_SIZE_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_SIZE_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_SIZE_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbcc__tinypoint" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 313, - "column": 4, - "source_line": " stbcc__tinypoint parent[STBCC__CLUSTER_SIZE_Y][STBCC__CLUSTER_SIZE_X]; // 32x32 => 2KB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__clumpid label[STBCC__CLUSTER_SIZE_Y][STBCC__CLUSTER_SIZE_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_SIZE_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__CLUSTER_SIZE_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbcc__clumpid" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 314, - "column": 4, - "source_line": " stbcc__clumpid label[STBCC__CLUSTER_SIZE_Y][STBCC__CLUSTER_SIZE_X];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_connected_components.h:311:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 311, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 311, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc__cluster_build_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 833, - "column": 1, - "source_line": "static stbcc__tinypoint stbcc__incluster_find(stbcc__cluster_build_info *cbi, int x, int y)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 833, - "column": 1, - "source_line": "static stbcc__tinypoint stbcc__incluster_find(stbcc__cluster_build_info *cbi, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 842, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__incluster_union", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "cbi", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc__cluster_build_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc__cluster_build_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 844, - "column": 1, - "source_line": "static void stbcc__incluster_union(stbcc__cluster_build_info *cbi, int x1, int y1, int x2, int y2)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 844, - "column": 1, - "source_line": "static void stbcc__incluster_union(stbcc__cluster_build_info *cbi, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 853, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbcc__switch_root", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "cbi", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc__cluster_build_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc__cluster_build_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "reference": "stbcc__tinypoint" - }, - "declared_type": { - "reference": "stbcc__tinypoint" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 855, - "column": 1, - "source_line": "static void stbcc__switch_root(stbcc__cluster_build_info *cbi, int x, int y, stbcc__tinypoint p)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 855, - "column": 1, - "source_line": "static void stbcc__switch_root(stbcc__cluster_build_info *cbi, int x, int y, stbcc__tinypoint p)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 861, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_connected_components.h:222:1" - }, - { - "reference": "struct@stb/stb_connected_components.h:243:1" - }, - { - "reference": "struct@stb/stb_connected_components.h:253:1" - }, - { - "reference": "struct st_stbcc_grid" - }, - { - "reference": "struct@stb/stb_connected_components.h:306:1" - }, - { - "reference": "struct@stb/stb_connected_components.h:311:1" - }, - { - "reference": "struct@stb/stb_connected_components.h:334:1" - } - ], - "unions": [ - { - "reference": "union@stb/stb_connected_components.h:229:1" - } - ], - "enums": [], - "typedefs": [ - { - "reference": "stbcc_grid" - }, - { - "reference": "stbcc__clumpid" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__verify_max_clumps", - "name": "stbcc__verify_max_clumps", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef unsigned char stbcc__verify_max_clumps[STBCC__MAX_CLUMPS_PER_CLUSTER < (1 << (8*sizeof(stbcc__clumpid))) ? 1 : -1]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__MAX_CLUMPS_PER_CLUSTER < (1 << (8*sizeof(stbcc__clumpid))) ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 200, - "column": 1, - "source_line": "typedef unsigned char stbcc__verify_max_clumps[STBCC__MAX_CLUMPS_PER_CLUSTER < (1 << (8*sizeof(stbcc__clumpid))) ? 1 : -1];" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbcc__verify_max_exits", - "name": "stbcc__verify_max_exits", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef unsigned char stbcc__verify_max_exits[STBCC__MAX_EXITS_PER_CLUMP <= 256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBCC__MAX_EXITS_PER_CLUMP <= 256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 220, - "column": 1, - "source_line": "typedef unsigned char stbcc__verify_max_exits[STBCC__MAX_EXITS_PER_CLUMP <= 256];" - }, - "declaration_locations": [] - }, - { - "reference": "stbcc__relative_clumpid" - }, - { - "reference": "stbcc__global_clumpid" - }, - { - "reference": "stbcc__clump" - }, - { - "reference": "stbcc__cluster" - }, - { - "reference": "stbcc__tinypoint" - }, - { - "reference": "stbcc__cluster_build_info" - }, - { - "reference": "stbcc__unpacked_clumpid" - } - ], - "variables": [], - "macros": [ - { - "name": "INCLUDE_STB_CONNECTED_COMPONENTS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 84, - "column": 1, - "source_line": "#define INCLUDE_STB_CONNECTED_COMPONENTS_H" - } - }, - { - "name": "STBCC_NULL_UNIQUE_ID", - "value": "0xffffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 135, - "column": 1, - "source_line": "#define STBCC_NULL_UNIQUE_ID 0xffffffff // returned for closed map squares" - } - }, - { - "name": "STBCC__GRID_COUNT_X", - "value": "(1 << STBCC_GRID_COUNT_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 152, - "column": 1, - "source_line": "#define STBCC__GRID_COUNT_X (1 << STBCC_GRID_COUNT_X_LOG2)" - } - }, - { - "name": "STBCC__GRID_COUNT_Y", - "value": "(1 << STBCC_GRID_COUNT_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 153, - "column": 1, - "source_line": "#define STBCC__GRID_COUNT_Y (1 << STBCC_GRID_COUNT_Y_LOG2)" - } - }, - { - "name": "STBCC__MAP_STRIDE", - "value": "(1 << (STBCC_GRID_COUNT_X_LOG2-3))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 155, - "column": 1, - "source_line": "#define STBCC__MAP_STRIDE (1 << (STBCC_GRID_COUNT_X_LOG2-3))" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_X_LOG2", - "value": "(STBCC_GRID_COUNT_X_LOG2/2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 158, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_X_LOG2 (STBCC_GRID_COUNT_X_LOG2/2) // log2(sqrt(2^N)) = 1/2 * log2(2^N)) = 1/2 * N" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_X_LOG2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 160, - "column": 4, - "source_line": " #undef STBCC_CLUSTER_SIZE_X_LOG2" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_X_LOG2", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 161, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_X_LOG2 6" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_Y_LOG2", - "value": "(STBCC_GRID_COUNT_Y_LOG2/2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 166, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_Y_LOG2 (STBCC_GRID_COUNT_Y_LOG2/2)" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_Y_LOG2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 168, - "column": 4, - "source_line": " #undef STBCC_CLUSTER_SIZE_Y_LOG2" - } - }, - { - "name": "STBCC_CLUSTER_SIZE_Y_LOG2", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 169, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_Y_LOG2 6" - } - }, - { - "name": "STBCC__CLUSTER_SIZE_X", - "value": "(1 << STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 173, - "column": 1, - "source_line": "#define STBCC__CLUSTER_SIZE_X (1 << STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_SIZE_Y", - "value": "(1 << STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 174, - "column": 1, - "source_line": "#define STBCC__CLUSTER_SIZE_Y (1 << STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_COUNT_X_LOG2", - "value": "(STBCC_GRID_COUNT_X_LOG2 - STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 176, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_X_LOG2 (STBCC_GRID_COUNT_X_LOG2 - STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_COUNT_Y_LOG2", - "value": "(STBCC_GRID_COUNT_Y_LOG2 - STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 177, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_Y_LOG2 (STBCC_GRID_COUNT_Y_LOG2 - STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_COUNT_X", - "value": "(1 << STBCC__CLUSTER_COUNT_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 179, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_X (1 << STBCC__CLUSTER_COUNT_X_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_COUNT_Y", - "value": "(1 << STBCC__CLUSTER_COUNT_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 180, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_Y (1 << STBCC__CLUSTER_COUNT_Y_LOG2)" - } - }, - { - "name": "STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2", - "value": "(STBCC_CLUSTER_SIZE_X_LOG2 + STBCC_CLUSTER_SIZE_Y_LOG2-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 187, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2 (STBCC_CLUSTER_SIZE_X_LOG2 + STBCC_CLUSTER_SIZE_Y_LOG2-1)" - } - }, - { - "name": "STBCC__MAX_CLUMPS_PER_CLUSTER", - "value": "(1 << STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 188, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS_PER_CLUSTER (1 << STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2)" - } - }, - { - "name": "STBCC__MAX_CLUMPS", - "value": "(STBCC__MAX_CLUMPS_PER_CLUSTER * STBCC__CLUSTER_COUNT_X * STBCC__CLUSTER_COUNT_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 189, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS (STBCC__MAX_CLUMPS_PER_CLUSTER * STBCC__CLUSTER_COUNT_X * STBCC__CLUSTER_COUNT_Y)" - } - }, - { - "name": "STBCC__NULL_CLUMPID", - "value": "STBCC__MAX_CLUMPS_PER_CLUSTER", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 190, - "column": 1, - "source_line": "#define STBCC__NULL_CLUMPID STBCC__MAX_CLUMPS_PER_CLUSTER" - } - }, - { - "name": "STBCC__CLUSTER_X_FOR_COORD_X", - "value": "((x) >> STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 192, - "column": 1, - "source_line": "#define STBCC__CLUSTER_X_FOR_COORD_X(x) ((x) >> STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - { - "name": "STBCC__CLUSTER_Y_FOR_COORD_Y", - "value": "((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 193, - "column": 1, - "source_line": "#define STBCC__CLUSTER_Y_FOR_COORD_Y(y) ((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - { - "name": "STBCC__MAP_BYTE_MASK", - "value": "(1 << ((x) & 7))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 195, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE_MASK(x,y) (1 << ((x) & 7))" - } - }, - { - "name": "STBCC__MAP_BYTE", - "value": "((g)->map[y][(x) >> 3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 196, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE(g,x,y) ((g)->map[y][(x) >> 3])" - } - }, - { - "name": "STBCC__MAP_OPEN", - "value": "(STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 197, - "column": 1, - "source_line": "#define STBCC__MAP_OPEN(g,x,y) (STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))" - } - }, - { - "name": "STBCC__MAX_EXITS_PER_CLUSTER", - "value": "(STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 202, - "column": 1, - "source_line": "#define STBCC__MAX_EXITS_PER_CLUSTER (STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y) // 64 for 32x32" - } - }, - { - "name": "STBCC__MAX_EXITS_PER_CLUMP", - "value": "(STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 203, - "column": 1, - "source_line": "#define STBCC__MAX_EXITS_PER_CLUMP (STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y) // 64 for 32x32" - } - }, - { - "name": "STBCC__MAX_EDGE_CLUMPS_PER_CLUSTER", - "value": "(STBCC__MAX_EXITS_PER_CLUMP)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 204, - "column": 1, - "source_line": "#define STBCC__MAX_EDGE_CLUMPS_PER_CLUSTER (STBCC__MAX_EXITS_PER_CLUMP)" - } - }, - { - "name": "STBCC__CLUSTER_ADJACENCY_COUNT", - "value": "(STBCC__MAX_EXITS_PER_CLUSTER*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 252, - "column": 1, - "source_line": "#define STBCC__CLUSTER_ADJACENCY_COUNT (STBCC__MAX_EXITS_PER_CLUSTER*2)" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 86, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 145, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 146, - "column": 1, - "source_line": "#include // memset" - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_CONNECTED_COMPONENTS_H", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 83, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_CONNECTED_COMPONENTS_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 90, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 92, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 137, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 139, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 141, - "column": 1, - "source_line": "#endif // INCLUDE_STB_CONNECTED_COMPONENTS_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_CONNECTED_COMPONENTS_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 143, - "column": 1, - "source_line": "#ifdef STB_CONNECTED_COMPONENTS_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "!defined(STBCC_GRID_COUNT_X_LOG2) || !defined(STBCC_GRID_COUNT_Y_LOG2)", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 148, - "column": 1, - "source_line": "#if !defined(STBCC_GRID_COUNT_X_LOG2) || !defined(STBCC_GRID_COUNT_Y_LOG2)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 150, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBCC_CLUSTER_SIZE_X_LOG2", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 157, - "column": 1, - "source_line": "#ifndef STBCC_CLUSTER_SIZE_X_LOG2" - } - }, - { - "directive": "if", - "argument": "STBCC_CLUSTER_SIZE_X_LOG2 > 6", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 159, - "column": 4, - "source_line": " #if STBCC_CLUSTER_SIZE_X_LOG2 > 6" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 162, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 163, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBCC_CLUSTER_SIZE_Y_LOG2", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 165, - "column": 1, - "source_line": "#ifndef STBCC_CLUSTER_SIZE_Y_LOG2" - } - }, - { - "directive": "if", - "argument": "STBCC_CLUSTER_SIZE_Y_LOG2 > 6", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 167, - "column": 4, - "source_line": " #if STBCC_CLUSTER_SIZE_Y_LOG2 > 6" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 170, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 171, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBCC__CLUSTER_SIZE_X >= STBCC__GRID_COUNT_X || STBCC__CLUSTER_SIZE_Y >= STBCC__GRID_COUNT_Y", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 182, - "column": 1, - "source_line": "#if STBCC__CLUSTER_SIZE_X >= STBCC__GRID_COUNT_X || STBCC__CLUSTER_SIZE_Y >= STBCC__GRID_COUNT_Y" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 184, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 563, - "column": 4, - "source_line": " #if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 566, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 600, - "column": 4, - "source_line": " #if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 604, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 1008, - "column": 1, - "source_line": "#endif // STB_CONNECTED_COMPONENTS_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__CLUSTER_X_FOR_COORD_X' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 192, - "column": 1, - "source_line": "#define STBCC__CLUSTER_X_FOR_COORD_X(x) ((x) >> STBCC_CLUSTER_SIZE_X_LOG2)" - }, - "unit_kind": "macro", - "unit_name": "STBCC__CLUSTER_X_FOR_COORD_X" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__CLUSTER_Y_FOR_COORD_Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 193, - "column": 1, - "source_line": "#define STBCC__CLUSTER_Y_FOR_COORD_Y(y) ((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)" - }, - "unit_kind": "macro", - "unit_name": "STBCC__CLUSTER_Y_FOR_COORD_Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_BYTE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 195, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE_MASK(x,y) (1 << ((x) & 7))" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_BYTE_MASK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_BYTE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 196, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE(g,x,y) ((g)->map[y][(x) >> 3])" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_BYTE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_OPEN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 197, - "column": 1, - "source_line": "#define STBCC__MAP_OPEN(g,x,y) (STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_OPEN" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 91, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] - } - }, - "functions": { - "stbcc_query_grid_node_connection": { - "name": "stbcc_query_grid_node_connection", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 272, - "column": 1, - "source_line": "int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 272, - "column": 1, - "source_line": "int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 289, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc_query_grid_open": { - "name": "stbcc_query_grid_open", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 291, - "column": 1, - "source_line": "int stbcc_query_grid_open(stbcc_grid *g, int x, int y)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 291, - "column": 1, - "source_line": "int stbcc_query_grid_open(stbcc_grid *g, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 294, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc_get_unique_id": { - "name": "stbcc_get_unique_id", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 296, - "column": 1, - "source_line": "unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 296, - "column": 1, - "source_line": "unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 304, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc__build_clumps_for_cluster": { - "name": "stbcc__build_clumps_for_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 863, - "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 863, - "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 1006, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 317, - "column": 1, - "source_line": "static void stbcc__build_clumps_for_cluster(stbcc_grid *g, int cx, int cy);" - } - ] - }, - "stbcc__remove_connections_to_adjacent_cluster": { - "name": "stbcc__remove_connections_to_adjacent_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 775, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 775, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 831, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 318, - "column": 1, - "source_line": "static void stbcc__remove_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy);" - } - ] - }, - "stbcc__add_connections_to_adjacent_cluster": { - "name": "stbcc__add_connections_to_adjacent_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 711, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 711, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 773, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_connected_components.h", - "line": 319, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster(stbcc_grid *g, int cx, int cy, int dx, int dy);" - } - ] - }, - "stbcc__clump_find": { - "name": "stbcc__clump_find", - "result_type": { - "reference": "stbcc__global_clumpid" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "reference": "stbcc__global_clumpid" - }, - "declared_type": { - "reference": "stbcc__global_clumpid" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 321, - "column": 1, - "source_line": "static stbcc__global_clumpid stbcc__clump_find(stbcc_grid *g, stbcc__global_clumpid n)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 321, - "column": 1, - "source_line": "static stbcc__global_clumpid stbcc__clump_find(stbcc_grid *g, stbcc__global_clumpid n)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 332, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc__clump_union": { - "name": "stbcc__clump_union", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "m", - "type": { - "reference": "stbcc__unpacked_clumpid" - }, - "declared_type": { - "reference": "stbcc__unpacked_clumpid" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "idx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 341, - "column": 1, - "source_line": "static void stbcc__clump_union(stbcc_grid *g, stbcc__unpacked_clumpid m, int x, int y, int idx)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 341, - "column": 1, - "source_line": "static void stbcc__clump_union(stbcc_grid *g, stbcc__unpacked_clumpid m, int x, int y, int idx)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 352, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc__build_connected_components_for_clumps": { - "name": "stbcc__build_connected_components_for_clumps", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 354, - "column": 1, - "source_line": "static void stbcc__build_connected_components_for_clumps(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 354, - "column": 1, - "source_line": "static void stbcc__build_connected_components_for_clumps(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 405, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc__build_all_connections_for_cluster": { - "name": "stbcc__build_all_connections_for_cluster", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 407, - "column": 1, - "source_line": "static void stbcc__build_all_connections_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 407, - "column": 1, - "source_line": "static void stbcc__build_all_connections_for_cluster(stbcc_grid *g, int cx, int cy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 517, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc__add_connections_to_adjacent_cluster_with_rebuild": { - "name": "stbcc__add_connections_to_adjacent_cluster_with_rebuild", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 519, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster_with_rebuild(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 519, - "column": 1, - "source_line": "static void stbcc__add_connections_to_adjacent_cluster_with_rebuild(stbcc_grid *g, int cx, int cy, int dx, int dy)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 526, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc_update_grid": { - "name": "stbcc_update_grid", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "solid", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int solid" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int solid" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 528, - "column": 1, - "source_line": "void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 528, - "column": 1, - "source_line": "void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 567, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc_update_batch_begin": { - "name": "stbcc_update_batch_begin", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", + }, + { + "name": "x", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int x" }, - { - "reference": "stbcc_grid" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 569, - "column": 1, - "source_line": "void stbcc_update_batch_begin(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 569, - "column": 1, - "source_line": "void stbcc_update_batch_begin(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 573, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbcc_update_batch_end": { - "name": "stbcc_update_batch_end", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int x" }, - { - "reference": "stbcc_grid" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbcc_grid *g", - "components": [ - { - "model": "CPointer", + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int y" }, - { - "reference": "stbcc_grid" - } - ] + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_connected_components.h", + "line": 134, + "column": 1, + "source_line": "extern unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y);" }, - "source_location": null, - "callback_policy": null + "start": { + "filename": "stb/stb_connected_components.h", + "line": 134, + "column": 1, + "source_line": "extern unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y);" + }, + "end": null, + "declaration_locations": [] } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 575, - "column": 1, - "source_line": "void stbcc_update_batch_end(stbcc_grid *g)" - }, - "start": { - "filename": "stb/stb_connected_components.h", - "line": 575, - "column": 1, - "source_line": "void stbcc_update_batch_end(stbcc_grid *g)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 580, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { "stbcc_grid_sizeof": { "name": "stbcc_grid_sizeof", "result_type": { "reference": "size_t" }, "parameters": [], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 582, + "line": 100, "column": 1, - "source_line": "size_t stbcc_grid_sizeof(void)" + "source_line": "extern size_t stbcc_grid_sizeof(void);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 582, - "column": 1, - "source_line": "size_t stbcc_grid_sizeof(void)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 585, + "line": 100, "column": 1, - "source_line": "}" + "source_line": "extern size_t stbcc_grid_sizeof(void);" }, + "end": null, "declaration_locations": [] }, "stbcc_init_grid": { @@ -5730,33 +907,30 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 587, + "line": 103, "column": 1, - "source_line": "void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h)" + "source_line": "extern void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 587, - "column": 1, - "source_line": "void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 629, + "line": 103, "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_init_grid(stbcc_grid *g, unsigned char *map, int w, int h);" }, + "end": null, "declaration_locations": [] }, - "stbcc__add_clump_connection": { - "name": "stbcc__add_clump_connection", + "stbcc_update_grid": { + "name": "stbcc_update_grid", "result_type": { "model": "CVoid", "qualifiers": [], @@ -5799,99 +973,79 @@ "callback_policy": null }, { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", + "name": "x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y1" + "source_text": "int x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y1" + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "x2", + "name": "y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int y" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "solid", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int solid" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int solid" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 632, + "line": 113, "column": 1, - "source_line": "static void stbcc__add_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" + "source_line": "extern void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 632, - "column": 1, - "source_line": "static void stbcc__add_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 667, + "line": 113, "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_update_grid(stbcc_grid *g, int x, int y, int solid);" }, + "end": null, "declaration_locations": [] }, - "stbcc__remove_clump_connection": { - "name": "stbcc__remove_clump_connection", + "stbcc_query_grid_node_connection": { + "name": "stbcc_query_grid_node_connection", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -5991,44 +1145,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 669, + "line": 116, "column": 1, - "source_line": "static void stbcc__remove_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" + "source_line": "extern int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 669, - "column": 1, - "source_line": "static void stbcc__remove_clump_connection(stbcc_grid *g, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 709, + "line": 116, "column": 1, - "source_line": "}" + "source_line": "extern int stbcc_query_grid_node_connection(stbcc_grid *g, int x1, int y1, int x2, int y2);" }, + "end": null, "declaration_locations": [] }, - "stbcc__incluster_find": { - "name": "stbcc__incluster_find", + "stbcc_update_batch_begin": { + "name": "stbcc_update_batch_begin", "result_type": { - "reference": "stbcc__tinypoint" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "cbi", + "name": "g", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6036,14 +1187,14 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6051,85 +1202,116 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_connected_components.h", + "line": 126, + "column": 1, + "source_line": "extern void stbcc_update_batch_begin(stbcc_grid *g);" + }, + "start": { + "filename": "stb/stb_connected_components.h", + "line": 126, + "column": 1, + "source_line": "extern void stbcc_update_batch_begin(stbcc_grid *g);" + }, + "end": null, + "declaration_locations": [] + }, + "stbcc_update_batch_end": { + "name": "stbcc_update_batch_end", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "y", + "name": "g", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y" + "source_text": "stbcc_grid *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbcc_grid" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y" + "source_text": "stbcc_grid *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbcc_grid" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 833, + "line": 127, "column": 1, - "source_line": "static stbcc__tinypoint stbcc__incluster_find(stbcc__cluster_build_info *cbi, int x, int y)" + "source_line": "extern void stbcc_update_batch_end(stbcc_grid *g);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 833, - "column": 1, - "source_line": "static stbcc__tinypoint stbcc__incluster_find(stbcc__cluster_build_info *cbi, int x, int y)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 842, + "line": 127, "column": 1, - "source_line": "}" + "source_line": "extern void stbcc_update_batch_end(stbcc_grid *g);" }, + "end": null, "declaration_locations": [] }, - "stbcc__incluster_union": { - "name": "stbcc__incluster_union", + "stbcc_query_grid_open": { + "name": "stbcc_query_grid_open", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "cbi", + "name": "g", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6137,14 +1319,14 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6152,7 +1334,7 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, @@ -6160,107 +1342,72 @@ "callback_policy": null }, { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", + "name": "x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x2" + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y2" + "source_text": "int y" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 844, + "line": 130, "column": 1, - "source_line": "static void stbcc__incluster_union(stbcc__cluster_build_info *cbi, int x1, int y1, int x2, int y2)" + "source_line": "extern int stbcc_query_grid_open(stbcc_grid *g, int x, int y);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 844, - "column": 1, - "source_line": "static void stbcc__incluster_union(stbcc__cluster_build_info *cbi, int x1, int y1, int x2, int y2)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 853, + "line": 130, "column": 1, - "source_line": "}" + "source_line": "extern int stbcc_query_grid_open(stbcc_grid *g, int x, int y);" }, + "end": null, "declaration_locations": [] }, - "stbcc__switch_root": { - "name": "stbcc__switch_root", + "stbcc_get_unique_id": { + "name": "stbcc_get_unique_id", "result_type": { - "model": "CVoid", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int" }, "parameters": [ { - "name": "cbi", + "name": "g", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6268,14 +1415,14 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbcc__cluster_build_info *cbi", + "source_text": "stbcc_grid *g", "components": [ { "model": "CPointer", @@ -6283,7 +1430,7 @@ "source_text": "" }, { - "reference": "stbcc__cluster_build_info" + "reference": "stbcc_grid" } ] }, @@ -6319,462 +1466,48 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "p", - "type": { - "reference": "stbcc__tinypoint" - }, - "declared_type": { - "reference": "stbcc__tinypoint" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_connected_components.h", - "line": 855, + "line": 134, "column": 1, - "source_line": "static void stbcc__switch_root(stbcc__cluster_build_info *cbi, int x, int y, stbcc__tinypoint p)" + "source_line": "extern unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y);" }, "start": { "filename": "stb/stb_connected_components.h", - "line": 855, + "line": 134, "column": 1, - "source_line": "static void stbcc__switch_root(stbcc__cluster_build_info *cbi, int x, int y, stbcc__tinypoint p)" - }, - "end": { - "filename": "stb/stb_connected_components.h", - "line": 861, - "column": 1, - "source_line": "}" + "source_line": "extern unsigned int stbcc_get_unique_id(stbcc_grid *g, int x, int y);" }, + "end": null, "declaration_locations": [] } }, - "structs": { - "st_stbcc_grid": { - "reference": "struct st_stbcc_grid" - } - }, + "structs": {}, "unions": {}, "enums": {}, - "typedefs": { - "stbcc_grid": { - "reference": "stbcc_grid" - }, - "stbcc__clumpid": { - "reference": "stbcc__clumpid" - }, - "stbcc__verify_max_clumps": { - "reference": "stbcc__verify_max_clumps" - }, - "stbcc__verify_max_exits": { - "reference": "stbcc__verify_max_exits" - }, - "stbcc__relative_clumpid": { - "reference": "stbcc__relative_clumpid" - }, - "stbcc__global_clumpid": { - "reference": "stbcc__global_clumpid" - }, - "stbcc__clump": { - "reference": "stbcc__clump" - }, - "stbcc__cluster": { - "reference": "stbcc__cluster" - }, - "stbcc__tinypoint": { - "reference": "stbcc__tinypoint" - }, - "stbcc__cluster_build_info": { - "reference": "stbcc__cluster_build_info" - }, - "stbcc__unpacked_clumpid": { - "reference": "stbcc__unpacked_clumpid" - } - }, + "typedefs": {}, "variables": {}, - "macros": { - "INCLUDE_STB_CONNECTED_COMPONENTS_H": { - "name": "INCLUDE_STB_CONNECTED_COMPONENTS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 84, - "column": 1, - "source_line": "#define INCLUDE_STB_CONNECTED_COMPONENTS_H" - } - }, - "STBCC_NULL_UNIQUE_ID": { - "name": "STBCC_NULL_UNIQUE_ID", - "value": "0xffffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 135, - "column": 1, - "source_line": "#define STBCC_NULL_UNIQUE_ID 0xffffffff // returned for closed map squares" - } - }, - "STBCC__GRID_COUNT_X": { - "name": "STBCC__GRID_COUNT_X", - "value": "(1 << STBCC_GRID_COUNT_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 152, - "column": 1, - "source_line": "#define STBCC__GRID_COUNT_X (1 << STBCC_GRID_COUNT_X_LOG2)" - } - }, - "STBCC__GRID_COUNT_Y": { - "name": "STBCC__GRID_COUNT_Y", - "value": "(1 << STBCC_GRID_COUNT_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 153, - "column": 1, - "source_line": "#define STBCC__GRID_COUNT_Y (1 << STBCC_GRID_COUNT_Y_LOG2)" - } - }, - "STBCC__MAP_STRIDE": { - "name": "STBCC__MAP_STRIDE", - "value": "(1 << (STBCC_GRID_COUNT_X_LOG2-3))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 155, - "column": 1, - "source_line": "#define STBCC__MAP_STRIDE (1 << (STBCC_GRID_COUNT_X_LOG2-3))" - } - }, - "STBCC_CLUSTER_SIZE_X_LOG2": { - "name": "STBCC_CLUSTER_SIZE_X_LOG2", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 161, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_X_LOG2 6" - } - }, - "STBCC_CLUSTER_SIZE_Y_LOG2": { - "name": "STBCC_CLUSTER_SIZE_Y_LOG2", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 169, - "column": 4, - "source_line": " #define STBCC_CLUSTER_SIZE_Y_LOG2 6" - } - }, - "STBCC__CLUSTER_SIZE_X": { - "name": "STBCC__CLUSTER_SIZE_X", - "value": "(1 << STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 173, - "column": 1, - "source_line": "#define STBCC__CLUSTER_SIZE_X (1 << STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - "STBCC__CLUSTER_SIZE_Y": { - "name": "STBCC__CLUSTER_SIZE_Y", - "value": "(1 << STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 174, - "column": 1, - "source_line": "#define STBCC__CLUSTER_SIZE_Y (1 << STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - "STBCC__CLUSTER_COUNT_X_LOG2": { - "name": "STBCC__CLUSTER_COUNT_X_LOG2", - "value": "(STBCC_GRID_COUNT_X_LOG2 - STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 176, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_X_LOG2 (STBCC_GRID_COUNT_X_LOG2 - STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - "STBCC__CLUSTER_COUNT_Y_LOG2": { - "name": "STBCC__CLUSTER_COUNT_Y_LOG2", - "value": "(STBCC_GRID_COUNT_Y_LOG2 - STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 177, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_Y_LOG2 (STBCC_GRID_COUNT_Y_LOG2 - STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - "STBCC__CLUSTER_COUNT_X": { - "name": "STBCC__CLUSTER_COUNT_X", - "value": "(1 << STBCC__CLUSTER_COUNT_X_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 179, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_X (1 << STBCC__CLUSTER_COUNT_X_LOG2)" - } - }, - "STBCC__CLUSTER_COUNT_Y": { - "name": "STBCC__CLUSTER_COUNT_Y", - "value": "(1 << STBCC__CLUSTER_COUNT_Y_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 180, - "column": 1, - "source_line": "#define STBCC__CLUSTER_COUNT_Y (1 << STBCC__CLUSTER_COUNT_Y_LOG2)" - } - }, - "STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2": { - "name": "STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2", - "value": "(STBCC_CLUSTER_SIZE_X_LOG2 + STBCC_CLUSTER_SIZE_Y_LOG2-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 187, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2 (STBCC_CLUSTER_SIZE_X_LOG2 + STBCC_CLUSTER_SIZE_Y_LOG2-1)" - } - }, - "STBCC__MAX_CLUMPS_PER_CLUSTER": { - "name": "STBCC__MAX_CLUMPS_PER_CLUSTER", - "value": "(1 << STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 188, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS_PER_CLUSTER (1 << STBCC__MAX_CLUMPS_PER_CLUSTER_LOG2)" - } - }, - "STBCC__MAX_CLUMPS": { - "name": "STBCC__MAX_CLUMPS", - "value": "(STBCC__MAX_CLUMPS_PER_CLUSTER * STBCC__CLUSTER_COUNT_X * STBCC__CLUSTER_COUNT_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 189, - "column": 1, - "source_line": "#define STBCC__MAX_CLUMPS (STBCC__MAX_CLUMPS_PER_CLUSTER * STBCC__CLUSTER_COUNT_X * STBCC__CLUSTER_COUNT_Y)" - } - }, - "STBCC__NULL_CLUMPID": { - "name": "STBCC__NULL_CLUMPID", - "value": "STBCC__MAX_CLUMPS_PER_CLUSTER", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 190, - "column": 1, - "source_line": "#define STBCC__NULL_CLUMPID STBCC__MAX_CLUMPS_PER_CLUSTER" - } - }, - "STBCC__CLUSTER_X_FOR_COORD_X": { - "name": "STBCC__CLUSTER_X_FOR_COORD_X", - "value": "((x) >> STBCC_CLUSTER_SIZE_X_LOG2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 192, - "column": 1, - "source_line": "#define STBCC__CLUSTER_X_FOR_COORD_X(x) ((x) >> STBCC_CLUSTER_SIZE_X_LOG2)" - } - }, - "STBCC__CLUSTER_Y_FOR_COORD_Y": { - "name": "STBCC__CLUSTER_Y_FOR_COORD_Y", - "value": "((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 193, - "column": 1, - "source_line": "#define STBCC__CLUSTER_Y_FOR_COORD_Y(y) ((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)" - } - }, - "STBCC__MAP_BYTE_MASK": { - "name": "STBCC__MAP_BYTE_MASK", - "value": "(1 << ((x) & 7))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 195, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE_MASK(x,y) (1 << ((x) & 7))" - } - }, - "STBCC__MAP_BYTE": { - "name": "STBCC__MAP_BYTE", - "value": "((g)->map[y][(x) >> 3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 196, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE(g,x,y) ((g)->map[y][(x) >> 3])" - } - }, - "STBCC__MAP_OPEN": { - "name": "STBCC__MAP_OPEN", - "value": "(STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 197, - "column": 1, - "source_line": "#define STBCC__MAP_OPEN(g,x,y) (STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))" - } - }, - "STBCC__MAX_EXITS_PER_CLUSTER": { - "name": "STBCC__MAX_EXITS_PER_CLUSTER", - "value": "(STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 202, - "column": 1, - "source_line": "#define STBCC__MAX_EXITS_PER_CLUSTER (STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y) // 64 for 32x32" - } - }, - "STBCC__MAX_EXITS_PER_CLUMP": { - "name": "STBCC__MAX_EXITS_PER_CLUMP", - "value": "(STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 203, - "column": 1, - "source_line": "#define STBCC__MAX_EXITS_PER_CLUMP (STBCC__CLUSTER_SIZE_X + STBCC__CLUSTER_SIZE_Y) // 64 for 32x32" - } - }, - "STBCC__MAX_EDGE_CLUMPS_PER_CLUSTER": { - "name": "STBCC__MAX_EDGE_CLUMPS_PER_CLUSTER", - "value": "(STBCC__MAX_EXITS_PER_CLUMP)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 204, - "column": 1, - "source_line": "#define STBCC__MAX_EDGE_CLUMPS_PER_CLUSTER (STBCC__MAX_EXITS_PER_CLUMP)" - } - }, - "STBCC__CLUSTER_ADJACENCY_COUNT": { - "name": "STBCC__CLUSTER_ADJACENCY_COUNT", - "value": "(STBCC__MAX_EXITS_PER_CLUSTER*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 252, - "column": 1, - "source_line": "#define STBCC__CLUSTER_ADJACENCY_COUNT (STBCC__MAX_EXITS_PER_CLUSTER*2)" - } - } - }, - "includes": { - "stb/stb_connected_components.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 86, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_connected_components.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 145, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_connected_components.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_connected_components.h", - "line": 146, - "column": 1, - "source_line": "#include // memset" - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_connected_components.h": [ - "stbcc_query_grid_node_connection", - "stbcc_query_grid_open", - "stbcc_get_unique_id", - "stbcc__build_clumps_for_cluster", - "stbcc__remove_connections_to_adjacent_cluster", - "stbcc__add_connections_to_adjacent_cluster", - "stbcc__clump_find", - "stbcc__clump_union", - "stbcc__build_connected_components_for_clumps", - "stbcc__build_all_connections_for_cluster", - "stbcc__add_connections_to_adjacent_cluster_with_rebuild", + "stbcc_grid_sizeof", + "stbcc_init_grid", "stbcc_update_grid", + "stbcc_query_grid_node_connection", "stbcc_update_batch_begin", "stbcc_update_batch_end", - "stbcc_grid_sizeof", - "stbcc_init_grid", - "stbcc__add_clump_connection", - "stbcc__remove_clump_connection", - "stbcc__incluster_find", - "stbcc__incluster_union", - "stbcc__switch_root" + "stbcc_query_grid_open", + "stbcc_get_unique_id" ] }, "enum_constants": {}, @@ -6782,11 +1515,7 @@ "stb/stb_connected_components.h": [] }, "system_includes": { - "stb/stb_connected_components.h": [ - "assert.h", - "stdlib.h", - "string.h" - ] + "stb/stb_connected_components.h": [] }, "unresolved_includes": { "stb/stb_connected_components.h": [] @@ -6794,97 +1523,5 @@ "header_source_pairs": { "stb/stb_connected_components.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__CLUSTER_X_FOR_COORD_X' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 192, - "column": 1, - "source_line": "#define STBCC__CLUSTER_X_FOR_COORD_X(x) ((x) >> STBCC_CLUSTER_SIZE_X_LOG2)" - }, - "unit_kind": "macro", - "unit_name": "STBCC__CLUSTER_X_FOR_COORD_X" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__CLUSTER_Y_FOR_COORD_Y' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 193, - "column": 1, - "source_line": "#define STBCC__CLUSTER_Y_FOR_COORD_Y(y) ((y) >> STBCC_CLUSTER_SIZE_Y_LOG2)" - }, - "unit_kind": "macro", - "unit_name": "STBCC__CLUSTER_Y_FOR_COORD_Y" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_BYTE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 195, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE_MASK(x,y) (1 << ((x) & 7))" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_BYTE_MASK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_BYTE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 196, - "column": 1, - "source_line": "#define STBCC__MAP_BYTE(g,x,y) ((g)->map[y][(x) >> 3])" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_BYTE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBCC__MAP_OPEN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 197, - "column": 1, - "source_line": "#define STBCC__MAP_OPEN(g,x,y) (STBCC__MAP_BYTE(g,x,y) & STBCC__MAP_BYTE_MASK(x,y))" - }, - "unit_kind": "macro", - "unit_name": "STBCC__MAP_OPEN" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 91, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNION_BY_VALUE", - "message": "Function 'stbcc__clump_find' uses union type(s) by value: union@stb/stb_connected_components.h:229:1. Use an explicit pointer or defer wrapper policy to the semantic layer.", - "severity": "warning", - "location": { - "filename": "stb/stb_connected_components.h", - "line": 321, - "column": 1, - "source_line": "static stbcc__global_clumpid stbcc__clump_find(stbcc_grid *g, stbcc__global_clumpid n)" - }, - "unit_kind": "function", - "unit_name": "stbcc__clump_find" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_divide.json b/tests/parser/c/fixtures/stb/stb_divide.json index a44622834..d977f0291 100644 --- a/tests/parser/c/fixtures/stb/stb_divide.json +++ b/tests/parser/c/fixtures/stb/stb_divide.json @@ -3,8 +3,10 @@ "stb/stb_divide.h": { "filename": "stb/stb_divide.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_divide.h" + ], "functions": [ { "name": "stb_div_trunc", @@ -15,59 +17,56 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 147, + "line": 94, "column": 1, - "source_line": "int stb_div_trunc(int v1, int v2)" + "source_line": "extern int stb_div_trunc(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 147, - "column": 1, - "source_line": "int stb_div_trunc(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 162, + "line": 94, "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_trunc(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, { @@ -79,59 +78,56 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 164, + "line": 95, "column": 1, - "source_line": "int stb_div_floor(int v1, int v2)" + "source_line": "extern int stb_div_floor(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 164, - "column": 1, - "source_line": "int stb_div_floor(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 186, + "line": 95, "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_floor(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, { @@ -143,59 +139,56 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 188, + "line": 96, "column": 1, - "source_line": "int stb_div_eucl(int v1, int v2)" + "source_line": "extern int stb_div_eucl (int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 188, - "column": 1, - "source_line": "int stb_div_eucl(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 222, + "line": 96, "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_eucl (int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, { @@ -207,127 +200,60 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 224, - "column": 1, - "source_line": "int stb_mod_trunc(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 224, - "column": 1, - "source_line": "int stb_mod_trunc(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 243, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_mod_floor", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "source_location": null, - "callback_policy": null - } + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 245, + "line": 97, "column": 1, - "source_line": "int stb_mod_floor(int v1, int v2)" + "source_line": "extern int stb_mod_trunc(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 245, - "column": 1, - "source_line": "int stb_mod_floor(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 264, + "line": 97, "column": 1, - "source_line": "}" + "source_line": "extern int stb_mod_trunc(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, { - "name": "stb_mod_eucl", + "name": "stb_mod_floor", "result_type": { "model": "CInt", "qualifiers": [], @@ -335,1336 +261,135 @@ }, "parameters": [ { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 266, - "column": 1, - "source_line": "int stb_mod_eucl(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 266, - "column": 1, - "source_line": "int stb_mod_eucl(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 274, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbdiv_check", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "q", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int q" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int q" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "type", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *type", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *type", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dir" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 284, - "column": 1, - "source_line": "void stbdiv_check(int q, int r, int a, int b, char *type, int dir)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 284, - "column": 1, - "source_line": "void stbdiv_check(int q, int r, int a, int b, char *type, int dir)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 309, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "test", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 311, - "column": 1, - "source_line": "void test(int a, int b)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 311, - "column": 1, - "source_line": "void test(int a, int b)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 321, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "testh", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 323, - "column": 1, - "source_line": "void testh(int a, int b)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 323, - "column": 1, - "source_line": "void testh(int a, int b)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 333, + "line": 98, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "argc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "argv", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 335, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 335, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 388, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [ - { - "name": "show", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int show" - }, - "storage": [], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 281, - "column": 1, - "source_line": "int show=0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "err", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int err" - }, - "storage": [], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 282, - "column": 1, - "source_line": "int err=0;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "INCLUDE_STB_DIVIDE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 88, - "column": 1, - "source_line": "#define INCLUDE_STB_DIVIDE_H" - } - }, - { - "name": "C_INTEGER_DIVISION_TRUNCATES", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 109, - "column": 7, - "source_line": " #define C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "name": "stb__div", - "value": "((a)/(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 120, - "column": 4, - "source_line": " #define stb__div(a,b) ((a)/(b))" - } - }, - { - "name": "stb__mod", - "value": "((a)%(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 121, - "column": 4, - "source_line": " #define stb__mod(a,b) ((a)%(b))" - } - }, - { - "name": "C_INTEGER_DIVISION_TRUNCATES", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 127, - "column": 4, - "source_line": " #undef C_INTEGER_DIVISION_TRUNCATES" - } - } - ], - "includes": [ - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 114, - "column": 1, - "source_line": "#include // if you have no limits.h, #define INT_MIN yourself" - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 277, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 278, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 279, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_DIVIDE_H", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 87, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_DIVIDE_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 90, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 92, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 101, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 103, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_DIVIDE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 105, - "column": 1, - "source_line": "#ifdef STB_DIVIDE_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "defined(__STDC_VERSION) && __STDC_VERSION__ >= 19901", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 107, - "column": 1, - "source_line": "#if defined(__STDC_VERSION) && __STDC_VERSION__ >= 19901" - } - }, - { - "directive": "ifndef", - "argument": "C_INTEGER_DIVISION_TRUNCATES", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 108, - "column": 4, - "source_line": " #ifndef C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 110, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 111, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "INT_MIN", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 113, - "column": 1, - "source_line": "#ifndef INT_MIN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 115, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_DIVIDE_TEST_FLOOR", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 119, - "column": 1, - "source_line": "#ifndef STB_DIVIDE_TEST_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 122, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifndef", - "argument": "C_INTEGER_DIVISION_TRUNCATES", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 124, - "column": 4, - "source_line": " #ifndef C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 126, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 145, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "C_INTEGER_DIVISION_TRUNCATES", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 149, - "column": 4, - "source_line": " #ifdef C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 151, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 161, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "C_INTEGER_DIVISION_FLOORS", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 166, - "column": 4, - "source_line": " #ifdef C_INTEGER_DIVISION_FLOORS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 168, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 185, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "C_INTEGER_DIVISION_TRUNCATES", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 191, - "column": 4, - "source_line": " #ifdef C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 194, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 217, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "C_INTEGER_DIVISION_TRUNCATES", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 226, - "column": 4, - "source_line": " #ifdef C_INTEGER_DIVISION_TRUNCATES" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 228, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 242, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "C_INTEGER_DIVISION_FLOORS", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 247, - "column": 4, - "source_line": " #ifdef C_INTEGER_DIVISION_FLOORS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 249, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 263, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_DIVIDE_TEST", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 276, - "column": 1, - "source_line": "#ifdef STB_DIVIDE_TEST" - } - }, - { - "directive": "ifdef", - "argument": "STB_DIVIDE_TEST_64", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 295, - "column": 4, - "source_line": " #ifdef STB_DIVIDE_TEST_64" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 303, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 308, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 389, - "column": 1, - "source_line": "#endif // STB_DIVIDE_TEST" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 390, - "column": 1, - "source_line": "#endif // STB_DIVIDE_IMPLEMENTATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 391, - "column": 1, - "source_line": "#endif // INCLUDE_STB_DIVIDE_H" - } - } - ], - "macro_dependencies": [ - { - "name": "stb__div", - "context": "declaration", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 128, - "column": 4, - "source_line": " int stb__div(int v1, int v2)" - }, - "source_text": "int stb__div(int v1, int v2)" - }, - { - "name": "stb__mod", - "context": "declaration", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 137, - "column": 4, - "source_line": " int stb__mod(int v1, int v2)" - }, - "source_text": "int stb__mod(int v1, int v2)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__div' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 120, - "column": 4, - "source_line": " #define stb__div(a,b) ((a)/(b))" - }, - "unit_kind": "macro", - "unit_name": "stb__div" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__mod' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 121, - "column": 4, - "source_line": " #define stb__mod(a,b) ((a)%(b))" - }, - "unit_kind": "macro", - "unit_name": "stb__mod" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 91, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stb__div'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 128, - "column": 4, - "source_line": " int stb__div(int v1, int v2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stb__div" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stb__mod'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 137, - "column": 4, - "source_line": " int stb__mod(int v1, int v2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stb__mod" - } - ] - } - }, - "functions": { - "stb_div_trunc": { - "name": "stb_div_trunc", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 147, - "column": 1, - "source_line": "int stb_div_trunc(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 147, - "column": 1, - "source_line": "int stb_div_trunc(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 162, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_div_floor": { - "name": "stb_div_floor", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 164, - "column": 1, - "source_line": "int stb_div_floor(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 164, - "column": 1, - "source_line": "int stb_div_floor(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 186, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_div_eucl": { - "name": "stb_div_eucl", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 188, - "column": 1, - "source_line": "int stb_div_eucl(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 188, - "column": 1, - "source_line": "int stb_div_eucl(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 222, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_mod_trunc": { - "name": "stb_mod_trunc", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" + "source_line": "extern int stb_mod_floor(int value_to_be_divided, int value_to_divide_by);" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" + "start": { + "filename": "stb/stb_divide.h", + "line": 98, + "column": 1, + "source_line": "extern int stb_mod_floor(int value_to_be_divided, int value_to_divide_by);" }, - "source_location": null, - "callback_policy": null + "end": null, + "declaration_locations": [] }, { - "name": "v2", - "type": { + "name": "stb_mod_eucl", + "result_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v2" + "parameters": [ + { + "name": "value_to_be_divided", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int value_to_be_divided" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int value_to_be_divided" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "value_to_divide_by", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int value_to_divide_by" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int value_to_divide_by" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_divide.h", + "line": 99, + "column": 1, + "source_line": "extern int stb_mod_eucl (int value_to_be_divided, int value_to_divide_by);" }, - "source_location": null, - "callback_policy": null + "start": { + "filename": "stb/stb_divide.h", + "line": 99, + "column": 1, + "source_line": "extern int stb_mod_eucl (int value_to_be_divided, int value_to_divide_by);" + }, + "end": null, + "declaration_locations": [] } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 224, - "column": 1, - "source_line": "int stb_mod_trunc(int v1, int v2)" - }, - "start": { - "filename": "stb/stb_divide.h", - "line": 224, - "column": 1, - "source_line": "int stb_mod_trunc(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 243, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_mod_floor": { - "name": "stb_mod_floor", + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stb_div_trunc": { + "name": "stb_div_trunc", "result_type": { "model": "CInt", "qualifiers": [], @@ -1672,63 +397,60 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 245, + "line": 94, "column": 1, - "source_line": "int stb_mod_floor(int v1, int v2)" + "source_line": "extern int stb_div_trunc(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 245, + "line": 94, "column": 1, - "source_line": "int stb_mod_floor(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 264, - "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_trunc(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, - "stb_mod_eucl": { - "name": "stb_mod_eucl", + "stb_div_floor": { + "name": "stb_div_floor", "result_type": { "model": "CInt", "qualifiers": [], @@ -1736,339 +458,243 @@ }, "parameters": [ { - "name": "v1", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v1" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "v2", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v2" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 266, + "line": 95, "column": 1, - "source_line": "int stb_mod_eucl(int v1, int v2)" + "source_line": "extern int stb_div_floor(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 266, + "line": 95, "column": 1, - "source_line": "int stb_mod_eucl(int v1, int v2)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 274, - "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_floor(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, - "stbdiv_check": { - "name": "stbdiv_check", + "stb_div_eucl": { + "name": "stb_div_eucl", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "q", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int q" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int q" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "type", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *type", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *type", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "dir", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int dir" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int dir" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 284, + "line": 96, "column": 1, - "source_line": "void stbdiv_check(int q, int r, int a, int b, char *type, int dir)" + "source_line": "extern int stb_div_eucl (int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 284, + "line": 96, "column": 1, - "source_line": "void stbdiv_check(int q, int r, int a, int b, char *type, int dir)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 309, - "column": 1, - "source_line": "}" + "source_line": "extern int stb_div_eucl (int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, - "test": { - "name": "test", + "stb_mod_trunc": { + "name": "stb_mod_trunc", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "a", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 311, + "line": 97, "column": 1, - "source_line": "void test(int a, int b)" + "source_line": "extern int stb_mod_trunc(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 311, + "line": 97, "column": 1, - "source_line": "void test(int a, int b)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 321, - "column": 1, - "source_line": "}" + "source_line": "extern int stb_mod_trunc(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, - "testh": { - "name": "testh", + "stb_mod_floor": { + "name": "stb_mod_floor", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "a", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "value_to_divide_by", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 323, + "line": 98, "column": 1, - "source_line": "void testh(int a, int b)" + "source_line": "extern int stb_mod_floor(int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 323, + "line": 98, "column": 1, - "source_line": "void testh(int a, int b)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 333, - "column": 1, - "source_line": "}" + "source_line": "extern int stb_mod_floor(int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] }, - "main": { - "name": "main", + "stb_mod_eucl": { + "name": "stb_mod_eucl", "result_type": { "model": "CInt", "qualifiers": [], @@ -2076,93 +702,56 @@ }, "parameters": [ { - "name": "argc", + "name": "value_to_be_divided", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int argc" + "source_text": "int value_to_be_divided" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int argc" + "source_text": "int value_to_be_divided" }, "source_location": null, "callback_policy": null }, { - "name": "argv", + "name": "value_to_divide_by", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int value_to_divide_by" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int value_to_divide_by" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_divide.h", - "line": 335, + "line": 99, "column": 1, - "source_line": "int main(int argc, char **argv)" + "source_line": "extern int stb_mod_eucl (int value_to_be_divided, int value_to_divide_by);" }, "start": { "filename": "stb/stb_divide.h", - "line": 335, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_divide.h", - "line": 388, + "line": 99, "column": 1, - "source_line": "}" + "source_line": "extern int stb_mod_eucl (int value_to_be_divided, int value_to_divide_by);" }, + "end": null, "declaration_locations": [] } }, @@ -2170,135 +759,9 @@ "unions": {}, "enums": {}, "typedefs": {}, - "variables": { - "show": { - "name": "show", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int show" - }, - "storage": [], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 281, - "column": 1, - "source_line": "int show=0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "err": { - "name": "err", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int err" - }, - "storage": [], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 282, - "column": 1, - "source_line": "int err=0;" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "INCLUDE_STB_DIVIDE_H": { - "name": "INCLUDE_STB_DIVIDE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 88, - "column": 1, - "source_line": "#define INCLUDE_STB_DIVIDE_H" - } - }, - "C_INTEGER_DIVISION_TRUNCATES": { - "name": "C_INTEGER_DIVISION_TRUNCATES", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 127, - "column": 4, - "source_line": " #undef C_INTEGER_DIVISION_TRUNCATES" - } - }, - "stb__div": { - "name": "stb__div", - "value": "((a)/(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 120, - "column": 4, - "source_line": " #define stb__div(a,b) ((a)/(b))" - } - }, - "stb__mod": { - "name": "stb__mod", - "value": "((a)%(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_divide.h", - "line": 121, - "column": 4, - "source_line": " #define stb__mod(a,b) ((a)%(b))" - } - } - }, - "includes": { - "stb/stb_divide.h:limits.h": { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 279, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_divide.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 277, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_divide.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_divide.h", - "line": 278, - "column": 1, - "source_line": "#include " - } - } - }, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_divide.h": [ "stb_div_trunc", @@ -2306,11 +769,7 @@ "stb_div_eucl", "stb_mod_trunc", "stb_mod_floor", - "stb_mod_eucl", - "stbdiv_check", - "test", - "testh", - "main" + "stb_mod_eucl" ] }, "enum_constants": {}, @@ -2318,11 +777,7 @@ "stb/stb_divide.h": [] }, "system_includes": { - "stb/stb_divide.h": [ - "limits.h", - "math.h", - "stdio.h" - ] + "stb/stb_divide.h": [] }, "unresolved_includes": { "stb/stb_divide.h": [] @@ -2330,71 +785,5 @@ "header_source_pairs": { "stb/stb_divide.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__div' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 120, - "column": 4, - "source_line": " #define stb__div(a,b) ((a)/(b))" - }, - "unit_kind": "macro", - "unit_name": "stb__div" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__mod' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 121, - "column": 4, - "source_line": " #define stb__mod(a,b) ((a)%(b))" - }, - "unit_kind": "macro", - "unit_name": "stb__mod" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 91, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stb__div'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 128, - "column": 4, - "source_line": " int stb__div(int v1, int v2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stb__div" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stb__mod'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_divide.h", - "line": 137, - "column": 4, - "source_line": " int stb__mod(int v1, int v2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stb__mod" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_ds.json b/tests/parser/c/fixtures/stb/stb_ds.json index 65c97b266..89e4fbbe3 100644 --- a/tests/parser/c/fixtures/stb/stb_ds.json +++ b/tests/parser/c/fixtures/stb/stb_ds.json @@ -3,35 +3,75 @@ "stb/stb_ds.h": { "filename": "stb/stb_ds.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_ds.h" + ], "functions": [ { - "name": "stbds_arrgrowf", + "name": "stbds_rand_seed", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "source_text": "void" + }, + "parameters": [ + { + "name": "seed", + "type": { + "reference": "size_t" }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 851, + "column": 1, + "source_line": "void stbds_rand_seed(size_t seed)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 851, + "column": 1, + "source_line": "void stbds_rand_seed(size_t seed)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 854, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 475, + "column": 1, + "source_line": "extern void stbds_rand_seed(size_t seed);" + } + ] + }, + { + "name": "stbds_hash_bytes", + "result_type": { + "reference": "size_t" }, "parameters": [ { - "name": "a", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -48,7 +88,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -66,33 +106,10 @@ "callback_policy": null }, { - "name": "elemsize", + "name": "len", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { "reference": "size_t" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "addlen", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t addlen", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, "declared_type": { "reference": "size_t" }, @@ -100,15 +117,9 @@ "callback_policy": null }, { - "name": "min_cap", + "name": "seed", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t min_cap", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -124,38 +135,43 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 762, + "line": 1116, "column": 1, - "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" + "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" }, "start": { "filename": "stb/stb_ds.h", - "line": 762, + "line": 1116, "column": 1, - "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" + "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" }, "end": { "filename": "stb/stb_ds.h", - "line": 798, + "line": 1197, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 478, + "column": 1, + "source_line": "extern size_t stbds_hash_bytes(void *p, size_t len, size_t seed);" + } + ] }, { - "name": "stbds_arrfreef", + "name": "stbds_hash_string", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "size_t" }, "parameters": [ { - "name": "a", + "name": "str", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "char *str", "components": [ { "model": "CPointer", @@ -163,16 +179,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "char *str", "components": [ { "model": "CPointer", @@ -180,59 +196,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 800, - "column": 1, - "source_line": "void stbds_arrfreef(void *a)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 800, - "column": 1, - "source_line": "void stbds_arrfreef(void *a)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 803, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_rand_seed", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { "name": "seed", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -248,178 +224,470 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 851, + "line": 1016, "column": 1, - "source_line": "void stbds_rand_seed(size_t seed)" + "source_line": "size_t stbds_hash_string(char *str, size_t seed)" }, "start": { "filename": "stb/stb_ds.h", - "line": 851, + "line": 1016, "column": 1, - "source_line": "void stbds_rand_seed(size_t seed)" + "source_line": "size_t stbds_hash_string(char *str, size_t seed)" }, "end": { "filename": "stb/stb_ds.h", - "line": 854, + "line": 1031, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 479, + "column": 1, + "source_line": "extern size_t stbds_hash_string(char *str, size_t seed);" + } + ] }, { - "name": "stbds_probe_position", + "name": "stbds_stralloc", "result_type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "hash", + "name": "a", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t hash", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbds_string_arena", + "name": "stbds_string_arena", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbds_string_arena", + "members": [ + { + "name": "storage", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_block *storage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbds_string_block", + "name": "stbds_string_block", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbds_string_block", + "members": [ + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct stbds_string_block *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "struct stbds_string_block" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 667, + "column": 3, + "source_line": " struct stbds_string_block *next;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "storage", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char storage[8]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "8", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 668, + "column": 3, + "source_line": " char storage[8];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 665, + "column": 1, + "source_line": "typedef struct stbds_string_block" + } + }, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 665, + "column": 1, + "source_line": "typedef struct stbds_string_block" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 673, + "column": 3, + "source_line": " stbds_string_block *storage;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "remaining", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 674, + "column": 3, + "source_line": " size_t remaining;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "block", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char block" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 675, + "column": 3, + "source_line": " unsigned char block;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "mode", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char mode" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 676, + "column": 3, + "source_line": " unsigned char mode;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 671, + "column": 1, + "source_line": "struct stbds_string_arena" + } + }, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 482, + "column": 1, + "source_line": "typedef struct stbds_string_arena stbds_string_arena;" + }, + "declaration_locations": [] + } + ] }, "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot_count", - "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t slot_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "slot_log2", + "name": "str", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t slot_log2", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 863, + "line": 1557, "column": 1, - "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" + "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" }, "start": { "filename": "stb/stb_ds.h", - "line": 863, + "line": 1557, "column": 1, - "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" + "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" }, "end": { "filename": "stb/stb_ds.h", - "line": 872, + "line": 1603, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 483, + "column": 1, + "source_line": "extern char * stbds_stralloc(stbds_string_arena *a, char *str);" + } + ] }, { - "name": "stbds_log2", + "name": "stbds_strreset", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { - "name": "slot_count", + "name": "a", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t slot_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 874, + "line": 1605, "column": 1, - "source_line": "static size_t stbds_log2(size_t slot_count)" + "source_line": "void stbds_strreset(stbds_string_arena *a)" }, "start": { "filename": "stb/stb_ds.h", - "line": 874, + "line": 1605, "column": 1, - "source_line": "static size_t stbds_log2(size_t slot_count)" + "source_line": "void stbds_strreset(stbds_string_arena *a)" }, "end": { "filename": "stb/stb_ds.h", - "line": 882, + "line": 1615, "column": 1, "source_line": "}" }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 484, + "column": 1, + "source_line": "extern void stbds_strreset(stbds_string_arena *a);" + } + ] + }, + { + "name": "stbds_unit_tests", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 487, + "column": 1, + "source_line": "extern void stbds_unit_tests(void);" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 487, + "column": 1, + "source_line": "extern void stbds_unit_tests(void);" + }, + "end": null, "declaration_locations": [] }, { - "name": "stbds_make_hash_index", + "name": "stbds_arrgrowf", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbds_hash_index", + "source_text": "void", "components": [ { "model": "CPointer", @@ -427,431 +695,19 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stbds_hash_index", - "name": "stbds_hash_index", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "temp_key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char * temp_key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 829, - "column": 3, - "source_line": " char * temp_key; // this MUST be the first field of the hash table" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "slot_count", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t slot_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 830, - "column": 3, - "source_line": " size_t slot_count;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "used_count", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t used_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 831, - "column": 3, - "source_line": " size_t used_count;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "used_count_threshold", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t used_count_threshold", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 832, - "column": 3, - "source_line": " size_t used_count_threshold;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "used_count_shrink_threshold", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t used_count_shrink_threshold", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 833, - "column": 3, - "source_line": " size_t used_count_shrink_threshold;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tombstone_count", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t tombstone_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 834, - "column": 3, - "source_line": " size_t tombstone_count;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tombstone_count_threshold", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t tombstone_count_threshold", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 835, - "column": 3, - "source_line": " size_t tombstone_count_threshold;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "seed", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 836, - "column": 3, - "source_line": " size_t seed;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "slot_count_log2", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t slot_count_log2", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 837, - "column": 3, - "source_line": " size_t slot_count_log2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "string", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_string_arena string", - "name": "stbds_string_arena", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 838, - "column": 3, - "source_line": " stbds_string_arena string;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "storage", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_hash_bucket *storage", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_hash_bucket", - "name": "stbds_hash_bucket", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "hash", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "size_t hash [STBDS_BUCKET_LENGTH]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBDS_BUCKET_LENGTH", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 823, - "column": 4, - "source_line": " size_t hash [STBDS_BUCKET_LENGTH];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "index", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "ptrdiff_t index[STBDS_BUCKET_LENGTH]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBDS_BUCKET_LENGTH", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "ptrdiff_t", - "name": "ptrdiff_t", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 824, - "column": 4, - "source_line": " ptrdiff_t index[STBDS_BUCKET_LENGTH];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_ds.h:821:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 821, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 821, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 839, - "column": 3, - "source_line": " stbds_hash_bucket *storage; // not a separate allocation, just 64-byte aligned storage after this struct" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_ds.h:827:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 827, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 827, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "void" } ] }, "parameters": [ { - "name": "slot_count", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t slot_count", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ot", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbds_hash_index *ot", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -859,14 +715,16 @@ "source_text": "" }, { - "reference": "stbds_hash_index" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbds_hash_index *ot", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -874,102 +732,41 @@ "source_text": "" }, { - "reference": "stbds_hash_index" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 884, - "column": 1, - "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 884, - "column": 1, - "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1011, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_hash_string", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ + }, { - "name": "str", + "name": "elemsize", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "reference": "size_t" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "reference": "size_t" }, "source_location": null, "callback_policy": null }, { - "name": "seed", + "name": "addlen", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "min_cap", + "type": { + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -985,42 +782,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1016, + "line": 762, "column": 1, - "source_line": "size_t stbds_hash_string(char *str, size_t seed)" + "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1016, + "line": 762, "column": 1, - "source_line": "size_t stbds_hash_string(char *str, size_t seed)" + "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1031, + "line": 798, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 494, + "column": 1, + "source_line": "extern void * stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap);" + } + ] }, { - "name": "stbds_siphash_bytes", + "name": "stbds_arrfreef", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1037,7 +837,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1053,87 +853,54 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t len", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1051, + "line": 800, "column": 1, - "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" + "source_line": "void stbds_arrfreef(void *a)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1051, + "line": 800, "column": 1, - "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" + "source_line": "void stbds_arrfreef(void *a)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1114, + "line": 803, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 495, + "column": 1, + "source_line": "extern void stbds_arrfreef(void *a);" + } + ] }, { - "name": "stbds_hash_bytes", + "name": "stbds_hmfree_func", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1150,7 +917,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1168,33 +935,10 @@ "callback_policy": null }, { - "name": "len", + "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t len", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { "reference": "size_t" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, "declared_type": { "reference": "size_t" }, @@ -1209,30 +953,49 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1116, + "line": 1216, "column": 1, - "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" + "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1116, + "line": 1216, "column": 1, - "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" + "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1197, + "line": 1230, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 496, + "column": 1, + "source_line": "extern void stbds_hmfree_func(void *p, size_t elemsize);" + } + ] }, { - "name": "stbds_is_key_equal", + "name": "stbds_hmget_key", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -1277,13 +1040,7 @@ { "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -1333,31 +1090,8 @@ { "name": "keysize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { "reference": "size_t" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keyoffset", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, "declared_type": { "reference": "size_t" }, @@ -1378,58 +1112,58 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t i", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1203, + "line": 1312, "column": 1, - "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" + "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1203, + "line": 1312, "column": 1, - "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" + "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1209, + "line": 1318, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 497, + "column": 1, + "source_line": "extern void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode);" + } + ] }, { - "name": "stbds_hmfree_func", + "name": "stbds_hmget_key_ts", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -1474,64 +1208,20 @@ { "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1216, - "column": 1, - "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1216, - "column": 1, - "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1230, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_hm_find_slot", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "ptrdiff_t", - "name": "ptrdiff_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ + }, { - "name": "a", + "name": "key", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "void *key", "components": [ { "model": "CPointer", @@ -1548,7 +1238,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *a", + "source_text": "void *key", "components": [ { "model": "CPointer", @@ -1566,15 +1256,9 @@ "callback_policy": null }, { - "name": "elemsize", + "name": "keysize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -1583,11 +1267,11 @@ "callback_policy": null }, { - "name": "key", + "name": "temp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *key", + "source_text": "ptrdiff_t *temp", "components": [ { "model": "CPointer", @@ -1595,16 +1279,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "ptrdiff_t" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *key", + "source_text": "ptrdiff_t *temp", "components": [ { "model": "CPointer", @@ -1612,49 +1294,13 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "ptrdiff_t" } ] }, "source_location": null, "callback_policy": null }, - { - "name": "keysize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keyoffset", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, { "name": "mode", "type": { @@ -1671,35 +1317,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1232, + "line": 1281, "column": 1, - "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" + "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1232, + "line": 1281, "column": 1, - "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" + "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1279, + "line": 1310, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 498, + "column": 1, + "source_line": "extern void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode);" + } + ] }, { - "name": "stbds_hmget_key_ts", + "name": "stbds_hmput_default", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -1760,26 +1411,73 @@ { "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 1320, + "column": 1, + "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 1320, + "column": 1, + "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1333, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "key", + "filename": "stb/stb_ds.h", + "line": 499, + "column": 1, + "source_line": "extern void * stbds_hmput_default(void *a, size_t elemsize);" + } + ] + }, + { + "name": "stbds_hmput_key", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *key", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1796,7 +1494,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *key", + "source_text": "void *a", "components": [ { "model": "CPointer", @@ -1814,15 +1512,9 @@ "callback_policy": null }, { - "name": "keysize", + "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -1831,11 +1523,11 @@ "callback_policy": null }, { - "name": "temp", + "name": "key", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "ptrdiff_t *temp", + "source_text": "void *key", "components": [ { "model": "CPointer", @@ -1843,20 +1535,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "ptrdiff_t", - "name": "ptrdiff_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "ptrdiff_t *temp", + "source_text": "void *key", "components": [ { "model": "CPointer", @@ -1864,13 +1552,26 @@ "source_text": "" }, { - "reference": "ptrdiff_t" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, { "name": "mode", "type": { @@ -1894,27 +1595,34 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1281, + "line": 1337, "column": 1, - "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" + "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1281, + "line": 1337, "column": 1, - "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" + "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1310, + "line": 1459, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - { - "name": "stbds_hmget_key", - "result_type": { + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 500, + "column": 1, + "source_line": "extern void * stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode);" + } + ] + }, + { + "name": "stbds_hmdel_key", + "result_type": { "model": "CComposedType", "qualifiers": [], "source_text": "void", @@ -1974,13 +1682,7 @@ { "name": "elemsize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -2030,13 +1732,18 @@ { "name": "keysize", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -2067,26 +1774,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1312, + "line": 1472, "column": 1, - "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" + "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1312, + "line": 1472, "column": 1, - "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" + "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1318, + "line": 1538, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 501, + "column": 1, + "source_line": "extern void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode);" + } + ] }, { - "name": "stbds_hmput_default", + "name": "stbds_shmode_func", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -2106,57 +1820,27 @@ }, "parameters": [ { - "name": "a", + "name": "elemsize", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "reference": "size_t" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "reference": "size_t" }, "source_location": null, "callback_policy": null }, { - "name": "elemsize", + "name": "mode", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int mode" }, "declared_type": { - "reference": "size_t" + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" }, "source_location": null, "callback_policy": null @@ -2169,79 +1853,66 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1320, + "line": 1461, "column": 1, - "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" + "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1320, + "line": 1461, "column": 1, - "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" + "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1333, + "line": 1470, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 502, + "column": 1, + "source_line": "extern void * stbds_shmode_func(size_t elemsize, int mode);" + } + ] }, { - "name": "stbds_strdup", + "name": "stbds_probe_position", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "reference": "size_t" }, "parameters": [ { - "name": "str", + "name": "hash", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "reference": "size_t" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot_log2", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" }, "source_location": null, "callback_policy": null @@ -2256,37 +1927,75 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1540, + "line": 863, "column": 1, - "source_line": "static char *stbds_strdup(char *str)" + "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" }, "start": { "filename": "stb/stb_ds.h", - "line": 1540, + "line": 863, "column": 1, - "source_line": "static char *stbds_strdup(char *str)" + "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" }, "end": { "filename": "stb/stb_ds.h", - "line": 1548, + "line": 872, "column": 1, "source_line": "}" }, - "declaration_locations": [ + "declaration_locations": [] + }, + { + "name": "stbds_log2", + "result_type": { + "reference": "size_t" + }, + "parameters": [ { - "filename": "stb/stb_ds.h", - "line": 1335, - "column": 1, - "source_line": "static char *stbds_strdup(char *str);" + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null } - ] + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 874, + "column": 1, + "source_line": "static size_t stbds_log2(size_t slot_count)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 874, + "column": 1, + "source_line": "static size_t stbds_log2(size_t slot_count)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 882, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbds_hmput_key", + "name": "stbds_make_hash_index", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "stbds_hash_index", "components": [ { "model": "CPointer", @@ -2294,11415 +2003,3655 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CTypedef", "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1337, - "column": 1, - "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1337, - "column": 1, - "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1459, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_shmode_func", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "elemsize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1461, - "column": 1, - "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1461, - "column": 1, - "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1470, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_hmdel_key", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t elemsize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keysize", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t keyoffset", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1472, - "column": 1, - "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1472, - "column": 1, - "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1538, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_stralloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_string_arena", - "name": "stbds_string_arena", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1557, - "column": 1, - "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1557, - "column": 1, - "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1603, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_strreset", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_string_arena", - "name": "stbds_string_arena", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1605, - "column": 1, - "source_line": "void stbds_strreset(stbds_string_arena *a)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1605, - "column": 1, - "source_line": "void stbds_strreset(stbds_string_arena *a)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1615, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "strkey", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1638, - "column": 1, - "source_line": "char *strkey(int n)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1638, - "column": 1, - "source_line": "char *strkey(int n)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1646, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbds_unit_tests", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1648, - "column": 1, - "source_line": "void stbds_unit_tests(void)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1648, - "column": 1, - "source_line": "void stbds_unit_tests(void)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "length", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t length", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 659, - "column": 3, - "source_line": " size_t length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "capacity", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t capacity", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 660, - "column": 3, - "source_line": " size_t capacity;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hash_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * hash_table", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 661, - "column": 3, - "source_line": " void * hash_table;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "temp", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "ptrdiff_t temp", - "name": "ptrdiff_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 662, - "column": 3, - "source_line": " ptrdiff_t temp;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_ds.h:657:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 657, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbds_string_block", - "members": [ - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct stbds_string_block *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct stbds_string_block" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 667, - "column": 3, - "source_line": " struct stbds_string_block *next;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "storage", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char storage[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 668, - "column": 3, - "source_line": " char storage[8];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 665, - "column": 1, - "source_line": "typedef struct stbds_string_block" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbds_string_arena", - "members": [ - { - "name": "storage", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_block *storage", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_string_block", - "name": "stbds_string_block", - "type": { - "reference": "struct stbds_string_block" - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 665, - "column": 1, - "source_line": "typedef struct stbds_string_block" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 673, - "column": 3, - "source_line": " stbds_string_block *storage;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "remaining", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t remaining", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 674, - "column": 3, - "source_line": " size_t remaining;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "block", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char block" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 675, - "column": 3, - "source_line": " unsigned char block;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mode", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mode" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 676, - "column": 3, - "source_line": " unsigned char mode; // this isn't used by the string arena itself" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 671, - "column": 1, - "source_line": "struct stbds_string_arena" - } - }, - { - "reference": "struct@stb/stb_ds.h:821:1" - }, - { - "reference": "struct@stb/stb_ds.h:827:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "key", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int key" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 18, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 18, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 18, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 18, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_ds.h:1634:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 1, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int key[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 18, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 18, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 18, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 18, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_ds.h:1635:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 1, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - } - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBDS_SH_NONE", - "value": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBDS_SH_DEFAULT", - "value": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBDS_SH_STRDUP", - "value": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBDS_SH_ARENA", - "value": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_ds.h:682:1", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_array_header", - "name": "stbds_array_header", - "type": { - "reference": "struct@stb/stb_ds.h:657:1" - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 657, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "stbds_string_block" - }, - { - "reference": "stbds_hash_bucket" - }, - { - "reference": "stbds_hash_index" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds", - "name": "STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef int STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds[sizeof(size_t) == 8 ? 1 : -1]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "sizeof(size_t) == 8 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1036, - "column": 1, - "source_line": "typedef int STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds[sizeof(size_t) == 8 ? 1 : -1];" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_struct", - "name": "stbds_struct", - "type": { - "reference": "struct@stb/stb_ds.h:1634:1" - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1634, - "column": 1, - "source_line": "typedef struct { int key,b,c,d; } stbds_struct;" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbds_struct2", - "name": "stbds_struct2", - "type": { - "reference": "struct@stb/stb_ds.h:1635:1" - }, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1635, - "column": 1, - "source_line": "typedef struct { int key[2],b,c,d; } stbds_struct2;" - }, - "declaration_locations": [] - } - ], - "variables": [ - { - "name": "stbds_array_grow", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_array_grow", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 743, - "column": 1, - "source_line": "size_t stbds_array_grow;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_grow", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_hash_grow", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 744, - "column": 1, - "source_line": "size_t stbds_hash_grow;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_shrink", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_hash_shrink", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 745, - "column": 1, - "source_line": "size_t stbds_hash_shrink;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_rebuild", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_hash_rebuild", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 746, - "column": 1, - "source_line": "size_t stbds_hash_rebuild;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_probes", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_hash_probes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 747, - "column": 1, - "source_line": "size_t stbds_hash_probes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_alloc", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_hash_alloc", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 748, - "column": 1, - "source_line": "size_t stbds_hash_alloc;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_rehash_probes", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_rehash_probes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 749, - "column": 1, - "source_line": "size_t stbds_rehash_probes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_rehash_items", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t stbds_rehash_items", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 750, - "column": 1, - "source_line": "size_t stbds_rehash_items;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbds_hash_seed", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static size_t stbds_hash_seed", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0x31415926" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 849, - "column": 1, - "source_line": "static size_t stbds_hash_seed=0x31415926;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char buffer[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1637, - "column": 1, - "source_line": "static char buffer[256];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 388, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_WARNINGS" - } - }, - { - "name": "INCLUDE_STB_DS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 392, - "column": 1, - "source_line": "#define INCLUDE_STB_DS_H" - } - }, - { - "name": "arrlen", - "value": "stbds_arrlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 398, - "column": 1, - "source_line": "#define arrlen stbds_arrlen" - } - }, - { - "name": "arrlenu", - "value": "stbds_arrlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 399, - "column": 1, - "source_line": "#define arrlenu stbds_arrlenu" - } - }, - { - "name": "arrput", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 400, - "column": 1, - "source_line": "#define arrput stbds_arrput" - } - }, - { - "name": "arrpush", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 401, - "column": 1, - "source_line": "#define arrpush stbds_arrput" - } - }, - { - "name": "arrpop", - "value": "stbds_arrpop", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 402, - "column": 1, - "source_line": "#define arrpop stbds_arrpop" - } - }, - { - "name": "arrfree", - "value": "stbds_arrfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 403, - "column": 1, - "source_line": "#define arrfree stbds_arrfree" - } - }, - { - "name": "arraddn", - "value": "stbds_arraddn", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 404, - "column": 1, - "source_line": "#define arraddn stbds_arraddn // deprecated, use one of the following instead:" - } - }, - { - "name": "arraddnptr", - "value": "stbds_arraddnptr", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 405, - "column": 1, - "source_line": "#define arraddnptr stbds_arraddnptr" - } - }, - { - "name": "arraddnindex", - "value": "stbds_arraddnindex", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 406, - "column": 1, - "source_line": "#define arraddnindex stbds_arraddnindex" - } - }, - { - "name": "arrsetlen", - "value": "stbds_arrsetlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 407, - "column": 1, - "source_line": "#define arrsetlen stbds_arrsetlen" - } - }, - { - "name": "arrlast", - "value": "stbds_arrlast", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 408, - "column": 1, - "source_line": "#define arrlast stbds_arrlast" - } - }, - { - "name": "arrins", - "value": "stbds_arrins", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 409, - "column": 1, - "source_line": "#define arrins stbds_arrins" - } - }, - { - "name": "arrinsn", - "value": "stbds_arrinsn", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 410, - "column": 1, - "source_line": "#define arrinsn stbds_arrinsn" - } - }, - { - "name": "arrdel", - "value": "stbds_arrdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 411, - "column": 1, - "source_line": "#define arrdel stbds_arrdel" - } - }, - { - "name": "arrdeln", - "value": "stbds_arrdeln", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 412, - "column": 1, - "source_line": "#define arrdeln stbds_arrdeln" - } - }, - { - "name": "arrdelswap", - "value": "stbds_arrdelswap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 413, - "column": 1, - "source_line": "#define arrdelswap stbds_arrdelswap" - } - }, - { - "name": "arrcap", - "value": "stbds_arrcap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 414, - "column": 1, - "source_line": "#define arrcap stbds_arrcap" - } - }, - { - "name": "arrsetcap", - "value": "stbds_arrsetcap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 415, - "column": 1, - "source_line": "#define arrsetcap stbds_arrsetcap" - } - }, - { - "name": "hmput", - "value": "stbds_hmput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 417, - "column": 1, - "source_line": "#define hmput stbds_hmput" - } - }, - { - "name": "hmputs", - "value": "stbds_hmputs", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 418, - "column": 1, - "source_line": "#define hmputs stbds_hmputs" - } - }, - { - "name": "hmget", - "value": "stbds_hmget", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 419, - "column": 1, - "source_line": "#define hmget stbds_hmget" - } - }, - { - "name": "hmget_ts", - "value": "stbds_hmget_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 420, - "column": 1, - "source_line": "#define hmget_ts stbds_hmget_ts" - } - }, - { - "name": "hmgets", - "value": "stbds_hmgets", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 421, - "column": 1, - "source_line": "#define hmgets stbds_hmgets" - } - }, - { - "name": "hmgetp", - "value": "stbds_hmgetp", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 422, - "column": 1, - "source_line": "#define hmgetp stbds_hmgetp" - } - }, - { - "name": "hmgetp_ts", - "value": "stbds_hmgetp_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 423, - "column": 1, - "source_line": "#define hmgetp_ts stbds_hmgetp_ts" - } - }, - { - "name": "hmgetp_null", - "value": "stbds_hmgetp_null", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 424, - "column": 1, - "source_line": "#define hmgetp_null stbds_hmgetp_null" - } - }, - { - "name": "hmgeti", - "value": "stbds_hmgeti", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 425, - "column": 1, - "source_line": "#define hmgeti stbds_hmgeti" - } - }, - { - "name": "hmgeti_ts", - "value": "stbds_hmgeti_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 426, - "column": 1, - "source_line": "#define hmgeti_ts stbds_hmgeti_ts" - } - }, - { - "name": "hmdel", - "value": "stbds_hmdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 427, - "column": 1, - "source_line": "#define hmdel stbds_hmdel" - } - }, - { - "name": "hmlen", - "value": "stbds_hmlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 428, - "column": 1, - "source_line": "#define hmlen stbds_hmlen" - } - }, - { - "name": "hmlenu", - "value": "stbds_hmlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 429, - "column": 1, - "source_line": "#define hmlenu stbds_hmlenu" - } - }, - { - "name": "hmfree", - "value": "stbds_hmfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 430, - "column": 1, - "source_line": "#define hmfree stbds_hmfree" - } - }, - { - "name": "hmdefault", - "value": "stbds_hmdefault", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 431, - "column": 1, - "source_line": "#define hmdefault stbds_hmdefault" - } - }, - { - "name": "hmdefaults", - "value": "stbds_hmdefaults", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 432, - "column": 1, - "source_line": "#define hmdefaults stbds_hmdefaults" - } - }, - { - "name": "shput", - "value": "stbds_shput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 434, - "column": 1, - "source_line": "#define shput stbds_shput" - } - }, - { - "name": "shputi", - "value": "stbds_shputi", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 435, - "column": 1, - "source_line": "#define shputi stbds_shputi" - } - }, - { - "name": "shputs", - "value": "stbds_shputs", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 436, - "column": 1, - "source_line": "#define shputs stbds_shputs" - } - }, - { - "name": "shget", - "value": "stbds_shget", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 437, - "column": 1, - "source_line": "#define shget stbds_shget" - } - }, - { - "name": "shgeti", - "value": "stbds_shgeti", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 438, - "column": 1, - "source_line": "#define shgeti stbds_shgeti" - } - }, - { - "name": "shgets", - "value": "stbds_shgets", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 439, - "column": 1, - "source_line": "#define shgets stbds_shgets" - } - }, - { - "name": "shgetp", - "value": "stbds_shgetp", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 440, - "column": 1, - "source_line": "#define shgetp stbds_shgetp" - } - }, - { - "name": "shgetp_null", - "value": "stbds_shgetp_null", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 441, - "column": 1, - "source_line": "#define shgetp_null stbds_shgetp_null" - } - }, - { - "name": "shdel", - "value": "stbds_shdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 442, - "column": 1, - "source_line": "#define shdel stbds_shdel" - } - }, - { - "name": "shlen", - "value": "stbds_shlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 443, - "column": 1, - "source_line": "#define shlen stbds_shlen" - } - }, - { - "name": "shlenu", - "value": "stbds_shlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 444, - "column": 1, - "source_line": "#define shlenu stbds_shlenu" - } - }, - { - "name": "shfree", - "value": "stbds_shfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 445, - "column": 1, - "source_line": "#define shfree stbds_shfree" - } - }, - { - "name": "shdefault", - "value": "stbds_shdefault", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 446, - "column": 1, - "source_line": "#define shdefault stbds_shdefault" - } - }, - { - "name": "shdefaults", - "value": "stbds_shdefaults", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 447, - "column": 1, - "source_line": "#define shdefaults stbds_shdefaults" - } - }, - { - "name": "sh_new_arena", - "value": "stbds_sh_new_arena", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 448, - "column": 1, - "source_line": "#define sh_new_arena stbds_sh_new_arena" - } - }, - { - "name": "sh_new_strdup", - "value": "stbds_sh_new_strdup", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 449, - "column": 1, - "source_line": "#define sh_new_strdup stbds_sh_new_strdup" - } - }, - { - "name": "stralloc", - "value": "stbds_stralloc", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 451, - "column": 1, - "source_line": "#define stralloc stbds_stralloc" - } - }, - { - "name": "strreset", - "value": "stbds_strreset", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 452, - "column": 1, - "source_line": "#define strreset stbds_strreset" - } - }, - { - "name": "STBDS_REALLOC", - "value": "realloc(p,s)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 460, - "column": 1, - "source_line": "#define STBDS_REALLOC(c,p,s) realloc(p,s)" - } - }, - { - "name": "STBDS_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 461, - "column": 1, - "source_line": "#define STBDS_FREE(c,p) free(p)" - } - }, - { - "name": "STBDS_NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 465, - "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBDS_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 467, - "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "STBDS_HAS_TYPEOF", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 509, - "column": 1, - "source_line": "#define STBDS_HAS_TYPEOF" - } - }, - { - "name": "STBDS_HAS_LITERAL_ARRAY", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 517, - "column": 1, - "source_line": "#define STBDS_HAS_LITERAL_ARRAY" - } - }, - { - "name": "STBDS_ADDRESSOF", - "value": "((__typeof__(typevar)[1]){value})", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 524, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((__typeof__(typevar)[1]){value}) // literal array decays to pointer to value" - } - }, - { - "name": "STBDS_ADDRESSOF", - "value": "((typeof(typevar)[1]){value})", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 526, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((typeof(typevar)[1]){value}) // literal array decays to pointer to value" - } - }, - { - "name": "STBDS_ADDRESSOF", - "value": "&(value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 529, - "column": 1, - "source_line": "#define STBDS_ADDRESSOF(typevar, value) &(value)" - } - }, - { - "name": "STBDS_OFFSETOF", - "value": "((char *) &(var)->field - (char *) (var))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 532, - "column": 1, - "source_line": "#define STBDS_OFFSETOF(var,field) ((char *) &(var)->field - (char *) (var))" - } - }, - { - "name": "stbds_header", - "value": "((stbds_array_header *) (t) - 1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 534, - "column": 1, - "source_line": "#define stbds_header(t) ((stbds_array_header *) (t) - 1)" - } - }, - { - "name": "stbds_temp", - "value": "stbds_header(t)->temp", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 535, - "column": 1, - "source_line": "#define stbds_temp(t) stbds_header(t)->temp" - } - }, - { - "name": "stbds_temp_key", - "value": "(*(char **) stbds_header(t)->hash_table)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 536, - "column": 1, - "source_line": "#define stbds_temp_key(t) (*(char **) stbds_header(t)->hash_table)" - } - }, - { - "name": "stbds_arrsetcap", - "value": "(stbds_arrgrow(a,0,n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 538, - "column": 1, - "source_line": "#define stbds_arrsetcap(a,n) (stbds_arrgrow(a,0,n))" - } - }, - { - "name": "stbds_arrsetlen", - "value": "((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 539, - "column": 1, - "source_line": "#define stbds_arrsetlen(a,n) ((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)" - } - }, - { - "name": "stbds_arrcap", - "value": "((a) ? stbds_header(a)->capacity : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 540, - "column": 1, - "source_line": "#define stbds_arrcap(a) ((a) ? stbds_header(a)->capacity : 0)" - } - }, - { - "name": "stbds_arrlen", - "value": "((a) ? (ptrdiff_t) stbds_header(a)->length : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 541, - "column": 1, - "source_line": "#define stbds_arrlen(a) ((a) ? (ptrdiff_t) stbds_header(a)->length : 0)" - } - }, - { - "name": "stbds_arrlenu", - "value": "((a) ? stbds_header(a)->length : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 542, - "column": 1, - "source_line": "#define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0)" - } - }, - { - "name": "stbds_arrput", - "value": "(stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 543, - "column": 1, - "source_line": "#define stbds_arrput(a,v) (stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))" - } - }, - { - "name": "stbds_arrpush", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 544, - "column": 1, - "source_line": "#define stbds_arrpush stbds_arrput // synonym" - } - }, - { - "name": "stbds_arrpop", - "value": "(stbds_header(a)->length--, (a)[stbds_header(a)->length])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 545, - "column": 1, - "source_line": "#define stbds_arrpop(a) (stbds_header(a)->length--, (a)[stbds_header(a)->length])" - } - }, - { - "name": "stbds_arraddn", - "value": "((void)(stbds_arraddnindex(a, n)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 546, - "column": 1, - "source_line": "#define stbds_arraddn(a,n) ((void)(stbds_arraddnindex(a, n))) // deprecated, use one of the following instead:" - } - }, - { - "name": "stbds_arraddnptr", - "value": "(stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 547, - "column": 1, - "source_line": "#define stbds_arraddnptr(a,n) (stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))" - } - }, - { - "name": "stbds_arraddnoff", - "value": "stbds_arraddnindex", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 549, - "column": 1, - "source_line": "#define stbds_arraddnoff stbds_arraddnindex" - } - }, - { - "name": "stbds_arrlast", - "value": "((a)[stbds_header(a)->length-1])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 550, - "column": 1, - "source_line": "#define stbds_arrlast(a) ((a)[stbds_header(a)->length-1])" - } - }, - { - "name": "stbds_arrfree", - "value": "((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 551, - "column": 1, - "source_line": "#define stbds_arrfree(a) ((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)" - } - }, - { - "name": "stbds_arrdel", - "value": "stbds_arrdeln(a,i,1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 552, - "column": 1, - "source_line": "#define stbds_arrdel(a,i) stbds_arrdeln(a,i,1)" - } - }, - { - "name": "stbds_arrdeln", - "value": "(memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 553, - "column": 1, - "source_line": "#define stbds_arrdeln(a,i,n) (memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))" - } - }, - { - "name": "stbds_arrdelswap", - "value": "((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 554, - "column": 1, - "source_line": "#define stbds_arrdelswap(a,i) ((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)" - } - }, - { - "name": "stbds_arrinsn", - "value": "(stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 555, - "column": 1, - "source_line": "#define stbds_arrinsn(a,i,n) (stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))" - } - }, - { - "name": "stbds_arrins", - "value": "(stbds_arrinsn((a),(i),1), (a)[i]=(v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 556, - "column": 1, - "source_line": "#define stbds_arrins(a,i,v) (stbds_arrinsn((a),(i),1), (a)[i]=(v))" - } - }, - { - "name": "stbds_arrmaybegrow", - "value": "((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) ? (stbds_arrgrow(a,n,0),0) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 558, - "column": 1, - "source_line": "#define stbds_arrmaybegrow(a,n) ((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) \\" - } - }, - { - "name": "stbds_arrgrow", - "value": "((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 561, - "column": 1, - "source_line": "#define stbds_arrgrow(a,b,c) ((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))" - } - }, - { - "name": "stbds_hmput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, 0), (t)[stbds_temp((t)-1)].key = (k), (t)[stbds_temp((t)-1)].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 563, - "column": 1, - "source_line": "#define stbds_hmput(t, k, v) \\" - } - }, - { - "name": "stbds_hmputs", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), &(s).key, sizeof (s).key, STBDS_HM_BINARY), (t)[stbds_temp((t)-1)] = (s))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 568, - "column": 1, - "source_line": "#define stbds_hmputs(t, s) \\" - } - }, - { - "name": "stbds_hmgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_HM_BINARY), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 572, - "column": 1, - "source_line": "#define stbds_hmgeti(t,k) \\" - } - }, - { - "name": "stbds_hmgeti_ts", - "value": "((t) = stbds_hmget_key_ts_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, &(temp), STBDS_HM_BINARY), (temp))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 576, - "column": 1, - "source_line": "#define stbds_hmgeti_ts(t,k,temp) \\" - } - }, - { - "name": "stbds_hmgetp", - "value": "((void) stbds_hmgeti(t,k), &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 580, - "column": 1, - "source_line": "#define stbds_hmgetp(t, k) \\" - } - }, - { - "name": "stbds_hmgetp_ts", - "value": "((void) stbds_hmgeti_ts(t,k,temp), &(t)[temp])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 583, - "column": 1, - "source_line": "#define stbds_hmgetp_ts(t, k, temp) \\" - } - }, - { - "name": "stbds_hmdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_BINARY)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 586, - "column": 1, - "source_line": "#define stbds_hmdel(t,k) \\" - } - }, - { - "name": "stbds_hmdefault", - "value": "((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 589, - "column": 1, - "source_line": "#define stbds_hmdefault(t, v) \\" - } - }, - { - "name": "stbds_hmdefaults", - "value": "((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1] = (s))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 592, - "column": 1, - "source_line": "#define stbds_hmdefaults(t, s) \\" - } - }, - { - "name": "stbds_hmfree", - "value": "((void) ((p) != NULL ? stbds_hmfree_func((p)-1,sizeof*(p)),0 : 0),(p)=NULL)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 595, - "column": 1, - "source_line": "#define stbds_hmfree(p) \\" - } - }, - { - "name": "stbds_hmgets", - "value": "(*stbds_hmgetp(t,k))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 598, - "column": 1, - "source_line": "#define stbds_hmgets(t, k) (*stbds_hmgetp(t,k))" - } - }, - { - "name": "stbds_hmget", - "value": "(stbds_hmgetp(t,k)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 599, - "column": 1, - "source_line": "#define stbds_hmget(t, k) (stbds_hmgetp(t,k)->value)" - } - }, - { - "name": "stbds_hmget_ts", - "value": "(stbds_hmgetp_ts(t,k,temp)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 600, - "column": 1, - "source_line": "#define stbds_hmget_ts(t, k, temp) (stbds_hmgetp_ts(t,k,temp)->value)" - } - }, - { - "name": "stbds_hmlen", - "value": "((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 601, - "column": 1, - "source_line": "#define stbds_hmlen(t) ((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)" - } - }, - { - "name": "stbds_hmlenu", - "value": "((t) ? stbds_header((t)-1)->length-1 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 602, - "column": 1, - "source_line": "#define stbds_hmlenu(t) ((t) ? stbds_header((t)-1)->length-1 : 0)" - } - }, - { - "name": "stbds_hmgetp_null", - "value": "(stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 603, - "column": 1, - "source_line": "#define stbds_hmgetp_null(t,k) (stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - } - }, - { - "name": "stbds_shput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 605, - "column": 1, - "source_line": "#define stbds_shput(t, k, v) \\" - } - }, - { - "name": "stbds_shputi", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)].value = (v), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 609, - "column": 1, - "source_line": "#define stbds_shputi(t, k, v) \\" - } - }, - { - "name": "stbds_shputs", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (s).key, sizeof (s).key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)] = (s), (t)[stbds_temp((t)-1)].key = stbds_temp_key((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 613, - "column": 1, - "source_line": "#define stbds_shputs(t, s) \\" - } - }, - { - "name": "stbds_pshput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (p)->key, sizeof (p)->key, STBDS_HM_PTR_TO_STRING), (t)[stbds_temp((t)-1)] = (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 618, - "column": 1, - "source_line": "#define stbds_pshput(t, p) \\" - } - }, - { - "name": "stbds_shgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 622, - "column": 1, - "source_line": "#define stbds_shgeti(t,k) \\" - } - }, - { - "name": "stbds_pshgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_HM_PTR_TO_STRING), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 626, - "column": 1, - "source_line": "#define stbds_pshgeti(t,k) \\" - } - }, - { - "name": "stbds_shgetp", - "value": "((void) stbds_shgeti(t,k), &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 630, - "column": 1, - "source_line": "#define stbds_shgetp(t, k) \\" - } - }, - { - "name": "stbds_pshget", - "value": "((void) stbds_pshgeti(t,k), (t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 633, - "column": 1, - "source_line": "#define stbds_pshget(t, k) \\" - } - }, - { - "name": "stbds_shdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_STRING)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 636, - "column": 1, - "source_line": "#define stbds_shdel(t,k) \\" - } - }, - { - "name": "stbds_pshdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_OFFSETOF(*(t),key), STBDS_HM_PTR_TO_STRING)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 638, - "column": 1, - "source_line": "#define stbds_pshdel(t,k) \\" - } - }, - { - "name": "stbds_sh_new_arena", - "value": "((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_ARENA))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 641, - "column": 1, - "source_line": "#define stbds_sh_new_arena(t) \\" - } - }, - { - "name": "stbds_sh_new_strdup", - "value": "((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_STRDUP))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 643, - "column": 1, - "source_line": "#define stbds_sh_new_strdup(t) \\" - } - }, - { - "name": "stbds_shdefault", - "value": "stbds_hmdefault(t,v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 646, - "column": 1, - "source_line": "#define stbds_shdefault(t, v) stbds_hmdefault(t,v)" - } - }, - { - "name": "stbds_shdefaults", - "value": "stbds_hmdefaults(t,s)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 647, - "column": 1, - "source_line": "#define stbds_shdefaults(t, s) stbds_hmdefaults(t,s)" - } - }, - { - "name": "stbds_shfree", - "value": "stbds_hmfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 649, - "column": 1, - "source_line": "#define stbds_shfree stbds_hmfree" - } - }, - { - "name": "stbds_shlenu", - "value": "stbds_hmlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 650, - "column": 1, - "source_line": "#define stbds_shlenu stbds_hmlenu" - } - }, - { - "name": "stbds_shgets", - "value": "(*stbds_shgetp(t,k))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 652, - "column": 1, - "source_line": "#define stbds_shgets(t, k) (*stbds_shgetp(t,k))" - } - }, - { - "name": "stbds_shget", - "value": "(stbds_shgetp(t,k)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 653, - "column": 1, - "source_line": "#define stbds_shget(t, k) (stbds_shgetp(t,k)->value)" - } - }, - { - "name": "stbds_shgetp_null", - "value": "(stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 654, - "column": 1, - "source_line": "#define stbds_shgetp_null(t,k) (stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - } - }, - { - "name": "stbds_shlen", - "value": "stbds_hmlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 655, - "column": 1, - "source_line": "#define stbds_shlen stbds_hmlen" - } - }, - { - "name": "STBDS_HM_BINARY", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 679, - "column": 1, - "source_line": "#define STBDS_HM_BINARY 0" - } - }, - { - "name": "STBDS_HM_STRING", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 680, - "column": 1, - "source_line": "#define STBDS_HM_STRING 1" - } - }, - { - "name": "stbds_arrgrowf_wrapper", - "value": "stbds_arrgrowf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 715, - "column": 1, - "source_line": "#define stbds_arrgrowf_wrapper stbds_arrgrowf" - } - }, - { - "name": "stbds_hmget_key_wrapper", - "value": "stbds_hmget_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 716, - "column": 1, - "source_line": "#define stbds_hmget_key_wrapper stbds_hmget_key" - } - }, - { - "name": "stbds_hmget_key_ts_wrapper", - "value": "stbds_hmget_key_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 717, - "column": 1, - "source_line": "#define stbds_hmget_key_ts_wrapper stbds_hmget_key_ts" - } - }, - { - "name": "stbds_hmput_default_wrapper", - "value": "stbds_hmput_default", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 718, - "column": 1, - "source_line": "#define stbds_hmput_default_wrapper stbds_hmput_default" - } - }, - { - "name": "stbds_hmput_key_wrapper", - "value": "stbds_hmput_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 719, - "column": 1, - "source_line": "#define stbds_hmput_key_wrapper stbds_hmput_key" - } - }, - { - "name": "stbds_hmdel_key_wrapper", - "value": "stbds_hmdel_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 720, - "column": 1, - "source_line": "#define stbds_hmdel_key_wrapper stbds_hmdel_key" - } - }, - { - "name": "stbds_shmode_func_wrapper", - "value": "stbds_shmode_func(e,m)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 721, - "column": 1, - "source_line": "#define stbds_shmode_func_wrapper(t,e,m) stbds_shmode_func(e,m)" - } - }, - { - "name": "STBDS_ASSERT_WAS_UNDEFINED", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 737, - "column": 1, - "source_line": "#define STBDS_ASSERT_WAS_UNDEFINED" - } - }, - { - "name": "STBDS_ASSERT", - "value": "((void) 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 738, - "column": 1, - "source_line": "#define STBDS_ASSERT(x) ((void) 0)" - } - }, - { - "name": "STBDS_STATS", - "value": "x", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 742, - "column": 1, - "source_line": "#define STBDS_STATS(x) x" - } - }, - { - "name": "STBDS_STATS", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 752, - "column": 1, - "source_line": "#define STBDS_STATS(x)" - } - }, - { - "name": "STBDS_BUCKET_LENGTH", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 810, - "column": 1, - "source_line": "#define STBDS_BUCKET_LENGTH 4" - } - }, - { - "name": "STBDS_BUCKET_LENGTH", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 812, - "column": 1, - "source_line": "#define STBDS_BUCKET_LENGTH 8" - } - }, - { - "name": "STBDS_BUCKET_SHIFT", - "value": "(STBDS_BUCKET_LENGTH == 8 ? 3 : 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 815, - "column": 1, - "source_line": "#define STBDS_BUCKET_SHIFT (STBDS_BUCKET_LENGTH == 8 ? 3 : 2)" - } - }, - { - "name": "STBDS_BUCKET_MASK", - "value": "(STBDS_BUCKET_LENGTH-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 816, - "column": 1, - "source_line": "#define STBDS_BUCKET_MASK (STBDS_BUCKET_LENGTH-1)" - } - }, - { - "name": "STBDS_CACHE_LINE_SIZE", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 817, - "column": 1, - "source_line": "#define STBDS_CACHE_LINE_SIZE 64" - } - }, - { - "name": "STBDS_ALIGN_FWD", - "value": "(((n) + (a) - 1) & ~((a)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 819, - "column": 1, - "source_line": "#define STBDS_ALIGN_FWD(n,a) (((n) + (a) - 1) & ~((a)-1))" - } - }, - { - "name": "STBDS_INDEX_EMPTY", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 842, - "column": 1, - "source_line": "#define STBDS_INDEX_EMPTY -1" - } - }, - { - "name": "STBDS_INDEX_DELETED", - "value": "-2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 843, - "column": 1, - "source_line": "#define STBDS_INDEX_DELETED -2" - } - }, - { - "name": "STBDS_INDEX_IN_USE", - "value": "((x) >= 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 844, - "column": 1, - "source_line": "#define STBDS_INDEX_IN_USE(x) ((x) >= 0)" - } - }, - { - "name": "STBDS_HASH_EMPTY", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 846, - "column": 1, - "source_line": "#define STBDS_HASH_EMPTY 0" - } - }, - { - "name": "STBDS_HASH_DELETED", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 847, - "column": 1, - "source_line": "#define STBDS_HASH_DELETED 1" - } - }, - { - "name": "stbds_load_32_or_64", - "value": "temp = v64_lo ^ v32, temp <<= 16, temp <<= 16, temp >>= 16, temp >>= 16, var = v64_hi, var <<= 16, var <<= 16, var ^= temp ^ v32", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 856, - "column": 1, - "source_line": "#define stbds_load_32_or_64(var, temp, v32, v64_hi, v64_lo) \\" - } - }, - { - "name": "STBDS_SIZE_T_BITS", - "value": "((sizeof (size_t)) * 8)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 861, - "column": 1, - "source_line": "#define STBDS_SIZE_T_BITS ((sizeof (size_t)) * 8)" - } - }, - { - "name": "STBDS_ROTATE_LEFT", - "value": "(((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1013, - "column": 1, - "source_line": "#define STBDS_ROTATE_LEFT(val, n) (((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))" - } - }, - { - "name": "STBDS_ROTATE_RIGHT", - "value": "(((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1014, - "column": 1, - "source_line": "#define STBDS_ROTATE_RIGHT(val, n) (((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))" - } - }, - { - "name": "STBDS_SIPHASH_C_ROUNDS", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1034, - "column": 1, - "source_line": "#define STBDS_SIPHASH_C_ROUNDS 2" - } - }, - { - "name": "STBDS_SIPHASH_D_ROUNDS", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1035, - "column": 1, - "source_line": "#define STBDS_SIPHASH_D_ROUNDS 4" - } - }, - { - "name": "STBDS_SIPHASH_C_ROUNDS", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1040, - "column": 1, - "source_line": "#define STBDS_SIPHASH_C_ROUNDS 1" - } - }, - { - "name": "STBDS_SIPHASH_D_ROUNDS", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1043, - "column": 1, - "source_line": "#define STBDS_SIPHASH_D_ROUNDS 1" - } - }, - { - "name": "STBDS_SIPROUND", - "value": "do { v0 += v1; v1 = STBDS_ROTATE_LEFT(v1, 13); v1 ^= v0; v0 = STBDS_ROTATE_LEFT(v0,STBDS_SIZE_T_BITS/2); v2 += v3; v3 = STBDS_ROTATE_LEFT(v3, 16); v3 ^= v2; v2 += v1; v1 = STBDS_ROTATE_LEFT(v1, 17); v1 ^= v2; v2 = STBDS_ROTATE_LEFT(v2,STBDS_SIZE_T_BITS/2); v0 += v3; v3 = STBDS_ROTATE_LEFT(v3, 21); v3 ^= v0; } while (0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1073, - "column": 3, - "source_line": " #define STBDS_SIPROUND() \\" - } - }, - { - "name": "STBDS_HASH_TO_ARR", - "value": "((char*) (x) - (elemsize))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1211, - "column": 1, - "source_line": "#define STBDS_HASH_TO_ARR(x,elemsize) ((char*) (x) - (elemsize))" - } - }, - { - "name": "STBDS_ARR_TO_HASH", - "value": "((char*) (x) + (elemsize))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1212, - "column": 1, - "source_line": "#define STBDS_ARR_TO_HASH(x,elemsize) ((char*) (x) + (elemsize))" - } - }, - { - "name": "stbds_hash_table", - "value": "((stbds_hash_index *) stbds_header(a)->hash_table)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1214, - "column": 1, - "source_line": "#define stbds_hash_table(a) ((stbds_hash_index *) stbds_header(a)->hash_table)" - } - }, - { - "name": "STBDS_STRING_ARENA_BLOCKSIZE_MIN", - "value": "512u", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1551, - "column": 1, - "source_line": "#define STBDS_STRING_ARENA_BLOCKSIZE_MIN 512u" - } - }, - { - "name": "STBDS_STRING_ARENA_BLOCKSIZE_MAX", - "value": "(1u<<20)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1554, - "column": 1, - "source_line": "#define STBDS_STRING_ARENA_BLOCKSIZE_MAX (1u<<20)" - } - }, - { - "name": "STBDS_ASSERT", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1627, - "column": 1, - "source_line": "#undef STBDS_ASSERT" - } - }, - { - "name": "STBDS_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1630, - "column": 1, - "source_line": "#define STBDS_ASSERT assert" - } - } - ], - "includes": [ - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 394, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 395, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 459, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 733, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 734, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1625, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1631, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifdef", - "argument": "STBDS_UNIT_TESTS", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 387, - "column": 1, - "source_line": "#ifdef STBDS_UNIT_TESTS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 389, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "INCLUDE_STB_DS_H", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 391, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_DS_H" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_NO_SHORT_NAMES", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 397, - "column": 1, - "source_line": "#ifndef STBDS_NO_SHORT_NAMES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 453, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBDS_REALLOC) && !defined(STBDS_FREE) || !defined(STBDS_REALLOC) && defined(STBDS_FREE)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 455, - "column": 1, - "source_line": "#if defined(STBDS_REALLOC) && !defined(STBDS_FREE) || !defined(STBDS_REALLOC) && defined(STBDS_FREE)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 457, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBDS_REALLOC) && !defined(STBDS_FREE)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 458, - "column": 1, - "source_line": "#if !defined(STBDS_REALLOC) && !defined(STBDS_FREE)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 462, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 464, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 466, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 468, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 470, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 472, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 504, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 506, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) || defined(__clang__)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 508, - "column": 1, - "source_line": "#if defined(__GNUC__) || defined(__clang__)" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 510, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 512, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 513, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(__cplusplus)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 515, - "column": 1, - "source_line": "#if !defined(__cplusplus)" - } - }, - { - "directive": "if", - "argument": "defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 516, - "column": 1, - "source_line": "#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 518, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 519, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBDS_HAS_LITERAL_ARRAY) && defined(STBDS_HAS_TYPEOF)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 522, - "column": 1, - "source_line": "#if defined(STBDS_HAS_LITERAL_ARRAY) && defined(STBDS_HAS_TYPEOF)" - } - }, - { - "directive": "if", - "argument": "__clang__", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 523, - "column": 3, - "source_line": " #if __clang__" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 525, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 527, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 528, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 530, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 690, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 714, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 722, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 724, - "column": 1, - "source_line": "#endif // INCLUDE_STB_DS_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_DS_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 732, - "column": 1, - "source_line": "#ifdef STB_DS_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_ASSERT", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 736, - "column": 1, - "source_line": "#ifndef STBDS_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 739, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_STATISTICS", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 741, - "column": 1, - "source_line": "#ifdef STBDS_STATISTICS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 751, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 753, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_INTERNAL_SMALL_BUCKET", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 809, - "column": 1, - "source_line": "#ifdef STBDS_INTERNAL_SMALL_BUCKET" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 811, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 813, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_INTERNAL_BUCKET_START", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 868, - "column": 3, - "source_line": " #ifdef STBDS_INTERNAL_BUCKET_START" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 870, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 894, - "column": 3, - "source_line": " #if 0 // A1" - } - }, - { - "directive": "elif", - "argument": "1", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 898, - "column": 3, - "source_line": " #elif 1 // A2" - } - }, - { - "directive": "elif", - "argument": "0", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 908, - "column": 3, - "source_line": " #elif 0 // B1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 912, - "column": 3, - "source_line": " #else // C1" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 916, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_SIPHASH_2_4", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1033, - "column": 1, - "source_line": "#ifdef STBDS_SIPHASH_2_4" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1037, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_SIPHASH_C_ROUNDS", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1039, - "column": 1, - "source_line": "#ifndef STBDS_SIPHASH_C_ROUNDS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1041, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_SIPHASH_D_ROUNDS", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1042, - "column": 1, - "source_line": "#ifndef STBDS_SIPHASH_D_ROUNDS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1044, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1046, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "pragma", - "argument": "warning(push)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1047, - "column": 1, - "source_line": "#pragma warning(push)" - } - }, - { - "directive": "pragma", - "argument": "warning(disable:4127)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1048, - "column": 1, - "source_line": "#pragma warning(disable:4127) // conditional expression is constant, for do..while(0) and sizeof()==" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1049, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_TEST_SIPHASH_2_4", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1065, - "column": 3, - "source_line": " #ifdef STBDS_TEST_SIPHASH_2_4" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1071, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_SIPHASH_2_4", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1109, - "column": 1, - "source_line": "#ifdef STBDS_SIPHASH_2_4" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1111, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1113, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_SIPHASH_2_4", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1118, - "column": 1, - "source_line": "#ifdef STBDS_SIPHASH_2_4" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1120, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1125, - "column": 5, - "source_line": " #if 0" - } - }, - { - "directive": "elif", - "argument": "1", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1136, - "column": 5, - "source_line": " #elif 1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1147, - "column": 5, - "source_line": " #else // HASH32-C - Murmur3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1161, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1196, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1198, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "pragma", - "argument": "warning(pop)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1199, - "column": 1, - "source_line": "#pragma warning(pop)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1200, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_STRING_ARENA_BLOCKSIZE_MIN", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1550, - "column": 1, - "source_line": "#ifndef STBDS_STRING_ARENA_BLOCKSIZE_MIN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1552, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_STRING_ARENA_BLOCKSIZE_MAX", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1553, - "column": 1, - "source_line": "#ifndef STBDS_STRING_ARENA_BLOCKSIZE_MAX" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1555, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1617, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_UNIT_TESTS", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1624, - "column": 1, - "source_line": "#ifdef STBDS_UNIT_TESTS" - } - }, - { - "directive": "ifdef", - "argument": "STBDS_ASSERT_WAS_UNDEFINED", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1626, - "column": 1, - "source_line": "#ifdef STBDS_ASSERT_WAS_UNDEFINED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1628, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBDS_ASSERT", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1629, - "column": 1, - "source_line": "#ifndef STBDS_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1632, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1640, - "column": 1, - "source_line": "#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1642, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1644, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && _MSC_VER <= 1200 && defined(__cplusplus)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1650, - "column": 1, - "source_line": "#if defined(_MSC_VER) && _MSC_VER <= 1200 && defined(__cplusplus)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1653, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "if", - "argument": "defined(__clang__) || defined(__GNUC__)", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1725, - "column": 3, - "source_line": " #if defined(__clang__) || defined(__GNUC__)" - } - }, - { - "directive": "ifndef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1726, - "column": 3, - "source_line": " #ifndef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1734, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1735, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1850, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1852, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [ - { - "name": "stbds_shmode_func_wrapper", - "context": "declaration", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 711, - "column": 1, - "source_line": "template static T * stbds_shmode_func_wrapper(T *, size_t elemsize, int mode) {" - }, - "source_text": "template static T * stbds_shmode_func_wrapper(T *, size_t elemsize, int mode)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 460, - "column": 1, - "source_line": "#define STBDS_REALLOC(c,p,s) realloc(p,s)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 461, - "column": 1, - "source_line": "#define STBDS_FREE(c,p) free(p)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 465, - "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 467, - "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 524, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((__typeof__(typevar)[1]){value}) // literal array decays to pointer to value" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 526, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((typeof(typevar)[1]){value}) // literal array decays to pointer to value" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 529, - "column": 1, - "source_line": "#define STBDS_ADDRESSOF(typevar, value) &(value)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_OFFSETOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 532, - "column": 1, - "source_line": "#define STBDS_OFFSETOF(var,field) ((char *) &(var)->field - (char *) (var))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_OFFSETOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_header' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 534, - "column": 1, - "source_line": "#define stbds_header(t) ((stbds_array_header *) (t) - 1)" - }, - "unit_kind": "macro", - "unit_name": "stbds_header" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_temp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 535, - "column": 1, - "source_line": "#define stbds_temp(t) stbds_header(t)->temp" - }, - "unit_kind": "macro", - "unit_name": "stbds_temp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_temp_key' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 536, - "column": 1, - "source_line": "#define stbds_temp_key(t) (*(char **) stbds_header(t)->hash_table)" - }, - "unit_kind": "macro", - "unit_name": "stbds_temp_key" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrsetcap' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 538, - "column": 1, - "source_line": "#define stbds_arrsetcap(a,n) (stbds_arrgrow(a,0,n))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrsetcap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrsetlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 539, - "column": 1, - "source_line": "#define stbds_arrsetlen(a,n) ((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrsetlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrcap' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 540, - "column": 1, - "source_line": "#define stbds_arrcap(a) ((a) ? stbds_header(a)->capacity : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrcap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 541, - "column": 1, - "source_line": "#define stbds_arrlen(a) ((a) ? (ptrdiff_t) stbds_header(a)->length : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlenu' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 542, - "column": 1, - "source_line": "#define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrlenu" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrput' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 543, - "column": 1, - "source_line": "#define stbds_arrput(a,v) (stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrpop' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 545, - "column": 1, - "source_line": "#define stbds_arrpop(a) (stbds_header(a)->length--, (a)[stbds_header(a)->length])" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrpop" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arraddn' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 546, - "column": 1, - "source_line": "#define stbds_arraddn(a,n) ((void)(stbds_arraddnindex(a, n))) // deprecated, use one of the following instead:" - }, - "unit_kind": "macro", - "unit_name": "stbds_arraddn" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arraddnptr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 547, - "column": 1, - "source_line": "#define stbds_arraddnptr(a,n) (stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arraddnptr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlast' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 550, - "column": 1, - "source_line": "#define stbds_arrlast(a) ((a)[stbds_header(a)->length-1])" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrlast" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrfree' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 551, - "column": 1, - "source_line": "#define stbds_arrfree(a) ((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrfree" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdel' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 552, - "column": 1, - "source_line": "#define stbds_arrdel(a,i) stbds_arrdeln(a,i,1)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdeln' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 553, - "column": 1, - "source_line": "#define stbds_arrdeln(a,i,n) (memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrdeln" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdelswap' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 554, - "column": 1, - "source_line": "#define stbds_arrdelswap(a,i) ((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrdelswap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrinsn' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 555, - "column": 1, - "source_line": "#define stbds_arrinsn(a,i,n) (stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrinsn" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrins' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 556, - "column": 1, - "source_line": "#define stbds_arrins(a,i,v) (stbds_arrinsn((a),(i),1), (a)[i]=(v))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrins" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrmaybegrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 558, - "column": 1, - "source_line": "#define stbds_arrmaybegrow(a,n) ((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrmaybegrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrgrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 561, - "column": 1, - "source_line": "#define stbds_arrgrow(a,b,c) ((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))" - }, - "unit_kind": "macro", - "unit_name": "stbds_arrgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmput' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 563, - "column": 1, - "source_line": "#define stbds_hmput(t, k, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmputs' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 568, - "column": 1, - "source_line": "#define stbds_hmputs(t, s) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmputs" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgeti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 572, - "column": 1, - "source_line": "#define stbds_hmgeti(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgeti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgeti_ts' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 576, - "column": 1, - "source_line": "#define stbds_hmgeti_ts(t,k,temp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgeti_ts" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 580, - "column": 1, - "source_line": "#define stbds_hmgetp(t, k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp_ts' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 583, - "column": 1, - "source_line": "#define stbds_hmgetp_ts(t, k, temp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp_ts" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdel' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 586, - "column": 1, - "source_line": "#define stbds_hmdel(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdefault' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 589, - "column": 1, - "source_line": "#define stbds_hmdefault(t, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmdefault" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdefaults' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 592, - "column": 1, - "source_line": "#define stbds_hmdefaults(t, s) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmdefaults" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmfree' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 595, - "column": 1, - "source_line": "#define stbds_hmfree(p) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmfree" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgets' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 598, - "column": 1, - "source_line": "#define stbds_hmgets(t, k) (*stbds_hmgetp(t,k))" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgets" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmget' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 599, - "column": 1, - "source_line": "#define stbds_hmget(t, k) (stbds_hmgetp(t,k)->value)" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmget_ts' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 600, - "column": 1, - "source_line": "#define stbds_hmget_ts(t, k, temp) (stbds_hmgetp_ts(t,k,temp)->value)" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmget_ts" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 601, - "column": 1, - "source_line": "#define stbds_hmlen(t) ((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmlenu' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 602, - "column": 1, - "source_line": "#define stbds_hmlenu(t) ((t) ? stbds_header((t)-1)->length-1 : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmlenu" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp_null' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 603, - "column": 1, - "source_line": "#define stbds_hmgetp_null(t,k) (stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp_null" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shput' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 605, - "column": 1, - "source_line": "#define stbds_shput(t, k, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shputi' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 609, - "column": 1, - "source_line": "#define stbds_shputi(t, k, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shputi" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shputs' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 613, - "column": 1, - "source_line": "#define stbds_shputs(t, s) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shputs" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshput' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 618, - "column": 1, - "source_line": "#define stbds_pshput(t, p) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_pshput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgeti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 622, - "column": 1, - "source_line": "#define stbds_shgeti(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shgeti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshgeti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 626, - "column": 1, - "source_line": "#define stbds_pshgeti(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_pshgeti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgetp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 630, - "column": 1, - "source_line": "#define stbds_shgetp(t, k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shgetp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshget' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 633, - "column": 1, - "source_line": "#define stbds_pshget(t, k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_pshget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdel' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 636, - "column": 1, - "source_line": "#define stbds_shdel(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_shdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshdel' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 638, - "column": 1, - "source_line": "#define stbds_pshdel(t,k) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_pshdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_sh_new_arena' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 641, - "column": 1, - "source_line": "#define stbds_sh_new_arena(t) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_sh_new_arena" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_sh_new_strdup' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 643, - "column": 1, - "source_line": "#define stbds_sh_new_strdup(t) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_sh_new_strdup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdefault' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 646, - "column": 1, - "source_line": "#define stbds_shdefault(t, v) stbds_hmdefault(t,v)" - }, - "unit_kind": "macro", - "unit_name": "stbds_shdefault" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdefaults' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 647, - "column": 1, - "source_line": "#define stbds_shdefaults(t, s) stbds_hmdefaults(t,s)" - }, - "unit_kind": "macro", - "unit_name": "stbds_shdefaults" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgets' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 652, - "column": 1, - "source_line": "#define stbds_shgets(t, k) (*stbds_shgetp(t,k))" - }, - "unit_kind": "macro", - "unit_name": "stbds_shgets" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shget' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 653, - "column": 1, - "source_line": "#define stbds_shget(t, k) (stbds_shgetp(t,k)->value)" - }, - "unit_kind": "macro", - "unit_name": "stbds_shget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgetp_null' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 654, - "column": 1, - "source_line": "#define stbds_shgetp_null(t,k) (stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - }, - "unit_kind": "macro", - "unit_name": "stbds_shgetp_null" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shmode_func_wrapper' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 721, - "column": 1, - "source_line": "#define stbds_shmode_func_wrapper(t,e,m) stbds_shmode_func(e,m)" - }, - "unit_kind": "macro", - "unit_name": "stbds_shmode_func_wrapper" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 738, - "column": 1, - "source_line": "#define STBDS_ASSERT(x) ((void) 0)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_STATS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 742, - "column": 1, - "source_line": "#define STBDS_STATS(x) x" - }, - "unit_kind": "macro", - "unit_name": "STBDS_STATS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_STATS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 752, - "column": 1, - "source_line": "#define STBDS_STATS(x)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_STATS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ALIGN_FWD' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 819, - "column": 1, - "source_line": "#define STBDS_ALIGN_FWD(n,a) (((n) + (a) - 1) & ~((a)-1))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ALIGN_FWD" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_INDEX_IN_USE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 844, - "column": 1, - "source_line": "#define STBDS_INDEX_IN_USE(x) ((x) >= 0)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_INDEX_IN_USE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_load_32_or_64' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 856, - "column": 1, - "source_line": "#define stbds_load_32_or_64(var, temp, v32, v64_hi, v64_lo) \\" - }, - "unit_kind": "macro", - "unit_name": "stbds_load_32_or_64" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ROTATE_LEFT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1013, - "column": 1, - "source_line": "#define STBDS_ROTATE_LEFT(val, n) (((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ROTATE_LEFT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ROTATE_RIGHT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1014, - "column": 1, - "source_line": "#define STBDS_ROTATE_RIGHT(val, n) (((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ROTATE_RIGHT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_SIPROUND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1073, - "column": 3, - "source_line": " #define STBDS_SIPROUND() \\" - }, - "unit_kind": "macro", - "unit_name": "STBDS_SIPROUND" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_HASH_TO_ARR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1211, - "column": 1, - "source_line": "#define STBDS_HASH_TO_ARR(x,elemsize) ((char*) (x) - (elemsize))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_HASH_TO_ARR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ARR_TO_HASH' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1212, - "column": 1, - "source_line": "#define STBDS_ARR_TO_HASH(x,elemsize) ((char*) (x) + (elemsize))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ARR_TO_HASH" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hash_table' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1214, - "column": 1, - "source_line": "#define stbds_hash_table(a) ((stbds_hash_index *) stbds_header(a)->hash_table)" - }, - "unit_kind": "macro", - "unit_name": "stbds_hash_table" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 471, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_arrgrowf_wrapper(T *a, size_t elemsize, size_t addlen, size_t min_cap)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 693, - "column": 1, - "source_line": "template static T * stbds_arrgrowf_wrapper(T *a, size_t elemsize, size_t addlen, size_t min_cap) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmget_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 696, - "column": 1, - "source_line": "template static T * stbds_hmget_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmget_key_ts_wrapper(T *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 699, - "column": 1, - "source_line": "template static T * stbds_hmget_key_ts_wrapper(T *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmput_default_wrapper(T *a, size_t elemsize)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 702, - "column": 1, - "source_line": "template static T * stbds_hmput_default_wrapper(T *a, size_t elemsize) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmput_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 705, - "column": 1, - "source_line": "template static T * stbds_hmput_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmdel_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 708, - "column": 1, - "source_line": "template static T * stbds_hmdel_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode){" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbds_shmode_func_wrapper'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 711, - "column": 1, - "source_line": "template static T * stbds_shmode_func_wrapper(T *, size_t elemsize, int mode) {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbds_shmode_func_wrapper" - } - ] - } - }, - "functions": { - "stbds_arrgrowf": { - "name": "stbds_arrgrowf", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "addlen", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "min_cap", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 762, - "column": 1, - "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 762, - "column": 1, - "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 798, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_arrfreef": { - "name": "stbds_arrfreef", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 800, - "column": 1, - "source_line": "void stbds_arrfreef(void *a)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 800, - "column": 1, - "source_line": "void stbds_arrfreef(void *a)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 803, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_rand_seed": { - "name": "stbds_rand_seed", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "seed", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 851, - "column": 1, - "source_line": "void stbds_rand_seed(size_t seed)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 851, - "column": 1, - "source_line": "void stbds_rand_seed(size_t seed)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 854, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_probe_position": { - "name": "stbds_probe_position", - "result_type": { - "reference": "size_t" - }, - "parameters": [ - { - "name": "hash", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot_count", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot_log2", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 863, - "column": 1, - "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 863, - "column": 1, - "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 872, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_log2": { - "name": "stbds_log2", - "result_type": { - "reference": "size_t" - }, - "parameters": [ - { - "name": "slot_count", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 874, - "column": 1, - "source_line": "static size_t stbds_log2(size_t slot_count)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 874, - "column": 1, - "source_line": "static size_t stbds_log2(size_t slot_count)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 882, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_make_hash_index": { - "name": "stbds_make_hash_index", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_hash_index", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_hash_index" - } - ] - }, - "parameters": [ - { - "name": "slot_count", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_hash_index *ot", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_hash_index" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_hash_index *ot", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_hash_index" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 884, - "column": 1, - "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 884, - "column": 1, - "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1011, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hash_string": { - "name": "stbds_hash_string", - "result_type": { - "reference": "size_t" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1016, - "column": 1, - "source_line": "size_t stbds_hash_string(char *str, size_t seed)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1016, - "column": 1, - "source_line": "size_t stbds_hash_string(char *str, size_t seed)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1031, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_siphash_bytes": { - "name": "stbds_siphash_bytes", - "result_type": { - "reference": "size_t" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1051, - "column": 1, - "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1051, - "column": 1, - "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1114, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hash_bytes": { - "name": "stbds_hash_bytes", - "result_type": { - "reference": "size_t" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1116, - "column": 1, - "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1116, - "column": 1, - "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1197, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_is_key_equal": { - "name": "stbds_is_key_equal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1203, - "column": 1, - "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1203, - "column": 1, - "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1209, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hmfree_func": { - "name": "stbds_hmfree_func", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1216, - "column": 1, - "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1216, - "column": 1, - "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1230, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hm_find_slot": { - "name": "stbds_hm_find_slot", - "result_type": { - "reference": "ptrdiff_t" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1232, - "column": 1, - "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1232, - "column": 1, - "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1279, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hmget_key_ts": { - "name": "stbds_hmget_key_ts", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "temp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "ptrdiff_t *temp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "ptrdiff_t" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "ptrdiff_t *temp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "ptrdiff_t" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1281, - "column": 1, - "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1281, - "column": 1, - "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1310, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hmget_key": { - "name": "stbds_hmget_key", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1312, - "column": 1, - "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1312, - "column": 1, - "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1318, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hmput_default": { - "name": "stbds_hmput_default", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1320, - "column": 1, - "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1320, - "column": 1, - "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1333, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_strdup": { - "name": "stbds_strdup", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1540, - "column": 1, - "source_line": "static char *stbds_strdup(char *str)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1540, - "column": 1, - "source_line": "static char *stbds_strdup(char *str)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1548, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_ds.h", - "line": 1335, - "column": 1, - "source_line": "static char *stbds_strdup(char *str);" - } - ] - }, - "stbds_hmput_key": { - "name": "stbds_hmput_key", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1337, - "column": 1, - "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1337, - "column": 1, - "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1459, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_shmode_func": { - "name": "stbds_shmode_func", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1461, - "column": 1, - "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1461, - "column": 1, - "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1470, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_hmdel_key": { - "name": "stbds_hmdel_key", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "elemsize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *key", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keysize", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "keyoffset", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1472, - "column": 1, - "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1472, - "column": 1, - "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1538, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_stralloc": { - "name": "stbds_stralloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1557, - "column": 1, - "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1557, - "column": 1, - "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1603, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_strreset": { - "name": "stbds_strreset", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbds_string_arena *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbds_string_arena" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1605, - "column": 1, - "source_line": "void stbds_strreset(stbds_string_arena *a)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1605, - "column": 1, - "source_line": "void stbds_strreset(stbds_string_arena *a)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1615, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "strkey": { - "name": "strkey", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1638, - "column": 1, - "source_line": "char *strkey(int n)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1638, - "column": 1, - "source_line": "char *strkey(int n)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1646, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbds_unit_tests": { - "name": "stbds_unit_tests", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1648, - "column": 1, - "source_line": "void stbds_unit_tests(void)" - }, - "start": { - "filename": "stb/stb_ds.h", - "line": 1648, - "column": 1, - "source_line": "void stbds_unit_tests(void)" - }, - "end": { - "filename": "stb/stb_ds.h", - "line": 1851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stbds_string_block": { - "reference": "struct stbds_string_block" - }, - "stbds_string_arena": { - "reference": "struct stbds_string_arena" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "stbds_array_header": { - "reference": "stbds_array_header" - }, - "stbds_string_block": { - "reference": "stbds_string_block" - }, - "stbds_hash_bucket": { - "reference": "stbds_hash_bucket" - }, - "stbds_hash_index": { - "reference": "stbds_hash_index" - }, - "STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds": { - "reference": "STBDS_SIPHASH_2_4_can_only_be_used_in_64_bit_builds" - }, - "stbds_struct": { - "reference": "stbds_struct" - }, - "stbds_struct2": { - "reference": "stbds_struct2" - } - }, - "variables": { - "stbds_array_grow": { - "name": "stbds_array_grow", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 743, - "column": 1, - "source_line": "size_t stbds_array_grow;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_grow": { - "name": "stbds_hash_grow", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 744, - "column": 1, - "source_line": "size_t stbds_hash_grow;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_shrink": { - "name": "stbds_hash_shrink", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 745, - "column": 1, - "source_line": "size_t stbds_hash_shrink;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_rebuild": { - "name": "stbds_hash_rebuild", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 746, - "column": 1, - "source_line": "size_t stbds_hash_rebuild;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_probes": { - "name": "stbds_hash_probes", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 747, - "column": 1, - "source_line": "size_t stbds_hash_probes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_alloc": { - "name": "stbds_hash_alloc", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 748, - "column": 1, - "source_line": "size_t stbds_hash_alloc;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_rehash_probes": { - "name": "stbds_rehash_probes", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 749, - "column": 1, - "source_line": "size_t stbds_rehash_probes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_rehash_items": { - "name": "stbds_rehash_items", - "type": { - "reference": "size_t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 750, - "column": 1, - "source_line": "size_t stbds_rehash_items;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbds_hash_seed": { - "name": "stbds_hash_seed", - "type": { - "reference": "size_t" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0x31415926" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 849, - "column": 1, - "source_line": "static size_t stbds_hash_seed=0x31415926;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "buffer": { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char buffer[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1637, - "column": 1, - "source_line": "static char buffer[256];" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "_CRT_SECURE_NO_WARNINGS": { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 388, - "column": 1, - "source_line": "#define _CRT_SECURE_NO_WARNINGS" - } - }, - "INCLUDE_STB_DS_H": { - "name": "INCLUDE_STB_DS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 392, - "column": 1, - "source_line": "#define INCLUDE_STB_DS_H" - } - }, - "arrlen": { - "name": "arrlen", - "value": "stbds_arrlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 398, - "column": 1, - "source_line": "#define arrlen stbds_arrlen" - } - }, - "arrlenu": { - "name": "arrlenu", - "value": "stbds_arrlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 399, - "column": 1, - "source_line": "#define arrlenu stbds_arrlenu" - } - }, - "arrput": { - "name": "arrput", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 400, - "column": 1, - "source_line": "#define arrput stbds_arrput" - } - }, - "arrpush": { - "name": "arrpush", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 401, - "column": 1, - "source_line": "#define arrpush stbds_arrput" - } - }, - "arrpop": { - "name": "arrpop", - "value": "stbds_arrpop", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 402, - "column": 1, - "source_line": "#define arrpop stbds_arrpop" - } - }, - "arrfree": { - "name": "arrfree", - "value": "stbds_arrfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 403, - "column": 1, - "source_line": "#define arrfree stbds_arrfree" - } - }, - "arraddn": { - "name": "arraddn", - "value": "stbds_arraddn", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 404, - "column": 1, - "source_line": "#define arraddn stbds_arraddn // deprecated, use one of the following instead:" - } - }, - "arraddnptr": { - "name": "arraddnptr", - "value": "stbds_arraddnptr", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 405, - "column": 1, - "source_line": "#define arraddnptr stbds_arraddnptr" - } - }, - "arraddnindex": { - "name": "arraddnindex", - "value": "stbds_arraddnindex", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 406, - "column": 1, - "source_line": "#define arraddnindex stbds_arraddnindex" - } - }, - "arrsetlen": { - "name": "arrsetlen", - "value": "stbds_arrsetlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 407, - "column": 1, - "source_line": "#define arrsetlen stbds_arrsetlen" - } - }, - "arrlast": { - "name": "arrlast", - "value": "stbds_arrlast", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 408, - "column": 1, - "source_line": "#define arrlast stbds_arrlast" - } - }, - "arrins": { - "name": "arrins", - "value": "stbds_arrins", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 409, - "column": 1, - "source_line": "#define arrins stbds_arrins" - } - }, - "arrinsn": { - "name": "arrinsn", - "value": "stbds_arrinsn", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 410, - "column": 1, - "source_line": "#define arrinsn stbds_arrinsn" - } - }, - "arrdel": { - "name": "arrdel", - "value": "stbds_arrdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 411, - "column": 1, - "source_line": "#define arrdel stbds_arrdel" - } - }, - "arrdeln": { - "name": "arrdeln", - "value": "stbds_arrdeln", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 412, - "column": 1, - "source_line": "#define arrdeln stbds_arrdeln" - } - }, - "arrdelswap": { - "name": "arrdelswap", - "value": "stbds_arrdelswap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 413, - "column": 1, - "source_line": "#define arrdelswap stbds_arrdelswap" - } - }, - "arrcap": { - "name": "arrcap", - "value": "stbds_arrcap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 414, - "column": 1, - "source_line": "#define arrcap stbds_arrcap" - } - }, - "arrsetcap": { - "name": "arrsetcap", - "value": "stbds_arrsetcap", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 415, - "column": 1, - "source_line": "#define arrsetcap stbds_arrsetcap" - } - }, - "hmput": { - "name": "hmput", - "value": "stbds_hmput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 417, - "column": 1, - "source_line": "#define hmput stbds_hmput" - } - }, - "hmputs": { - "name": "hmputs", - "value": "stbds_hmputs", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 418, - "column": 1, - "source_line": "#define hmputs stbds_hmputs" - } - }, - "hmget": { - "name": "hmget", - "value": "stbds_hmget", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 419, - "column": 1, - "source_line": "#define hmget stbds_hmget" - } - }, - "hmget_ts": { - "name": "hmget_ts", - "value": "stbds_hmget_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 420, - "column": 1, - "source_line": "#define hmget_ts stbds_hmget_ts" - } - }, - "hmgets": { - "name": "hmgets", - "value": "stbds_hmgets", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 421, - "column": 1, - "source_line": "#define hmgets stbds_hmgets" - } - }, - "hmgetp": { - "name": "hmgetp", - "value": "stbds_hmgetp", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 422, - "column": 1, - "source_line": "#define hmgetp stbds_hmgetp" - } - }, - "hmgetp_ts": { - "name": "hmgetp_ts", - "value": "stbds_hmgetp_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 423, - "column": 1, - "source_line": "#define hmgetp_ts stbds_hmgetp_ts" - } - }, - "hmgetp_null": { - "name": "hmgetp_null", - "value": "stbds_hmgetp_null", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 424, - "column": 1, - "source_line": "#define hmgetp_null stbds_hmgetp_null" - } - }, - "hmgeti": { - "name": "hmgeti", - "value": "stbds_hmgeti", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 425, - "column": 1, - "source_line": "#define hmgeti stbds_hmgeti" - } - }, - "hmgeti_ts": { - "name": "hmgeti_ts", - "value": "stbds_hmgeti_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 426, - "column": 1, - "source_line": "#define hmgeti_ts stbds_hmgeti_ts" - } - }, - "hmdel": { - "name": "hmdel", - "value": "stbds_hmdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 427, - "column": 1, - "source_line": "#define hmdel stbds_hmdel" - } - }, - "hmlen": { - "name": "hmlen", - "value": "stbds_hmlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 428, - "column": 1, - "source_line": "#define hmlen stbds_hmlen" - } - }, - "hmlenu": { - "name": "hmlenu", - "value": "stbds_hmlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 429, - "column": 1, - "source_line": "#define hmlenu stbds_hmlenu" - } - }, - "hmfree": { - "name": "hmfree", - "value": "stbds_hmfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 430, - "column": 1, - "source_line": "#define hmfree stbds_hmfree" - } - }, - "hmdefault": { - "name": "hmdefault", - "value": "stbds_hmdefault", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 431, - "column": 1, - "source_line": "#define hmdefault stbds_hmdefault" - } - }, - "hmdefaults": { - "name": "hmdefaults", - "value": "stbds_hmdefaults", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 432, - "column": 1, - "source_line": "#define hmdefaults stbds_hmdefaults" - } - }, - "shput": { - "name": "shput", - "value": "stbds_shput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 434, - "column": 1, - "source_line": "#define shput stbds_shput" - } - }, - "shputi": { - "name": "shputi", - "value": "stbds_shputi", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 435, - "column": 1, - "source_line": "#define shputi stbds_shputi" - } - }, - "shputs": { - "name": "shputs", - "value": "stbds_shputs", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 436, - "column": 1, - "source_line": "#define shputs stbds_shputs" - } - }, - "shget": { - "name": "shget", - "value": "stbds_shget", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 437, - "column": 1, - "source_line": "#define shget stbds_shget" - } - }, - "shgeti": { - "name": "shgeti", - "value": "stbds_shgeti", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 438, - "column": 1, - "source_line": "#define shgeti stbds_shgeti" - } - }, - "shgets": { - "name": "shgets", - "value": "stbds_shgets", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 439, - "column": 1, - "source_line": "#define shgets stbds_shgets" - } - }, - "shgetp": { - "name": "shgetp", - "value": "stbds_shgetp", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 440, - "column": 1, - "source_line": "#define shgetp stbds_shgetp" - } - }, - "shgetp_null": { - "name": "shgetp_null", - "value": "stbds_shgetp_null", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 441, - "column": 1, - "source_line": "#define shgetp_null stbds_shgetp_null" - } - }, - "shdel": { - "name": "shdel", - "value": "stbds_shdel", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 442, - "column": 1, - "source_line": "#define shdel stbds_shdel" - } - }, - "shlen": { - "name": "shlen", - "value": "stbds_shlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 443, - "column": 1, - "source_line": "#define shlen stbds_shlen" - } - }, - "shlenu": { - "name": "shlenu", - "value": "stbds_shlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 444, - "column": 1, - "source_line": "#define shlenu stbds_shlenu" - } - }, - "shfree": { - "name": "shfree", - "value": "stbds_shfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 445, - "column": 1, - "source_line": "#define shfree stbds_shfree" - } - }, - "shdefault": { - "name": "shdefault", - "value": "stbds_shdefault", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 446, - "column": 1, - "source_line": "#define shdefault stbds_shdefault" - } - }, - "shdefaults": { - "name": "shdefaults", - "value": "stbds_shdefaults", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 447, - "column": 1, - "source_line": "#define shdefaults stbds_shdefaults" - } - }, - "sh_new_arena": { - "name": "sh_new_arena", - "value": "stbds_sh_new_arena", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 448, - "column": 1, - "source_line": "#define sh_new_arena stbds_sh_new_arena" - } - }, - "sh_new_strdup": { - "name": "sh_new_strdup", - "value": "stbds_sh_new_strdup", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 449, - "column": 1, - "source_line": "#define sh_new_strdup stbds_sh_new_strdup" - } - }, - "stralloc": { - "name": "stralloc", - "value": "stbds_stralloc", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 451, - "column": 1, - "source_line": "#define stralloc stbds_stralloc" - } - }, - "strreset": { - "name": "strreset", - "value": "stbds_strreset", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 452, - "column": 1, - "source_line": "#define strreset stbds_strreset" - } - }, - "STBDS_REALLOC": { - "name": "STBDS_REALLOC", - "value": "realloc(p,s)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 460, - "column": 1, - "source_line": "#define STBDS_REALLOC(c,p,s) realloc(p,s)" - } - }, - "STBDS_FREE": { - "name": "STBDS_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 461, - "column": 1, - "source_line": "#define STBDS_FREE(c,p) free(p)" - } - }, - "STBDS_NOTUSED": { - "name": "STBDS_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 467, - "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)sizeof(v)" - } - }, - "STBDS_HAS_TYPEOF": { - "name": "STBDS_HAS_TYPEOF", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 509, - "column": 1, - "source_line": "#define STBDS_HAS_TYPEOF" - } - }, - "STBDS_HAS_LITERAL_ARRAY": { - "name": "STBDS_HAS_LITERAL_ARRAY", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 517, - "column": 1, - "source_line": "#define STBDS_HAS_LITERAL_ARRAY" - } - }, - "STBDS_ADDRESSOF": { - "name": "STBDS_ADDRESSOF", - "value": "&(value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 529, - "column": 1, - "source_line": "#define STBDS_ADDRESSOF(typevar, value) &(value)" - } - }, - "STBDS_OFFSETOF": { - "name": "STBDS_OFFSETOF", - "value": "((char *) &(var)->field - (char *) (var))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 532, - "column": 1, - "source_line": "#define STBDS_OFFSETOF(var,field) ((char *) &(var)->field - (char *) (var))" - } - }, - "stbds_header": { - "name": "stbds_header", - "value": "((stbds_array_header *) (t) - 1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 534, - "column": 1, - "source_line": "#define stbds_header(t) ((stbds_array_header *) (t) - 1)" - } - }, - "stbds_temp": { - "name": "stbds_temp", - "value": "stbds_header(t)->temp", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 535, - "column": 1, - "source_line": "#define stbds_temp(t) stbds_header(t)->temp" - } - }, - "stbds_temp_key": { - "name": "stbds_temp_key", - "value": "(*(char **) stbds_header(t)->hash_table)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 536, - "column": 1, - "source_line": "#define stbds_temp_key(t) (*(char **) stbds_header(t)->hash_table)" - } - }, - "stbds_arrsetcap": { - "name": "stbds_arrsetcap", - "value": "(stbds_arrgrow(a,0,n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 538, - "column": 1, - "source_line": "#define stbds_arrsetcap(a,n) (stbds_arrgrow(a,0,n))" - } - }, - "stbds_arrsetlen": { - "name": "stbds_arrsetlen", - "value": "((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 539, - "column": 1, - "source_line": "#define stbds_arrsetlen(a,n) ((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)" - } - }, - "stbds_arrcap": { - "name": "stbds_arrcap", - "value": "((a) ? stbds_header(a)->capacity : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 540, - "column": 1, - "source_line": "#define stbds_arrcap(a) ((a) ? stbds_header(a)->capacity : 0)" - } - }, - "stbds_arrlen": { - "name": "stbds_arrlen", - "value": "((a) ? (ptrdiff_t) stbds_header(a)->length : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 541, - "column": 1, - "source_line": "#define stbds_arrlen(a) ((a) ? (ptrdiff_t) stbds_header(a)->length : 0)" - } - }, - "stbds_arrlenu": { - "name": "stbds_arrlenu", - "value": "((a) ? stbds_header(a)->length : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 542, - "column": 1, - "source_line": "#define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0)" - } - }, - "stbds_arrput": { - "name": "stbds_arrput", - "value": "(stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 543, - "column": 1, - "source_line": "#define stbds_arrput(a,v) (stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))" - } - }, - "stbds_arrpush": { - "name": "stbds_arrpush", - "value": "stbds_arrput", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 544, - "column": 1, - "source_line": "#define stbds_arrpush stbds_arrput // synonym" - } - }, - "stbds_arrpop": { - "name": "stbds_arrpop", - "value": "(stbds_header(a)->length--, (a)[stbds_header(a)->length])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 545, - "column": 1, - "source_line": "#define stbds_arrpop(a) (stbds_header(a)->length--, (a)[stbds_header(a)->length])" - } - }, - "stbds_arraddn": { - "name": "stbds_arraddn", - "value": "((void)(stbds_arraddnindex(a, n)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 546, - "column": 1, - "source_line": "#define stbds_arraddn(a,n) ((void)(stbds_arraddnindex(a, n))) // deprecated, use one of the following instead:" - } - }, - "stbds_arraddnptr": { - "name": "stbds_arraddnptr", - "value": "(stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 547, - "column": 1, - "source_line": "#define stbds_arraddnptr(a,n) (stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))" - } - }, - "stbds_arraddnoff": { - "name": "stbds_arraddnoff", - "value": "stbds_arraddnindex", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 549, - "column": 1, - "source_line": "#define stbds_arraddnoff stbds_arraddnindex" - } - }, - "stbds_arrlast": { - "name": "stbds_arrlast", - "value": "((a)[stbds_header(a)->length-1])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 550, - "column": 1, - "source_line": "#define stbds_arrlast(a) ((a)[stbds_header(a)->length-1])" - } - }, - "stbds_arrfree": { - "name": "stbds_arrfree", - "value": "((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 551, - "column": 1, - "source_line": "#define stbds_arrfree(a) ((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)" - } - }, - "stbds_arrdel": { - "name": "stbds_arrdel", - "value": "stbds_arrdeln(a,i,1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 552, - "column": 1, - "source_line": "#define stbds_arrdel(a,i) stbds_arrdeln(a,i,1)" - } - }, - "stbds_arrdeln": { - "name": "stbds_arrdeln", - "value": "(memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 553, - "column": 1, - "source_line": "#define stbds_arrdeln(a,i,n) (memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))" - } - }, - "stbds_arrdelswap": { - "name": "stbds_arrdelswap", - "value": "((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 554, - "column": 1, - "source_line": "#define stbds_arrdelswap(a,i) ((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)" - } - }, - "stbds_arrinsn": { - "name": "stbds_arrinsn", - "value": "(stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 555, - "column": 1, - "source_line": "#define stbds_arrinsn(a,i,n) (stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))" - } - }, - "stbds_arrins": { - "name": "stbds_arrins", - "value": "(stbds_arrinsn((a),(i),1), (a)[i]=(v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 556, - "column": 1, - "source_line": "#define stbds_arrins(a,i,v) (stbds_arrinsn((a),(i),1), (a)[i]=(v))" - } - }, - "stbds_arrmaybegrow": { - "name": "stbds_arrmaybegrow", - "value": "((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) ? (stbds_arrgrow(a,n,0),0) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 558, - "column": 1, - "source_line": "#define stbds_arrmaybegrow(a,n) ((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) \\" - } - }, - "stbds_arrgrow": { - "name": "stbds_arrgrow", - "value": "((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 561, - "column": 1, - "source_line": "#define stbds_arrgrow(a,b,c) ((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))" - } - }, - "stbds_hmput": { - "name": "stbds_hmput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, 0), (t)[stbds_temp((t)-1)].key = (k), (t)[stbds_temp((t)-1)].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 563, - "column": 1, - "source_line": "#define stbds_hmput(t, k, v) \\" - } - }, - "stbds_hmputs": { - "name": "stbds_hmputs", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), &(s).key, sizeof (s).key, STBDS_HM_BINARY), (t)[stbds_temp((t)-1)] = (s))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 568, - "column": 1, - "source_line": "#define stbds_hmputs(t, s) \\" - } - }, - "stbds_hmgeti": { - "name": "stbds_hmgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_HM_BINARY), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 572, - "column": 1, - "source_line": "#define stbds_hmgeti(t,k) \\" - } - }, - "stbds_hmgeti_ts": { - "name": "stbds_hmgeti_ts", - "value": "((t) = stbds_hmget_key_ts_wrapper((t), sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, &(temp), STBDS_HM_BINARY), (temp))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 576, - "column": 1, - "source_line": "#define stbds_hmgeti_ts(t,k,temp) \\" - } - }, - "stbds_hmgetp": { - "name": "stbds_hmgetp", - "value": "((void) stbds_hmgeti(t,k), &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 580, - "column": 1, - "source_line": "#define stbds_hmgetp(t, k) \\" - } - }, - "stbds_hmgetp_ts": { - "name": "stbds_hmgetp_ts", - "value": "((void) stbds_hmgeti_ts(t,k,temp), &(t)[temp])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 583, - "column": 1, - "source_line": "#define stbds_hmgetp_ts(t, k, temp) \\" - } - }, - "stbds_hmdel": { - "name": "stbds_hmdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) STBDS_ADDRESSOF((t)->key, (k)), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_BINARY)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 586, - "column": 1, - "source_line": "#define stbds_hmdel(t,k) \\" - } - }, - "stbds_hmdefault": { - "name": "stbds_hmdefault", - "value": "((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 589, - "column": 1, - "source_line": "#define stbds_hmdefault(t, v) \\" - } - }, - "stbds_hmdefaults": { - "name": "stbds_hmdefaults", - "value": "((t) = stbds_hmput_default_wrapper((t), sizeof *(t)), (t)[-1] = (s))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 592, - "column": 1, - "source_line": "#define stbds_hmdefaults(t, s) \\" - } - }, - "stbds_hmfree": { - "name": "stbds_hmfree", - "value": "((void) ((p) != NULL ? stbds_hmfree_func((p)-1,sizeof*(p)),0 : 0),(p)=NULL)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 595, - "column": 1, - "source_line": "#define stbds_hmfree(p) \\" - } - }, - "stbds_hmgets": { - "name": "stbds_hmgets", - "value": "(*stbds_hmgetp(t,k))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 598, - "column": 1, - "source_line": "#define stbds_hmgets(t, k) (*stbds_hmgetp(t,k))" - } - }, - "stbds_hmget": { - "name": "stbds_hmget", - "value": "(stbds_hmgetp(t,k)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 599, - "column": 1, - "source_line": "#define stbds_hmget(t, k) (stbds_hmgetp(t,k)->value)" - } - }, - "stbds_hmget_ts": { - "name": "stbds_hmget_ts", - "value": "(stbds_hmgetp_ts(t,k,temp)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 600, - "column": 1, - "source_line": "#define stbds_hmget_ts(t, k, temp) (stbds_hmgetp_ts(t,k,temp)->value)" - } - }, - "stbds_hmlen": { - "name": "stbds_hmlen", - "value": "((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 601, - "column": 1, - "source_line": "#define stbds_hmlen(t) ((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)" - } - }, - "stbds_hmlenu": { - "name": "stbds_hmlenu", - "value": "((t) ? stbds_header((t)-1)->length-1 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 602, - "column": 1, - "source_line": "#define stbds_hmlenu(t) ((t) ? stbds_header((t)-1)->length-1 : 0)" - } - }, - "stbds_hmgetp_null": { - "name": "stbds_hmgetp_null", - "value": "(stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 603, - "column": 1, - "source_line": "#define stbds_hmgetp_null(t,k) (stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - } - }, - "stbds_shput": { - "name": "stbds_shput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)].value = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 605, - "column": 1, - "source_line": "#define stbds_shput(t, k, v) \\" - } - }, - "stbds_shputi": { - "name": "stbds_shputi", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)].value = (v), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 609, - "column": 1, - "source_line": "#define stbds_shputi(t, k, v) \\" - } - }, - "stbds_shputs": { - "name": "stbds_shputs", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (s).key, sizeof (s).key, STBDS_HM_STRING), (t)[stbds_temp((t)-1)] = (s), (t)[stbds_temp((t)-1)].key = stbds_temp_key((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 613, - "column": 1, - "source_line": "#define stbds_shputs(t, s) \\" - } - }, - "stbds_pshput": { - "name": "stbds_pshput", - "value": "((t) = stbds_hmput_key_wrapper((t), sizeof *(t), (void*) (p)->key, sizeof (p)->key, STBDS_HM_PTR_TO_STRING), (t)[stbds_temp((t)-1)] = (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 618, - "column": 1, - "source_line": "#define stbds_pshput(t, p) \\" - } - }, - "stbds_shgeti": { - "name": "stbds_shgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_HM_STRING), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 622, - "column": 1, - "source_line": "#define stbds_shgeti(t,k) \\" - } - }, - "stbds_pshgeti": { - "name": "stbds_pshgeti", - "value": "((t) = stbds_hmget_key_wrapper((t), sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_HM_PTR_TO_STRING), stbds_temp((t)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 626, - "column": 1, - "source_line": "#define stbds_pshgeti(t,k) \\" - } - }, - "stbds_shgetp": { - "name": "stbds_shgetp", - "value": "((void) stbds_shgeti(t,k), &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 630, - "column": 1, - "source_line": "#define stbds_shgetp(t, k) \\" - } - }, - "stbds_pshget": { - "name": "stbds_pshget", - "value": "((void) stbds_pshgeti(t,k), (t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 633, - "column": 1, - "source_line": "#define stbds_pshget(t, k) \\" - } - }, - "stbds_shdel": { - "name": "stbds_shdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (t)->key, STBDS_OFFSETOF((t),key), STBDS_HM_STRING)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 636, - "column": 1, - "source_line": "#define stbds_shdel(t,k) \\" - } - }, - "stbds_pshdel": { - "name": "stbds_pshdel", - "value": "(((t) = stbds_hmdel_key_wrapper((t),sizeof *(t), (void*) (k), sizeof (*(t))->key, STBDS_OFFSETOF(*(t),key), STBDS_HM_PTR_TO_STRING)),(t)?stbds_temp((t)-1):0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 638, - "column": 1, - "source_line": "#define stbds_pshdel(t,k) \\" - } - }, - "stbds_sh_new_arena": { - "name": "stbds_sh_new_arena", - "value": "((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_ARENA))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 641, - "column": 1, - "source_line": "#define stbds_sh_new_arena(t) \\" - } - }, - "stbds_sh_new_strdup": { - "name": "stbds_sh_new_strdup", - "value": "((t) = stbds_shmode_func_wrapper(t, sizeof *(t), STBDS_SH_STRDUP))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 643, - "column": 1, - "source_line": "#define stbds_sh_new_strdup(t) \\" - } - }, - "stbds_shdefault": { - "name": "stbds_shdefault", - "value": "stbds_hmdefault(t,v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 646, - "column": 1, - "source_line": "#define stbds_shdefault(t, v) stbds_hmdefault(t,v)" - } - }, - "stbds_shdefaults": { - "name": "stbds_shdefaults", - "value": "stbds_hmdefaults(t,s)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 647, - "column": 1, - "source_line": "#define stbds_shdefaults(t, s) stbds_hmdefaults(t,s)" - } - }, - "stbds_shfree": { - "name": "stbds_shfree", - "value": "stbds_hmfree", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 649, - "column": 1, - "source_line": "#define stbds_shfree stbds_hmfree" - } - }, - "stbds_shlenu": { - "name": "stbds_shlenu", - "value": "stbds_hmlenu", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 650, - "column": 1, - "source_line": "#define stbds_shlenu stbds_hmlenu" - } - }, - "stbds_shgets": { - "name": "stbds_shgets", - "value": "(*stbds_shgetp(t,k))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 652, - "column": 1, - "source_line": "#define stbds_shgets(t, k) (*stbds_shgetp(t,k))" - } - }, - "stbds_shget": { - "name": "stbds_shget", - "value": "(stbds_shgetp(t,k)->value)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 653, - "column": 1, - "source_line": "#define stbds_shget(t, k) (stbds_shgetp(t,k)->value)" - } - }, - "stbds_shgetp_null": { - "name": "stbds_shgetp_null", - "value": "(stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 654, - "column": 1, - "source_line": "#define stbds_shgetp_null(t,k) (stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" - } - }, - "stbds_shlen": { - "name": "stbds_shlen", - "value": "stbds_hmlen", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 655, - "column": 1, - "source_line": "#define stbds_shlen stbds_hmlen" - } - }, - "STBDS_HM_BINARY": { - "name": "STBDS_HM_BINARY", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 679, - "column": 1, - "source_line": "#define STBDS_HM_BINARY 0" - } - }, - "STBDS_HM_STRING": { - "name": "STBDS_HM_STRING", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 680, - "column": 1, - "source_line": "#define STBDS_HM_STRING 1" - } - }, - "stbds_arrgrowf_wrapper": { - "name": "stbds_arrgrowf_wrapper", - "value": "stbds_arrgrowf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 715, - "column": 1, - "source_line": "#define stbds_arrgrowf_wrapper stbds_arrgrowf" - } - }, - "stbds_hmget_key_wrapper": { - "name": "stbds_hmget_key_wrapper", - "value": "stbds_hmget_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 716, - "column": 1, - "source_line": "#define stbds_hmget_key_wrapper stbds_hmget_key" - } - }, - "stbds_hmget_key_ts_wrapper": { - "name": "stbds_hmget_key_ts_wrapper", - "value": "stbds_hmget_key_ts", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 717, - "column": 1, - "source_line": "#define stbds_hmget_key_ts_wrapper stbds_hmget_key_ts" - } - }, - "stbds_hmput_default_wrapper": { - "name": "stbds_hmput_default_wrapper", - "value": "stbds_hmput_default", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 718, - "column": 1, - "source_line": "#define stbds_hmput_default_wrapper stbds_hmput_default" - } - }, - "stbds_hmput_key_wrapper": { - "name": "stbds_hmput_key_wrapper", - "value": "stbds_hmput_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 719, - "column": 1, - "source_line": "#define stbds_hmput_key_wrapper stbds_hmput_key" - } - }, - "stbds_hmdel_key_wrapper": { - "name": "stbds_hmdel_key_wrapper", - "value": "stbds_hmdel_key", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 720, - "column": 1, - "source_line": "#define stbds_hmdel_key_wrapper stbds_hmdel_key" - } - }, - "stbds_shmode_func_wrapper": { - "name": "stbds_shmode_func_wrapper", - "value": "stbds_shmode_func(e,m)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 721, - "column": 1, - "source_line": "#define stbds_shmode_func_wrapper(t,e,m) stbds_shmode_func(e,m)" - } - }, - "STBDS_ASSERT_WAS_UNDEFINED": { - "name": "STBDS_ASSERT_WAS_UNDEFINED", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 737, - "column": 1, - "source_line": "#define STBDS_ASSERT_WAS_UNDEFINED" - } - }, - "STBDS_ASSERT": { - "name": "STBDS_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1630, - "column": 1, - "source_line": "#define STBDS_ASSERT assert" - } - }, - "STBDS_STATS": { - "name": "STBDS_STATS", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 752, - "column": 1, - "source_line": "#define STBDS_STATS(x)" - } - }, - "STBDS_BUCKET_LENGTH": { - "name": "STBDS_BUCKET_LENGTH", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 812, - "column": 1, - "source_line": "#define STBDS_BUCKET_LENGTH 8" - } - }, - "STBDS_BUCKET_SHIFT": { - "name": "STBDS_BUCKET_SHIFT", - "value": "(STBDS_BUCKET_LENGTH == 8 ? 3 : 2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 815, - "column": 1, - "source_line": "#define STBDS_BUCKET_SHIFT (STBDS_BUCKET_LENGTH == 8 ? 3 : 2)" - } - }, - "STBDS_BUCKET_MASK": { - "name": "STBDS_BUCKET_MASK", - "value": "(STBDS_BUCKET_LENGTH-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 816, - "column": 1, - "source_line": "#define STBDS_BUCKET_MASK (STBDS_BUCKET_LENGTH-1)" - } - }, - "STBDS_CACHE_LINE_SIZE": { - "name": "STBDS_CACHE_LINE_SIZE", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 817, - "column": 1, - "source_line": "#define STBDS_CACHE_LINE_SIZE 64" - } - }, - "STBDS_ALIGN_FWD": { - "name": "STBDS_ALIGN_FWD", - "value": "(((n) + (a) - 1) & ~((a)-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 819, - "column": 1, - "source_line": "#define STBDS_ALIGN_FWD(n,a) (((n) + (a) - 1) & ~((a)-1))" - } - }, - "STBDS_INDEX_EMPTY": { - "name": "STBDS_INDEX_EMPTY", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 842, - "column": 1, - "source_line": "#define STBDS_INDEX_EMPTY -1" - } - }, - "STBDS_INDEX_DELETED": { - "name": "STBDS_INDEX_DELETED", - "value": "-2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 843, - "column": 1, - "source_line": "#define STBDS_INDEX_DELETED -2" - } - }, - "STBDS_INDEX_IN_USE": { - "name": "STBDS_INDEX_IN_USE", - "value": "((x) >= 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 844, - "column": 1, - "source_line": "#define STBDS_INDEX_IN_USE(x) ((x) >= 0)" - } - }, - "STBDS_HASH_EMPTY": { - "name": "STBDS_HASH_EMPTY", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 846, - "column": 1, - "source_line": "#define STBDS_HASH_EMPTY 0" - } - }, - "STBDS_HASH_DELETED": { - "name": "STBDS_HASH_DELETED", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 847, - "column": 1, - "source_line": "#define STBDS_HASH_DELETED 1" - } - }, - "stbds_load_32_or_64": { - "name": "stbds_load_32_or_64", - "value": "temp = v64_lo ^ v32, temp <<= 16, temp <<= 16, temp >>= 16, temp >>= 16, var = v64_hi, var <<= 16, var <<= 16, var ^= temp ^ v32", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 856, - "column": 1, - "source_line": "#define stbds_load_32_or_64(var, temp, v32, v64_hi, v64_lo) \\" - } - }, - "STBDS_SIZE_T_BITS": { - "name": "STBDS_SIZE_T_BITS", - "value": "((sizeof (size_t)) * 8)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 861, - "column": 1, - "source_line": "#define STBDS_SIZE_T_BITS ((sizeof (size_t)) * 8)" - } - }, - "STBDS_ROTATE_LEFT": { - "name": "STBDS_ROTATE_LEFT", - "value": "(((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1013, - "column": 1, - "source_line": "#define STBDS_ROTATE_LEFT(val, n) (((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))" - } - }, - "STBDS_ROTATE_RIGHT": { - "name": "STBDS_ROTATE_RIGHT", - "value": "(((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1014, - "column": 1, - "source_line": "#define STBDS_ROTATE_RIGHT(val, n) (((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))" - } - }, - "STBDS_SIPHASH_C_ROUNDS": { - "name": "STBDS_SIPHASH_C_ROUNDS", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1040, - "column": 1, - "source_line": "#define STBDS_SIPHASH_C_ROUNDS 1" - } - }, - "STBDS_SIPHASH_D_ROUNDS": { - "name": "STBDS_SIPHASH_D_ROUNDS", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1043, - "column": 1, - "source_line": "#define STBDS_SIPHASH_D_ROUNDS 1" - } - }, - "STBDS_SIPROUND": { - "name": "STBDS_SIPROUND", - "value": "do { v0 += v1; v1 = STBDS_ROTATE_LEFT(v1, 13); v1 ^= v0; v0 = STBDS_ROTATE_LEFT(v0,STBDS_SIZE_T_BITS/2); v2 += v3; v3 = STBDS_ROTATE_LEFT(v3, 16); v3 ^= v2; v2 += v1; v1 = STBDS_ROTATE_LEFT(v1, 17); v1 ^= v2; v2 = STBDS_ROTATE_LEFT(v2,STBDS_SIZE_T_BITS/2); v0 += v3; v3 = STBDS_ROTATE_LEFT(v3, 21); v3 ^= v0; } while (0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1073, - "column": 3, - "source_line": " #define STBDS_SIPROUND() \\" - } - }, - "STBDS_HASH_TO_ARR": { - "name": "STBDS_HASH_TO_ARR", - "value": "((char*) (x) - (elemsize))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1211, - "column": 1, - "source_line": "#define STBDS_HASH_TO_ARR(x,elemsize) ((char*) (x) - (elemsize))" - } - }, - "STBDS_ARR_TO_HASH": { - "name": "STBDS_ARR_TO_HASH", - "value": "((char*) (x) + (elemsize))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1212, - "column": 1, - "source_line": "#define STBDS_ARR_TO_HASH(x,elemsize) ((char*) (x) + (elemsize))" - } - }, - "stbds_hash_table": { - "name": "stbds_hash_table", - "value": "((stbds_hash_index *) stbds_header(a)->hash_table)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1214, - "column": 1, - "source_line": "#define stbds_hash_table(a) ((stbds_hash_index *) stbds_header(a)->hash_table)" - } - }, - "STBDS_STRING_ARENA_BLOCKSIZE_MIN": { - "name": "STBDS_STRING_ARENA_BLOCKSIZE_MIN", - "value": "512u", - "function_like": false, - "directive": "define", + "source_text": "stbds_hash_index", + "name": "stbds_hash_index", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "temp_key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char * temp_key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 829, + "column": 3, + "source_line": " char * temp_key;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 830, + "column": 3, + "source_line": " size_t slot_count;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "used_count", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 831, + "column": 3, + "source_line": " size_t used_count;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "used_count_threshold", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 832, + "column": 3, + "source_line": " size_t used_count_threshold;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "used_count_shrink_threshold", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 833, + "column": 3, + "source_line": " size_t used_count_shrink_threshold;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "tombstone_count", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 834, + "column": 3, + "source_line": " size_t tombstone_count;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "tombstone_count_threshold", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 835, + "column": 3, + "source_line": " size_t tombstone_count_threshold;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 836, + "column": 3, + "source_line": " size_t seed;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "slot_count_log2", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 837, + "column": 3, + "source_line": " size_t slot_count_log2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "string", + "type": { + "reference": "stbds_string_arena" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 838, + "column": 3, + "source_line": " stbds_string_arena string;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "storage", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_bucket *storage", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbds_hash_bucket", + "name": "stbds_hash_bucket", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "hash", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "size_t hash [8]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "8", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "size_t" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 823, + "column": 4, + "source_line": " size_t hash [8];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "index", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ptrdiff_t index[8]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "8", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "ptrdiff_t" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 824, + "column": 4, + "source_line": " ptrdiff_t index[8];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 821, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 821, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 839, + "column": 3, + "source_line": " stbds_hash_bucket *storage;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 827, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 827, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "parameters": [ + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ot", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_index *ot", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_hash_index" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_index *ot", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_hash_index" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 884, + "column": 1, + "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 884, + "column": 1, + "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1011, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stbds_siphash_bytes", + "result_type": { + "reference": "size_t" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 1051, + "column": 1, + "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 1051, + "column": 1, + "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1114, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stbds_is_key_equal", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 1203, + "column": 1, + "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 1203, + "column": 1, + "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1209, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stbds_hm_find_slot", + "result_type": { + "reference": "ptrdiff_t" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 1232, + "column": 1, + "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 1232, + "column": 1, + "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1279, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stbds_strdup", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 1540, + "column": 1, + "source_line": "static char *stbds_strdup(char *str)" + }, + "start": { + "filename": "stb/stb_ds.h", + "line": 1540, + "column": 1, + "source_line": "static char *stbds_strdup(char *str)" + }, + "end": { + "filename": "stb/stb_ds.h", + "line": 1548, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 1335, + "column": 1, + "source_line": "static char *stbds_strdup(char *str);" + } + ] + } + ], + "structs": [ + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "length", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 659, + "column": 3, + "source_line": " size_t length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "capacity", + "type": { + "reference": "size_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 660, + "column": 3, + "source_line": " size_t capacity;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hash_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * hash_table", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 661, + "column": 3, + "source_line": " void * hash_table;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "temp", + "type": { + "reference": "ptrdiff_t" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 662, + "column": 3, + "source_line": " ptrdiff_t temp;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 657, + "column": 1, + "source_line": "typedef struct" + } + } + ], + "unions": [], + "enums": [ + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBDS_SH_NONE", + "value": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 682, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBDS_SH_DEFAULT", + "value": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 682, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBDS_SH_STRDUP", + "value": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 682, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBDS_SH_ARENA", + "value": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 682, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "stb/stb_ds.h", + "line": 682, + "column": 1, + "source_line": "enum" + } + } + ], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbds_array_header", + "name": "stbds_array_header", + "type": { + "reference": "struct@:0:0" + }, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 657, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ], + "variables": [ + { + "name": "stbds_hash_seed", + "type": { + "reference": "size_t" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "0x31415926" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_ds.h", + "line": 849, + "column": 1, + "source_line": "static size_t stbds_hash_seed=0x31415926;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbds_rand_seed": { + "name": "stbds_rand_seed", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 1551, + "line": 851, "column": 1, - "source_line": "#define STBDS_STRING_ARENA_BLOCKSIZE_MIN 512u" - } - }, - "STBDS_STRING_ARENA_BLOCKSIZE_MAX": { - "name": "STBDS_STRING_ARENA_BLOCKSIZE_MAX", - "value": "(1u<<20)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "void stbds_rand_seed(size_t seed)" + }, + "start": { "filename": "stb/stb_ds.h", - "line": 1554, + "line": 851, "column": 1, - "source_line": "#define STBDS_STRING_ARENA_BLOCKSIZE_MAX (1u<<20)" - } - } - }, - "includes": { - "stb/stb_ds.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "void stbds_rand_seed(size_t seed)" + }, + "end": { "filename": "stb/stb_ds.h", - "line": 394, + "line": 854, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 475, + "column": 1, + "source_line": "extern void stbds_rand_seed(size_t seed);" + } + ] }, - "stb/stb_ds.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "stbds_hash_bytes": { + "name": "stbds_hash_bytes", + "result_type": { + "reference": "size_t" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 734, + "line": 1116, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_ds.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" + }, + "start": { "filename": "stb/stb_ds.h", - "line": 459, + "line": 1116, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_ds.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "size_t stbds_hash_bytes(void *p, size_t len, size_t seed)" + }, + "end": { "filename": "stb/stb_ds.h", - "line": 1631, + "line": 1197, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 478, + "column": 1, + "source_line": "extern size_t stbds_hash_bytes(void *p, size_t len, size_t seed);" + } + ] }, - "stb/stb_ds.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_ds.h", - "line": 1625, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_ds.h": [ - "stbds_arrgrowf", - "stbds_arrfreef", - "stbds_rand_seed", - "stbds_probe_position", - "stbds_log2", - "stbds_make_hash_index", - "stbds_hash_string", - "stbds_siphash_bytes", - "stbds_hash_bytes", - "stbds_is_key_equal", - "stbds_hmfree_func", - "stbds_hm_find_slot", - "stbds_hmget_key_ts", - "stbds_hmget_key", - "stbds_hmput_default", - "stbds_strdup", - "stbds_hmput_key", - "stbds_shmode_func", - "stbds_hmdel_key", - "stbds_stralloc", - "stbds_strreset", - "strkey", - "stbds_unit_tests" - ] - }, - "enum_constants": { - "STBDS_SH_NONE": { - "name": "STBDS_SH_NONE", - "value": null, + "stbds_hash_string": { + "name": "stbds_hash_string", + "result_type": { + "reference": "size_t" + }, + "parameters": [ + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 682, + "line": 1016, "column": 1, - "source_line": "enum" - } - }, - "STBDS_SH_DEFAULT": { - "name": "STBDS_SH_DEFAULT", - "value": null, - "source_location": { + "source_line": "size_t stbds_hash_string(char *str, size_t seed)" + }, + "start": { "filename": "stb/stb_ds.h", - "line": 682, + "line": 1016, "column": 1, - "source_line": "enum" - } - }, - "STBDS_SH_STRDUP": { - "name": "STBDS_SH_STRDUP", - "value": null, - "source_location": { + "source_line": "size_t stbds_hash_string(char *str, size_t seed)" + }, + "end": { "filename": "stb/stb_ds.h", - "line": 682, + "line": 1031, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 479, + "column": 1, + "source_line": "extern size_t stbds_hash_string(char *str, size_t seed);" + } + ] }, - "STBDS_SH_ARENA": { - "name": "STBDS_SH_ARENA", - "value": null, + "stbds_stralloc": { + "name": "stbds_stralloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_ds.h", - "line": 682, - "column": 1, - "source_line": "enum" - } - } - }, - "include_graph": { - "stb/stb_ds.h": [] - }, - "system_includes": { - "stb/stb_ds.h": [ - "assert.h", - "stddef.h", - "stdio.h", - "stdlib.h", - "string.h" - ] - }, - "unresolved_includes": { - "stb/stb_ds.h": [] - }, - "header_source_pairs": { - "stb/stb_ds.h": [] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 460, - "column": 1, - "source_line": "#define STBDS_REALLOC(c,p,s) realloc(p,s)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 461, + "line": 1557, "column": 1, - "source_line": "#define STBDS_FREE(c,p) free(p)" + "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" }, - "unit_kind": "macro", - "unit_name": "STBDS_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 465, + "line": 1557, "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)(v)" + "source_line": "char *stbds_stralloc(stbds_string_arena *a, char *str)" }, - "unit_kind": "macro", - "unit_name": "STBDS_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 467, + "line": 1603, "column": 1, - "source_line": "#define STBDS_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBDS_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 524, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((__typeof__(typevar)[1]){value}) // literal array decays to pointer to value" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 483, + "column": 1, + "source_line": "extern char * stbds_stralloc(stbds_string_arena *a, char *str);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 526, - "column": 3, - "source_line": " #define STBDS_ADDRESSOF(typevar, value) ((typeof(typevar)[1]){value}) // literal array decays to pointer to value" + "stbds_strreset": { + "name": "stbds_strreset", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ADDRESSOF' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_string_arena *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_string_arena" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 529, + "line": 1605, "column": 1, - "source_line": "#define STBDS_ADDRESSOF(typevar, value) &(value)" + "source_line": "void stbds_strreset(stbds_string_arena *a)" }, - "unit_kind": "macro", - "unit_name": "STBDS_ADDRESSOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_OFFSETOF' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 532, + "line": 1605, "column": 1, - "source_line": "#define STBDS_OFFSETOF(var,field) ((char *) &(var)->field - (char *) (var))" + "source_line": "void stbds_strreset(stbds_string_arena *a)" }, - "unit_kind": "macro", - "unit_name": "STBDS_OFFSETOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_header' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 534, + "line": 1615, "column": 1, - "source_line": "#define stbds_header(t) ((stbds_array_header *) (t) - 1)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_header" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 484, + "column": 1, + "source_line": "extern void stbds_strreset(stbds_string_arena *a);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_temp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 535, - "column": 1, - "source_line": "#define stbds_temp(t) stbds_header(t)->temp" + "stbds_unit_tests": { + "name": "stbds_unit_tests", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "stbds_temp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_temp_key' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 536, + "line": 487, "column": 1, - "source_line": "#define stbds_temp_key(t) (*(char **) stbds_header(t)->hash_table)" + "source_line": "extern void stbds_unit_tests(void);" }, - "unit_kind": "macro", - "unit_name": "stbds_temp_key" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrsetcap' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 538, + "line": 487, "column": 1, - "source_line": "#define stbds_arrsetcap(a,n) (stbds_arrgrow(a,0,n))" + "source_line": "extern void stbds_unit_tests(void);" }, - "unit_kind": "macro", - "unit_name": "stbds_arrsetcap" + "end": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrsetlen' is recorded but not expanded.", - "severity": "warning", - "location": { + "stbds_arrgrowf": { + "name": "stbds_arrgrowf", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "addlen", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "min_cap", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 539, + "line": 762, "column": 1, - "source_line": "#define stbds_arrsetlen(a,n) ((stbds_arrcap(a) < (size_t) (n) ? stbds_arrsetcap((a),(size_t)(n)),0 : 0), (a) ? stbds_header(a)->length = (size_t) (n) : 0)" + "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrsetlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrcap' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 540, + "line": 762, "column": 1, - "source_line": "#define stbds_arrcap(a) ((a) ? stbds_header(a)->capacity : 0)" + "source_line": "void *stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrcap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlen' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 541, + "line": 798, "column": 1, - "source_line": "#define stbds_arrlen(a) ((a) ? (ptrdiff_t) stbds_header(a)->length : 0)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_arrlen" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 494, + "column": 1, + "source_line": "extern void * stbds_arrgrowf(void *a, size_t elemsize, size_t addlen, size_t min_cap);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlenu' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 542, - "column": 1, - "source_line": "#define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0)" + "stbds_arrfreef": { + "name": "stbds_arrfreef", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "stbds_arrlenu" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrput' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 543, + "line": 800, "column": 1, - "source_line": "#define stbds_arrput(a,v) (stbds_arrmaybegrow(a,1), (a)[stbds_header(a)->length++] = (v))" + "source_line": "void stbds_arrfreef(void *a)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrpop' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 545, + "line": 800, "column": 1, - "source_line": "#define stbds_arrpop(a) (stbds_header(a)->length--, (a)[stbds_header(a)->length])" + "source_line": "void stbds_arrfreef(void *a)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrpop" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arraddn' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 546, + "line": 803, "column": 1, - "source_line": "#define stbds_arraddn(a,n) ((void)(stbds_arraddnindex(a, n))) // deprecated, use one of the following instead:" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_arraddn" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 495, + "column": 1, + "source_line": "extern void stbds_arrfreef(void *a);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arraddnptr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 547, - "column": 1, - "source_line": "#define stbds_arraddnptr(a,n) (stbds_arrmaybegrow(a,n), (n) ? (stbds_header(a)->length += (n), &(a)[stbds_header(a)->length-(n)]) : (a))" + "stbds_hmfree_func": { + "name": "stbds_hmfree_func", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "stbds_arraddnptr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrlast' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 550, + "line": 1216, "column": 1, - "source_line": "#define stbds_arrlast(a) ((a)[stbds_header(a)->length-1])" + "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrlast" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrfree' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 551, + "line": 1216, "column": 1, - "source_line": "#define stbds_arrfree(a) ((void) ((a) ? STBDS_FREE(NULL,stbds_header(a)) : (void)0), (a)=NULL)" + "source_line": "void stbds_hmfree_func(void *a, size_t elemsize)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrfree" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdel' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 552, + "line": 1230, "column": 1, - "source_line": "#define stbds_arrdel(a,i) stbds_arrdeln(a,i,1)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_arrdel" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 496, + "column": 1, + "source_line": "extern void stbds_hmfree_func(void *p, size_t elemsize);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdeln' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 553, - "column": 1, - "source_line": "#define stbds_arrdeln(a,i,n) (memmove(&(a)[i], &(a)[(i)+(n)], sizeof *(a) * (stbds_header(a)->length-(n)-(i))), stbds_header(a)->length -= (n))" + "stbds_hmget_key": { + "name": "stbds_hmget_key", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_arrdeln" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrdelswap' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 554, + "line": 1312, "column": 1, - "source_line": "#define stbds_arrdelswap(a,i) ((a)[i] = stbds_arrlast(a), stbds_header(a)->length -= 1)" + "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrdelswap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrinsn' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 555, + "line": 1312, "column": 1, - "source_line": "#define stbds_arrinsn(a,i,n) (stbds_arraddn((a),(n)), memmove(&(a)[(i)+(n)], &(a)[i], sizeof *(a) * (stbds_header(a)->length-(n)-(i))))" + "source_line": "void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrinsn" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrins' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 556, + "line": 1318, "column": 1, - "source_line": "#define stbds_arrins(a,i,v) (stbds_arrinsn((a),(i),1), (a)[i]=(v))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_arrins" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 497, + "column": 1, + "source_line": "extern void * stbds_hmget_key(void *a, size_t elemsize, void *key, size_t keysize, int mode);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrmaybegrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 558, - "column": 1, - "source_line": "#define stbds_arrmaybegrow(a,n) ((!(a) || stbds_header(a)->length + (n) > stbds_header(a)->capacity) \\" + "stbds_hmget_key_ts": { + "name": "stbds_hmget_key_ts", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_arrmaybegrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_arrgrow' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "temp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ptrdiff_t *temp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "ptrdiff_t" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ptrdiff_t *temp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "ptrdiff_t" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 561, + "line": 1281, "column": 1, - "source_line": "#define stbds_arrgrow(a,b,c) ((a) = stbds_arrgrowf_wrapper((a), sizeof *(a), (b), (c)))" + "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_arrgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmput' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 563, + "line": 1281, "column": 1, - "source_line": "#define stbds_hmput(t, k, v) \\" + "source_line": "void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmputs' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 568, + "line": 1310, "column": 1, - "source_line": "#define stbds_hmputs(t, s) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_hmputs" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 498, + "column": 1, + "source_line": "extern void * stbds_hmget_key_ts(void *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgeti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 572, - "column": 1, - "source_line": "#define stbds_hmgeti(t,k) \\" + "stbds_hmput_default": { + "name": "stbds_hmput_default", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_hmgeti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgeti_ts' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 576, + "line": 1320, "column": 1, - "source_line": "#define stbds_hmgeti_ts(t,k,temp) \\" + "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmgeti_ts" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 580, + "line": 1320, "column": 1, - "source_line": "#define stbds_hmgetp(t, k) \\" + "source_line": "void * stbds_hmput_default(void *a, size_t elemsize)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp_ts' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 583, + "line": 1333, "column": 1, - "source_line": "#define stbds_hmgetp_ts(t, k, temp) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp_ts" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 499, + "column": 1, + "source_line": "extern void * stbds_hmput_default(void *a, size_t elemsize);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdel' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 586, - "column": 1, - "source_line": "#define stbds_hmdel(t,k) \\" + "stbds_hmput_key": { + "name": "stbds_hmput_key", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_hmdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdefault' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 589, + "line": 1337, "column": 1, - "source_line": "#define stbds_hmdefault(t, v) \\" + "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmdefault" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmdefaults' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 592, + "line": 1337, "column": 1, - "source_line": "#define stbds_hmdefaults(t, s) \\" + "source_line": "void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmdefaults" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmfree' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 595, + "line": 1459, "column": 1, - "source_line": "#define stbds_hmfree(p) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_hmfree" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 500, + "column": 1, + "source_line": "extern void * stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgets' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 598, - "column": 1, - "source_line": "#define stbds_hmgets(t, k) (*stbds_hmgetp(t,k))" + "stbds_hmdel_key": { + "name": "stbds_hmdel_key", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_hmgets" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmget' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 599, + "line": 1472, "column": 1, - "source_line": "#define stbds_hmget(t, k) (stbds_hmgetp(t,k)->value)" + "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmget_ts' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 600, + "line": 1472, "column": 1, - "source_line": "#define stbds_hmget_ts(t, k, temp) (stbds_hmgetp_ts(t,k,temp)->value)" + "source_line": "void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmget_ts" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmlen' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 601, + "line": 1538, "column": 1, - "source_line": "#define stbds_hmlen(t) ((t) ? (ptrdiff_t) stbds_header((t)-1)->length-1 : 0)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_hmlen" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 501, + "column": 1, + "source_line": "extern void * stbds_hmdel_key(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmlenu' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 602, - "column": 1, - "source_line": "#define stbds_hmlenu(t) ((t) ? stbds_header((t)-1)->length-1 : 0)" + "stbds_shmode_func": { + "name": "stbds_shmode_func", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_hmlenu" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hmgetp_null' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 603, + "line": 1461, "column": 1, - "source_line": "#define stbds_hmgetp_null(t,k) (stbds_hmgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" + "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_hmgetp_null" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shput' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 605, + "line": 1461, "column": 1, - "source_line": "#define stbds_shput(t, k, v) \\" + "source_line": "void * stbds_shmode_func(size_t elemsize, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_shput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shputi' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 609, + "line": 1470, "column": 1, - "source_line": "#define stbds_shputi(t, k, v) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_shputi" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 502, + "column": 1, + "source_line": "extern void * stbds_shmode_func(size_t elemsize, int mode);" + } + ] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shputs' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 613, - "column": 1, - "source_line": "#define stbds_shputs(t, s) \\" + "stbds_probe_position": { + "name": "stbds_probe_position", + "result_type": { + "reference": "size_t" }, - "unit_kind": "macro", - "unit_name": "stbds_shputs" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshput' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "hash", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot_log2", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 618, + "line": 863, "column": 1, - "source_line": "#define stbds_pshput(t, p) \\" + "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" }, - "unit_kind": "macro", - "unit_name": "stbds_pshput" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgeti' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 622, + "line": 863, "column": 1, - "source_line": "#define stbds_shgeti(t,k) \\" + "source_line": "static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)" }, - "unit_kind": "macro", - "unit_name": "stbds_shgeti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshgeti' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 626, + "line": 872, "column": 1, - "source_line": "#define stbds_pshgeti(t,k) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_pshgeti" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgetp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 630, - "column": 1, - "source_line": "#define stbds_shgetp(t, k) \\" + "stbds_log2": { + "name": "stbds_log2", + "result_type": { + "reference": "size_t" }, - "unit_kind": "macro", - "unit_name": "stbds_shgetp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshget' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 633, + "line": 874, "column": 1, - "source_line": "#define stbds_pshget(t, k) \\" + "source_line": "static size_t stbds_log2(size_t slot_count)" }, - "unit_kind": "macro", - "unit_name": "stbds_pshget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdel' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 636, + "line": 874, "column": 1, - "source_line": "#define stbds_shdel(t,k) \\" + "source_line": "static size_t stbds_log2(size_t slot_count)" }, - "unit_kind": "macro", - "unit_name": "stbds_shdel" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_pshdel' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 638, + "line": 882, "column": 1, - "source_line": "#define stbds_pshdel(t,k) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_pshdel" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_sh_new_arena' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 641, - "column": 1, - "source_line": "#define stbds_sh_new_arena(t) \\" + "stbds_make_hash_index": { + "name": "stbds_make_hash_index", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_index", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_hash_index" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbds_sh_new_arena" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_sh_new_strdup' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "slot_count", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ot", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_index *ot", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_hash_index" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbds_hash_index *ot", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbds_hash_index" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 643, + "line": 884, "column": 1, - "source_line": "#define stbds_sh_new_strdup(t) \\" + "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" }, - "unit_kind": "macro", - "unit_name": "stbds_sh_new_strdup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdefault' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 646, + "line": 884, "column": 1, - "source_line": "#define stbds_shdefault(t, v) stbds_hmdefault(t,v)" + "source_line": "static stbds_hash_index *stbds_make_hash_index(size_t slot_count, stbds_hash_index *ot)" }, - "unit_kind": "macro", - "unit_name": "stbds_shdefault" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shdefaults' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 647, + "line": 1011, "column": 1, - "source_line": "#define stbds_shdefaults(t, s) stbds_hmdefaults(t,s)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_shdefaults" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgets' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 652, - "column": 1, - "source_line": "#define stbds_shgets(t, k) (*stbds_shgetp(t,k))" + "stbds_siphash_bytes": { + "name": "stbds_siphash_bytes", + "result_type": { + "reference": "size_t" }, - "unit_kind": "macro", - "unit_name": "stbds_shgets" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shget' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "seed", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 653, + "line": 1051, "column": 1, - "source_line": "#define stbds_shget(t, k) (stbds_shgetp(t,k)->value)" + "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" }, - "unit_kind": "macro", - "unit_name": "stbds_shget" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shgetp_null' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 654, + "line": 1051, "column": 1, - "source_line": "#define stbds_shgetp_null(t,k) (stbds_shgeti(t,k) == -1 ? NULL : &(t)[stbds_temp((t)-1)])" + "source_line": "static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)" }, - "unit_kind": "macro", - "unit_name": "stbds_shgetp_null" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_shmode_func_wrapper' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 721, + "line": 1114, "column": 1, - "source_line": "#define stbds_shmode_func_wrapper(t,e,m) stbds_shmode_func(e,m)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbds_shmode_func_wrapper" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 738, - "column": 1, - "source_line": "#define STBDS_ASSERT(x) ((void) 0)" + "stbds_is_key_equal": { + "name": "stbds_is_key_equal", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "STBDS_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_STATS' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "i", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 742, + "line": 1203, "column": 1, - "source_line": "#define STBDS_STATS(x) x" + "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" }, - "unit_kind": "macro", - "unit_name": "STBDS_STATS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_STATS' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 752, + "line": 1203, "column": 1, - "source_line": "#define STBDS_STATS(x)" + "source_line": "static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)" }, - "unit_kind": "macro", - "unit_name": "STBDS_STATS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ALIGN_FWD' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 819, + "line": 1209, "column": 1, - "source_line": "#define STBDS_ALIGN_FWD(n,a) (((n) + (a) - 1) & ~((a)-1))" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBDS_ALIGN_FWD" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_INDEX_IN_USE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 844, - "column": 1, - "source_line": "#define STBDS_INDEX_IN_USE(x) ((x) >= 0)" + "stbds_hm_find_slot": { + "name": "stbds_hm_find_slot", + "result_type": { + "reference": "ptrdiff_t" }, - "unit_kind": "macro", - "unit_name": "STBDS_INDEX_IN_USE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_load_32_or_64' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "elemsize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "key", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *key", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keysize", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "keyoffset", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 856, + "line": 1232, "column": 1, - "source_line": "#define stbds_load_32_or_64(var, temp, v32, v64_hi, v64_lo) \\" + "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, - "unit_kind": "macro", - "unit_name": "stbds_load_32_or_64" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ROTATE_LEFT' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 1013, + "line": 1232, "column": 1, - "source_line": "#define STBDS_ROTATE_LEFT(val, n) (((val) << (n)) | ((val) >> (STBDS_SIZE_T_BITS - (n))))" + "source_line": "static ptrdiff_t stbds_hm_find_slot(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)" }, - "unit_kind": "macro", - "unit_name": "STBDS_ROTATE_LEFT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ROTATE_RIGHT' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 1014, + "line": 1279, "column": 1, - "source_line": "#define STBDS_ROTATE_RIGHT(val, n) (((val) >> (n)) | ((val) << (STBDS_SIZE_T_BITS - (n))))" - }, - "unit_kind": "macro", - "unit_name": "STBDS_ROTATE_RIGHT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_SIPROUND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1073, - "column": 3, - "source_line": " #define STBDS_SIPROUND() \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBDS_SIPROUND" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_HASH_TO_ARR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 1211, - "column": 1, - "source_line": "#define STBDS_HASH_TO_ARR(x,elemsize) ((char*) (x) - (elemsize))" + "stbds_strdup": { + "name": "stbds_strdup", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBDS_HASH_TO_ARR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBDS_ARR_TO_HASH' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_ds.h", - "line": 1212, + "line": 1540, "column": 1, - "source_line": "#define STBDS_ARR_TO_HASH(x,elemsize) ((char*) (x) + (elemsize))" + "source_line": "static char *stbds_strdup(char *str)" }, - "unit_kind": "macro", - "unit_name": "STBDS_ARR_TO_HASH" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbds_hash_table' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_ds.h", - "line": 1214, + "line": 1540, "column": 1, - "source_line": "#define stbds_hash_table(a) ((stbds_hash_index *) stbds_header(a)->hash_table)" + "source_line": "static char *stbds_strdup(char *str)" }, - "unit_kind": "macro", - "unit_name": "stbds_hash_table" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_ds.h", - "line": 471, + "line": 1548, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "}" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_arrgrowf_wrapper(T *a, size_t elemsize, size_t addlen, size_t min_cap)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 693, - "column": 1, - "source_line": "template static T * stbds_arrgrowf_wrapper(T *a, size_t elemsize, size_t addlen, size_t min_cap) {" + "declaration_locations": [ + { + "filename": "stb/stb_ds.h", + "line": 1335, + "column": 1, + "source_line": "static char *stbds_strdup(char *str);" + } + ] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": { + "stbds_array_header": { + "reference": "stbds_array_header" + } + }, + "variables": { + "stbds_hash_seed": { + "name": "stbds_hash_seed", + "type": { + "reference": "size_t" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmget_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_ds.h", - "line": 696, - "column": 1, - "source_line": "template static T * stbds_hmget_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) {" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0x31415926" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmget_key_ts_wrapper(T *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode)'.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_ds.h", - "line": 699, + "line": 849, "column": 1, - "source_line": "template static T * stbds_hmget_key_ts_wrapper(T *a, size_t elemsize, void *key, size_t keysize, ptrdiff_t *temp, int mode) {" + "source_line": "static size_t stbds_hash_seed=0x31415926;" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmput_default_wrapper(T *a, size_t elemsize)'.", - "severity": "warning", - "location": { + "callback_policy": null, + "declaration_locations": [] + } + }, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_ds.h": [ + "stbds_rand_seed", + "stbds_hash_bytes", + "stbds_hash_string", + "stbds_stralloc", + "stbds_strreset", + "stbds_unit_tests", + "stbds_arrgrowf", + "stbds_arrfreef", + "stbds_hmfree_func", + "stbds_hmget_key", + "stbds_hmget_key_ts", + "stbds_hmput_default", + "stbds_hmput_key", + "stbds_hmdel_key", + "stbds_shmode_func", + "stbds_probe_position", + "stbds_log2", + "stbds_make_hash_index", + "stbds_siphash_bytes", + "stbds_is_key_equal", + "stbds_hm_find_slot", + "stbds_strdup" + ] + }, + "enum_constants": { + "STBDS_SH_NONE": { + "name": "STBDS_SH_NONE", + "value": null, + "source_location": { "filename": "stb/stb_ds.h", - "line": 702, + "line": 682, "column": 1, - "source_line": "template static T * stbds_hmput_default_wrapper(T *a, size_t elemsize) {" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum" + } }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmput_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode)'.", - "severity": "warning", - "location": { + "STBDS_SH_DEFAULT": { + "name": "STBDS_SH_DEFAULT", + "value": null, + "source_location": { "filename": "stb/stb_ds.h", - "line": 705, + "line": 682, "column": 1, - "source_line": "template static T * stbds_hmput_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, int mode) {" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum" + } }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: ' static T * stbds_hmdel_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode)'.", - "severity": "warning", - "location": { + "STBDS_SH_STRDUP": { + "name": "STBDS_SH_STRDUP", + "value": null, + "source_location": { "filename": "stb/stb_ds.h", - "line": 708, + "line": 682, "column": 1, - "source_line": "template static T * stbds_hmdel_key_wrapper(T *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode){" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbds_shmode_func_wrapper'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBDS_SH_ARENA": { + "name": "STBDS_SH_ARENA", + "value": null, + "source_location": { "filename": "stb/stb_ds.h", - "line": 711, + "line": 682, "column": 1, - "source_line": "template static T * stbds_shmode_func_wrapper(T *, size_t elemsize, int mode) {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbds_shmode_func_wrapper" + "source_line": "enum" + } } - ] + }, + "include_graph": { + "stb/stb_ds.h": [] + }, + "system_includes": { + "stb/stb_ds.h": [] + }, + "unresolved_includes": { + "stb/stb_ds.h": [] + }, + "header_source_pairs": { + "stb/stb_ds.h": [] + }, + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_dxt.json b/tests/parser/c/fixtures/stb/stb_dxt.json index 720535f15..45dcf6edb 100644 --- a/tests/parser/c/fixtures/stb/stb_dxt.json +++ b/tests/parser/c/fixtures/stb/stb_dxt.json @@ -3,77 +3,166 @@ "stb/stb_dxt.h": { "filename": "stb/stb_dxt.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_dxt.h" + ], "functions": [ { - "name": "stb__Mul8Bit", + "name": "stb_compress_dxt_block", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "alpha", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int alpha" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int alpha" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "mode", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int mode" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int mode" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 164, + "line": 599, "column": 1, - "source_line": "static int stb__Mul8Bit(int a, int b)" + "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 164, + "line": 599, "column": 1, - "source_line": "static int stb__Mul8Bit(int a, int b)" + "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 168, + "line": 615, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 58, + "column": 1, + "source_line": "extern void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);" + } + ] }, { - "name": "stb__From16Bit", + "name": "stb_compress_bc4_block", "result_type": { "model": "CVoid", "qualifiers": [], @@ -81,11 +170,11 @@ }, "parameters": [ { - "name": "out", + "name": "dest", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *out", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -102,7 +191,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *out", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -120,94 +209,406 @@ "callback_policy": null }, { - "name": "v", + "name": "src", "type": { - "model": "CUnsignedShort", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short v" + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CUnsignedShort", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short v" + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 170, + "line": 617, "column": 1, - "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" + "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 170, + "line": 617, "column": 1, - "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" + "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 181, + "line": 620, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 59, + "column": 1, + "source_line": "extern void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src_r_one_byte_per_pixel);" + } + ] }, { - "name": "stb__As16Bit", + "name": "stb_compress_bc5_block", "result_type": { - "model": "CUnsignedShort", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "void" }, "parameters": [ { - "name": "r", + "name": "dest", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int r" + "source_text": "unsigned char *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int r" + "source_text": "unsigned char *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "g", + "name": "src", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int g" + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { + "source_text": "const unsigned char *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 622, + "column": 1, + "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 622, + "column": 1, + "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 626, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 60, + "column": 1, + "source_line": "extern void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);" + } + ] + }, + { + "name": "stb__Mul8Bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 164, + "column": 1, + "source_line": "static int stb__Mul8Bit(int a, int b)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 164, + "column": 1, + "source_line": "static int stb__Mul8Bit(int a, int b)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 168, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stb__From16Bit", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short v" + }, + "declared_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short v" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 170, + "column": 1, + "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 170, + "column": 1, + "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 181, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stb__As16Bit", + "result_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { "model": "CInt", "qualifiers": [], "source_text": "int b" @@ -1361,1369 +1762,218 @@ "source_line": "}" }, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [ { - "name": "stb_compress_dxt_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 599, - "column": 1, - "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 599, - "column": 1, - "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 615, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_compress_bc4_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 617, - "column": 1, - "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 617, - "column": 1, - "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 620, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_compress_bc5_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 622, - "column": 1, - "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 622, - "column": 1, - "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 626, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "unspecified", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 634, - "column": 1, - "source_line": "int main()" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 634, - "column": 1, - "source_line": "int main()" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 676, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [ - { - "name": "stb__OMatch5", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const unsigned char stb__OMatch5[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0, 0 }, { 0, 0 }, { 0, 1 }, { 0, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 1 },\n { 1, 1 }, { 1, 1 }, { 1, 2 }, { 0, 4 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 2 },\n { 2, 2 }, { 2, 2 }, { 2, 3 }, { 1, 5 }, { 3, 2 }, { 3, 2 }, { 4, 0 }, { 3, 3 },\n { 3, 3 }, { 3, 3 }, { 3, 4 }, { 3, 4 }, { 3, 4 }, { 3, 5 }, { 4, 3 }, { 4, 3 },\n { 5, 2 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 4, 5 }, { 5, 4 }, { 5, 4 }, { 5, 4 },\n { 6, 3 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 4, 8 }, { 6, 5 }, { 6, 5 }, { 6, 5 },\n { 6, 6 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 5, 9 }, { 7, 6 }, { 7, 6 }, { 8, 4 },\n { 7, 7 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 7, 8 }, { 7, 8 }, { 7, 9 }, { 8, 7 },\n { 8, 7 }, { 9, 6 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 8, 9 }, { 9, 8 }, { 9, 8 },\n { 9, 8 }, { 10, 7 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 8, 12 }, { 10, 9 }, { 10, 9 },\n { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 9, 13 }, { 11, 10 }, { 11, 10 },\n { 12, 8 }, { 11, 11 }, { 11, 11 }, { 11, 11 }, { 11, 12 }, { 11, 12 }, { 11, 12 }, { 11, 13 },\n { 12, 11 }, { 12, 11 }, { 13, 10 }, { 12, 12 }, { 12, 12 }, { 12, 13 }, { 12, 13 }, { 13, 12 },\n { 13, 12 }, { 13, 12 }, { 14, 11 }, { 13, 13 }, { 13, 13 }, { 13, 14 }, { 12, 16 }, { 14, 13 },\n { 14, 13 }, { 14, 13 }, { 14, 14 }, { 14, 14 }, { 14, 14 }, { 14, 15 }, { 13, 17 }, { 15, 14 },\n { 15, 14 }, { 16, 12 }, { 15, 15 }, { 15, 15 }, { 15, 15 }, { 15, 16 }, { 15, 16 }, { 15, 16 },\n { 15, 17 }, { 16, 15 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 16 }, { 16, 17 }, { 16, 17 },\n { 17, 16 }, { 17, 16 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 17 }, { 17, 18 }, { 16, 20 },\n { 18, 17 }, { 18, 17 }, { 18, 17 }, { 18, 18 }, { 18, 18 }, { 18, 18 }, { 18, 19 }, { 17, 21 },\n { 19, 18 }, { 19, 18 }, { 20, 16 }, { 19, 19 }, { 19, 19 }, { 19, 19 }, { 19, 20 }, { 19, 20 },\n { 19, 20 }, { 19, 21 }, { 20, 19 }, { 20, 19 }, { 21, 18 }, { 20, 20 }, { 20, 20 }, { 20, 21 },\n { 20, 21 }, { 21, 20 }, { 21, 20 }, { 21, 20 }, { 22, 19 }, { 21, 21 }, { 21, 21 }, { 21, 22 },\n { 20, 24 }, { 22, 21 }, { 22, 21 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 22 }, { 22, 23 },\n { 21, 25 }, { 23, 22 }, { 23, 22 }, { 24, 20 }, { 23, 23 }, { 23, 23 }, { 23, 23 }, { 23, 24 },\n { 23, 24 }, { 23, 24 }, { 23, 25 }, { 24, 23 }, { 24, 23 }, { 25, 22 }, { 24, 24 }, { 24, 24 },\n { 24, 25 }, { 24, 25 }, { 25, 24 }, { 25, 24 }, { 25, 24 }, { 26, 23 }, { 25, 25 }, { 25, 25 },\n { 25, 26 }, { 24, 28 }, { 26, 25 }, { 26, 25 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 26 },\n { 26, 27 }, { 25, 29 }, { 27, 26 }, { 27, 26 }, { 28, 24 }, { 27, 27 }, { 27, 27 }, { 27, 27 },\n { 27, 28 }, { 27, 28 }, { 27, 28 }, { 27, 29 }, { 28, 27 }, { 28, 27 }, { 29, 26 }, { 28, 28 },\n { 28, 28 }, { 28, 29 }, { 28, 29 }, { 29, 28 }, { 29, 28 }, { 29, 28 }, { 30, 27 }, { 29, 29 },\n { 29, 29 }, { 29, 30 }, { 29, 30 }, { 30, 29 }, { 30, 29 }, { 30, 29 }, { 30, 30 }, { 30, 30 },\n { 30, 30 }, { 30, 31 }, { 30, 31 }, { 31, 30 }, { 31, 30 }, { 31, 30 }, { 31, 31 }, { 31, 31 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 95, - "column": 1, - "source_line": "static const unsigned char stb__OMatch5[256][2] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stb__OMatch6", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const unsigned char stb__OMatch6[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 2, 1 }, { 2, 2 },\n { 2, 2 }, { 2, 3 }, { 3, 2 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 4, 3 }, { 4, 4 },\n { 4, 4 }, { 4, 5 }, { 5, 4 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 6, 5 }, { 6, 6 },\n { 6, 6 }, { 6, 7 }, { 7, 6 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 8, 7 }, { 8, 8 },\n { 8, 8 }, { 8, 9 }, { 9, 8 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 10, 9 }, { 10, 10 },\n { 10, 10 }, { 10, 11 }, { 11, 10 }, { 8, 16 }, { 11, 11 }, { 11, 12 }, { 12, 11 }, { 9, 17 },\n { 12, 12 }, { 12, 13 }, { 13, 12 }, { 11, 16 }, { 13, 13 }, { 13, 14 }, { 14, 13 }, { 12, 17 },\n { 14, 14 }, { 14, 15 }, { 15, 14 }, { 14, 16 }, { 15, 15 }, { 15, 16 }, { 16, 14 }, { 16, 15 },\n { 17, 14 }, { 16, 16 }, { 16, 17 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 18 }, { 18, 17 },\n { 20, 14 }, { 18, 18 }, { 18, 19 }, { 19, 18 }, { 21, 15 }, { 19, 19 }, { 19, 20 }, { 20, 19 },\n { 20, 20 }, { 20, 20 }, { 20, 21 }, { 21, 20 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 22, 21 },\n { 22, 22 }, { 22, 22 }, { 22, 23 }, { 23, 22 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 24, 23 },\n { 24, 24 }, { 24, 24 }, { 24, 25 }, { 25, 24 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 26, 25 },\n { 26, 26 }, { 26, 26 }, { 26, 27 }, { 27, 26 }, { 24, 32 }, { 27, 27 }, { 27, 28 }, { 28, 27 },\n { 25, 33 }, { 28, 28 }, { 28, 29 }, { 29, 28 }, { 27, 32 }, { 29, 29 }, { 29, 30 }, { 30, 29 },\n { 28, 33 }, { 30, 30 }, { 30, 31 }, { 31, 30 }, { 30, 32 }, { 31, 31 }, { 31, 32 }, { 32, 30 },\n { 32, 31 }, { 33, 30 }, { 32, 32 }, { 32, 33 }, { 33, 32 }, { 34, 31 }, { 33, 33 }, { 33, 34 },\n { 34, 33 }, { 36, 30 }, { 34, 34 }, { 34, 35 }, { 35, 34 }, { 37, 31 }, { 35, 35 }, { 35, 36 },\n { 36, 35 }, { 36, 36 }, { 36, 36 }, { 36, 37 }, { 37, 36 }, { 37, 37 }, { 37, 37 }, { 37, 38 },\n { 38, 37 }, { 38, 38 }, { 38, 38 }, { 38, 39 }, { 39, 38 }, { 39, 39 }, { 39, 39 }, { 39, 40 },\n { 40, 39 }, { 40, 40 }, { 40, 40 }, { 40, 41 }, { 41, 40 }, { 41, 41 }, { 41, 41 }, { 41, 42 },\n { 42, 41 }, { 42, 42 }, { 42, 42 }, { 42, 43 }, { 43, 42 }, { 40, 48 }, { 43, 43 }, { 43, 44 },\n { 44, 43 }, { 41, 49 }, { 44, 44 }, { 44, 45 }, { 45, 44 }, { 43, 48 }, { 45, 45 }, { 45, 46 },\n { 46, 45 }, { 44, 49 }, { 46, 46 }, { 46, 47 }, { 47, 46 }, { 46, 48 }, { 47, 47 }, { 47, 48 },\n { 48, 46 }, { 48, 47 }, { 49, 46 }, { 48, 48 }, { 48, 49 }, { 49, 48 }, { 50, 47 }, { 49, 49 },\n { 49, 50 }, { 50, 49 }, { 52, 46 }, { 50, 50 }, { 50, 51 }, { 51, 50 }, { 53, 47 }, { 51, 51 },\n { 51, 52 }, { 52, 51 }, { 52, 52 }, { 52, 52 }, { 52, 53 }, { 53, 52 }, { 53, 53 }, { 53, 53 },\n { 53, 54 }, { 54, 53 }, { 54, 54 }, { 54, 54 }, { 54, 55 }, { 55, 54 }, { 55, 55 }, { 55, 55 },\n { 55, 56 }, { 56, 55 }, { 56, 56 }, { 56, 56 }, { 56, 57 }, { 57, 56 }, { 57, 57 }, { 57, 57 },\n { 57, 58 }, { 58, 57 }, { 58, 58 }, { 58, 58 }, { 58, 59 }, { 59, 58 }, { 59, 59 }, { 59, 59 },\n { 59, 60 }, { 60, 59 }, { 60, 60 }, { 60, 60 }, { 60, 61 }, { 61, 60 }, { 61, 61 }, { 61, 61 },\n { 61, 62 }, { 62, 61 }, { 62, 62 }, { 62, 62 }, { 62, 63 }, { 63, 62 }, { 63, 63 }, { 63, 63 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 129, - "column": 1, - "source_line": "static const unsigned char stb__OMatch6[256][2] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stb__midpoints5", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const float stb__midpoints5[32]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0.015686f, 0.047059f, 0.078431f, 0.111765f, 0.145098f, 0.176471f, 0.207843f, 0.241176f, 0.274510f, 0.305882f, 0.337255f, 0.370588f, 0.403922f, 0.435294f, 0.466667f, 0.5f,\n 0.533333f, 0.564706f, 0.596078f, 0.629412f, 0.662745f, 0.694118f, 0.725490f, 0.758824f, 0.792157f, 0.823529f, 0.854902f, 0.888235f, 0.921569f, 0.952941f, 0.984314f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 369, - "column": 1, - "source_line": "static const float stb__midpoints5[32] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stb__midpoints6", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const float stb__midpoints6[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0.007843f, 0.023529f, 0.039216f, 0.054902f, 0.070588f, 0.086275f, 0.101961f, 0.117647f, 0.133333f, 0.149020f, 0.164706f, 0.180392f, 0.196078f, 0.211765f, 0.227451f, 0.245098f,\n 0.262745f, 0.278431f, 0.294118f, 0.309804f, 0.325490f, 0.341176f, 0.356863f, 0.372549f, 0.388235f, 0.403922f, 0.419608f, 0.435294f, 0.450980f, 0.466667f, 0.482353f, 0.500000f,\n 0.517647f, 0.533333f, 0.549020f, 0.564706f, 0.580392f, 0.596078f, 0.611765f, 0.627451f, 0.643137f, 0.658824f, 0.674510f, 0.690196f, 0.705882f, 0.721569f, 0.737255f, 0.754902f,\n 0.772549f, 0.788235f, 0.803922f, 0.819608f, 0.835294f, 0.850980f, 0.866667f, 0.882353f, 0.898039f, 0.913725f, 0.929412f, 0.945098f, 0.960784f, 0.976471f, 0.992157f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 374, - "column": 1, - "source_line": "static const float stb__midpoints6[64] = {" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_INCLUDE_STB_DXT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 41, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_DXT_H" - } - }, - { - "name": "STBDDEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 48, - "column": 1, - "source_line": "#define STBDDEF static" - } - }, - { - "name": "STBDDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 50, - "column": 1, - "source_line": "#define STBDDEF extern" - } - }, - { - "name": "STB_DXT_NORMAL", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 54, - "column": 1, - "source_line": "#define STB_DXT_NORMAL 0" - } - }, - { - "name": "STB_DXT_DITHER", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 55, - "column": 1, - "source_line": "#define STB_DXT_DITHER 1 // use dithering. was always dubious, now deprecated. does nothing!" - } - }, - { - "name": "STB_DXT_HIGHQUAL", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 56, - "column": 1, - "source_line": "#define STB_DXT_HIGHQUAL 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower." - } - }, - { - "name": "STB_COMPRESS_DXT_BLOCK", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 62, - "column": 1, - "source_line": "#define STB_COMPRESS_DXT_BLOCK" - } - }, - { - "name": "STBD_FABS", - "value": "fabs(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 92, - "column": 1, - "source_line": "#define STBD_FABS(x) fabs(x)" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 85, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 88, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 632, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_INCLUDE_STB_DXT_H", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 40, - "column": 1, - "source_line": "#ifndef STB_INCLUDE_STB_DXT_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 43, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 45, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_DXT_STATIC", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 47, - "column": 1, - "source_line": "#ifdef STB_DXT_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 49, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 51, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 64, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 66, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 67, - "column": 1, - "source_line": "#endif // STB_INCLUDE_STB_DXT_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_DXT_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 69, - "column": 1, - "source_line": "#ifdef STB_DXT_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "!defined(STBD_FABS)", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 87, - "column": 1, - "source_line": "#if !defined(STBD_FABS)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 89, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBD_FABS", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 91, - "column": 1, - "source_line": "#ifndef STBD_FABS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 93, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_DXT_USE_ROUNDING_BIAS", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 191, - "column": 1, - "source_line": "#ifdef STB_DXT_USE_ROUNDING_BIAS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 194, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 198, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 627, - "column": 1, - "source_line": "#endif // STB_DXT_IMPLEMENTATION" - } - }, - { - "directive": "ifdef", - "argument": "STB_DXT_GENERATE_TABLES", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 631, - "column": 1, - "source_line": "#ifdef STB_DXT_GENERATE_TABLES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 677, - "column": 1, - "source_line": "#endif" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBD_FABS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_dxt.h", - "line": 92, - "column": 1, - "source_line": "#define STBD_FABS(x) fabs(x)" - }, - "unit_kind": "macro", - "unit_name": "STBD_FABS" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_dxt.h", - "line": 44, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] - } - }, - "functions": { - "stb__Mul8Bit": { - "name": "stb__Mul8Bit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 164, - "column": 1, - "source_line": "static int stb__Mul8Bit(int a, int b)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 164, - "column": 1, - "source_line": "static int stb__Mul8Bit(int a, int b)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 168, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__From16Bit": { - "name": "stb__From16Bit", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short v" - }, - "declared_type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short v" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 170, - "column": 1, - "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 170, - "column": 1, - "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 181, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__As16Bit": { - "name": "stb__As16Bit", - "result_type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - }, - "parameters": [ - { - "name": "r", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 183, - "column": 1, - "source_line": "static unsigned short stb__As16Bit(int r, int g, int b)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 183, - "column": 1, - "source_line": "static unsigned short stb__As16Bit(int r, int g, int b)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 186, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__Lerp13": { - "name": "stb__Lerp13", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 189, - "column": 1, - "source_line": "static int stb__Lerp13(int a, int b)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 189, - "column": 1, - "source_line": "static int stb__Lerp13(int a, int b)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 199, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__Lerp13RGB": { - "name": "stb__Lerp13RGB", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", + "name": "stb__OMatch5", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *out", + "source_text": "static const unsigned char stb__OMatch5[256][2]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CUnsignedChar", + "model": "CArray", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, - "declared_type": { + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ { 0, 0 }, { 0, 0 }, { 0, 1 }, { 0, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 0, 4 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 2 }, { 2, 2 }, { 2, 2 }, { 2, 3 }, { 1, 5 }, { 3, 2 }, { 3, 2 }, { 4, 0 }, { 3, 3 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 3, 4 }, { 3, 4 }, { 3, 5 }, { 4, 3 }, { 4, 3 }, { 5, 2 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 4, 5 }, { 5, 4 }, { 5, 4 }, { 5, 4 }, { 6, 3 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 4, 8 }, { 6, 5 }, { 6, 5 }, { 6, 5 }, { 6, 6 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 5, 9 }, { 7, 6 }, { 7, 6 }, { 8, 4 }, { 7, 7 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 7, 8 }, { 7, 8 }, { 7, 9 }, { 8, 7 }, { 8, 7 }, { 9, 6 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 8, 9 }, { 9, 8 }, { 9, 8 }, { 9, 8 }, { 10, 7 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 8, 12 }, { 10, 9 }, { 10, 9 }, { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 9, 13 }, { 11, 10 }, { 11, 10 }, { 12, 8 }, { 11, 11 }, { 11, 11 }, { 11, 11 }, { 11, 12 }, { 11, 12 }, { 11, 12 }, { 11, 13 }, { 12, 11 }, { 12, 11 }, { 13, 10 }, { 12, 12 }, { 12, 12 }, { 12, 13 }, { 12, 13 }, { 13, 12 }, { 13, 12 }, { 13, 12 }, { 14, 11 }, { 13, 13 }, { 13, 13 }, { 13, 14 }, { 12, 16 }, { 14, 13 }, { 14, 13 }, { 14, 13 }, { 14, 14 }, { 14, 14 }, { 14, 14 }, { 14, 15 }, { 13, 17 }, { 15, 14 }, { 15, 14 }, { 16, 12 }, { 15, 15 }, { 15, 15 }, { 15, 15 }, { 15, 16 }, { 15, 16 }, { 15, 16 }, { 15, 17 }, { 16, 15 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 16 }, { 16, 17 }, { 16, 17 }, { 17, 16 }, { 17, 16 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 17 }, { 17, 18 }, { 16, 20 }, { 18, 17 }, { 18, 17 }, { 18, 17 }, { 18, 18 }, { 18, 18 }, { 18, 18 }, { 18, 19 }, { 17, 21 }, { 19, 18 }, { 19, 18 }, { 20, 16 }, { 19, 19 }, { 19, 19 }, { 19, 19 }, { 19, 20 }, { 19, 20 }, { 19, 20 }, { 19, 21 }, { 20, 19 }, { 20, 19 }, { 21, 18 }, { 20, 20 }, { 20, 20 }, { 20, 21 }, { 20, 21 }, { 21, 20 }, { 21, 20 }, { 21, 20 }, { 22, 19 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 20, 24 }, { 22, 21 }, { 22, 21 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 22 }, { 22, 23 }, { 21, 25 }, { 23, 22 }, { 23, 22 }, { 24, 20 }, { 23, 23 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 23, 24 }, { 23, 24 }, { 23, 25 }, { 24, 23 }, { 24, 23 }, { 25, 22 }, { 24, 24 }, { 24, 24 }, { 24, 25 }, { 24, 25 }, { 25, 24 }, { 25, 24 }, { 25, 24 }, { 26, 23 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 24, 28 }, { 26, 25 }, { 26, 25 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 26 }, { 26, 27 }, { 25, 29 }, { 27, 26 }, { 27, 26 }, { 28, 24 }, { 27, 27 }, { 27, 27 }, { 27, 27 }, { 27, 28 }, { 27, 28 }, { 27, 28 }, { 27, 29 }, { 28, 27 }, { 28, 27 }, { 29, 26 }, { 28, 28 }, { 28, 28 }, { 28, 29 }, { 28, 29 }, { 29, 28 }, { 29, 28 }, { 29, 28 }, { 30, 27 }, { 29, 29 }, { 29, 29 }, { 29, 30 }, { 29, 30 }, { 30, 29 }, { 30, 29 }, { 30, 29 }, { 30, 30 }, { 30, 30 }, { 30, 30 }, { 30, 31 }, { 30, 31 }, { 31, 30 }, { 31, 30 }, { 31, 30 }, { 31, 31 }, { 31, 31 }, }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 95, + "column": 1, + "source_line": "static const unsigned char stb__OMatch5[256][2] = {" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stb__OMatch6", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *out", + "source_text": "static const unsigned char stb__OMatch6[256][2]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CUnsignedChar", + "model": "CArray", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, - "source_location": null, - "callback_policy": null + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 2, 1 }, { 2, 2 }, { 2, 2 }, { 2, 3 }, { 3, 2 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 4, 3 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 5, 4 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 6, 5 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 7, 6 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 8, 7 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 9, 8 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 11, 10 }, { 8, 16 }, { 11, 11 }, { 11, 12 }, { 12, 11 }, { 9, 17 }, { 12, 12 }, { 12, 13 }, { 13, 12 }, { 11, 16 }, { 13, 13 }, { 13, 14 }, { 14, 13 }, { 12, 17 }, { 14, 14 }, { 14, 15 }, { 15, 14 }, { 14, 16 }, { 15, 15 }, { 15, 16 }, { 16, 14 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 17 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 18 }, { 18, 17 }, { 20, 14 }, { 18, 18 }, { 18, 19 }, { 19, 18 }, { 21, 15 }, { 19, 19 }, { 19, 20 }, { 20, 19 }, { 20, 20 }, { 20, 20 }, { 20, 21 }, { 21, 20 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 23 }, { 23, 22 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 24, 23 }, { 24, 24 }, { 24, 24 }, { 24, 25 }, { 25, 24 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 27 }, { 27, 26 }, { 24, 32 }, { 27, 27 }, { 27, 28 }, { 28, 27 }, { 25, 33 }, { 28, 28 }, { 28, 29 }, { 29, 28 }, { 27, 32 }, { 29, 29 }, { 29, 30 }, { 30, 29 }, { 28, 33 }, { 30, 30 }, { 30, 31 }, { 31, 30 }, { 30, 32 }, { 31, 31 }, { 31, 32 }, { 32, 30 }, { 32, 31 }, { 33, 30 }, { 32, 32 }, { 32, 33 }, { 33, 32 }, { 34, 31 }, { 33, 33 }, { 33, 34 }, { 34, 33 }, { 36, 30 }, { 34, 34 }, { 34, 35 }, { 35, 34 }, { 37, 31 }, { 35, 35 }, { 35, 36 }, { 36, 35 }, { 36, 36 }, { 36, 36 }, { 36, 37 }, { 37, 36 }, { 37, 37 }, { 37, 37 }, { 37, 38 }, { 38, 37 }, { 38, 38 }, { 38, 38 }, { 38, 39 }, { 39, 38 }, { 39, 39 }, { 39, 39 }, { 39, 40 }, { 40, 39 }, { 40, 40 }, { 40, 40 }, { 40, 41 }, { 41, 40 }, { 41, 41 }, { 41, 41 }, { 41, 42 }, { 42, 41 }, { 42, 42 }, { 42, 42 }, { 42, 43 }, { 43, 42 }, { 40, 48 }, { 43, 43 }, { 43, 44 }, { 44, 43 }, { 41, 49 }, { 44, 44 }, { 44, 45 }, { 45, 44 }, { 43, 48 }, { 45, 45 }, { 45, 46 }, { 46, 45 }, { 44, 49 }, { 46, 46 }, { 46, 47 }, { 47, 46 }, { 46, 48 }, { 47, 47 }, { 47, 48 }, { 48, 46 }, { 48, 47 }, { 49, 46 }, { 48, 48 }, { 48, 49 }, { 49, 48 }, { 50, 47 }, { 49, 49 }, { 49, 50 }, { 50, 49 }, { 52, 46 }, { 50, 50 }, { 50, 51 }, { 51, 50 }, { 53, 47 }, { 51, 51 }, { 51, 52 }, { 52, 51 }, { 52, 52 }, { 52, 52 }, { 52, 53 }, { 53, 52 }, { 53, 53 }, { 53, 53 }, { 53, 54 }, { 54, 53 }, { 54, 54 }, { 54, 54 }, { 54, 55 }, { 55, 54 }, { 55, 55 }, { 55, 55 }, { 55, 56 }, { 56, 55 }, { 56, 56 }, { 56, 56 }, { 56, 57 }, { 57, 56 }, { 57, 57 }, { 57, 57 }, { 57, 58 }, { 58, 57 }, { 58, 58 }, { 58, 58 }, { 58, 59 }, { 59, 58 }, { 59, 59 }, { 59, 59 }, { 59, 60 }, { 60, 59 }, { 60, 60 }, { 60, 60 }, { 60, 61 }, { 61, 60 }, { 61, 61 }, { 61, 61 }, { 61, 62 }, { 62, 61 }, { 62, 62 }, { 62, 62 }, { 62, 63 }, { 63, 62 }, { 63, 63 }, { 63, 63 }, }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 129, + "column": 1, + "source_line": "static const unsigned char stb__OMatch6[256][2] = {" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "p1", + "name": "stb__midpoints5", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *p1", + "source_text": "static const float stb__midpoints5[32]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" } ] }, - "declared_type": { + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0.015686f, 0.047059f, 0.078431f, 0.111765f, 0.145098f, 0.176471f, 0.207843f, 0.241176f, 0.274510f, 0.305882f, 0.337255f, 0.370588f, 0.403922f, 0.435294f, 0.466667f, 0.5f, 0.533333f, 0.564706f, 0.596078f, 0.629412f, 0.662745f, 0.694118f, 0.725490f, 0.758824f, 0.792157f, 0.823529f, 0.854902f, 0.888235f, 0.921569f, 0.952941f, 0.984314f, 1.0f }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 369, + "column": 1, + "source_line": "static const float stb__midpoints5[32] = {" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stb__midpoints6", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *p1", + "source_text": "static const float stb__midpoints6[64]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" } ] }, - "source_location": null, - "callback_policy": null - }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0.007843f, 0.023529f, 0.039216f, 0.054902f, 0.070588f, 0.086275f, 0.101961f, 0.117647f, 0.133333f, 0.149020f, 0.164706f, 0.180392f, 0.196078f, 0.211765f, 0.227451f, 0.245098f, 0.262745f, 0.278431f, 0.294118f, 0.309804f, 0.325490f, 0.341176f, 0.356863f, 0.372549f, 0.388235f, 0.403922f, 0.419608f, 0.435294f, 0.450980f, 0.466667f, 0.482353f, 0.500000f, 0.517647f, 0.533333f, 0.549020f, 0.564706f, 0.580392f, 0.596078f, 0.611765f, 0.627451f, 0.643137f, 0.658824f, 0.674510f, 0.690196f, 0.705882f, 0.721569f, 0.737255f, 0.754902f, 0.772549f, 0.788235f, 0.803922f, 0.819608f, 0.835294f, 0.850980f, 0.866667f, 0.882353f, 0.898039f, 0.913725f, 0.929412f, 0.945098f, 0.960784f, 0.976471f, 0.992157f, 1.0f }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 374, + "column": 1, + "source_line": "static const float stb__midpoints6[64] = {" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stb_compress_dxt_block": { + "name": "stb_compress_dxt_block", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "p2", + "name": "dest", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *p2", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -2740,7 +1990,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *p2", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -2756,49 +2006,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 202, - "column": 1, - "source_line": "static void stb__Lerp13RGB(unsigned char *out, unsigned char *p1, unsigned char *p2)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 202, - "column": 1, - "source_line": "static void stb__Lerp13RGB(unsigned char *out, unsigned char *p1, unsigned char *p2)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 207, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__EvalColors": { - "name": "stb__EvalColors", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "color", + "name": "src", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *color", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -2807,15 +2021,17 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *color", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -2824,8 +2040,10 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -2833,77 +2051,82 @@ "callback_policy": null }, { - "name": "c0", + "name": "alpha", "type": { - "model": "CUnsignedShort", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned short c0" + "source_text": "int alpha" }, "declared_type": { - "model": "CUnsignedShort", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned short c0" + "source_text": "int alpha" }, "source_location": null, "callback_policy": null }, { - "name": "c1", + "name": "mode", "type": { - "model": "CUnsignedShort", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned short c1" + "source_text": "int mode" }, "declared_type": { - "model": "CUnsignedShort", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned short c1" + "source_text": "int mode" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 211, + "line": 599, "column": 1, - "source_line": "static void stb__EvalColors(unsigned char *color,unsigned short c0,unsigned short c1)" + "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 211, + "line": 599, "column": 1, - "source_line": "static void stb__EvalColors(unsigned char *color,unsigned short c0,unsigned short c1)" + "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 217, + "line": 615, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 58, + "column": 1, + "source_line": "extern void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);" + } + ] }, - "stb__MatchColorsBlock": { - "name": "stb__MatchColorsBlock", + "stb_compress_bc4_block": { + "name": "stb_compress_bc4_block", "result_type": { - "model": "CUnsignedInt", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "void" }, "parameters": [ { - "name": "block", + "name": "dest", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -2920,7 +2143,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -2938,11 +2161,11 @@ "callback_policy": null }, { - "name": "color", + "name": "src", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *color", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -2951,15 +2174,17 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *color", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -2968,8 +2193,10 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -2977,35 +2204,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 220, + "line": 617, "column": 1, - "source_line": "static unsigned int stb__MatchColorsBlock(unsigned char *block, unsigned char *color)" + "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 220, + "line": 617, "column": 1, - "source_line": "static unsigned int stb__MatchColorsBlock(unsigned char *block, unsigned char *color)" + "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 260, + "line": 620, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 59, + "column": 1, + "source_line": "extern void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src_r_one_byte_per_pixel);" + } + ] }, - "stb__OptimizeColorsBlock": { - "name": "stb__OptimizeColorsBlock", + "stb_compress_bc5_block": { + "name": "stb_compress_bc5_block", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3013,11 +2245,11 @@ }, "parameters": [ { - "name": "block", + "name": "dest", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -3034,7 +2266,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *dest", "components": [ { "model": "CPointer", @@ -3052,11 +2284,11 @@ "callback_policy": null }, { - "name": "pmax16", + "name": "src", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmax16", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -3064,16 +2296,18 @@ "source_text": "" }, { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmax16", + "source_text": "const unsigned char *src", "components": [ { "model": "CPointer", @@ -3081,21 +2315,130 @@ "source_text": "" }, { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 622, + "column": 1, + "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 622, + "column": 1, + "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 626, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_dxt.h", + "line": 60, + "column": 1, + "source_line": "extern void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);" + } + ] + }, + "stb__Mul8Bit": { + "name": "stb__Mul8Bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null }, { - "name": "pmin16", + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 164, + "column": 1, + "source_line": "static int stb__Mul8Bit(int a, int b)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 164, + "column": 1, + "source_line": "static int stb__Mul8Bit(int a, int b)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 168, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stb__From16Bit": { + "name": "stb__From16Bit", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmin16", + "source_text": "unsigned char *out", "components": [ { "model": "CPointer", @@ -3103,16 +2446,16 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmin16", + "source_text": "unsigned char *out", "components": [ { "model": "CPointer", @@ -3120,14 +2463,29 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "v", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short v" + }, + "declared_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short v" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -3139,26 +2497,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 263, + "line": 170, "column": 1, - "source_line": "static void stb__OptimizeColorsBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16)" + "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 263, + "line": 170, "column": 1, - "source_line": "static void stb__OptimizeColorsBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16)" + "source_line": "static void stb__From16Bit(unsigned char *out, unsigned short v)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 367, + "line": 181, "column": 1, "source_line": "}" }, "declaration_locations": [] - }, - "stb__Quantize5": { - "name": "stb__Quantize5", + }, + "stb__As16Bit": { + "name": "stb__As16Bit", "result_type": { "model": "CUnsignedShort", "qualifiers": [], @@ -3166,16 +2524,46 @@ }, "parameters": [ { - "name": "x", + "name": "r", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int r" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -3190,43 +2578,58 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 381, + "line": 183, "column": 1, - "source_line": "static unsigned short stb__Quantize5(float x)" + "source_line": "static unsigned short stb__As16Bit(int r, int g, int b)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 381, + "line": 183, "column": 1, - "source_line": "static unsigned short stb__Quantize5(float x)" + "source_line": "static unsigned short stb__As16Bit(int r, int g, int b)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 388, + "line": 186, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb__Quantize6": { - "name": "stb__Quantize6", + "stb__Lerp13": { + "name": "stb__Lerp13", "result_type": { - "model": "CUnsignedShort", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "int" }, "parameters": [ { - "name": "x", + "name": "a", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int a" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -3241,38 +2644,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 390, + "line": 189, "column": 1, - "source_line": "static unsigned short stb__Quantize6(float x)" + "source_line": "static int stb__Lerp13(int a, int b)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 390, + "line": 189, "column": 1, - "source_line": "static unsigned short stb__Quantize6(float x)" + "source_line": "static int stb__Lerp13(int a, int b)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 397, + "line": 199, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb__RefineBlock": { - "name": "stb__RefineBlock", + "stb__Lerp13RGB": { + "name": "stb__Lerp13RGB", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "block", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *out", "components": [ { "model": "CPointer", @@ -3289,7 +2692,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *out", "components": [ { "model": "CPointer", @@ -3307,11 +2710,11 @@ "callback_policy": null }, { - "name": "pmax16", + "name": "p1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmax16", + "source_text": "unsigned char *p1", "components": [ { "model": "CPointer", @@ -3319,16 +2722,16 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmax16", + "source_text": "unsigned char *p1", "components": [ { "model": "CPointer", @@ -3336,9 +2739,9 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" } ] }, @@ -3346,11 +2749,11 @@ "callback_policy": null }, { - "name": "pmin16", + "name": "p2", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmin16", + "source_text": "unsigned char *p2", "components": [ { "model": "CPointer", @@ -3358,16 +2761,16 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned short *pmin16", + "source_text": "unsigned char *p2", "components": [ { "model": "CPointer", @@ -3375,9 +2778,84 @@ "source_text": "" }, { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "unsigned short" + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 202, + "column": 1, + "source_line": "static void stb__Lerp13RGB(unsigned char *out, unsigned char *p1, unsigned char *p2)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 202, + "column": 1, + "source_line": "static void stb__Lerp13RGB(unsigned char *out, unsigned char *p1, unsigned char *p2)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 207, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stb__EvalColors": { + "name": "stb__EvalColors", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "color", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *color", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *color", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -3385,16 +2863,31 @@ "callback_policy": null }, { - "name": "mask", + "name": "c0", "type": { - "model": "CUnsignedInt", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned int mask" + "source_text": "unsigned short c0" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned int mask" + "source_text": "unsigned short c0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c1", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short c1" + }, + "declared_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short c1" }, "source_location": null, "callback_policy": null @@ -3409,38 +2902,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 402, + "line": 211, "column": 1, - "source_line": "static int stb__RefineBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16, unsigned int mask)" + "source_line": "static void stb__EvalColors(unsigned char *color,unsigned short c0,unsigned short c1)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 402, + "line": 211, "column": 1, - "source_line": "static int stb__RefineBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16, unsigned int mask)" + "source_line": "static void stb__EvalColors(unsigned char *color,unsigned short c0,unsigned short c1)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 476, + "line": 217, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb__CompressColorBlock": { - "name": "stb__CompressColorBlock", + "stb__MatchColorsBlock": { + "name": "stb__MatchColorsBlock", "result_type": { - "model": "CVoid", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int" }, "parameters": [ { - "name": "dest", + "name": "block", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3457,7 +2950,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3475,11 +2968,11 @@ "callback_policy": null }, { - "name": "block", + "name": "color", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *color", "components": [ { "model": "CPointer", @@ -3496,7 +2989,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *block", + "source_text": "unsigned char *color", "components": [ { "model": "CPointer", @@ -3512,21 +3005,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -3538,26 +3016,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 479, + "line": 220, "column": 1, - "source_line": "static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, int mode)" + "source_line": "static unsigned int stb__MatchColorsBlock(unsigned char *block, unsigned char *color)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 479, + "line": 220, "column": 1, - "source_line": "static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, int mode)" + "source_line": "static unsigned int stb__MatchColorsBlock(unsigned char *block, unsigned char *color)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 544, + "line": 260, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb__CompressAlphaBlock": { - "name": "stb__CompressAlphaBlock", + "stb__OptimizeColorsBlock": { + "name": "stb__OptimizeColorsBlock", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3565,11 +3043,11 @@ }, "parameters": [ { - "name": "dest", + "name": "block", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3586,7 +3064,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3604,11 +3082,11 @@ "callback_policy": null }, { - "name": "src", + "name": "pmax16", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *src", + "source_text": "unsigned short *pmax16", "components": [ { "model": "CPointer", @@ -3616,16 +3094,16 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "unsigned short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *src", + "source_text": "unsigned short *pmax16", "components": [ { "model": "CPointer", @@ -3633,9 +3111,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "unsigned short" } ] }, @@ -3643,16 +3121,40 @@ "callback_policy": null }, { - "name": "stride", + "name": "pmin16", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int stride" + "source_text": "unsigned short *pmin16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int stride" + "source_text": "unsigned short *pmin16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" + } + ] }, "source_location": null, "callback_policy": null @@ -3667,38 +3169,179 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 547, + "line": 263, "column": 1, - "source_line": "static void stb__CompressAlphaBlock(unsigned char *dest,unsigned char *src, int stride)" + "source_line": "static void stb__OptimizeColorsBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 547, + "line": 263, "column": 1, - "source_line": "static void stb__CompressAlphaBlock(unsigned char *dest,unsigned char *src, int stride)" + "source_line": "static void stb__OptimizeColorsBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 597, + "line": 367, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_compress_dxt_block": { - "name": "stb_compress_dxt_block", + "stb__Quantize5": { + "name": "stb__Quantize5", "result_type": { - "model": "CVoid", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned short" }, "parameters": [ { - "name": "dest", + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 381, + "column": 1, + "source_line": "static unsigned short stb__Quantize5(float x)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 381, + "column": 1, + "source_line": "static unsigned short stb__Quantize5(float x)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 388, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stb__Quantize6": { + "name": "stb__Quantize6", + "result_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" + }, + "parameters": [ + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_dxt.h", + "line": 390, + "column": 1, + "source_line": "static unsigned short stb__Quantize6(float x)" + }, + "start": { + "filename": "stb/stb_dxt.h", + "line": 390, + "column": 1, + "source_line": "static unsigned short stb__Quantize6(float x)" + }, + "end": { + "filename": "stb/stb_dxt.h", + "line": 397, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stb__RefineBlock": { + "name": "stb__RefineBlock", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "block", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *block", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *block", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pmax16", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned short *pmax16", "components": [ { "model": "CPointer", @@ -3706,16 +3349,16 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "unsigned short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *dest", + "source_text": "unsigned short *pmax16", "components": [ { "model": "CPointer", @@ -3723,9 +3366,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CUnsignedShort", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "unsigned short" } ] }, @@ -3733,11 +3376,11 @@ "callback_policy": null }, { - "name": "src", + "name": "pmin16", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned short *pmin16", "components": [ { "model": "CPointer", @@ -3745,18 +3388,16 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned short *pmin16", "components": [ { "model": "CPointer", @@ -3764,11 +3405,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short" } ] }, @@ -3776,63 +3415,50 @@ "callback_policy": null }, { - "name": "alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", + "name": "mask", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int mode" + "source_text": "unsigned int mask" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int mode" + "source_text": "unsigned int mask" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 599, + "line": 402, "column": 1, - "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" + "source_line": "static int stb__RefineBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16, unsigned int mask)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 599, + "line": 402, "column": 1, - "source_line": "void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode)" + "source_line": "static int stb__RefineBlock(unsigned char *block, unsigned short *pmax16, unsigned short *pmin16, unsigned int mask)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 615, + "line": 476, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_compress_bc4_block": { - "name": "stb_compress_bc4_block", + "stb__CompressColorBlock": { + "name": "stb__CompressColorBlock", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3879,11 +3505,11 @@ "callback_policy": null }, { - "name": "src", + "name": "block", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3892,17 +3518,15 @@ }, { "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned char *block", "components": [ { "model": "CPointer", @@ -3911,44 +3535,59 @@ }, { "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "qualifiers": [], + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mode" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 617, + "line": 479, "column": 1, - "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" + "source_line": "static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, int mode)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 617, + "line": 479, "column": 1, - "source_line": "void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)" + "source_line": "static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, int mode)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 620, + "line": 544, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_compress_bc5_block": { - "name": "stb_compress_bc5_block", + "stb__CompressAlphaBlock": { + "name": "stb__CompressAlphaBlock", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3999,7 +3638,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned char *src", "components": [ { "model": "CPointer", @@ -4008,17 +3647,15 @@ }, { "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *src", + "source_text": "unsigned char *src", "components": [ { "model": "CPointer", @@ -4027,70 +3664,52 @@ }, { "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "qualifiers": [], + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_dxt.h", - "line": 622, - "column": 1, - "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" - }, - "start": { - "filename": "stb/stb_dxt.h", - "line": 622, - "column": 1, - "source_line": "void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)" - }, - "end": { - "filename": "stb/stb_dxt.h", - "line": 626, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "main": { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "unspecified", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 634, + "line": 547, "column": 1, - "source_line": "int main()" + "source_line": "static void stb__CompressAlphaBlock(unsigned char *dest,unsigned char *src, int stride)" }, "start": { "filename": "stb/stb_dxt.h", - "line": 634, + "line": 547, "column": 1, - "source_line": "int main()" + "source_line": "static void stb__CompressAlphaBlock(unsigned char *dest,unsigned char *src, int stride)" }, "end": { "filename": "stb/stb_dxt.h", - "line": 676, + "line": 597, "column": 1, "source_line": "}" }, @@ -4140,7 +3759,7 @@ "static" ], "initializer": { - "source_text": "{\n { 0, 0 }, { 0, 0 }, { 0, 1 }, { 0, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 1 },\n { 1, 1 }, { 1, 1 }, { 1, 2 }, { 0, 4 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 2 },\n { 2, 2 }, { 2, 2 }, { 2, 3 }, { 1, 5 }, { 3, 2 }, { 3, 2 }, { 4, 0 }, { 3, 3 },\n { 3, 3 }, { 3, 3 }, { 3, 4 }, { 3, 4 }, { 3, 4 }, { 3, 5 }, { 4, 3 }, { 4, 3 },\n { 5, 2 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 4, 5 }, { 5, 4 }, { 5, 4 }, { 5, 4 },\n { 6, 3 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 4, 8 }, { 6, 5 }, { 6, 5 }, { 6, 5 },\n { 6, 6 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 5, 9 }, { 7, 6 }, { 7, 6 }, { 8, 4 },\n { 7, 7 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 7, 8 }, { 7, 8 }, { 7, 9 }, { 8, 7 },\n { 8, 7 }, { 9, 6 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 8, 9 }, { 9, 8 }, { 9, 8 },\n { 9, 8 }, { 10, 7 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 8, 12 }, { 10, 9 }, { 10, 9 },\n { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 9, 13 }, { 11, 10 }, { 11, 10 },\n { 12, 8 }, { 11, 11 }, { 11, 11 }, { 11, 11 }, { 11, 12 }, { 11, 12 }, { 11, 12 }, { 11, 13 },\n { 12, 11 }, { 12, 11 }, { 13, 10 }, { 12, 12 }, { 12, 12 }, { 12, 13 }, { 12, 13 }, { 13, 12 },\n { 13, 12 }, { 13, 12 }, { 14, 11 }, { 13, 13 }, { 13, 13 }, { 13, 14 }, { 12, 16 }, { 14, 13 },\n { 14, 13 }, { 14, 13 }, { 14, 14 }, { 14, 14 }, { 14, 14 }, { 14, 15 }, { 13, 17 }, { 15, 14 },\n { 15, 14 }, { 16, 12 }, { 15, 15 }, { 15, 15 }, { 15, 15 }, { 15, 16 }, { 15, 16 }, { 15, 16 },\n { 15, 17 }, { 16, 15 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 16 }, { 16, 17 }, { 16, 17 },\n { 17, 16 }, { 17, 16 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 17 }, { 17, 18 }, { 16, 20 },\n { 18, 17 }, { 18, 17 }, { 18, 17 }, { 18, 18 }, { 18, 18 }, { 18, 18 }, { 18, 19 }, { 17, 21 },\n { 19, 18 }, { 19, 18 }, { 20, 16 }, { 19, 19 }, { 19, 19 }, { 19, 19 }, { 19, 20 }, { 19, 20 },\n { 19, 20 }, { 19, 21 }, { 20, 19 }, { 20, 19 }, { 21, 18 }, { 20, 20 }, { 20, 20 }, { 20, 21 },\n { 20, 21 }, { 21, 20 }, { 21, 20 }, { 21, 20 }, { 22, 19 }, { 21, 21 }, { 21, 21 }, { 21, 22 },\n { 20, 24 }, { 22, 21 }, { 22, 21 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 22 }, { 22, 23 },\n { 21, 25 }, { 23, 22 }, { 23, 22 }, { 24, 20 }, { 23, 23 }, { 23, 23 }, { 23, 23 }, { 23, 24 },\n { 23, 24 }, { 23, 24 }, { 23, 25 }, { 24, 23 }, { 24, 23 }, { 25, 22 }, { 24, 24 }, { 24, 24 },\n { 24, 25 }, { 24, 25 }, { 25, 24 }, { 25, 24 }, { 25, 24 }, { 26, 23 }, { 25, 25 }, { 25, 25 },\n { 25, 26 }, { 24, 28 }, { 26, 25 }, { 26, 25 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 26 },\n { 26, 27 }, { 25, 29 }, { 27, 26 }, { 27, 26 }, { 28, 24 }, { 27, 27 }, { 27, 27 }, { 27, 27 },\n { 27, 28 }, { 27, 28 }, { 27, 28 }, { 27, 29 }, { 28, 27 }, { 28, 27 }, { 29, 26 }, { 28, 28 },\n { 28, 28 }, { 28, 29 }, { 28, 29 }, { 29, 28 }, { 29, 28 }, { 29, 28 }, { 30, 27 }, { 29, 29 },\n { 29, 29 }, { 29, 30 }, { 29, 30 }, { 30, 29 }, { 30, 29 }, { 30, 29 }, { 30, 30 }, { 30, 30 },\n { 30, 30 }, { 30, 31 }, { 30, 31 }, { 31, 30 }, { 31, 30 }, { 31, 30 }, { 31, 31 }, { 31, 31 },\n}" + "source_text": "{ { 0, 0 }, { 0, 0 }, { 0, 1 }, { 0, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 0, 4 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 2 }, { 2, 2 }, { 2, 2 }, { 2, 3 }, { 1, 5 }, { 3, 2 }, { 3, 2 }, { 4, 0 }, { 3, 3 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 3, 4 }, { 3, 4 }, { 3, 5 }, { 4, 3 }, { 4, 3 }, { 5, 2 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 4, 5 }, { 5, 4 }, { 5, 4 }, { 5, 4 }, { 6, 3 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 4, 8 }, { 6, 5 }, { 6, 5 }, { 6, 5 }, { 6, 6 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 5, 9 }, { 7, 6 }, { 7, 6 }, { 8, 4 }, { 7, 7 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 7, 8 }, { 7, 8 }, { 7, 9 }, { 8, 7 }, { 8, 7 }, { 9, 6 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 8, 9 }, { 9, 8 }, { 9, 8 }, { 9, 8 }, { 10, 7 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 8, 12 }, { 10, 9 }, { 10, 9 }, { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 9, 13 }, { 11, 10 }, { 11, 10 }, { 12, 8 }, { 11, 11 }, { 11, 11 }, { 11, 11 }, { 11, 12 }, { 11, 12 }, { 11, 12 }, { 11, 13 }, { 12, 11 }, { 12, 11 }, { 13, 10 }, { 12, 12 }, { 12, 12 }, { 12, 13 }, { 12, 13 }, { 13, 12 }, { 13, 12 }, { 13, 12 }, { 14, 11 }, { 13, 13 }, { 13, 13 }, { 13, 14 }, { 12, 16 }, { 14, 13 }, { 14, 13 }, { 14, 13 }, { 14, 14 }, { 14, 14 }, { 14, 14 }, { 14, 15 }, { 13, 17 }, { 15, 14 }, { 15, 14 }, { 16, 12 }, { 15, 15 }, { 15, 15 }, { 15, 15 }, { 15, 16 }, { 15, 16 }, { 15, 16 }, { 15, 17 }, { 16, 15 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 16 }, { 16, 17 }, { 16, 17 }, { 17, 16 }, { 17, 16 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 17 }, { 17, 18 }, { 16, 20 }, { 18, 17 }, { 18, 17 }, { 18, 17 }, { 18, 18 }, { 18, 18 }, { 18, 18 }, { 18, 19 }, { 17, 21 }, { 19, 18 }, { 19, 18 }, { 20, 16 }, { 19, 19 }, { 19, 19 }, { 19, 19 }, { 19, 20 }, { 19, 20 }, { 19, 20 }, { 19, 21 }, { 20, 19 }, { 20, 19 }, { 21, 18 }, { 20, 20 }, { 20, 20 }, { 20, 21 }, { 20, 21 }, { 21, 20 }, { 21, 20 }, { 21, 20 }, { 22, 19 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 20, 24 }, { 22, 21 }, { 22, 21 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 22 }, { 22, 23 }, { 21, 25 }, { 23, 22 }, { 23, 22 }, { 24, 20 }, { 23, 23 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 23, 24 }, { 23, 24 }, { 23, 25 }, { 24, 23 }, { 24, 23 }, { 25, 22 }, { 24, 24 }, { 24, 24 }, { 24, 25 }, { 24, 25 }, { 25, 24 }, { 25, 24 }, { 25, 24 }, { 26, 23 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 24, 28 }, { 26, 25 }, { 26, 25 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 26 }, { 26, 27 }, { 25, 29 }, { 27, 26 }, { 27, 26 }, { 28, 24 }, { 27, 27 }, { 27, 27 }, { 27, 27 }, { 27, 28 }, { 27, 28 }, { 27, 28 }, { 27, 29 }, { 28, 27 }, { 28, 27 }, { 29, 26 }, { 28, 28 }, { 28, 28 }, { 28, 29 }, { 28, 29 }, { 29, 28 }, { 29, 28 }, { 29, 28 }, { 30, 27 }, { 29, 29 }, { 29, 29 }, { 29, 30 }, { 29, 30 }, { 30, 29 }, { 30, 29 }, { 30, 29 }, { 30, 30 }, { 30, 30 }, { 30, 30 }, { 30, 31 }, { 30, 31 }, { 31, 30 }, { 31, 30 }, { 31, 30 }, { 31, 31 }, { 31, 31 }, }" }, "bit_width": null, "source_location": { @@ -4190,7 +3809,7 @@ "static" ], "initializer": { - "source_text": "{\n { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 2, 1 }, { 2, 2 },\n { 2, 2 }, { 2, 3 }, { 3, 2 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 4, 3 }, { 4, 4 },\n { 4, 4 }, { 4, 5 }, { 5, 4 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 6, 5 }, { 6, 6 },\n { 6, 6 }, { 6, 7 }, { 7, 6 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 8, 7 }, { 8, 8 },\n { 8, 8 }, { 8, 9 }, { 9, 8 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 10, 9 }, { 10, 10 },\n { 10, 10 }, { 10, 11 }, { 11, 10 }, { 8, 16 }, { 11, 11 }, { 11, 12 }, { 12, 11 }, { 9, 17 },\n { 12, 12 }, { 12, 13 }, { 13, 12 }, { 11, 16 }, { 13, 13 }, { 13, 14 }, { 14, 13 }, { 12, 17 },\n { 14, 14 }, { 14, 15 }, { 15, 14 }, { 14, 16 }, { 15, 15 }, { 15, 16 }, { 16, 14 }, { 16, 15 },\n { 17, 14 }, { 16, 16 }, { 16, 17 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 18 }, { 18, 17 },\n { 20, 14 }, { 18, 18 }, { 18, 19 }, { 19, 18 }, { 21, 15 }, { 19, 19 }, { 19, 20 }, { 20, 19 },\n { 20, 20 }, { 20, 20 }, { 20, 21 }, { 21, 20 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 22, 21 },\n { 22, 22 }, { 22, 22 }, { 22, 23 }, { 23, 22 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 24, 23 },\n { 24, 24 }, { 24, 24 }, { 24, 25 }, { 25, 24 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 26, 25 },\n { 26, 26 }, { 26, 26 }, { 26, 27 }, { 27, 26 }, { 24, 32 }, { 27, 27 }, { 27, 28 }, { 28, 27 },\n { 25, 33 }, { 28, 28 }, { 28, 29 }, { 29, 28 }, { 27, 32 }, { 29, 29 }, { 29, 30 }, { 30, 29 },\n { 28, 33 }, { 30, 30 }, { 30, 31 }, { 31, 30 }, { 30, 32 }, { 31, 31 }, { 31, 32 }, { 32, 30 },\n { 32, 31 }, { 33, 30 }, { 32, 32 }, { 32, 33 }, { 33, 32 }, { 34, 31 }, { 33, 33 }, { 33, 34 },\n { 34, 33 }, { 36, 30 }, { 34, 34 }, { 34, 35 }, { 35, 34 }, { 37, 31 }, { 35, 35 }, { 35, 36 },\n { 36, 35 }, { 36, 36 }, { 36, 36 }, { 36, 37 }, { 37, 36 }, { 37, 37 }, { 37, 37 }, { 37, 38 },\n { 38, 37 }, { 38, 38 }, { 38, 38 }, { 38, 39 }, { 39, 38 }, { 39, 39 }, { 39, 39 }, { 39, 40 },\n { 40, 39 }, { 40, 40 }, { 40, 40 }, { 40, 41 }, { 41, 40 }, { 41, 41 }, { 41, 41 }, { 41, 42 },\n { 42, 41 }, { 42, 42 }, { 42, 42 }, { 42, 43 }, { 43, 42 }, { 40, 48 }, { 43, 43 }, { 43, 44 },\n { 44, 43 }, { 41, 49 }, { 44, 44 }, { 44, 45 }, { 45, 44 }, { 43, 48 }, { 45, 45 }, { 45, 46 },\n { 46, 45 }, { 44, 49 }, { 46, 46 }, { 46, 47 }, { 47, 46 }, { 46, 48 }, { 47, 47 }, { 47, 48 },\n { 48, 46 }, { 48, 47 }, { 49, 46 }, { 48, 48 }, { 48, 49 }, { 49, 48 }, { 50, 47 }, { 49, 49 },\n { 49, 50 }, { 50, 49 }, { 52, 46 }, { 50, 50 }, { 50, 51 }, { 51, 50 }, { 53, 47 }, { 51, 51 },\n { 51, 52 }, { 52, 51 }, { 52, 52 }, { 52, 52 }, { 52, 53 }, { 53, 52 }, { 53, 53 }, { 53, 53 },\n { 53, 54 }, { 54, 53 }, { 54, 54 }, { 54, 54 }, { 54, 55 }, { 55, 54 }, { 55, 55 }, { 55, 55 },\n { 55, 56 }, { 56, 55 }, { 56, 56 }, { 56, 56 }, { 56, 57 }, { 57, 56 }, { 57, 57 }, { 57, 57 },\n { 57, 58 }, { 58, 57 }, { 58, 58 }, { 58, 58 }, { 58, 59 }, { 59, 58 }, { 59, 59 }, { 59, 59 },\n { 59, 60 }, { 60, 59 }, { 60, 60 }, { 60, 60 }, { 60, 61 }, { 61, 60 }, { 61, 61 }, { 61, 61 },\n { 61, 62 }, { 62, 61 }, { 62, 62 }, { 62, 62 }, { 62, 63 }, { 63, 62 }, { 63, 63 }, { 63, 63 },\n}" + "source_text": "{ { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 }, { 1, 2 }, { 2, 1 }, { 2, 2 }, { 2, 2 }, { 2, 3 }, { 3, 2 }, { 3, 3 }, { 3, 3 }, { 3, 4 }, { 4, 3 }, { 4, 4 }, { 4, 4 }, { 4, 5 }, { 5, 4 }, { 5, 5 }, { 5, 5 }, { 5, 6 }, { 6, 5 }, { 6, 6 }, { 6, 6 }, { 6, 7 }, { 7, 6 }, { 7, 7 }, { 7, 7 }, { 7, 8 }, { 8, 7 }, { 8, 8 }, { 8, 8 }, { 8, 9 }, { 9, 8 }, { 9, 9 }, { 9, 9 }, { 9, 10 }, { 10, 9 }, { 10, 10 }, { 10, 10 }, { 10, 11 }, { 11, 10 }, { 8, 16 }, { 11, 11 }, { 11, 12 }, { 12, 11 }, { 9, 17 }, { 12, 12 }, { 12, 13 }, { 13, 12 }, { 11, 16 }, { 13, 13 }, { 13, 14 }, { 14, 13 }, { 12, 17 }, { 14, 14 }, { 14, 15 }, { 15, 14 }, { 14, 16 }, { 15, 15 }, { 15, 16 }, { 16, 14 }, { 16, 15 }, { 17, 14 }, { 16, 16 }, { 16, 17 }, { 17, 16 }, { 18, 15 }, { 17, 17 }, { 17, 18 }, { 18, 17 }, { 20, 14 }, { 18, 18 }, { 18, 19 }, { 19, 18 }, { 21, 15 }, { 19, 19 }, { 19, 20 }, { 20, 19 }, { 20, 20 }, { 20, 20 }, { 20, 21 }, { 21, 20 }, { 21, 21 }, { 21, 21 }, { 21, 22 }, { 22, 21 }, { 22, 22 }, { 22, 22 }, { 22, 23 }, { 23, 22 }, { 23, 23 }, { 23, 23 }, { 23, 24 }, { 24, 23 }, { 24, 24 }, { 24, 24 }, { 24, 25 }, { 25, 24 }, { 25, 25 }, { 25, 25 }, { 25, 26 }, { 26, 25 }, { 26, 26 }, { 26, 26 }, { 26, 27 }, { 27, 26 }, { 24, 32 }, { 27, 27 }, { 27, 28 }, { 28, 27 }, { 25, 33 }, { 28, 28 }, { 28, 29 }, { 29, 28 }, { 27, 32 }, { 29, 29 }, { 29, 30 }, { 30, 29 }, { 28, 33 }, { 30, 30 }, { 30, 31 }, { 31, 30 }, { 30, 32 }, { 31, 31 }, { 31, 32 }, { 32, 30 }, { 32, 31 }, { 33, 30 }, { 32, 32 }, { 32, 33 }, { 33, 32 }, { 34, 31 }, { 33, 33 }, { 33, 34 }, { 34, 33 }, { 36, 30 }, { 34, 34 }, { 34, 35 }, { 35, 34 }, { 37, 31 }, { 35, 35 }, { 35, 36 }, { 36, 35 }, { 36, 36 }, { 36, 36 }, { 36, 37 }, { 37, 36 }, { 37, 37 }, { 37, 37 }, { 37, 38 }, { 38, 37 }, { 38, 38 }, { 38, 38 }, { 38, 39 }, { 39, 38 }, { 39, 39 }, { 39, 39 }, { 39, 40 }, { 40, 39 }, { 40, 40 }, { 40, 40 }, { 40, 41 }, { 41, 40 }, { 41, 41 }, { 41, 41 }, { 41, 42 }, { 42, 41 }, { 42, 42 }, { 42, 42 }, { 42, 43 }, { 43, 42 }, { 40, 48 }, { 43, 43 }, { 43, 44 }, { 44, 43 }, { 41, 49 }, { 44, 44 }, { 44, 45 }, { 45, 44 }, { 43, 48 }, { 45, 45 }, { 45, 46 }, { 46, 45 }, { 44, 49 }, { 46, 46 }, { 46, 47 }, { 47, 46 }, { 46, 48 }, { 47, 47 }, { 47, 48 }, { 48, 46 }, { 48, 47 }, { 49, 46 }, { 48, 48 }, { 48, 49 }, { 49, 48 }, { 50, 47 }, { 49, 49 }, { 49, 50 }, { 50, 49 }, { 52, 46 }, { 50, 50 }, { 50, 51 }, { 51, 50 }, { 53, 47 }, { 51, 51 }, { 51, 52 }, { 52, 51 }, { 52, 52 }, { 52, 52 }, { 52, 53 }, { 53, 52 }, { 53, 53 }, { 53, 53 }, { 53, 54 }, { 54, 53 }, { 54, 54 }, { 54, 54 }, { 54, 55 }, { 55, 54 }, { 55, 55 }, { 55, 55 }, { 55, 56 }, { 56, 55 }, { 56, 56 }, { 56, 56 }, { 56, 57 }, { 57, 56 }, { 57, 57 }, { 57, 57 }, { 57, 58 }, { 58, 57 }, { 58, 58 }, { 58, 58 }, { 58, 59 }, { 59, 58 }, { 59, 59 }, { 59, 59 }, { 59, 60 }, { 60, 59 }, { 60, 60 }, { 60, 60 }, { 60, 61 }, { 61, 60 }, { 61, 61 }, { 61, 61 }, { 61, 62 }, { 62, 61 }, { 62, 62 }, { 62, 62 }, { 62, 63 }, { 63, 62 }, { 63, 63 }, { 63, 63 }, }" }, "bit_width": null, "source_location": { @@ -4231,7 +3850,7 @@ "static" ], "initializer": { - "source_text": "{\n 0.015686f, 0.047059f, 0.078431f, 0.111765f, 0.145098f, 0.176471f, 0.207843f, 0.241176f, 0.274510f, 0.305882f, 0.337255f, 0.370588f, 0.403922f, 0.435294f, 0.466667f, 0.5f,\n 0.533333f, 0.564706f, 0.596078f, 0.629412f, 0.662745f, 0.694118f, 0.725490f, 0.758824f, 0.792157f, 0.823529f, 0.854902f, 0.888235f, 0.921569f, 0.952941f, 0.984314f, 1.0f\n}" + "source_text": "{ 0.015686f, 0.047059f, 0.078431f, 0.111765f, 0.145098f, 0.176471f, 0.207843f, 0.241176f, 0.274510f, 0.305882f, 0.337255f, 0.370588f, 0.403922f, 0.435294f, 0.466667f, 0.5f, 0.533333f, 0.564706f, 0.596078f, 0.629412f, 0.662745f, 0.694118f, 0.725490f, 0.758824f, 0.792157f, 0.823529f, 0.854902f, 0.888235f, 0.921569f, 0.952941f, 0.984314f, 1.0f }" }, "bit_width": null, "source_location": { @@ -4272,7 +3891,7 @@ "static" ], "initializer": { - "source_text": "{\n 0.007843f, 0.023529f, 0.039216f, 0.054902f, 0.070588f, 0.086275f, 0.101961f, 0.117647f, 0.133333f, 0.149020f, 0.164706f, 0.180392f, 0.196078f, 0.211765f, 0.227451f, 0.245098f,\n 0.262745f, 0.278431f, 0.294118f, 0.309804f, 0.325490f, 0.341176f, 0.356863f, 0.372549f, 0.388235f, 0.403922f, 0.419608f, 0.435294f, 0.450980f, 0.466667f, 0.482353f, 0.500000f,\n 0.517647f, 0.533333f, 0.549020f, 0.564706f, 0.580392f, 0.596078f, 0.611765f, 0.627451f, 0.643137f, 0.658824f, 0.674510f, 0.690196f, 0.705882f, 0.721569f, 0.737255f, 0.754902f,\n 0.772549f, 0.788235f, 0.803922f, 0.819608f, 0.835294f, 0.850980f, 0.866667f, 0.882353f, 0.898039f, 0.913725f, 0.929412f, 0.945098f, 0.960784f, 0.976471f, 0.992157f, 1.0f\n}" + "source_text": "{ 0.007843f, 0.023529f, 0.039216f, 0.054902f, 0.070588f, 0.086275f, 0.101961f, 0.117647f, 0.133333f, 0.149020f, 0.164706f, 0.180392f, 0.196078f, 0.211765f, 0.227451f, 0.245098f, 0.262745f, 0.278431f, 0.294118f, 0.309804f, 0.325490f, 0.341176f, 0.356863f, 0.372549f, 0.388235f, 0.403922f, 0.419608f, 0.435294f, 0.450980f, 0.466667f, 0.482353f, 0.500000f, 0.517647f, 0.533333f, 0.549020f, 0.564706f, 0.580392f, 0.596078f, 0.611765f, 0.627451f, 0.643137f, 0.658824f, 0.674510f, 0.690196f, 0.705882f, 0.721569f, 0.737255f, 0.754902f, 0.772549f, 0.788235f, 0.803922f, 0.819608f, 0.835294f, 0.850980f, 0.866667f, 0.882353f, 0.898039f, 0.913725f, 0.929412f, 0.945098f, 0.960784f, 0.976471f, 0.992157f, 1.0f }" }, "bit_width": null, "source_location": { @@ -4285,129 +3904,13 @@ "declaration_locations": [] } }, - "macros": { - "STB_INCLUDE_STB_DXT_H": { - "name": "STB_INCLUDE_STB_DXT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 41, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_DXT_H" - } - }, - "STBDDEF": { - "name": "STBDDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 50, - "column": 1, - "source_line": "#define STBDDEF extern" - } - }, - "STB_DXT_NORMAL": { - "name": "STB_DXT_NORMAL", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 54, - "column": 1, - "source_line": "#define STB_DXT_NORMAL 0" - } - }, - "STB_DXT_DITHER": { - "name": "STB_DXT_DITHER", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 55, - "column": 1, - "source_line": "#define STB_DXT_DITHER 1 // use dithering. was always dubious, now deprecated. does nothing!" - } - }, - "STB_DXT_HIGHQUAL": { - "name": "STB_DXT_HIGHQUAL", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 56, - "column": 1, - "source_line": "#define STB_DXT_HIGHQUAL 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower." - } - }, - "STB_COMPRESS_DXT_BLOCK": { - "name": "STB_COMPRESS_DXT_BLOCK", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 62, - "column": 1, - "source_line": "#define STB_COMPRESS_DXT_BLOCK" - } - }, - "STBD_FABS": { - "name": "STBD_FABS", - "value": "fabs(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 92, - "column": 1, - "source_line": "#define STBD_FABS(x) fabs(x)" - } - } - }, - "includes": { - "stb/stb_dxt.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 85, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_dxt.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 88, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_dxt.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_dxt.h", - "line": 632, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_dxt.h": [ + "stb_compress_dxt_block", + "stb_compress_bc4_block", + "stb_compress_bc5_block", "stb__Mul8Bit", "stb__From16Bit", "stb__As16Bit", @@ -4420,11 +3923,7 @@ "stb__Quantize6", "stb__RefineBlock", "stb__CompressColorBlock", - "stb__CompressAlphaBlock", - "stb_compress_dxt_block", - "stb_compress_bc4_block", - "stb_compress_bc5_block", - "main" + "stb__CompressAlphaBlock" ] }, "enum_constants": {}, @@ -4432,11 +3931,7 @@ "stb/stb_dxt.h": [] }, "system_includes": { - "stb/stb_dxt.h": [ - "math.h", - "stdio.h", - "stdlib.h" - ] + "stb/stb_dxt.h": [] }, "unresolved_includes": { "stb/stb_dxt.h": [] @@ -4444,32 +3939,5 @@ "header_source_pairs": { "stb/stb_dxt.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBD_FABS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_dxt.h", - "line": 92, - "column": 1, - "source_line": "#define STBD_FABS(x) fabs(x)" - }, - "unit_kind": "macro", - "unit_name": "STBD_FABS" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_dxt.h", - "line": 44, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_easy_font.json b/tests/parser/c/fixtures/stb/stb_easy_font.json index 81cefa970..a00f77681 100644 --- a/tests/parser/c/fixtures/stb/stb_easy_font.json +++ b/tests/parser/c/fixtures/stb/stb_easy_font.json @@ -3,157 +3,11 @@ "stb/stb_easy_font.h": { "filename": "stb/stb_easy_font.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_easy_font.h" + ], "functions": [ - { - "name": "print_string", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float r" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float g" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 91, - "column": 1, - "source_line": "void print_string(float x, float y, char *text, float r, float g, float b)" - }, - "start": { - "filename": "stb/stb_easy_font.h", - "line": 91, - "column": 1, - "source_line": "void print_string(float x, float y, char *text, float r, float g, float b)" - }, - "end": { - "filename": "stb/stb_easy_font.h", - "line": 103, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, { "name": "stb_easy_font_draw_segs", "result_type": { @@ -310,7 +164,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_easy_font.h:168:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_easy_font.h", @@ -907,18 +761,11 @@ "column": 1, "source_line": "static struct stb_easy_font_info_struct {" } - }, - { - "reference": "struct@stb/stb_easy_font.h:168:1" } ], "unions": [], "enums": [], - "typedefs": [ - { - "reference": "stb_easy_font_color" - } - ], + "typedefs": [], "variables": [ { "name": "stb_easy_font_charinfo", @@ -945,7 +792,7 @@ "static" ], "initializer": { - "source_text": "{\n { 6, 0, 0 }, { 3, 0, 0 }, { 5, 1, 1 }, { 7, 1, 4 },\n { 7, 3, 7 }, { 7, 6, 12 }, { 7, 8, 19 }, { 4, 16, 21 },\n { 4, 17, 22 }, { 4, 19, 23 }, { 23, 21, 24 }, { 23, 22, 31 },\n { 20, 23, 34 }, { 22, 23, 36 }, { 19, 24, 36 }, { 21, 25, 36 },\n { 6, 25, 39 }, { 6, 27, 43 }, { 6, 28, 45 }, { 6, 30, 49 },\n { 6, 33, 53 }, { 6, 34, 57 }, { 6, 40, 58 }, { 6, 46, 59 },\n { 6, 47, 62 }, { 6, 55, 64 }, { 19, 57, 68 }, { 20, 59, 68 },\n { 21, 61, 69 }, { 22, 66, 69 }, { 21, 68, 69 }, { 7, 73, 69 },\n { 9, 75, 74 }, { 6, 78, 81 }, { 6, 80, 85 }, { 6, 83, 90 },\n { 6, 85, 91 }, { 6, 87, 95 }, { 6, 90, 96 }, { 7, 92, 97 },\n { 6, 96,102 }, { 5, 97,106 }, { 6, 99,107 }, { 6,100,110 },\n { 6,100,115 }, { 7,101,116 }, { 6,101,121 }, { 6,101,125 },\n { 6,102,129 }, { 7,103,133 }, { 6,104,140 }, { 6,105,145 },\n { 7,107,149 }, { 6,108,151 }, { 7,109,155 }, { 7,109,160 },\n { 7,109,165 }, { 7,118,167 }, { 6,118,172 }, { 4,120,176 },\n { 6,122,177 }, { 4,122,181 }, { 23,124,182 }, { 22,129,182 },\n { 4,130,182 }, { 22,131,183 }, { 6,133,187 }, { 22,135,191 },\n { 6,137,192 }, { 22,139,196 }, { 6,144,197 }, { 22,147,198 },\n { 6,150,202 }, { 19,151,206 }, { 21,152,207 }, { 6,155,209 },\n { 3,160,210 }, { 23,160,211 }, { 22,164,216 }, { 22,165,220 },\n { 22,167,224 }, { 22,169,228 }, { 21,171,232 }, { 21,173,233 },\n { 5,178,233 }, { 22,179,234 }, { 23,180,238 }, { 23,180,243 },\n { 23,180,248 }, { 22,189,248 }, { 22,191,252 }, { 5,196,252 },\n { 3,203,252 }, { 5,203,253 }, { 22,210,253 }, { 0,214,253 },\n}" + "source_text": "{ { 6, 0, 0 }, { 3, 0, 0 }, { 5, 1, 1 }, { 7, 1, 4 }, { 7, 3, 7 }, { 7, 6, 12 }, { 7, 8, 19 }, { 4, 16, 21 }, { 4, 17, 22 }, { 4, 19, 23 }, { 23, 21, 24 }, { 23, 22, 31 }, { 20, 23, 34 }, { 22, 23, 36 }, { 19, 24, 36 }, { 21, 25, 36 }, { 6, 25, 39 }, { 6, 27, 43 }, { 6, 28, 45 }, { 6, 30, 49 }, { 6, 33, 53 }, { 6, 34, 57 }, { 6, 40, 58 }, { 6, 46, 59 }, { 6, 47, 62 }, { 6, 55, 64 }, { 19, 57, 68 }, { 20, 59, 68 }, { 21, 61, 69 }, { 22, 66, 69 }, { 21, 68, 69 }, { 7, 73, 69 }, { 9, 75, 74 }, { 6, 78, 81 }, { 6, 80, 85 }, { 6, 83, 90 }, { 6, 85, 91 }, { 6, 87, 95 }, { 6, 90, 96 }, { 7, 92, 97 }, { 6, 96,102 }, { 5, 97,106 }, { 6, 99,107 }, { 6,100,110 }, { 6,100,115 }, { 7,101,116 }, { 6,101,121 }, { 6,101,125 }, { 6,102,129 }, { 7,103,133 }, { 6,104,140 }, { 6,105,145 }, { 7,107,149 }, { 6,108,151 }, { 7,109,155 }, { 7,109,160 }, { 7,109,165 }, { 7,118,167 }, { 6,118,172 }, { 4,120,176 }, { 6,122,177 }, { 4,122,181 }, { 23,124,182 }, { 22,129,182 }, { 4,130,182 }, { 22,131,183 }, { 6,133,187 }, { 22,135,191 }, { 6,137,192 }, { 22,139,196 }, { 6,144,197 }, { 22,147,198 }, { 6,150,202 }, { 19,151,206 }, { 21,152,207 }, { 6,155,209 }, { 3,160,210 }, { 23,160,211 }, { 22,164,216 }, { 22,165,220 }, { 22,167,224 }, { 22,169,228 }, { 21,171,232 }, { 21,173,233 }, { 5,178,233 }, { 22,179,234 }, { 23,180,238 }, { 23,180,243 }, { 23,180,248 }, { 22,189,248 }, { 22,191,252 }, { 5,196,252 }, { 3,203,252 }, { 5,203,253 }, { 22,210,253 }, { 0,214,253 }, }" }, "bit_width": null, "source_location": { @@ -984,7 +831,7 @@ "static" ], "initializer": { - "source_text": "{\n 97,37,69,84,28,51,2,18,10,49,98,41,65,25,81,105,33,9,97,1,97,37,37,36,\n 81,10,98,107,3,100,3,99,58,51,4,99,58,8,73,81,10,50,98,8,73,81,4,10,50,\n 98,8,25,33,65,81,10,50,17,65,97,25,33,25,49,9,65,20,68,1,65,25,49,41,\n 11,105,13,101,76,10,50,10,50,98,11,99,10,98,11,50,99,11,50,11,99,8,57,\n 58,3,99,99,107,10,10,11,10,99,11,5,100,41,65,57,41,65,9,17,81,97,3,107,\n 9,97,1,97,33,25,9,25,41,100,41,26,82,42,98,27,83,42,98,26,51,82,8,41,\n 35,8,10,26,82,114,42,1,114,8,9,73,57,81,41,97,18,8,8,25,26,26,82,26,82,\n 26,82,41,25,33,82,26,49,73,35,90,17,81,41,65,57,41,65,25,81,90,114,20,\n 84,73,57,41,49,25,33,65,81,9,97,1,97,25,33,65,81,57,33,25,41,25,\n}" + "source_text": "{ 97,37,69,84,28,51,2,18,10,49,98,41,65,25,81,105,33,9,97,1,97,37,37,36, 81,10,98,107,3,100,3,99,58,51,4,99,58,8,73,81,10,50,98,8,73,81,4,10,50, 98,8,25,33,65,81,10,50,17,65,97,25,33,25,49,9,65,20,68,1,65,25,49,41, 11,105,13,101,76,10,50,10,50,98,11,99,10,98,11,50,99,11,50,11,99,8,57, 58,3,99,99,107,10,10,11,10,99,11,5,100,41,65,57,41,65,9,17,81,97,3,107, 9,97,1,97,33,25,9,25,41,100,41,26,82,42,98,27,83,42,98,26,51,82,8,41, 35,8,10,26,82,114,42,1,114,8,9,73,57,81,41,97,18,8,8,25,26,26,82,26,82, 26,82,41,25,33,82,26,49,73,35,90,17,81,41,65,57,41,65,25,81,90,114,20, 84,73,57,41,49,25,33,65,81,9,97,1,97,25,33,65,81,57,33,25,41,25, }" }, "bit_width": null, "source_location": { @@ -1023,7 +870,7 @@ "static" ], "initializer": { - "source_text": "{\n 4,2,8,10,15,8,15,33,8,15,8,73,82,73,57,41,82,10,82,18,66,10,21,29,1,65,\n 27,8,27,9,65,8,10,50,97,74,66,42,10,21,57,41,29,25,14,81,73,57,26,8,8,\n 26,66,3,8,8,15,19,21,90,58,26,18,66,18,105,89,28,74,17,8,73,57,26,21,\n 8,42,41,42,8,28,22,8,8,30,7,8,8,26,66,21,7,8,8,29,7,7,21,8,8,8,59,7,8,\n 8,15,29,8,8,14,7,57,43,10,82,7,7,25,42,25,15,7,25,41,15,21,105,105,29,\n 7,57,57,26,21,105,73,97,89,28,97,7,57,58,26,82,18,57,57,74,8,30,6,8,8,\n 14,3,58,90,58,11,7,74,43,74,15,2,82,2,42,75,42,10,67,57,41,10,7,2,42,\n 74,106,15,2,35,8,8,29,7,8,8,59,35,51,8,8,15,35,30,35,8,8,30,7,8,8,60,\n 36,8,45,7,7,36,8,43,8,44,21,8,8,44,35,8,8,43,23,8,8,43,35,8,8,31,21,15,\n 20,8,8,28,18,58,89,58,26,21,89,73,89,29,20,8,8,30,7,\n}" + "source_text": "{ 4,2,8,10,15,8,15,33,8,15,8,73,82,73,57,41,82,10,82,18,66,10,21,29,1,65, 27,8,27,9,65,8,10,50,97,74,66,42,10,21,57,41,29,25,14,81,73,57,26,8,8, 26,66,3,8,8,15,19,21,90,58,26,18,66,18,105,89,28,74,17,8,73,57,26,21, 8,42,41,42,8,28,22,8,8,30,7,8,8,26,66,21,7,8,8,29,7,7,21,8,8,8,59,7,8, 8,15,29,8,8,14,7,57,43,10,82,7,7,25,42,25,15,7,25,41,15,21,105,105,29, 7,57,57,26,21,105,73,97,89,28,97,7,57,58,26,82,18,57,57,74,8,30,6,8,8, 14,3,58,90,58,11,7,74,43,74,15,2,82,2,42,75,42,10,67,57,41,10,7,2,42, 74,106,15,2,35,8,8,29,7,8,8,59,35,51,8,8,15,35,30,35,8,8,30,7,8,8,60, 36,8,45,7,7,36,8,43,8,44,21,8,8,44,35,8,8,43,23,8,8,43,35,8,8,31,21,15, 20,8,8,28,18,58,89,58,26,21,89,73,89,29,20,8,8,30,7, }" }, "bit_width": null, "source_location": { @@ -1059,239 +906,14 @@ "declaration_locations": [] } ], - "macros": [ - { - "name": "INCLUDE_STB_EASY_FONT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 107, - "column": 1, - "source_line": "#define INCLUDE_STB_EASY_FONT_H" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 109, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 110, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 85, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 104, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "INCLUDE_STB_EASY_FONT_H", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 106, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_EASY_FONT_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 263, - "column": 1, - "source_line": "#endif" - } - } - ], + "macros": [], + "includes": [], + "raw_directives": [], "macro_dependencies": [], "diagnostics": [] } }, "functions": { - "print_string": { - "name": "print_string", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float r" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float g" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 91, - "column": 1, - "source_line": "void print_string(float x, float y, char *text, float r, float g, float b)" - }, - "start": { - "filename": "stb/stb_easy_font.h", - "line": 91, - "column": 1, - "source_line": "void print_string(float x, float y, char *text, float r, float g, float b)" - }, - "end": { - "filename": "stb/stb_easy_font.h", - "line": 103, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, "stb_easy_font_draw_segs": { "name": "stb_easy_font_draw_segs", "result_type": { @@ -1918,11 +1540,7 @@ }, "unions": {}, "enums": {}, - "typedefs": { - "stb_easy_font_color": { - "reference": "stb_easy_font_color" - } - }, + "typedefs": {}, "variables": { "stb_easy_font_charinfo": { "name": "stb_easy_font_charinfo", @@ -1949,7 +1567,7 @@ "static" ], "initializer": { - "source_text": "{\n { 6, 0, 0 }, { 3, 0, 0 }, { 5, 1, 1 }, { 7, 1, 4 },\n { 7, 3, 7 }, { 7, 6, 12 }, { 7, 8, 19 }, { 4, 16, 21 },\n { 4, 17, 22 }, { 4, 19, 23 }, { 23, 21, 24 }, { 23, 22, 31 },\n { 20, 23, 34 }, { 22, 23, 36 }, { 19, 24, 36 }, { 21, 25, 36 },\n { 6, 25, 39 }, { 6, 27, 43 }, { 6, 28, 45 }, { 6, 30, 49 },\n { 6, 33, 53 }, { 6, 34, 57 }, { 6, 40, 58 }, { 6, 46, 59 },\n { 6, 47, 62 }, { 6, 55, 64 }, { 19, 57, 68 }, { 20, 59, 68 },\n { 21, 61, 69 }, { 22, 66, 69 }, { 21, 68, 69 }, { 7, 73, 69 },\n { 9, 75, 74 }, { 6, 78, 81 }, { 6, 80, 85 }, { 6, 83, 90 },\n { 6, 85, 91 }, { 6, 87, 95 }, { 6, 90, 96 }, { 7, 92, 97 },\n { 6, 96,102 }, { 5, 97,106 }, { 6, 99,107 }, { 6,100,110 },\n { 6,100,115 }, { 7,101,116 }, { 6,101,121 }, { 6,101,125 },\n { 6,102,129 }, { 7,103,133 }, { 6,104,140 }, { 6,105,145 },\n { 7,107,149 }, { 6,108,151 }, { 7,109,155 }, { 7,109,160 },\n { 7,109,165 }, { 7,118,167 }, { 6,118,172 }, { 4,120,176 },\n { 6,122,177 }, { 4,122,181 }, { 23,124,182 }, { 22,129,182 },\n { 4,130,182 }, { 22,131,183 }, { 6,133,187 }, { 22,135,191 },\n { 6,137,192 }, { 22,139,196 }, { 6,144,197 }, { 22,147,198 },\n { 6,150,202 }, { 19,151,206 }, { 21,152,207 }, { 6,155,209 },\n { 3,160,210 }, { 23,160,211 }, { 22,164,216 }, { 22,165,220 },\n { 22,167,224 }, { 22,169,228 }, { 21,171,232 }, { 21,173,233 },\n { 5,178,233 }, { 22,179,234 }, { 23,180,238 }, { 23,180,243 },\n { 23,180,248 }, { 22,189,248 }, { 22,191,252 }, { 5,196,252 },\n { 3,203,252 }, { 5,203,253 }, { 22,210,253 }, { 0,214,253 },\n}" + "source_text": "{ { 6, 0, 0 }, { 3, 0, 0 }, { 5, 1, 1 }, { 7, 1, 4 }, { 7, 3, 7 }, { 7, 6, 12 }, { 7, 8, 19 }, { 4, 16, 21 }, { 4, 17, 22 }, { 4, 19, 23 }, { 23, 21, 24 }, { 23, 22, 31 }, { 20, 23, 34 }, { 22, 23, 36 }, { 19, 24, 36 }, { 21, 25, 36 }, { 6, 25, 39 }, { 6, 27, 43 }, { 6, 28, 45 }, { 6, 30, 49 }, { 6, 33, 53 }, { 6, 34, 57 }, { 6, 40, 58 }, { 6, 46, 59 }, { 6, 47, 62 }, { 6, 55, 64 }, { 19, 57, 68 }, { 20, 59, 68 }, { 21, 61, 69 }, { 22, 66, 69 }, { 21, 68, 69 }, { 7, 73, 69 }, { 9, 75, 74 }, { 6, 78, 81 }, { 6, 80, 85 }, { 6, 83, 90 }, { 6, 85, 91 }, { 6, 87, 95 }, { 6, 90, 96 }, { 7, 92, 97 }, { 6, 96,102 }, { 5, 97,106 }, { 6, 99,107 }, { 6,100,110 }, { 6,100,115 }, { 7,101,116 }, { 6,101,121 }, { 6,101,125 }, { 6,102,129 }, { 7,103,133 }, { 6,104,140 }, { 6,105,145 }, { 7,107,149 }, { 6,108,151 }, { 7,109,155 }, { 7,109,160 }, { 7,109,165 }, { 7,118,167 }, { 6,118,172 }, { 4,120,176 }, { 6,122,177 }, { 4,122,181 }, { 23,124,182 }, { 22,129,182 }, { 4,130,182 }, { 22,131,183 }, { 6,133,187 }, { 22,135,191 }, { 6,137,192 }, { 22,139,196 }, { 6,144,197 }, { 22,147,198 }, { 6,150,202 }, { 19,151,206 }, { 21,152,207 }, { 6,155,209 }, { 3,160,210 }, { 23,160,211 }, { 22,164,216 }, { 22,165,220 }, { 22,167,224 }, { 22,169,228 }, { 21,171,232 }, { 21,173,233 }, { 5,178,233 }, { 22,179,234 }, { 23,180,238 }, { 23,180,243 }, { 23,180,248 }, { 22,189,248 }, { 22,191,252 }, { 5,196,252 }, { 3,203,252 }, { 5,203,253 }, { 22,210,253 }, { 0,214,253 }, }" }, "bit_width": null, "source_location": { @@ -1988,7 +1606,7 @@ "static" ], "initializer": { - "source_text": "{\n 97,37,69,84,28,51,2,18,10,49,98,41,65,25,81,105,33,9,97,1,97,37,37,36,\n 81,10,98,107,3,100,3,99,58,51,4,99,58,8,73,81,10,50,98,8,73,81,4,10,50,\n 98,8,25,33,65,81,10,50,17,65,97,25,33,25,49,9,65,20,68,1,65,25,49,41,\n 11,105,13,101,76,10,50,10,50,98,11,99,10,98,11,50,99,11,50,11,99,8,57,\n 58,3,99,99,107,10,10,11,10,99,11,5,100,41,65,57,41,65,9,17,81,97,3,107,\n 9,97,1,97,33,25,9,25,41,100,41,26,82,42,98,27,83,42,98,26,51,82,8,41,\n 35,8,10,26,82,114,42,1,114,8,9,73,57,81,41,97,18,8,8,25,26,26,82,26,82,\n 26,82,41,25,33,82,26,49,73,35,90,17,81,41,65,57,41,65,25,81,90,114,20,\n 84,73,57,41,49,25,33,65,81,9,97,1,97,25,33,65,81,57,33,25,41,25,\n}" + "source_text": "{ 97,37,69,84,28,51,2,18,10,49,98,41,65,25,81,105,33,9,97,1,97,37,37,36, 81,10,98,107,3,100,3,99,58,51,4,99,58,8,73,81,10,50,98,8,73,81,4,10,50, 98,8,25,33,65,81,10,50,17,65,97,25,33,25,49,9,65,20,68,1,65,25,49,41, 11,105,13,101,76,10,50,10,50,98,11,99,10,98,11,50,99,11,50,11,99,8,57, 58,3,99,99,107,10,10,11,10,99,11,5,100,41,65,57,41,65,9,17,81,97,3,107, 9,97,1,97,33,25,9,25,41,100,41,26,82,42,98,27,83,42,98,26,51,82,8,41, 35,8,10,26,82,114,42,1,114,8,9,73,57,81,41,97,18,8,8,25,26,26,82,26,82, 26,82,41,25,33,82,26,49,73,35,90,17,81,41,65,57,41,65,25,81,90,114,20, 84,73,57,41,49,25,33,65,81,9,97,1,97,25,33,65,81,57,33,25,41,25, }" }, "bit_width": null, "source_location": { @@ -2027,7 +1645,7 @@ "static" ], "initializer": { - "source_text": "{\n 4,2,8,10,15,8,15,33,8,15,8,73,82,73,57,41,82,10,82,18,66,10,21,29,1,65,\n 27,8,27,9,65,8,10,50,97,74,66,42,10,21,57,41,29,25,14,81,73,57,26,8,8,\n 26,66,3,8,8,15,19,21,90,58,26,18,66,18,105,89,28,74,17,8,73,57,26,21,\n 8,42,41,42,8,28,22,8,8,30,7,8,8,26,66,21,7,8,8,29,7,7,21,8,8,8,59,7,8,\n 8,15,29,8,8,14,7,57,43,10,82,7,7,25,42,25,15,7,25,41,15,21,105,105,29,\n 7,57,57,26,21,105,73,97,89,28,97,7,57,58,26,82,18,57,57,74,8,30,6,8,8,\n 14,3,58,90,58,11,7,74,43,74,15,2,82,2,42,75,42,10,67,57,41,10,7,2,42,\n 74,106,15,2,35,8,8,29,7,8,8,59,35,51,8,8,15,35,30,35,8,8,30,7,8,8,60,\n 36,8,45,7,7,36,8,43,8,44,21,8,8,44,35,8,8,43,23,8,8,43,35,8,8,31,21,15,\n 20,8,8,28,18,58,89,58,26,21,89,73,89,29,20,8,8,30,7,\n}" + "source_text": "{ 4,2,8,10,15,8,15,33,8,15,8,73,82,73,57,41,82,10,82,18,66,10,21,29,1,65, 27,8,27,9,65,8,10,50,97,74,66,42,10,21,57,41,29,25,14,81,73,57,26,8,8, 26,66,3,8,8,15,19,21,90,58,26,18,66,18,105,89,28,74,17,8,73,57,26,21, 8,42,41,42,8,28,22,8,8,30,7,8,8,26,66,21,7,8,8,29,7,7,21,8,8,8,59,7,8, 8,15,29,8,8,14,7,57,43,10,82,7,7,25,42,25,15,7,25,41,15,21,105,105,29, 7,57,57,26,21,105,73,97,89,28,97,7,57,58,26,82,18,57,57,74,8,30,6,8,8, 14,3,58,90,58,11,7,74,43,74,15,2,82,2,42,75,42,10,67,57,41,10,7,2,42, 74,106,15,2,35,8,8,29,7,8,8,59,35,51,8,8,15,35,30,35,8,8,30,7,8,8,60, 36,8,45,7,7,36,8,43,8,44,21,8,8,44,35,8,8,43,23,8,8,43,35,8,8,31,21,15, 20,8,8,28,18,58,89,58,26,21,89,73,89,29,20,8,8,30,7, }" }, "bit_width": null, "source_location": { @@ -2063,47 +1681,10 @@ "declaration_locations": [] } }, - "macros": { - "INCLUDE_STB_EASY_FONT_H": { - "name": "INCLUDE_STB_EASY_FONT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 107, - "column": 1, - "source_line": "#define INCLUDE_STB_EASY_FONT_H" - } - } - }, - "includes": { - "stb/stb_easy_font.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 109, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_easy_font.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_easy_font.h", - "line": 110, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_easy_font.h": [ - "print_string", "stb_easy_font_draw_segs", "stb_easy_font_spacing", "stb_easy_font_print", @@ -2116,10 +1697,7 @@ "stb/stb_easy_font.h": [] }, "system_includes": { - "stb/stb_easy_font.h": [ - "math.h", - "stdlib.h" - ] + "stb/stb_easy_font.h": [] }, "unresolved_includes": { "stb/stb_easy_font.h": [] diff --git a/tests/parser/c/fixtures/stb/stb_herringbone_wang_tile.json b/tests/parser/c/fixtures/stb/stb_herringbone_wang_tile.json index 8b9c1e555..83daa0ad2 100644 --- a/tests/parser/c/fixtures/stb/stb_herringbone_wang_tile.json +++ b/tests/parser/c/fixtures/stb/stb_herringbone_wang_tile.json @@ -3,23 +3,69 @@ "stb/stb_herringbone_wang_tile.h": { "filename": "stb/stb_herringbone_wang_tile.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_herringbone_wang_tile.h" + ], "functions": [ { - "name": "stbhw__process_h_row", + "name": "stbhw_get_last_error", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 170, + "column": 1, + "source_line": "extern const char *stbhw_get_last_error(void);" + }, + "start": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 170, + "column": 1, + "source_line": "extern const char *stbhw_get_last_error(void);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbhw_build_tileset_from_image", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "ts", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -29,21 +75,99 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbhw__process", - "name": "stbhw__process", + "source_text": "stbhw_tileset", + "name": "stbhw_tileset", "type": { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": "stbhw__process", + "name": "stbhw_tileset", "members": [ { - "name": "ts", + "name": "is_corner", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_corner" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 212, + "column": 4, + "source_line": " int is_corner;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_color", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int num_color[6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 213, + "column": 4, + "source_line": " int num_color[6];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "short_side_len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int short_side_len" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 214, + "column": 4, + "source_line": " int short_side_len;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h_tiles", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw_tileset *ts", + "source_text": "stbhw_tile **h_tiles", "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], @@ -52,421 +176,178 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbhw_tileset", - "name": "stbhw_tileset", + "source_text": "stbhw_tile", + "name": "stbhw_tile", "type": { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": "stbhw_tileset", + "name": null, "members": [ { - "name": "is_corner", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_corner" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 212, - "column": 4, - "source_line": " int is_corner;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int num_color[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 213, - "column": 4, - "source_line": " int num_color[6]; // number of colors for each of 6 edge types or 4 corner types" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "short_side_len", + "name": "a", "type": { - "model": "CInt", + "model": "CSignedChar", "qualifiers": [], - "source_text": "int short_side_len" + "source_text": "signed char a" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 214, + "line": 201, "column": 4, - "source_line": " int short_side_len;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "h_tiles", + "name": "b", "type": { - "model": "CComposedType", + "model": "CSignedChar", "qualifiers": [], - "source_text": "stbhw_tile **h_tiles", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbhw_tile", - "name": "stbhw_tile", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "a", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char a" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "b", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char b" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "c", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char c" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "d", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char d" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "e", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char e" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "f", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char f" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 201, - "column": 4, - "source_line": " signed char a,b,c,d,e,f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char pixels[1]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 207, - "column": 4, - "source_line": " unsigned char pixels[1];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_herringbone_wang_tile.h:198:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 198, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 198, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] + "source_text": "signed char b" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 215, + "line": 201, "column": 4, - "source_line": " stbhw_tile **h_tiles;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "v_tiles", + "name": "c", "type": { - "model": "CComposedType", + "model": "CSignedChar", "qualifiers": [], - "source_text": "stbhw_tile **v_tiles", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] + "source_text": "signed char c" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 216, + "line": 201, "column": 4, - "source_line": " stbhw_tile **v_tiles;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "num_h_tiles", + "name": "d", "type": { - "model": "CInt", + "model": "CSignedChar", "qualifiers": [], - "source_text": "int num_h_tiles" + "source_text": "signed char d" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 217, + "line": 201, "column": 4, - "source_line": " int num_h_tiles, max_h_tiles;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "max_h_tiles", + "name": "e", "type": { - "model": "CInt", + "model": "CSignedChar", "qualifiers": [], - "source_text": "int max_h_tiles" + "source_text": "signed char e" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 217, + "line": 201, "column": 4, - "source_line": " int num_h_tiles, max_h_tiles;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "num_v_tiles", + "name": "f", "type": { - "model": "CInt", + "model": "CSignedChar", "qualifiers": [], - "source_text": "int num_v_tiles" + "source_text": "signed char f" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 218, + "line": 201, "column": 4, - "source_line": " int num_v_tiles, max_v_tiles;" + "source_line": " signed char a,b,c,d,e,f;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "max_v_tiles", + "name": "pixels", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int max_v_tiles" + "source_text": "unsigned char pixels[1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 218, + "line": 207, "column": 4, - "source_line": " int num_v_tiles, max_v_tiles;" + "source_line": " unsigned char pixels[1];" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": null, + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 210, + "line": 198, "column": 1, - "source_line": "struct stbhw_tileset" + "source_line": "typedef struct" } }, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 167, + "line": 198, "column": 1, - "source_line": "typedef struct stbhw_tileset stbhw_tileset;" + "source_line": "typedef struct" }, "declaration_locations": [] } @@ -477,19 +358,19 @@ "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 374, + "line": 215, "column": 4, - "source_line": " stbhw_tileset *ts;" + "source_line": " stbhw_tile **h_tiles;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "c", + "name": "v_tiles", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw_config *c", + "source_text": "stbhw_tile **v_tiles", "components": [ { "model": "CPointer", @@ -497,325 +378,12 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbhw_config", - "name": "stbhw_config", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "is_corner", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_corner" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 226, - "column": 4, - "source_line": " int is_corner; // using corner colors or edge colors?" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "short_side_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int short_side_len" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 227, - "column": 4, - "source_line": " int short_side_len; // rectangles is 2n x n, n = short_side_len" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int num_color[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 228, - "column": 4, - "source_line": " int num_color[6]; // see below diagram for meaning of the index to this;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_vary_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vary_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 231, - "column": 4, - "source_line": " int num_vary_x; // additional number of variations along x axis in the template" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_vary_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vary_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 232, - "column": 4, - "source_line": " int num_vary_y; // additional number of variations along y axis in the template" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "corner_type_color_template", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int corner_type_color_template[4][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 233, - "column": 4, - "source_line": " int corner_type_color_template[4][4];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_herringbone_wang_tile.h:224:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 224, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 224, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 375, - "column": 4, - "source_line": " stbhw_config *c;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "process_h_rect", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process_rect *process_h_rect", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbhw__process_rect", - "name": "stbhw__process_rect", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbhw__process_rect(struct stbhw__process *p, int xpos, int ypos,\n int a, int b, int c, int d, int e, int f)", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct stbhw__process" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 369, - "column": 1, - "source_line": "typedef void stbhw__process_rect(struct stbhw__process *p, int xpos, int ypos," - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 376, - "column": 4, - "source_line": " stbhw__process_rect *process_h_rect;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "process_v_rect", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process_rect *process_v_rect", - "components": [ - { - "model": "CPointer", + "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "stbhw__process_rect" + "reference": "stbhw_tile" } ] }, @@ -824,97 +392,85 @@ "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 377, + "line": 216, "column": 4, - "source_line": " stbhw__process_rect *process_v_rect;" + "source_line": " stbhw_tile **v_tiles;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "data", + "name": "num_h_tiles", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int num_h_tiles" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 378, + "line": 217, "column": 4, - "source_line": " unsigned char *data;" + "source_line": " int num_h_tiles, max_h_tiles;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "stride", + "name": "max_h_tiles", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int stride" + "source_text": "int max_h_tiles" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 379, + "line": 217, "column": 4, - "source_line": " int stride,w,h;" + "source_line": " int num_h_tiles, max_h_tiles;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "w", + "name": "num_v_tiles", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int num_v_tiles" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 379, + "line": 218, "column": 4, - "source_line": " int stride,w,h;" + "source_line": " int num_v_tiles, max_v_tiles;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "h", + "name": "max_v_tiles", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int h" + "source_text": "int max_v_tiles" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 379, + "line": 218, "column": 4, - "source_line": " int stride,w,h;" + "source_line": " int num_v_tiles, max_v_tiles;" }, "callback_policy": null, "declaration_locations": [] @@ -924,16 +480,16 @@ "is_incomplete": false, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 372, + "line": 210, "column": 1, - "source_line": "typedef struct stbhw__process" + "source_line": "struct stbhw_tileset" } }, "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 372, + "line": 167, "column": 1, - "source_line": "typedef struct stbhw__process" + "source_line": "typedef struct stbhw_tileset stbhw_tileset;" }, "declaration_locations": [] } @@ -942,7 +498,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -950,7 +506,7 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, @@ -958,272 +514,192 @@ "callback_policy": null }, { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", + "name": "pixels", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int ypos" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int ypos" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "a0", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a0" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a0" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "a1", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a1" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a1" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "b0", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b0" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b0" + "source_text": "int h" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 176, + "column": 1, + "source_line": "extern int stbhw_build_tileset_from_image(stbhw_tileset *ts," + }, + "start": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 176, + "column": 1, + "source_line": "extern int stbhw_build_tileset_from_image(stbhw_tileset *ts," + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbhw_free_tileset", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "b1", + "name": "ts", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b1" + "source_text": "stbhw_tileset *ts", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_tileset" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "variants", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" + "source_text": "stbhw_tileset *ts", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_tileset" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 382, + "line": 180, "column": 1, - "source_line": "static void stbhw__process_h_row(stbhw__process *p," + "source_line": "extern void stbhw_free_tileset(stbhw_tileset *ts);" }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 382, - "column": 1, - "source_line": "static void stbhw__process_h_row(stbhw__process *p," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 404, + "line": 180, "column": 1, - "source_line": "}" + "source_line": "extern void stbhw_free_tileset(stbhw_tileset *ts);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbhw__process_v_row", + "name": "stbhw_generate_image", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "ts", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -1231,14 +707,14 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -1246,7 +722,7 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, @@ -1254,270 +730,173 @@ "callback_policy": null }, { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a1", + "name": "weighting", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a1" + "source_text": "int **weighting", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a1" + "source_text": "int **weighting", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b0", + "name": "pixels", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b0" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b0" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b1", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b1" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b1" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "c0", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int c0" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int c0" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "c1", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int c1" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int c1" + "source_text": "int h" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 186, + "column": 1, + "source_line": "extern int stbhw_generate_image(stbhw_tileset *ts, int **weighting," + }, + "start": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 186, + "column": 1, + "source_line": "extern int stbhw_generate_image(stbhw_tileset *ts, int **weighting," + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbhw_get_template_size", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "d0", + "name": "c", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "variants", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 406, - "column": 1, - "source_line": "static void stbhw__process_v_row(stbhw__process *p," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 406, - "column": 1, - "source_line": "static void stbhw__process_v_row(stbhw__process *p," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 428, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__get_template_info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", + "model": "CComposedType", "qualifiers": [], "source_text": "stbhw_config *c", "components": [ @@ -1527,7 +906,188 @@ "source_text": "" }, { - "reference": "stbhw_config" + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbhw_config", + "name": "stbhw_config", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "is_corner", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_corner" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 226, + "column": 4, + "source_line": " int is_corner;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "short_side_len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int short_side_len" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 227, + "column": 4, + "source_line": " int short_side_len;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_color", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int num_color[6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 228, + "column": 4, + "source_line": " int num_color[6];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_vary_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_vary_x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 231, + "column": 4, + "source_line": " int num_vary_x;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_vary_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_vary_y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 232, + "column": 4, + "source_line": " int num_vary_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "corner_type_color_template", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int corner_type_color_template[4][4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 233, + "column": 4, + "source_line": " int corner_type_color_template[4][4];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 224, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 224, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] } ] }, @@ -1626,115 +1186,32 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "h_count", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_count", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *v_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *v_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 430, + "line": 241, "column": 1, - "source_line": "static void stbhw__get_template_info(stbhw_config *c, int *w, int *h, int *h_count, int *v_count)" + "source_line": "extern void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 430, - "column": 1, - "source_line": "static void stbhw__get_template_info(stbhw_config *c, int *w, int *h, int *h_count, int *v_count)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 476, + "line": 241, "column": 1, - "source_line": "}" + "source_line": "extern void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbhw__process_template", + "name": "stbhw_make_template", "result_type": { "model": "CInt", "qualifiers": [], @@ -1742,11 +1219,11 @@ }, "parameters": [ { - "name": "p", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_config *c", "components": [ { "model": "CPointer", @@ -1754,14 +1231,14 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_config" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_config *c", "components": [ { "model": "CPointer", @@ -1769,55 +1246,19 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_config" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 483, - "column": 1, - "source_line": "static int stbhw__process_template(stbhw__process *p)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 483, - "column": 1, - "source_line": "static int stbhw__process_template(stbhw__process *p)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 560, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__draw_pixel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "output", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *output", + "source_text": "unsigned char *data", "components": [ { "model": "CPointer", @@ -1834,7 +1275,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *output", + "source_text": "unsigned char *data", "components": [ { "model": "CPointer", @@ -1852,7943 +1293,283 @@ "callback_policy": null }, { - "name": "stride", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int stride" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int stride" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int h" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char c[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char c[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 568, + "line": 244, "column": 1, - "source_line": "static void stbhw__draw_pixel(unsigned char *output, int stride, int x, int y, unsigned char c[3])" + "source_line": "extern int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 568, - "column": 1, - "source_line": "static void stbhw__draw_pixel(unsigned char *output, int stride, int x, int y, unsigned char c[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 571, + "line": 244, "column": 1, - "source_line": "}" + "source_line": "extern int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" }, + "end": null, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbhw_get_last_error": { + "name": "stbhw_get_last_error", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 170, + "column": 1, + "source_line": "extern const char *stbhw_get_last_error(void);" + }, + "start": { + "filename": "stb/stb_herringbone_wang_tile.h", + "line": 170, + "column": 1, + "source_line": "extern const char *stbhw_get_last_error(void);" + }, + "end": null, + "declaration_locations": [] + }, + "stbhw_build_tileset_from_image": { + "name": "stbhw_build_tileset_from_image", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "stbhw__draw_h_tile", - "result_type": { - "model": "CVoid", + "name": "ts", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stbhw_tileset *ts", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_tileset" + } + ] }, - "parameters": [ - { - "name": "output", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbhw_tileset *ts", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbhw_tileset" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xmax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ymax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 573, - "column": 1, - "source_line": "static void stbhw__draw_h_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 573, - "column": 1, - "source_line": "static void stbhw__draw_h_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 581, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__draw_v_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xmax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ymax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 583, - "column": 1, - "source_line": "static void stbhw__draw_v_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 583, - "column": 1, - "source_line": "static void stbhw__draw_v_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 591, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__choose_tile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "parameters": [ - { - "name": "list", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile **list", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile **list", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numlist", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numlist" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numlist" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weighting", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int **weighting", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int **weighting", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 595, - "column": 1, - "source_line": "static stbhw_tile * stbhw__choose_tile(stbhw_tile **list, int numlist," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 595, - "column": 1, - "source_line": "static stbhw_tile * stbhw__choose_tile(stbhw_tile **list, int numlist," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 640, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__match", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 642, - "column": 1, - "source_line": "static int stbhw__match(int x, int y)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 642, - "column": 1, - "source_line": "static int stbhw__match(int x, int y)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 645, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__weighted", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "num_options", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 647, - "column": 1, - "source_line": "static int stbhw__weighted(int num_options, int *weights)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 647, - "column": 1, - "source_line": "static int stbhw__weighted(int num_options, int *weights)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 662, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__change_color", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "old_color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_options", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 664, - "column": 1, - "source_line": "static int stbhw__change_color(int old_color, int num_options, int *weights)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 664, - "column": 1, - "source_line": "static int stbhw__change_color(int old_color, int num_options, int *weights)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 687, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__parse_h_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 841, - "column": 1, - "source_line": "static void stbhw__parse_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 841, - "column": 1, - "source_line": "static void stbhw__parse_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 855, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__parse_v_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 857, - "column": 1, - "source_line": "static void stbhw__parse_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 857, - "column": 1, - "source_line": "static void stbhw__parse_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 871, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__set_pixel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 963, - "column": 1, - "source_line": "static void stbhw__set_pixel(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 963, - "column": 1, - "source_line": "static void stbhw__set_pixel(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 966, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__stbhw__set_pixel_whiten", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 968, - "column": 1, - "source_line": "static void stbhw__stbhw__set_pixel_whiten(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 968, - "column": 1, - "source_line": "static void stbhw__stbhw__set_pixel_whiten(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 975, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__draw_hline", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 997, - "column": 1, - "source_line": "static void stbhw__draw_hline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 997, - "column": 1, - "source_line": "static void stbhw__draw_hline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1012, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__draw_vline", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1014, - "column": 1, - "source_line": "static void stbhw__draw_vline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1014, - "column": 1, - "source_line": "static void stbhw__draw_vline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1029, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__draw_clipped_corner", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1074, - "column": 1, - "source_line": "static void stbhw__draw_clipped_corner(unsigned char *data, int stride, int xpos, int ypos, int w, int h, int x, int y)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1074, - "column": 1, - "source_line": "static void stbhw__draw_clipped_corner(unsigned char *data, int stride, int xpos, int ypos, int w, int h, int x, int y)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1090, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__edge_process_h_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1092, - "column": 1, - "source_line": "static void stbhw__edge_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1092, - "column": 1, - "source_line": "static void stbhw__edge_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1102, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__edge_process_v_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1104, - "column": 1, - "source_line": "static void stbhw__edge_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1104, - "column": 1, - "source_line": "static void stbhw__edge_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1114, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__corner_process_h_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1116, - "column": 1, - "source_line": "static void stbhw__corner_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1116, - "column": 1, - "source_line": "static void stbhw__corner_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1142, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbhw__corner_process_v_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1144, - "column": 1, - "source_line": "static void stbhw__corner_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1144, - "column": 1, - "source_line": "static void stbhw__corner_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1170, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_herringbone_wang_tile.h:198:1" - }, - { - "reference": "struct stbhw_tileset" - }, - { - "reference": "struct@stb/stb_herringbone_wang_tile.h:224:1" - }, - { - "reference": "struct stbhw__process" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "stbhw_tileset" - }, - { - "reference": "stbhw_tile" - }, - { - "reference": "stbhw_config" - }, - { - "reference": "stbhw__process_rect" - }, - { - "reference": "stbhw__process" - } - ], - "variables": [ - { - "name": "c_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static signed char c_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 345, - "column": 1, - "source_line": "static signed char c_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+6];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "v_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static signed char v_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+5]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 346, - "column": 1, - "source_line": "static signed char v_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+5];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static signed char h_color[STB_HBWANG_MAX_Y+5][STB_HBWANG_MAX_X+6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 347, - "column": 1, - "source_line": "static signed char h_color[STB_HBWANG_MAX_Y+5][STB_HBWANG_MAX_X+6];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbhw_error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbhw_error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 349, - "column": 1, - "source_line": "static const char *stbhw_error;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbhw__black", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbhw__black[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,0,0 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 978, - "column": 1, - "source_line": "static unsigned char stbhw__black[3] = { 0,0,0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbhw__color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbhw__color[7][8][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "7", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { {255,51,51} , {143,143,29}, {0,199,199}, {159,119,199}, {0,149,199} , {143, 0,143}, {255,128,0}, {64,255,0}, },\n { {235,255,30 }, {255,0,255}, {199,139,119}, {29,143, 57}, {143,0,71} , { 0,143,143}, {0,99,199}, {143,71,0}, },\n { {0,149,199} , {143, 0,143}, {255,128,0}, {64,255,0}, {255,191,0} , {51,255,153}, {0,0,143}, {199,119,159},},\n { {143,0,71} , { 0,143,143}, {0,99,199}, {143,71,0}, {255,190,153}, { 0,255,255}, {128,0,255}, {255,51,102},},\n { {255,191,0} , {51,255,153}, {0,0,143}, {199,119,159}, {255,51,51} , {143,143,29}, {0,199,199}, {159,119,199},},\n { {255,190,153}, { 0,255,255}, {128,0,255}, {255,51,102}, {235,255,30 }, {255,0,255}, {199,139,119}, {29,143, 57}, },\n\n { {40,40,40 }, { 90,90,90 }, { 150,150,150 }, { 200,200,200 },\n { 255,90,90 }, { 160,160,80}, { 50,150,150 }, { 200,50,200 } },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 984, - "column": 1, - "source_line": "static unsigned char stbhw__color[7][8][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbhw__corner_colors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char stbhw__corner_colors[4][4][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": { - "source_text": "{\n { { 255,0,0 }, { 200,200,200 }, { 100,100,200 }, { 255,200,150 }, },\n { { 0,0,255 }, { 255,255,0 }, { 100,200,100 }, { 150,255,200 }, },\n { { 255,0,255 }, { 80,80,80 }, { 200,100,100 }, { 200,150,255 }, },\n { { 0,255,255 }, { 0,255,0 }, { 200,120,200 }, { 255,200,200 }, },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1055, - "column": 1, - "source_line": "unsigned char stbhw__corner_colors[4][4][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbhw__corner_colors_to_edge_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int stbhw__corner_colors_to_edge_color[4][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": { - "source_text": "{\n \n { 0, 1, 4, 9, }, \n { 2, 3, 5, 10, }, \n { 6, 7, 8, 11, }, \n { 12, 13, 14, 15, }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1063, - "column": 1, - "source_line": "int stbhw__corner_colors_to_edge_color[4][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "INCLUDE_STB_HWANG_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 155, - "column": 1, - "source_line": "#define INCLUDE_STB_HWANG_H" - } - }, - { - "name": "STBHW_EXTERN", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 158, - "column": 1, - "source_line": "#define STBHW_EXTERN static" - } - }, - { - "name": "STBHW_EXTERN", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 161, - "column": 1, - "source_line": "#define STBHW_EXTERN extern \"C\"" - } - }, - { - "name": "STBHW_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 163, - "column": 1, - "source_line": "#define STBHW_EXTERN extern" - } - }, - { - "name": "STB_HBWANG_RAND", - "value": "(rand() >> 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 325, - "column": 1, - "source_line": "#define STB_HBWANG_RAND() (rand() >> 4)" - } - }, - { - "name": "STB_HBWANG_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 330, - "column": 1, - "source_line": "#define STB_HBWANG_ASSERT(x) assert(x)" - } - }, - { - "name": "STB_HBWANG_MAX_X", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 335, - "column": 1, - "source_line": "#define STB_HBWANG_MAX_X 100" - } - }, - { - "name": "STB_HBWANG_MAX_Y", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 339, - "column": 1, - "source_line": "#define STB_HBWANG_MAX_Y 100" - } - }, - { - "name": "stbhw__c2e", - "value": "stbhw__corner_colors_to_edge_color", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1072, - "column": 1, - "source_line": "#define stbhw__c2e stbhw__corner_colors_to_edge_color" - } - } - ], - "includes": [ - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 320, - "column": 1, - "source_line": "#include // memcpy" - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 321, - "column": 1, - "source_line": "#include // malloc" - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 324, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 329, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_HWANG_H", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 154, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_HWANG_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_HBWANG_STATIC", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 157, - "column": 1, - "source_line": "#ifdef STB_HBWANG_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 159, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 160, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 162, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 164, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 165, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 246, - "column": 1, - "source_line": "#endif//INCLUDE_STB_HWANG_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_HERRINGBONE_WANG_TILE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 317, - "column": 1, - "source_line": "#ifdef STB_HERRINGBONE_WANG_TILE_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STB_HBWANG_RAND", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 323, - "column": 1, - "source_line": "#ifndef STB_HBWANG_RAND" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 326, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HBWANG_ASSERT", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 328, - "column": 1, - "source_line": "#ifndef STB_HBWANG_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 331, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HBWANG_MAX_X", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 334, - "column": 1, - "source_line": "#ifndef STB_HBWANG_MAX_X" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 336, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HBWANG_MAX_Y", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 338, - "column": 1, - "source_line": "#ifndef STB_HBWANG_MAX_Y" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 340, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HBWANG_NO_REPITITION_REDUCTION", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 716, - "column": 7, - "source_line": " #ifndef STB_HBWANG_NO_REPITITION_REDUCTION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 738, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1221, - "column": 1, - "source_line": "#endif // STB_HBWANG_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 170, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void);" - }, - "source_text": "STBHW_EXTERN const char *stbhw_get_last_error(void)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 176, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts," - }, - "source_text": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts,\n unsigned char *pixels, int stride_in_bytes, int w, int h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 180, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts);" - }, - "source_text": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 186, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting," - }, - "source_text": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting,\n unsigned char *pixels, int stride_in_bytes, int w, int h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 241, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" - }, - "source_text": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 244, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" - }, - "source_text": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 350, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void)" - }, - "source_text": "STBHW_EXTERN const char *stbhw_get_last_error(void)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 478, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h)" - }, - "source_text": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 693, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting, unsigned char *output, int stride, int w, int h)" - }, - "source_text": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting, unsigned char *output, int stride, int w, int h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 873, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts, unsigned char *data, int stride, int w, int h)" - }, - "source_text": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts, unsigned char *data, int stride, int w, int h)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 939, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts)" - }, - "source_text": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts)" - }, - { - "name": "STBHW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1173, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes)" - }, - "source_text": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_HBWANG_RAND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 325, - "column": 1, - "source_line": "#define STB_HBWANG_RAND() (rand() >> 4)" - }, - "unit_kind": "macro", - "unit_name": "STB_HBWANG_RAND" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_HBWANG_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 330, - "column": 1, - "source_line": "#define STB_HBWANG_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STB_HBWANG_ASSERT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 170, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 176, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 180, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 186, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 241, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 244, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 350, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 478, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 693, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting, unsigned char *output, int stride, int w, int h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 873, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts, unsigned char *data, int stride, int w, int h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 939, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1173, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - } - ] - } - }, - "functions": { - "stbhw__process_h_row": { - "name": "stbhw__process_h_row", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "variants", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 382, - "column": 1, - "source_line": "static void stbhw__process_h_row(stbhw__process *p," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 382, - "column": 1, - "source_line": "static void stbhw__process_h_row(stbhw__process *p," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 404, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__process_v_row": { - "name": "stbhw__process_v_row", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "variants", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int variants" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 406, - "column": 1, - "source_line": "static void stbhw__process_v_row(stbhw__process *p," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 406, - "column": 1, - "source_line": "static void stbhw__process_v_row(stbhw__process *p," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 428, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__get_template_info": { - "name": "stbhw__get_template_info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_config *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_config" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_config *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_config" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *w", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *w", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h_count", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *h_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_count", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *v_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *v_count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 430, - "column": 1, - "source_line": "static void stbhw__get_template_info(stbhw_config *c, int *w, int *h, int *h_count, int *v_count)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 430, - "column": 1, - "source_line": "static void stbhw__get_template_info(stbhw_config *c, int *w, int *h, int *h_count, int *v_count)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 476, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__process_template": { - "name": "stbhw__process_template", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 483, - "column": 1, - "source_line": "static int stbhw__process_template(stbhw__process *p)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 483, - "column": 1, - "source_line": "static int stbhw__process_template(stbhw__process *p)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 560, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_pixel": { - "name": "stbhw__draw_pixel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char c[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char c[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 568, - "column": 1, - "source_line": "static void stbhw__draw_pixel(unsigned char *output, int stride, int x, int y, unsigned char c[3])" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 568, - "column": 1, - "source_line": "static void stbhw__draw_pixel(unsigned char *output, int stride, int x, int y, unsigned char c[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 571, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_h_tile": { - "name": "stbhw__draw_h_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xmax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ymax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 573, - "column": 1, - "source_line": "static void stbhw__draw_h_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 573, - "column": 1, - "source_line": "static void stbhw__draw_h_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 581, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_v_tile": { - "name": "stbhw__draw_v_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xmax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xmax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ymax", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ymax" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 583, - "column": 1, - "source_line": "static void stbhw__draw_v_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 583, - "column": 1, - "source_line": "static void stbhw__draw_v_tile(unsigned char *output, int stride, int xmax, int ymax, int x, int y, stbhw_tile *h, int sz)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 591, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__choose_tile": { - "name": "stbhw__choose_tile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "parameters": [ - { - "name": "list", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile **list", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw_tile **list", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw_tile" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numlist", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numlist" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numlist" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weighting", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int **weighting", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int **weighting", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 595, - "column": 1, - "source_line": "static stbhw_tile * stbhw__choose_tile(stbhw_tile **list, int numlist," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 595, - "column": 1, - "source_line": "static stbhw_tile * stbhw__choose_tile(stbhw_tile **list, int numlist," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 640, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__match": { - "name": "stbhw__match", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 642, - "column": 1, - "source_line": "static int stbhw__match(int x, int y)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 642, - "column": 1, - "source_line": "static int stbhw__match(int x, int y)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 645, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__weighted": { - "name": "stbhw__weighted", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "num_options", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 647, - "column": 1, - "source_line": "static int stbhw__weighted(int num_options, int *weights)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 647, - "column": 1, - "source_line": "static int stbhw__weighted(int num_options, int *weights)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 662, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__change_color": { - "name": "stbhw__change_color", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "old_color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_options", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_options" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *weights", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 664, - "column": 1, - "source_line": "static int stbhw__change_color(int old_color, int num_options, int *weights)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 664, - "column": 1, - "source_line": "static int stbhw__change_color(int old_color, int num_options, int *weights)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 687, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__parse_h_rect": { - "name": "stbhw__parse_h_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 841, - "column": 1, - "source_line": "static void stbhw__parse_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 841, - "column": 1, - "source_line": "static void stbhw__parse_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 855, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__parse_v_rect": { - "name": "stbhw__parse_v_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 857, - "column": 1, - "source_line": "static void stbhw__parse_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 857, - "column": 1, - "source_line": "static void stbhw__parse_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 871, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__set_pixel": { - "name": "stbhw__set_pixel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 963, - "column": 1, - "source_line": "static void stbhw__set_pixel(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 963, - "column": 1, - "source_line": "static void stbhw__set_pixel(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 966, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__stbhw__set_pixel_whiten": { - "name": "stbhw__stbhw__set_pixel_whiten", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char color[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 968, - "column": 1, - "source_line": "static void stbhw__stbhw__set_pixel_whiten(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 968, - "column": 1, - "source_line": "static void stbhw__stbhw__set_pixel_whiten(unsigned char *data, int stride, int xpos, int ypos, unsigned char color[3])" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 975, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_hline": { - "name": "stbhw__draw_hline", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 997, - "column": 1, - "source_line": "static void stbhw__draw_hline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 997, - "column": 1, - "source_line": "static void stbhw__draw_hline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1012, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_vline": { - "name": "stbhw__draw_vline", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1014, - "column": 1, - "source_line": "static void stbhw__draw_vline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1014, - "column": 1, - "source_line": "static void stbhw__draw_vline(unsigned char *data, int stride, int xpos, int ypos, int color, int len, int slot)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1029, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__draw_clipped_corner": { - "name": "stbhw__draw_clipped_corner", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1074, - "column": 1, - "source_line": "static void stbhw__draw_clipped_corner(unsigned char *data, int stride, int xpos, int ypos, int w, int h, int x, int y)" - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1074, - "column": 1, - "source_line": "static void stbhw__draw_clipped_corner(unsigned char *data, int stride, int xpos, int ypos, int w, int h, int x, int y)" - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1090, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__edge_process_h_rect": { - "name": "stbhw__edge_process_h_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1092, - "column": 1, - "source_line": "static void stbhw__edge_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "start": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1092, - "column": 1, - "source_line": "static void stbhw__edge_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1102, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbhw__edge_process_v_rect": { - "name": "stbhw__edge_process_v_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbhw__process *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbhw__process" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "d", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int d" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int d" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int e" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int e" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "f", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int f" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int f" + "source_text": "int h" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1104, + "line": 176, "column": 1, - "source_line": "static void stbhw__edge_process_v_rect(stbhw__process *p, int xpos, int ypos," + "source_line": "extern int stbhw_build_tileset_from_image(stbhw_tileset *ts," }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1104, - "column": 1, - "source_line": "static void stbhw__edge_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1114, + "line": 176, "column": 1, - "source_line": "}" + "source_line": "extern int stbhw_build_tileset_from_image(stbhw_tileset *ts," }, + "end": null, "declaration_locations": [] }, - "stbhw__corner_process_h_rect": { - "name": "stbhw__corner_process_h_rect", + "stbhw_free_tileset": { + "name": "stbhw_free_tileset", "result_type": { "model": "CVoid", "qualifiers": [], @@ -9796,11 +1577,11 @@ }, "parameters": [ { - "name": "p", + "name": "ts", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -9808,14 +1589,14 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -9823,175 +1604,50 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int e" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int f" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1116, + "line": 180, "column": 1, - "source_line": "static void stbhw__corner_process_h_rect(stbhw__process *p, int xpos, int ypos," + "source_line": "extern void stbhw_free_tileset(stbhw_tileset *ts);" }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1116, - "column": 1, - "source_line": "static void stbhw__corner_process_h_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1142, + "line": 180, "column": 1, - "source_line": "}" + "source_line": "extern void stbhw_free_tileset(stbhw_tileset *ts);" }, + "end": null, "declaration_locations": [] }, - "stbhw__corner_process_v_rect": { - "name": "stbhw__corner_process_v_rect", + "stbhw_generate_image": { + "name": "stbhw_generate_image", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "ts", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -9999,14 +1655,14 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbhw__process *p", + "source_text": "stbhw_tileset *ts", "components": [ { "model": "CPointer", @@ -10014,7 +1670,7 @@ "source_text": "" }, { - "reference": "stbhw__process" + "reference": "stbhw_tileset" } ] }, @@ -10022,698 +1678,471 @@ "callback_policy": null }, { - "name": "xpos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xpos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ypos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ypos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", + "name": "weighting", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int **weighting", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int **weighting", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "pixels", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "d", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int d" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int d" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int e" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int e" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "f", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int f" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int f" + "source_text": "int h" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1144, + "line": 186, "column": 1, - "source_line": "static void stbhw__corner_process_v_rect(stbhw__process *p, int xpos, int ypos," + "source_line": "extern int stbhw_generate_image(stbhw_tileset *ts, int **weighting," }, "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1144, - "column": 1, - "source_line": "static void stbhw__corner_process_v_rect(stbhw__process *p, int xpos, int ypos," - }, - "end": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1170, + "line": 186, "column": 1, - "source_line": "}" + "source_line": "extern int stbhw_generate_image(stbhw_tileset *ts, int **weighting," }, + "end": null, "declaration_locations": [] - } - }, - "structs": { - "stbhw_tileset": { - "reference": "struct stbhw_tileset" - }, - "stbhw__process": { - "reference": "struct stbhw__process" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "stbhw_tileset": { - "reference": "stbhw_tileset" - }, - "stbhw_tile": { - "reference": "stbhw_tile" - }, - "stbhw_config": { - "reference": "stbhw_config" - }, - "stbhw__process_rect": { - "reference": "stbhw__process_rect" }, - "stbhw__process": { - "reference": "stbhw__process" - } - }, - "variables": { - "c_color": { - "name": "c_color", - "type": { - "model": "CComposedType", + "stbhw_get_template_size": { + "name": "stbhw_get_template_size", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "static signed char c_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 345, - "column": 1, - "source_line": "static signed char c_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+6];" + "source_text": "void" }, - "callback_policy": null, - "declaration_locations": [] - }, - "v_color": { - "name": "v_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static signed char v_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+5]", - "components": [ - { - "model": "CArray", + "parameters": [ + { + "name": "c", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbhw_config *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_config" + } + ] }, - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbhw_config *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_config" + } + ] }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 346, - "column": 1, - "source_line": "static signed char v_color[STB_HBWANG_MAX_Y+6][STB_HBWANG_MAX_X+5];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "h_color": { - "name": "h_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static signed char h_color[STB_HBWANG_MAX_Y+5][STB_HBWANG_MAX_X+6]", - "components": [ - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_Y+5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int *w", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "STB_HBWANG_MAX_X+6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int *w", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 347, - "column": 1, - "source_line": "static signed char h_color[STB_HBWANG_MAX_Y+5][STB_HBWANG_MAX_X+6];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbhw_error": { - "name": "stbhw_error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbhw_error", - "components": [ - { - "model": "CPointer", + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "int *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 349, - "column": 1, - "source_line": "static const char *stbhw_error;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbhw__black": { - "name": "stbhw__black", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbhw__black[3]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ - "static" + "extern" ], - "initializer": { - "source_text": "{ 0,0,0 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 978, + "line": 241, "column": 1, - "source_line": "static unsigned char stbhw__black[3] = { 0,0,0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbhw__color": { - "name": "stbhw__color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbhw__color[7][8][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "7", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_line": "extern void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { {255,51,51} , {143,143,29}, {0,199,199}, {159,119,199}, {0,149,199} , {143, 0,143}, {255,128,0}, {64,255,0}, },\n { {235,255,30 }, {255,0,255}, {199,139,119}, {29,143, 57}, {143,0,71} , { 0,143,143}, {0,99,199}, {143,71,0}, },\n { {0,149,199} , {143, 0,143}, {255,128,0}, {64,255,0}, {255,191,0} , {51,255,153}, {0,0,143}, {199,119,159},},\n { {143,0,71} , { 0,143,143}, {0,99,199}, {143,71,0}, {255,190,153}, { 0,255,255}, {128,0,255}, {255,51,102},},\n { {255,191,0} , {51,255,153}, {0,0,143}, {199,119,159}, {255,51,51} , {143,143,29}, {0,199,199}, {159,119,199},},\n { {255,190,153}, { 0,255,255}, {128,0,255}, {255,51,102}, {235,255,30 }, {255,0,255}, {199,139,119}, {29,143, 57}, },\n\n { {40,40,40 }, { 90,90,90 }, { 150,150,150 }, { 200,200,200 },\n { 255,90,90 }, { 160,160,80}, { 50,150,150 }, { 200,50,200 } },\n}" - }, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 984, + "line": 241, "column": 1, - "source_line": "static unsigned char stbhw__color[7][8][3] =" + "source_line": "extern void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" }, - "callback_policy": null, + "end": null, "declaration_locations": [] }, - "stbhw__corner_colors": { - "name": "stbhw__corner_colors", - "type": { - "model": "CComposedType", + "stbhw_make_template": { + "name": "stbhw_make_template", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char stbhw__corner_colors[4][4][3]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbhw_config *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_config" + } + ] }, - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbhw_config *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbhw_config" + } + ] }, - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - { - "model": "CUnsignedChar", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": { - "source_text": "{\n { { 255,0,0 }, { 200,200,200 }, { 100,100,200 }, { 255,200,150 }, },\n { { 0,0,255 }, { 255,255,0 }, { 100,200,100 }, { 150,255,200 }, },\n { { 255,0,255 }, { 80,80,80 }, { 200,100,100 }, { 200,150,255 }, },\n { { 0,255,255 }, { 0,255,0 }, { 200,120,200 }, { 255,200,200 }, },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1055, - "column": 1, - "source_line": "unsigned char stbhw__corner_colors[4][4][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbhw__corner_colors_to_edge_color": { - "name": "stbhw__corner_colors_to_edge_color", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int stbhw__corner_colors_to_edge_color[4][4]", - "components": [ - { - "model": "CArray", + "source_text": "unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int w" }, - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int w" }, - { + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": { - "source_text": "{\n \n { 0, 1, 4, 9, }, \n { 2, 3, 5, 10, }, \n { 6, 7, 8, 11, }, \n { 12, 13, 14, 15, }, \n}" - }, - "bit_width": null, + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1063, + "line": 244, "column": 1, - "source_line": "int stbhw__corner_colors_to_edge_color[4][4] =" + "source_line": "extern int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "INCLUDE_STB_HWANG_H": { - "name": "INCLUDE_STB_HWANG_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 155, - "column": 1, - "source_line": "#define INCLUDE_STB_HWANG_H" - } - }, - "STBHW_EXTERN": { - "name": "STBHW_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 163, - "column": 1, - "source_line": "#define STBHW_EXTERN extern" - } - }, - "STB_HBWANG_RAND": { - "name": "STB_HBWANG_RAND", - "value": "(rand() >> 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 325, - "column": 1, - "source_line": "#define STB_HBWANG_RAND() (rand() >> 4)" - } - }, - "STB_HBWANG_ASSERT": { - "name": "STB_HBWANG_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 330, - "column": 1, - "source_line": "#define STB_HBWANG_ASSERT(x) assert(x)" - } - }, - "STB_HBWANG_MAX_X": { - "name": "STB_HBWANG_MAX_X", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 335, - "column": 1, - "source_line": "#define STB_HBWANG_MAX_X 100" - } - }, - "STB_HBWANG_MAX_Y": { - "name": "STB_HBWANG_MAX_Y", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 339, - "column": 1, - "source_line": "#define STB_HBWANG_MAX_Y 100" - } - }, - "stbhw__c2e": { - "name": "stbhw__c2e", - "value": "stbhw__corner_colors_to_edge_color", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1072, - "column": 1, - "source_line": "#define stbhw__c2e stbhw__corner_colors_to_edge_color" - } - } - }, - "includes": { - "stb/stb_herringbone_wang_tile.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 320, - "column": 1, - "source_line": "#include // memcpy" - } - }, - "stb/stb_herringbone_wang_tile.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 324, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_herringbone_wang_tile.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "start": { "filename": "stb/stb_herringbone_wang_tile.h", - "line": 329, + "line": 244, "column": 1, - "source_line": "#include " - } + "source_line": "extern int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" + }, + "end": null, + "declaration_locations": [] } }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_herringbone_wang_tile.h": [ - "stbhw__process_h_row", - "stbhw__process_v_row", - "stbhw__get_template_info", - "stbhw__process_template", - "stbhw__draw_pixel", - "stbhw__draw_h_tile", - "stbhw__draw_v_tile", - "stbhw__choose_tile", - "stbhw__match", - "stbhw__weighted", - "stbhw__change_color", - "stbhw__parse_h_rect", - "stbhw__parse_v_rect", - "stbhw__set_pixel", - "stbhw__stbhw__set_pixel_whiten", - "stbhw__draw_hline", - "stbhw__draw_vline", - "stbhw__draw_clipped_corner", - "stbhw__edge_process_h_rect", - "stbhw__edge_process_v_rect", - "stbhw__corner_process_h_rect", - "stbhw__corner_process_v_rect" + "stbhw_get_last_error", + "stbhw_build_tileset_from_image", + "stbhw_free_tileset", + "stbhw_generate_image", + "stbhw_get_template_size", + "stbhw_make_template" ] }, "enum_constants": {}, @@ -10721,11 +2150,7 @@ "stb/stb_herringbone_wang_tile.h": [] }, "system_includes": { - "stb/stb_herringbone_wang_tile.h": [ - "assert.h", - "stdlib.h", - "string.h" - ] + "stb/stb_herringbone_wang_tile.h": [] }, "unresolved_includes": { "stb/stb_herringbone_wang_tile.h": [] @@ -10733,188 +2158,5 @@ "header_source_pairs": { "stb/stb_herringbone_wang_tile.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_HBWANG_RAND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 325, - "column": 1, - "source_line": "#define STB_HBWANG_RAND() (rand() >> 4)" - }, - "unit_kind": "macro", - "unit_name": "STB_HBWANG_RAND" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_HBWANG_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 330, - "column": 1, - "source_line": "#define STB_HBWANG_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STB_HBWANG_ASSERT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 170, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 176, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 180, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 186, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 241, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 244, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 350, - "column": 1, - "source_line": "STBHW_EXTERN const char *stbhw_get_last_error(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 478, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_get_template_size(stbhw_config *c, int *w, int *h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 693, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting, unsigned char *output, int stride, int w, int h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 873, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts, unsigned char *data, int stride, int w, int h)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 939, - "column": 1, - "source_line": "STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBHW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_herringbone_wang_tile.h", - "line": 1173, - "column": 1, - "source_line": "STBHW_EXTERN int stbhw_make_template(stbhw_config *c, unsigned char *data, int w, int h, int stride_in_bytes)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBHW_EXTERN" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_hexwave.json b/tests/parser/c/fixtures/stb/stb_hexwave.json index 2bcff41a1..3ce445016 100644 --- a/tests/parser/c/fixtures/stb/stb_hexwave.json +++ b/tests/parser/c/fixtures/stb/stb_hexwave.json @@ -3,11 +3,13 @@ "stb/stb_hexwave.h": { "filename": "stb/stb_hexwave.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_hexwave.h" + ], "functions": [ { - "name": "hex_add_oversampled_bleplike", + "name": "hexwave_init", "result_type": { "model": "CVoid", "qualifiers": [], @@ -15,155 +17,41 @@ }, "parameters": [ { - "name": "output", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "time_since_transition", + "name": "width", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "int width" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "int width" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "oversample", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int oversample" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int oversample" }, "source_location": null, "callback_policy": null }, { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 315, - "column": 1, - "source_line": "static void hex_add_oversampled_bleplike(float *output, float time_since_transition, float scale, float *data)" - }, - "start": { - "filename": "stb/stb_hexwave.h", - "line": 315, - "column": 1, - "source_line": "static void hex_add_oversampled_bleplike(float *output, float time_since_transition, float scale, float *data)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 331, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "hex_blep", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", + "name": "user_buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -180,7 +68,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -196,67 +84,32 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "time_since_transition", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float time_since_transition" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float time_since_transition" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 333, + "line": 228, "column": 1, - "source_line": "static void hex_blep (float *output, float time_since_transition, float scale)" + "source_line": "extern void hexwave_init(int width, int oversample, float *user_buffer);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 333, - "column": 1, - "source_line": "static void hex_blep (float *output, float time_since_transition, float scale)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 336, + "line": 228, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_init(int width, int oversample, float *user_buffer);" }, + "end": null, "declaration_locations": [] }, { - "name": "hex_blamp", + "name": "hexwave_shutdown", "result_type": { "model": "CVoid", "qualifiers": [], @@ -264,11 +117,11 @@ }, "parameters": [ { - "name": "output", + "name": "user_buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -285,7 +138,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -301,67 +154,32 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "time_since_transition", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float time_since_transition" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float time_since_transition" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 338, + "line": 238, "column": 1, - "source_line": "static void hex_blamp(float *output, float time_since_transition, float scale)" + "source_line": "extern void hexwave_shutdown(float *user_buffer);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 338, - "column": 1, - "source_line": "static void hex_blamp(float *output, float time_since_transition, float scale)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 341, + "line": 238, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_shutdown(float *user_buffer);" }, + "end": null, "declaration_locations": [] }, { - "name": "hexwave_generate_linesegs", + "name": "hexwave_create", "result_type": { "model": "CVoid", "qualifiers": [], @@ -369,11 +187,11 @@ }, "parameters": [ { - "name": "vert", + "name": "hex", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "hexvert vert[9]", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -383,13 +201,13 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "hexvert", - "name": "hexvert", + "source_text": "HexWave", + "name": "HexWave", "type": { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": null, + "name": "HexWave", "members": [ { "name": "t", @@ -403,158 +221,36 @@ "bit_width": null, "source_location": { "filename": "stb/stb_hexwave.h", - "line": 345, + "line": 269, "column": 4, - "source_line": " float t,v,s; // time, value, slope" + "source_line": " float t, prev_dt;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "v", + "name": "prev_dt", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float v" + "source_text": "float prev_dt" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_hexwave.h", - "line": 345, + "line": 269, "column": 4, - "source_line": " float t,v,s; // time, value, slope" + "source_line": " float t, prev_dt;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "s", + "name": "current", "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 345, - "column": 4, - "source_line": " float t,v,s; // time, value, slope" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_hexwave.h:343:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 343, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 343, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "hexvert vert[9]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "hexvert" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hex", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "HexWave *hex", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "HexWave", - "name": "HexWave", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "HexWave", - "members": [ - { - "name": "t", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float t" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 269, - "column": 4, - "source_line": " float t, prev_dt;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "prev_dt", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float prev_dt" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 269, - "column": 4, - "source_line": " float t, prev_dt;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "current", - "type": { - "model": "CTypedef", + "model": "CTypedef", "qualifiers": [], "source_text": "HexWaveParameters", "name": "HexWaveParameters", @@ -578,7 +274,7 @@ "filename": "stb/stb_hexwave.h", "line": 261, "column": 4, - "source_line": " int reflect;" + "source_line": " int reflect;" }, "callback_policy": null, "declaration_locations": [] @@ -641,7 +337,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_hexwave.h:259:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_hexwave.h", @@ -711,13 +407,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float buffer[STB_HEXWAVE_MAX_BLEP_LENGTH]", + "source_text": "float buffer[64]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_HEXWAVE_MAX_BLEP_LENGTH", + "bound": "64", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -736,7 +432,7 @@ "filename": "stb/stb_hexwave.h", "line": 272, "column": 4, - "source_line": " float buffer[STB_HEXWAVE_MAX_BLEP_LENGTH];" + "source_line": " float buffer[64];" }, "callback_policy": null, "declaration_locations": [] @@ -780,106 +476,245 @@ "callback_policy": null }, { - "name": "dt", + "name": "reflect", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "peak_time", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "half_height", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float half_height" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float half_height" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "zero_wait", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float zero_wait" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float zero_wait" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 350, + "line": 241, "column": 1, - "source_line": "static void hexwave_generate_linesegs(hexvert vert[9], HexWave *hex, float dt)" + "source_line": "extern void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 350, - "column": 1, - "source_line": "static void hexwave_generate_linesegs(hexvert vert[9], HexWave *hex, float dt)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 416, + "line": 241, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, + "end": null, "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_hexwave.h:259:1" }, { - "reference": "struct HexWave" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ + "name": "hexwave_change", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "width", + "name": "hex", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int width" + "source_text": "HexWave *hex", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "HexWave" + } + ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 309, - "column": 4, - "source_line": " int width; // width of fixup in samples" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "HexWave *hex", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "HexWave" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "oversample", + "name": "reflect", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int oversample" + "source_text": "int reflect" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "peak_time", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "half_height", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float half_height" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 310, - "column": 4, - "source_line": " int oversample; // number of oversampled versions (there's actually one more to allow lerpign)" + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float half_height" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "blep", + "name": "zero_wait", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float zero_wait" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float zero_wait" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_hexwave.h", + "line": 249, + "column": 1, + "source_line": "extern void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" + }, + "start": { + "filename": "stb/stb_hexwave.h", + "line": 249, + "column": 1, + "source_line": "extern void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "hexwave_generate_samples", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *blep", + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -893,24 +728,30 @@ } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 311, - "column": 4, - "source_line": " float *blep;" + "source_location": null, + "callback_policy": null + }, + { + "name": "num_samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "blamp", + "name": "hex", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *blamp", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -918,633 +759,82 @@ "source_text": "" }, { - "model": "CFloat", + "reference": "HexWave" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "HexWave *hex", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "reference": "HexWave" } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 312, - "column": 4, - "source_line": " float *blamp;" + "source_location": null, + "callback_policy": null + }, + { + "name": "freq", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float freq" }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_hexwave.h:307:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 307, - "column": 1, - "source_line": "static struct" - } - }, - { - "reference": "struct@stb/stb_hexwave.h:343:1" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "HexWave" - }, - { - "reference": "HexWaveParameters" - }, - { - "reference": "hexvert" - } - ], - "variables": [ - { - "name": "hexblep", - "type": { - "reference": "struct@stb/stb_hexwave.h:307:1" - }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float freq" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ - "static" + "extern" ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 307, - "column": 1, - "source_line": "static struct" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_INCLUDE_STB_HEXWAVE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 214, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_HEXWAVE_H" - } - }, - { - "name": "STB_HEXWAVE_MAX_BLEP_LENGTH", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 217, - "column": 1, - "source_line": "#define STB_HEXWAVE_MAX_BLEP_LENGTH 64 // good enough for anybody" - } - }, - { - "name": "STB_HEXWAVE_DEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 221, - "column": 1, - "source_line": "#define STB_HEXWAVE_DEF static" - } - }, - { - "name": "STB_HEXWAVE_DEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 223, - "column": 1, - "source_line": "#define STB_HEXWAVE_DEF extern" - } - }, - { - "name": "hexwave_clamp", - "value": "((v) < (a) ? (a) : (v) > (b) ? (b) : (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 285, - "column": 1, - "source_line": "#define hexwave_clamp(v,a,b) ((v) < (a) ? (a) : (v) > (b) ? (b) : (v))" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 279, - "column": 1, - "source_line": "#include // malloc,free" - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 282, - "column": 1, - "source_line": "#include // memset,memcpy,memmove" - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 283, - "column": 1, - "source_line": "#include // sin,cos,fabs" - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_INCLUDE_STB_HEXWAVE_H", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 213, - "column": 1, - "source_line": "#ifndef STB_INCLUDE_STB_HEXWAVE_H" - } - }, - { - "directive": "ifndef", - "argument": "STB_HEXWAVE_MAX_BLEP_LENGTH", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 216, - "column": 1, - "source_line": "#ifndef STB_HEXWAVE_MAX_BLEP_LENGTH" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 218, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_HEXWAVE_STATIC", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 220, - "column": 1, - "source_line": "#ifdef STB_HEXWAVE_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 222, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 224, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 274, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_HEXWAVE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 276, - "column": 1, - "source_line": "#ifdef STB_HEXWAVE_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STB_HEXWAVE_NO_ALLOCATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 278, - "column": 1, - "source_line": "#ifndef STB_HEXWAVE_NO_ALLOCATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 280, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HEXWAVE_NO_ALLOCATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 548, - "column": 4, - "source_line": " #ifndef STB_HEXWAVE_NO_ALLOCATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 553, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_HEXWAVE_NO_ALLOCATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 563, - "column": 1, - "source_line": "#ifdef STB_HEXWAVE_NO_ALLOCATION" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 565, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 567, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HEXWAVE_NO_ALLOCATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 578, - "column": 7, - "source_line": " #ifndef STB_HEXWAVE_NO_ALLOCATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 581, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_HEXWAVE_NO_ALLOCATION", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 633, - "column": 4, - "source_line": " #ifndef STB_HEXWAVE_NO_ALLOCATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 636, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 638, - "column": 1, - "source_line": "#endif // STB_HEXWAVE_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 228, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer);" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 238, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer);" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 241, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 249, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", "line": 252, "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 287, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 297, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 418, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq)" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 546, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer)" - }, - "source_text": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer)" - }, - { - "name": "STB_HEXWAVE_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 557, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer)" + "source_line": "extern void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" }, - "source_text": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'hexwave_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 285, - "column": 1, - "source_line": "#define hexwave_clamp(v,a,b) ((v) < (a) ? (a) : (v) > (b) ? (b) : (v))" - }, - "unit_kind": "macro", - "unit_name": "hexwave_clamp" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 228, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 238, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 241, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 249, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_hexwave.h", "line": 252, "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 287, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 297, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" + "source_line": "extern void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 418, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 546, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 557, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" + "end": null, + "declaration_locations": [] } - ] + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] } }, "functions": { - "hex_add_oversampled_bleplike": { - "name": "hex_add_oversampled_bleplike", + "hexwave_init": { + "name": "hexwave_init", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1552,80 +842,111 @@ }, "parameters": [ { - "name": "output", + "name": "width", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int width" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int width" }, "source_location": null, "callback_policy": null }, { - "name": "time_since_transition", + "name": "oversample", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "int oversample" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "int oversample" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "user_buffer", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float scale" + "source_text": "float *user_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float scale" + "source_text": "float *user_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_hexwave.h", + "line": 228, + "column": 1, + "source_line": "extern void hexwave_init(int width, int oversample, float *user_buffer);" + }, + "start": { + "filename": "stb/stb_hexwave.h", + "line": 228, + "column": 1, + "source_line": "extern void hexwave_init(int width, int oversample, float *user_buffer);" + }, + "end": null, + "declaration_locations": [] + }, + "hexwave_shutdown": { + "name": "hexwave_shutdown", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "data", + "name": "user_buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -1642,7 +963,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "float *user_buffer", "components": [ { "model": "CPointer", @@ -1661,34 +982,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 315, + "line": 238, "column": 1, - "source_line": "static void hex_add_oversampled_bleplike(float *output, float time_since_transition, float scale, float *data)" + "source_line": "extern void hexwave_shutdown(float *user_buffer);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 315, - "column": 1, - "source_line": "static void hex_add_oversampled_bleplike(float *output, float time_since_transition, float scale, float *data)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 331, + "line": 238, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_shutdown(float *user_buffer);" }, + "end": null, "declaration_locations": [] }, - "hex_blep": { - "name": "hex_blep", + "hexwave_create": { + "name": "hexwave_create", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1696,11 +1012,11 @@ }, "parameters": [ { - "name": "output", + "name": "hex", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -1708,16 +1024,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "HexWave" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -1725,9 +1039,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "HexWave" } ] }, @@ -1735,65 +1047,90 @@ "callback_policy": null }, { - "name": "time_since_transition", + "name": "reflect", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "peak_time", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "half_height", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "float half_height" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "float half_height" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "zero_wait", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float scale" + "source_text": "float zero_wait" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float scale" + "source_text": "float zero_wait" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 333, + "line": 241, "column": 1, - "source_line": "static void hex_blep (float *output, float time_since_transition, float scale)" + "source_line": "extern void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 333, - "column": 1, - "source_line": "static void hex_blep (float *output, float time_since_transition, float scale)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 336, + "line": 241, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, + "end": null, "declaration_locations": [] }, - "hex_blamp": { - "name": "hex_blamp", + "hexwave_change": { + "name": "hexwave_change", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1801,11 +1138,11 @@ }, "parameters": [ { - "name": "output", + "name": "hex", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -1813,16 +1150,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "HexWave" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "HexWave *hex", "components": [ { "model": "CPointer", @@ -1830,9 +1165,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "HexWave" } ] }, @@ -1840,65 +1173,90 @@ "callback_policy": null }, { - "name": "time_since_transition", + "name": "reflect", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int reflect" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "peak_time", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float peak_time" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "half_height", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "float half_height" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float time_since_transition" + "source_text": "float half_height" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "zero_wait", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float scale" + "source_text": "float zero_wait" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float scale" + "source_text": "float zero_wait" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 338, + "line": 249, "column": 1, - "source_line": "static void hex_blamp(float *output, float time_since_transition, float scale)" + "source_line": "extern void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 338, - "column": 1, - "source_line": "static void hex_blamp(float *output, float time_since_transition, float scale)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 341, + "line": 249, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" }, + "end": null, "declaration_locations": [] }, - "hexwave_generate_linesegs": { - "name": "hexwave_generate_linesegs", + "hexwave_generate_samples": { + "name": "hexwave_generate_samples", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1906,11 +1264,11 @@ }, "parameters": [ { - "name": "vert", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "hexvert vert[9]", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -1918,32 +1276,47 @@ "source_text": "" }, { - "reference": "hexvert" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "hexvert vert[9]", + "source_text": "float *output", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "hexvert" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null }, + { + "name": "num_samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "source_location": null, + "callback_policy": null + }, { "name": "hex", "type": { @@ -1980,179 +1353,58 @@ "callback_policy": null }, { - "name": "dt", + "name": "freq", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float freq" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float freq" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_hexwave.h", - "line": 350, + "line": 252, "column": 1, - "source_line": "static void hexwave_generate_linesegs(hexvert vert[9], HexWave *hex, float dt)" + "source_line": "extern void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" }, "start": { "filename": "stb/stb_hexwave.h", - "line": 350, - "column": 1, - "source_line": "static void hexwave_generate_linesegs(hexvert vert[9], HexWave *hex, float dt)" - }, - "end": { - "filename": "stb/stb_hexwave.h", - "line": 416, + "line": 252, "column": 1, - "source_line": "}" + "source_line": "extern void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" }, + "end": null, "declaration_locations": [] } }, - "structs": { - "HexWave": { - "reference": "struct HexWave" - } - }, + "structs": {}, "unions": {}, "enums": {}, - "typedefs": { - "HexWave": { - "reference": "HexWave" - }, - "HexWaveParameters": { - "reference": "HexWaveParameters" - }, - "hexvert": { - "reference": "hexvert" - } - }, - "variables": { - "hexblep": { - "name": "hexblep", - "type": { - "reference": "struct@stb/stb_hexwave.h:307:1" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 307, - "column": 1, - "source_line": "static struct" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_INCLUDE_STB_HEXWAVE_H": { - "name": "STB_INCLUDE_STB_HEXWAVE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 214, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_HEXWAVE_H" - } - }, - "STB_HEXWAVE_MAX_BLEP_LENGTH": { - "name": "STB_HEXWAVE_MAX_BLEP_LENGTH", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 217, - "column": 1, - "source_line": "#define STB_HEXWAVE_MAX_BLEP_LENGTH 64 // good enough for anybody" - } - }, - "STB_HEXWAVE_DEF": { - "name": "STB_HEXWAVE_DEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 223, - "column": 1, - "source_line": "#define STB_HEXWAVE_DEF extern" - } - }, - "hexwave_clamp": { - "name": "hexwave_clamp", - "value": "((v) < (a) ? (a) : (v) > (b) ? (b) : (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 285, - "column": 1, - "source_line": "#define hexwave_clamp(v,a,b) ((v) < (a) ? (a) : (v) > (b) ? (b) : (v))" - } - } - }, - "includes": { - "stb/stb_hexwave.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 279, - "column": 1, - "source_line": "#include // malloc,free" - } - }, - "stb/stb_hexwave.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 282, - "column": 1, - "source_line": "#include // memset,memcpy,memmove" - } - }, - "stb/stb_hexwave.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_hexwave.h", - "line": 283, - "column": 1, - "source_line": "#include // sin,cos,fabs" - } - } - }, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_hexwave.h": [ - "hex_add_oversampled_bleplike", - "hex_blep", - "hex_blamp", - "hexwave_generate_linesegs" + "hexwave_init", + "hexwave_shutdown", + "hexwave_create", + "hexwave_change", + "hexwave_generate_samples" ] }, "enum_constants": {}, @@ -2160,11 +1412,7 @@ "stb/stb_hexwave.h": [] }, "system_includes": { - "stb/stb_hexwave.h": [ - "math.h", - "stdlib.h", - "string.h" - ] + "stb/stb_hexwave.h": [] }, "unresolved_includes": { "stb/stb_hexwave.h": [] @@ -2172,149 +1420,5 @@ "header_source_pairs": { "stb/stb_hexwave.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'hexwave_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 285, - "column": 1, - "source_line": "#define hexwave_clamp(v,a,b) ((v) < (a) ? (a) : (v) > (b) ? (b) : (v))" - }, - "unit_kind": "macro", - "unit_name": "hexwave_clamp" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 228, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 238, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 241, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 249, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 252, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 287, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_change(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 297, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_create(HexWave *hex, int reflect, float peak_time, float half_height, float zero_wait)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 418, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_generate_samples(float *output, int num_samples, HexWave *hex, float freq)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 546, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_shutdown(float *user_buffer)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_HEXWAVE_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_hexwave.h", - "line": 557, - "column": 1, - "source_line": "STB_HEXWAVE_DEF void hexwave_init(int width, int oversample, float *user_buffer)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_HEXWAVE_DEF" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_image.json b/tests/parser/c/fixtures/stb/stb_image.json index 9816493a8..fab18a13f 100644 --- a/tests/parser/c/fixtures/stb/stb_image.json +++ b/tests/parser/c/fixtures/stb/stb_image.json @@ -3,142 +3,229 @@ "stb/stb_image.h": { "filename": "stb/stb_image.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_image.h" + ], "functions": [ { - "name": "stbi__cpuid3", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 732, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 732, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 737, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g51:b0" - ] - }, - { - "name": "stbi__cpuid3", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 739, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 739, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 748, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g51:b1" - ] - }, - { - "name": "stbi__sse2_available", + "name": "stbi_load_from_memory", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi_uc", + "name": "stbi_uc", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "typedef unsigned char stbi_uc" + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 387, + "column": 1, + "source_line": "typedef unsigned char stbi_uc;" + }, + "declaration_locations": [] + } + ] }, - "parameters": [], - "storage": [ - "static" + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 754, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 754, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 758, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g52:b0" - ] - }, - { - "name": "stbi__sse2_available", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -146,44 +233,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 765, + "line": 1429, "column": 1, - "source_line": "static int stbi__sse2_available(void)" + "source_line": "extern stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 765, + "line": 1429, "column": 1, - "source_line": "static int stbi__sse2_available(void)" + "source_line": "extern stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 771, + "line": 1434, "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b1", - "g53:b0" + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 423, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels);" + } ] }, { - "name": "stbi__refill_buffer", + "name": "stbi_load_from_callbacks", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "s", + "name": "clbk", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -193,8 +291,8 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbi__context", - "name": "stbi__context", + "source_text": "stbi_io_callbacks", + "name": "stbi_io_callbacks", "type": { "model": "CStruct", "qualifiers": [], @@ -202,121 +300,90 @@ "name": null, "members": [ { - "name": "img_x", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__uint32", - "name": "stbi__uint32", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "typedef unsigned int stbi__uint32" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 644, - "column": 1, - "source_line": "typedef unsigned int stbi__uint32;" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 807, - "column": 4, - "source_line": " stbi__uint32 img_x, img_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_y", - "type": { - "reference": "stbi__uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 807, - "column": 4, - "source_line": " stbi__uint32 img_x, img_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_n" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 808, - "column": 4, - "source_line": " int img_n, img_out_n;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_out_n" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 808, - "column": 4, - "source_line": " int img_n, img_out_n;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "io", + "name": "read", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_io_callbacks io", - "name": "stbi_io_callbacks", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int (*read) (void *user,char *data,int size)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "int", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 810, + "line": 413, "column": 4, - "source_line": " stbi_io_callbacks io;" + "source_line": " int (*read) (void *user,char *data,int size);" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "io_user_data", + "name": "skip", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *io_user_data", + "source_text": "void (*skip) (void *user,int n)", "components": [ { "model": "CPointer", @@ -324,9 +391,40 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFunctionType", "qualifiers": [], - "source_text": "void" + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, @@ -335,182 +433,19 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 811, + "line": 414, "column": 4, - "source_line": " void *io_user_data;" + "source_line": " void (*skip) (void *user,int n);" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "read_from_callbacks", + "name": "eof", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int read_from_callbacks" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 813, - "column": 4, - "source_line": " int read_from_callbacks;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buflen", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int buflen" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 814, - "column": 4, - "source_line": " int buflen;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buffer_start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc buffer_start[128]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "128", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi_uc", - "name": "stbi_uc", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "typedef unsigned char stbi_uc" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 387, - "column": 1, - "source_line": "typedef unsigned char stbi_uc;" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 815, - "column": 4, - "source_line": " stbi_uc buffer_start[128];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "callback_already_read", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int callback_already_read" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 816, - "column": 4, - "source_line": " int callback_already_read;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *img_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 818, - "column": 4, - "source_line": " stbi_uc *img_buffer, *img_buffer_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_buffer_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *img_buffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 818, - "column": 4, - "source_line": " stbi_uc *img_buffer, *img_buffer_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_buffer_original", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *img_buffer_original", + "source_text": "int (*eof) (void *user)", "components": [ { "model": "CPointer", @@ -518,36 +453,35 @@ "source_text": "" }, { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 819, - "column": 4, - "source_line": " stbi_uc *img_buffer_original, *img_buffer_original_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_buffer_original_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *img_buffer_original_end", - "components": [ - { - "model": "CPointer", + "model": "CFunctionType", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" + "source_text": "int", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" } ] }, @@ -556,26 +490,26 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 819, + "line": 415, "column": 4, - "source_line": " stbi_uc *img_buffer_original, *img_buffer_original_end;" + "source_line": " int (*eof) (void *user);" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_image.h:805:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_image.h", - "line": 805, + "line": 411, "column": 1, "source_line": "typedef struct" } }, "source_location": { "filename": "stb/stb_image.h", - "line": 805, + "line": 411, "column": 1, "source_line": "typedef struct" }, @@ -586,7 +520,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -594,62 +528,19 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1597, - "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1597, - "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1612, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 823, - "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s);" - } - ] - }, - { - "name": "stbi__start_mem", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -657,14 +548,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -672,7 +565,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -680,11 +575,11 @@ "callback_policy": null }, { - "name": "buffer", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *buffer", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -692,14 +587,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *buffer", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -707,7 +604,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -715,62 +614,11 @@ "callback_policy": null }, { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 826, - "column": 1, - "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 826, - "column": 1, - "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 833, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__start_callbacks", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -778,14 +626,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -793,7 +643,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -801,11 +653,11 @@ "callback_policy": null }, { - "name": "c", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_io_callbacks *c", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -813,20 +665,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_io_callbacks", - "name": "stbi_io_callbacks", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_io_callbacks *c", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -834,7 +682,9 @@ "source_text": "" }, { - "reference": "stbi_io_callbacks" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -842,47 +692,23 @@ "callback_policy": null }, { - "name": "user", + "name": "req_comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int req_comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -890,38 +716,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 836, + "line": 1436, "column": 1, - "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 836, + "line": 1436, "column": 1, - "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 846, + "line": 1441, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 424, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] }, { - "name": "stbi__stdio_read", + "name": "stbi_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "user", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -929,16 +772,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -946,9 +791,11 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -956,11 +803,11 @@ "callback_policy": null }, { - "name": "data", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *data", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -968,16 +815,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *data", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -985,9 +832,9 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, @@ -995,62 +842,50 @@ "callback_policy": null }, { - "name": "size", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int size" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int size" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 850, - "column": 1, - "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 850, - "column": 1, - "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 853, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__stdio_skip", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "user", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1058,16 +893,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1075,9 +910,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -1085,23 +920,23 @@ "callback_policy": null }, { - "name": "n", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -1109,38 +944,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 855, + "line": 1366, "column": 1, - "source_line": "static void stbi__stdio_skip(void *user, int n)" + "source_line": "extern stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 855, + "line": 1366, "column": 1, - "source_line": "static void stbi__stdio_skip(void *user, int n)" + "source_line": "extern stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 863, + "line": 1374, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 427, + "column": 1, + "source_line": "extern stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] }, { - "name": "stbi__stdio_eof", + "name": "stbi_load_from_file", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "user", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -1148,16 +1000,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -1165,57 +1015,19 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 865, - "column": 1, - "source_line": "static int stbi__stdio_eof(void *user)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 865, - "column": 1, - "source_line": "static int stbi__stdio_eof(void *user)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 868, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__start_file", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -1223,14 +1035,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -1238,7 +1052,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -1246,11 +1062,11 @@ "callback_policy": null }, { - "name": "f", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *f", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -1258,20 +1074,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *f", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -1279,55 +1091,21 @@ "source_text": "" }, { - "reference": "FILE" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 877, - "column": 1, - "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 877, - "column": 1, - "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 880, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__rewind", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1335,14 +1113,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1350,16 +1130,33 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -1367,38 +1164,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 886, + "line": 1376, "column": 1, - "source_line": "static void stbi__rewind(stbi__context *s)" + "source_line": "extern stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 886, + "line": 1376, "column": 1, - "source_line": "static void stbi__rewind(stbi__context *s)" + "source_line": "extern stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 893, + "line": 1387, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 428, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] }, { - "name": "stbi__jpeg_test", + "name": "stbi_load_gif_from_memory", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -1406,14 +1220,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -1421,74 +1235,34 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4042, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4042, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4054, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 909, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s);" - } - ] - }, - { - "name": "stbi__jpeg_load", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", + "name": "len", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int len" }, - { - "model": "CVoid", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "delays", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int **delays", "components": [ { "model": "CPointer", @@ -1496,14 +1270,21 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int **delays", "components": [ { "model": "CPointer", @@ -1511,7 +1292,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -1597,11 +1385,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *z", "components": [ { "model": "CPointer", @@ -1618,7 +1406,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *z", "components": [ { "model": "CPointer", @@ -1636,26 +1424,11 @@ "callback_policy": null }, { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1663,97 +1436,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__result_info", - "name": "stbi__result_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "bits_per_channel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits_per_channel" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 903, - "column": 4, - "source_line": " int bits_per_channel;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_channels" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 904, - "column": 4, - "source_line": " int num_channels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "channel_order", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel_order" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 905, - "column": 4, - "source_line": " int channel_order;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:901:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 901, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 901, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -1761,16 +1453,33 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -1778,60 +1487,85 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4028, + "line": 1444, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 4028, + "line": 1444, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 4040, + "line": 1456, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 910, + "line": 433, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" } ] }, { - "name": "stbi__jpeg_info", + "name": "stbi_load_16_from_memory", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi_us", + "name": "stbi_us", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "typedef unsigned short stbi_us" + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 388, + "column": 1, + "source_line": "typedef unsigned short stbi_us;" + }, + "declaration_locations": [] + } + ] + }, + "parameters": [ + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -1839,13 +1573,28 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, { "name": "x", "type": { @@ -1925,11 +1674,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "channels_in_file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *channels_in_file", "components": [ { "model": "CPointer", @@ -1946,7 +1695,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *channels_in_file", "components": [ { "model": "CPointer", @@ -1962,10 +1711,25 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "desired_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -1973,45 +1737,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4068, + "line": 1415, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" }, "start": { "filename": "stb/stb_image.h", - "line": 4068, + "line": 1415, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" }, "end": { "filename": "stb/stb_image.h", - "line": 4078, + "line": 1420, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 911, + "line": 445, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__png_test", + "name": "stbi_load_16_from_callbacks", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_us" + } + ] }, "parameters": [ { - "name": "s", + "name": "clbk", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -2019,14 +1793,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -2034,74 +1808,19 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5302, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5302, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5308, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 915, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s);" - } - ] - }, - { - "name": "stbi__png_load", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ + }, { - "name": "s", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -2109,14 +1828,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -2124,7 +1845,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -2210,11 +1933,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "channels_in_file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *channels_in_file", "components": [ { "model": "CPointer", @@ -2231,7 +1954,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *channels_in_file", "components": [ { "model": "CPointer", @@ -2249,58 +1972,23 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "desired_channels", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int desired_channels" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] + "source_text": "int desired_channels" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -2308,45 +1996,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5295, + "line": 1422, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" }, "start": { "filename": "stb/stb_image.h", - "line": 5295, + "line": 1422, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" }, "end": { "filename": "stb/stb_image.h", - "line": 5300, + "line": 1427, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 916, + "line": 446, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__png_info", + "name": "stbi_load_16", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_us" + } + ] }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -2354,14 +2052,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -2369,7 +2071,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -2492,10 +2198,25 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -2503,45 +2224,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5322, + "line": 1402, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5322, + "line": 1402, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 5327, + "line": 1410, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 917, + "line": 449, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__png_is16", + "name": "stbi_load_from_file_16", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_us" + } + ] }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -2549,14 +2280,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -2564,62 +2295,58 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5329, - "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5329, - "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5340, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 918, - "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s);" - } - ] - }, - { - "name": "stbi__bmp_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -2627,14 +2354,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -2642,54 +2371,98 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "channels_in_file", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "desired_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5361, + "line": 450, "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s)" + "source_line": "extern stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" }, "start": { "filename": "stb/stb_image.h", - "line": 5361, + "line": 450, "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s)" + "source_line": "extern stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" }, - "end": { - "filename": "stb/stb_image.h", - "line": 5366, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 922, - "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s);" - } - ] + "end": null, + "declaration_locations": [] }, { - "name": "stbi__bmp_load", + "name": "stbi_loadf_from_memory", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "float", "components": [ { "model": "CPointer", @@ -2697,19 +2470,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" } ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -2717,14 +2490,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -2732,13 +2505,28 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, { "name": "x", "type": { @@ -2870,45 +2658,10 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -2916,45 +2669,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5531, + "line": 1478, "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5531, + "line": 1478, "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 5732, + "line": 1483, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 923, - "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "line": 458, + "column": 4, + "source_line": " extern float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__bmp_info", + "name": "stbi_loadf_from_callbacks", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "parameters": [ { - "name": "s", + "name": "clbk", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -2962,14 +2727,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -2977,7 +2742,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, @@ -2985,11 +2750,11 @@ "callback_policy": null }, { - "name": "x", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -2997,16 +2762,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -3014,9 +2779,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, @@ -3024,11 +2789,11 @@ "callback_policy": null }, { - "name": "y", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -3045,7 +2810,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -3063,11 +2828,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -3084,7 +2849,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -3100,56 +2865,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7335, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7335, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7355, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 924, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] - }, - { - "name": "stbi__tga_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -3157,14 +2879,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -3172,16 +2896,33 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -3189,37 +2930,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5820, + "line": 1485, "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s)" + "source_line": "extern float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5820, + "line": 1485, "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s)" + "source_line": "extern float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 5849, + "line": 1490, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 928, - "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s);" + "line": 459, + "column": 4, + "source_line": " extern float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__tga_load", + "name": "stbi_loadf", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "float", "components": [ { "model": "CPointer", @@ -3227,19 +2968,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" } ] }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -3247,14 +2988,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -3262,7 +3007,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -3400,45 +3149,10 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -3446,45 +3160,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5871, + "line": 1493, "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5871, + "line": 1493, "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 6074, + "line": 1501, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 929, - "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "line": 462, + "column": 4, + "source_line": " extern float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__tga_info", + "name": "stbi_loadf_from_file", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -3492,14 +3218,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -3507,7 +3233,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, @@ -3630,10 +3356,25 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -3641,77 +3382,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5755, + "line": 1503, "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5755, + "line": 1503, "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 5818, + "line": 1508, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 930, - "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp);" + "line": 463, + "column": 4, + "source_line": " extern float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, { - "name": "stbi__psd_test", + "name": "stbi_hdr_to_ldr_gamma", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "gamma", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "float gamma" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "float gamma" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -3719,271 +3440,173 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6081, + "line": 1581, "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s)" + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" }, "start": { "filename": "stb/stb_image.h", - "line": 6081, + "line": 1581, "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s)" + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" }, "end": { "filename": "stb/stb_image.h", - "line": 6086, - "column": 1, - "source_line": "}" + "line": 1581, + "column": 79, + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 934, - "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s);" + "line": 468, + "column": 4, + "source_line": " extern void stbi_hdr_to_ldr_gamma(float gamma);" } ] }, { - "name": "stbi__psd_load", + "name": "stbi_hdr_to_ldr_scale", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", + "name": "scale", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "float scale" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "float scale" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 79, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "declaration_locations": [ { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_image.h", + "line": 469, + "column": 4, + "source_line": " extern void stbi_hdr_to_ldr_scale(float scale);" + } + ] + }, + { + "name": "stbi_ldr_to_hdr_gamma", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "req_comp", + "name": "gamma", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "float gamma" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "float gamma" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 75, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "declaration_locations": [ { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_image.h", + "line": 473, + "column": 4, + "source_line": " extern void stbi_ldr_to_hdr_gamma(float gamma);" + } + ] + }, + { + "name": "stbi_ldr_to_hdr_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "bpc", + "name": "scale", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int bpc" + "source_text": "float scale" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int bpc" + "source_text": "float scale" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -3991,33 +3614,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6126, + "line": 1576, "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" }, "start": { "filename": "stb/stb_image.h", - "line": 6126, + "line": 1576, "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" }, "end": { "filename": "stb/stb_image.h", - "line": 6325, - "column": 1, - "source_line": "}" + "line": 1576, + "column": 75, + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 935, - "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc);" + "line": 474, + "column": 4, + "source_line": " extern void stbi_ldr_to_hdr_scale(float scale);" } ] }, { - "name": "stbi__psd_info", + "name": "stbi_is_hdr_from_callbacks", "result_type": { "model": "CInt", "qualifiers": [], @@ -4025,11 +3648,11 @@ }, "parameters": [ { - "name": "s", + "name": "clbk", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -4037,14 +3660,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -4052,7 +3675,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, @@ -4060,11 +3683,11 @@ "callback_policy": null }, { - "name": "x", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -4072,16 +3695,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -4089,21 +3712,64 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1559, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1559, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1570, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "y", + "filename": "stb/stb_image.h", + "line": 478, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user);" + } + ] + }, + { + "name": "stbi_is_hdr_from_memory", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4111,16 +3777,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4128,9 +3792,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -4138,47 +3800,23 @@ "callback_policy": null }, { - "name": "comp", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4186,33 +3824,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7359, + "line": 1517, "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" }, "start": { "filename": "stb/stb_image.h", - "line": 7359, + "line": 1517, "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" }, "end": { "filename": "stb/stb_image.h", - "line": 7392, + "line": 1528, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 936, + "line": 479, "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len);" } ] }, { - "name": "stbi__psd_is16", + "name": "stbi_is_hdr", "result_type": { "model": "CInt", "qualifiers": [], @@ -4220,11 +3858,11 @@ }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -4232,14 +3870,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -4247,7 +3889,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -4256,7 +3902,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4264,33 +3910,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7394, + "line": 1531, "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s)" + "source_line": "extern int stbi_is_hdr (char const *filename)" }, "start": { "filename": "stb/stb_image.h", - "line": 7394, + "line": 1531, "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s)" + "source_line": "extern int stbi_is_hdr (char const *filename)" }, "end": { "filename": "stb/stb_image.h", - "line": 7419, + "line": 1540, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 937, + "line": 481, "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s);" + "source_line": "extern int stbi_is_hdr (char const *filename);" } ] }, { - "name": "stbi__hdr_test", + "name": "stbi_is_hdr_from_file", "result_type": { "model": "CInt", "qualifiers": [], @@ -4298,11 +3944,11 @@ }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context * s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -4310,14 +3956,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context * s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -4325,7 +3971,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, @@ -4334,7 +3980,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4342,37 +3988,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7097, + "line": 1542, "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context* s)" + "source_line": "extern int stbi_is_hdr_from_file(FILE *f)" }, "start": { "filename": "stb/stb_image.h", - "line": 7097, + "line": 1542, "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context* s)" + "source_line": "extern int stbi_is_hdr_from_file(FILE *f)" }, "end": { "filename": "stb/stb_image.h", - "line": 7106, + "line": 1556, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 941, + "line": 482, "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context *s);" + "source_line": "extern int stbi_is_hdr_from_file(FILE *f);" } ] }, { - "name": "stbi__hdr_load", + "name": "stbi_failure_reason", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float", + "source_text": "const char", "components": [ { "model": "CPointer", @@ -4380,19 +4026,63 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 972, + "column": 1, + "source_line": "extern const char *stbi_failure_reason(void)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 972, + "column": 1, + "source_line": "extern const char *stbi_failure_reason(void)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 975, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 488, + "column": 1, + "source_line": "extern const char *stbi_failure_reason (void);" + } + ] + }, + { + "name": "stbi_image_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, "parameters": [ { - "name": "s", + "name": "retval_from_stbi_load", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *retval_from_stbi_load", "components": [ { "model": "CPointer", @@ -4400,14 +4090,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *retval_from_stbi_load", "components": [ { "model": "CPointer", @@ -4415,19 +4107,64 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1101, + "column": 1, + "source_line": "extern void stbi_image_free(void *retval_from_stbi_load)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1101, + "column": 1, + "source_line": "extern void stbi_image_free(void *retval_from_stbi_load)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1104, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "x", + "filename": "stb/stb_image.h", + "line": 491, + "column": 1, + "source_line": "extern void stbi_image_free (void *retval_from_stbi_load);" + } + ] + }, + { + "name": "stbi_info_from_memory", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4435,16 +4172,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4452,9 +4187,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -4462,11 +4195,26 @@ "callback_policy": null }, { - "name": "y", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -4483,7 +4231,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -4501,11 +4249,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -4522,7 +4270,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -4540,26 +4288,11 @@ "callback_policy": null }, { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -4567,14 +4300,16 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -4582,7 +4317,9 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -4591,7 +4328,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4599,33 +4336,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7158, + "line": 7734, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7158, + "line": 7734, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7287, + "line": 7739, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 942, + "line": 494, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp);" } ] }, { - "name": "stbi__hdr_info", + "name": "stbi_info_from_callbacks", "result_type": { "model": "CInt", "qualifiers": [], @@ -4633,11 +4370,11 @@ }, "parameters": [ { - "name": "s", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -4645,14 +4382,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -4660,7 +4397,46 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -4786,7 +4562,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4794,33 +4570,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7289, + "line": 7741, "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7289, + "line": 7741, "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7331, + "line": 7746, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 943, + "line": 495, "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp);" } ] }, { - "name": "stbi__pic_test", + "name": "stbi_is_16_bit_from_memory", "result_type": { "model": "CInt", "qualifiers": [], @@ -4828,11 +4604,11 @@ }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4840,14 +4616,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -4855,16 +4631,31 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -4872,57 +4663,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6541, + "line": 7748, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s)" + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" }, "start": { "filename": "stb/stb_image.h", - "line": 6541, + "line": 7748, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s)" + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" }, "end": { "filename": "stb/stb_image.h", - "line": 6546, + "line": 7753, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 947, + "line": 496, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s);" + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len);" } ] }, { - "name": "stbi__pic_load", + "name": "stbi_is_16_bit_from_callbacks", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -4930,14 +4709,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -4945,7 +4724,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, @@ -4953,11 +4732,11 @@ "callback_policy": null }, { - "name": "px", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *px", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -4965,16 +4744,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *px", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -4982,21 +4761,64 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7755, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7755, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7760, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "py", + "filename": "stb/stb_image.h", + "line": 497, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user);" + } + ] + }, + { + "name": "stbi_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *py", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -5004,16 +4826,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *py", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -5021,9 +4845,11 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -5031,11 +4857,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -5052,7 +4878,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -5070,26 +4896,50 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "ri", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -5097,14 +4947,16 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -5112,7 +4964,9 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -5121,7 +4975,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -5129,33 +4983,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6500, + "line": 7691, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_info(char const *filename, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 6500, + "line": 7691, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_info(char const *filename, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 6539, + "line": 7699, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 948, + "line": 500, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_info (char const *filename, int *x, int *y, int *comp);" } ] }, { - "name": "stbi__pic_info", + "name": "stbi_info_from_file", "result_type": { "model": "CInt", "qualifiers": [], @@ -5163,11 +5017,11 @@ }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -5175,14 +5029,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -5190,7 +5044,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, @@ -5316,7 +5170,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -5324,33 +5178,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7423, + "line": 7701, "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7423, + "line": 7701, "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7478, + "line": 7710, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 949, + "line": 501, "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern int stbi_info_from_file (FILE *f, int *x, int *y, int *comp);" } ] }, { - "name": "stbi__gif_test", + "name": "stbi_is_16_bit", "result_type": { "model": "CInt", "qualifiers": [], @@ -5358,11 +5212,11 @@ }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -5370,14 +5224,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -5385,7 +5243,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -5394,7 +5256,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -5402,57 +5264,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6590, + "line": 7712, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s)" + "source_line": "extern int stbi_is_16_bit(char const *filename)" }, "start": { "filename": "stb/stb_image.h", - "line": 6590, + "line": 7712, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s)" + "source_line": "extern int stbi_is_16_bit(char const *filename)" }, "end": { "filename": "stb/stb_image.h", - "line": 6595, + "line": 7720, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 953, + "line": 502, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s);" + "source_line": "extern int stbi_is_16_bit (char const *filename);" } ] }, { - "name": "stbi__gif_load", + "name": "stbi_is_16_bit_from_file", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -5460,14 +5310,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -5475,183 +5325,306 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7722, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7722, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7731, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "x", + "filename": "stb/stb_image.h", + "line": 503, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f);" + } + ] + }, + { + "name": "stbi_set_unpremultiply_on_load", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_unpremultiply", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4996, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4996, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4999, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "y", + "filename": "stb/stb_image.h", + "line": 511, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply);" + } + ] + }, + { + "name": "stbi_convert_iphone_png_to_rgb", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_convert", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_convert" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_convert" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5001, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5001, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5004, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "comp", + "filename": "stb/stb_image.h", + "line": 515, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert);" + } + ] + }, + { + "name": "stbi_set_flip_vertically_on_load", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_flip", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_flip" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_flip" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1116, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1116, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1119, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "req_comp", + "filename": "stb/stb_image.h", + "line": 518, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip);" + } + ] + }, + { + "name": "stbi_set_unpremultiply_on_load_thread", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_unpremultiply", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int flag_true_if_should_unpremultiply" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int flag_true_if_should_unpremultiply" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5013, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5013, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5017, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "ri", + "filename": "stb/stb_image.h", + "line": 523, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply);" + } + ] + }, + { + "name": "stbi_convert_iphone_png_to_rgb_thread", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_convert", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] + "source_text": "int flag_true_if_should_convert" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] + "source_text": "int flag_true_if_should_convert" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -5659,37 +5632,95 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7048, + "line": 5019, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" }, "start": { "filename": "stb/stb_image.h", - "line": 7048, + "line": 5019, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" }, "end": { "filename": "stb/stb_image.h", - "line": 7075, + "line": 5023, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 954, + "line": 524, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert);" } ] }, { - "name": "stbi__load_gif_main", + "name": "stbi_set_flip_vertically_on_load_thread", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_flip", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flag_true_if_should_flip" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flag_true_if_should_flip" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1126, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1126, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 525, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip);" + } + ] + }, + { + "name": "stbi_zlib_decode_malloc_guesssize", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "char", "components": [ { "model": "CPointer", @@ -5697,19 +5728,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -5717,14 +5748,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -5732,7 +5767,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -5740,17 +5779,42 @@ "callback_policy": null }, { - "name": "delays", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "initial_size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int initial_size" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int initial_size" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "int *outlen", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -5766,13 +5830,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "int *outlen", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -5787,52 +5846,68 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4520, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4520, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4534, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 529, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen);" + } + ] + }, + { + "name": "stbi_zlib_decode_malloc_guesssize_headerflag", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ { - "name": "y", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -5840,16 +5915,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -5857,9 +5934,11 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -5867,50 +5946,41 @@ "callback_policy": null }, { - "name": "z", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "comp", + "name": "initial_size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int initial_size" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int initial_size" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -5927,7 +5997,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -5945,23 +6015,23 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "parse_header", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int parse_header" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int parse_header" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -5969,80 +6039,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6963, + "line": 4541, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" }, "start": { "filename": "stb/stb_image.h", - "line": 6963, + "line": 4541, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" }, "end": { "filename": "stb/stb_image.h", - "line": 7046, + "line": 4555, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 955, + "line": 530, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header);" } ] }, { - "name": "stbi__gif_info", + "name": "stbi_zlib_decode_malloc", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", + "source_text": "char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "char" + } + ] + }, + "parameters": [ { - "name": "x", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -6050,16 +6097,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -6067,9 +6116,11 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -6077,50 +6128,26 @@ "callback_policy": null }, { - "name": "y", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "comp", + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -6137,7 +6164,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -6156,7 +6183,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -6164,33 +6191,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7077, + "line": 4536, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" }, "start": { "filename": "stb/stb_image.h", - "line": 7077, + "line": 4536, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" }, "end": { "filename": "stb/stb_image.h", - "line": 7080, + "line": 4539, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 956, + "line": 531, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen);" } ] }, { - "name": "stbi__pnm_test", + "name": "stbi_zlib_decode_buffer", "result_type": { "model": "CInt", "qualifiers": [], @@ -6198,11 +6225,11 @@ }, "parameters": [ { - "name": "s", + "name": "obuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -6210,14 +6237,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -6225,16 +6254,91 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "olen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ibuffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *ibuffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *ibuffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "ilen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -6242,37 +6346,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7494, + "line": 4557, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s)" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" }, "start": { "filename": "stb/stb_image.h", - "line": 7494, + "line": 4557, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s)" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" }, "end": { "filename": "stb/stb_image.h", - "line": 7504, + "line": 4566, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 960, + "line": 532, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s);" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);" } ] }, { - "name": "stbi__pnm_load", + "name": "stbi_zlib_decode_noheader_malloc", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "char", "components": [ { "model": "CPointer", @@ -6280,19 +6384,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -6300,14 +6404,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -6315,7 +6423,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -6323,50 +6435,26 @@ "callback_policy": null }, { - "name": "x", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -6383,7 +6471,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -6399,13 +6487,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4568, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4568, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4582, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "comp", + "filename": "stb/stb_image.h", + "line": 534, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen);" + } + ] + }, + { + "name": "stbi_zlib_decode_noheader_buffer", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "obuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -6413,16 +6544,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -6430,9 +6561,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, @@ -6440,26 +6571,26 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "olen", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "source_location": null, "callback_policy": null }, { - "name": "ri", + "name": "ibuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "const char *ibuffer", "components": [ { "model": "CPointer", @@ -6467,14 +6598,18 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "const char *ibuffer", "components": [ { "model": "CPointer", @@ -6482,16 +6617,35 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "ilen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -6499,41 +6653,76 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7506, + "line": 4584, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" }, "start": { "filename": "stb/stb_image.h", - "line": 7506, + "line": 4584, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" }, "end": { "filename": "stb/stb_image.h", - "line": 7541, + "line": 4593, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 961, + "line": 535, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);" } ] }, { - "name": "stbi__pnm_info", + "name": "stbi__sse2_available", "result_type": { "model": "CInt", "qualifiers": [], "source_text": "int" }, - "parameters": [ - { - "name": "s", + "parameters": [], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 765, + "column": 1, + "source_line": "static int stbi__sse2_available(void)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 765, + "column": 1, + "source_line": "static int stbi__sse2_available(void)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 771, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "stbi__refill_buffer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], @@ -6545,7 +6734,372 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__context", + "name": "stbi__context", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "img_x", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__uint32", + "name": "stbi__uint32", + "type": { + "reference": "uint32_t" + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 650, + "column": 1, + "source_line": "typedef uint32_t stbi__uint32;" + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 807, + "column": 4, + "source_line": " stbi__uint32 img_x, img_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_y", + "type": { + "reference": "stbi__uint32" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 807, + "column": 4, + "source_line": " stbi__uint32 img_x, img_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 808, + "column": 4, + "source_line": " int img_n, img_out_n;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_out_n" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 808, + "column": 4, + "source_line": " int img_n, img_out_n;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "io", + "type": { + "reference": "stbi_io_callbacks" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 810, + "column": 4, + "source_line": " stbi_io_callbacks io;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "io_user_data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *io_user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 811, + "column": 4, + "source_line": " void *io_user_data;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "read_from_callbacks", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int read_from_callbacks" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 813, + "column": 4, + "source_line": " int read_from_callbacks;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "buflen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buflen" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 814, + "column": 4, + "source_line": " int buflen;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "buffer_start", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc buffer_start[128]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "128", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 815, + "column": 4, + "source_line": " stbi_uc buffer_start[128];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "callback_already_read", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int callback_already_read" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 816, + "column": 4, + "source_line": " int callback_already_read;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *img_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 818, + "column": 4, + "source_line": " stbi_uc *img_buffer, *img_buffer_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_buffer_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *img_buffer_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 818, + "column": 4, + "source_line": " stbi_uc *img_buffer, *img_buffer_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_buffer_original", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *img_buffer_original", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 819, + "column": 4, + "source_line": " stbi_uc *img_buffer_original, *img_buffer_original_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_buffer_original_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *img_buffer_original_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 819, + "column": 4, + "source_line": " stbi_uc *img_buffer_original, *img_buffer_original_end;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 805, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 805, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] } ] }, @@ -6566,13 +7120,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1597, + "column": 1, + "source_line": "static void stbi__refill_buffer(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1597, + "column": 1, + "source_line": "static void stbi__refill_buffer(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1612, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "x", + "filename": "stb/stb_image.h", + "line": 823, + "column": 1, + "source_line": "static void stbi__refill_buffer(stbi__context *s);" + } + ] + }, + { + "name": "stbi__start_mem", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -6580,16 +7177,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -6597,9 +7192,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, @@ -6607,11 +7200,11 @@ "callback_policy": null }, { - "name": "y", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -6619,16 +7212,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -6636,9 +7227,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -6646,40 +7235,16 @@ "callback_policy": null }, { - "name": "comp", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null @@ -6694,37 +7259,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7581, + "line": 826, "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" }, "start": { "filename": "stb/stb_image.h", - "line": 7581, + "line": 826, "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" }, "end": { "filename": "stb/stb_image.h", - "line": 7622, + "line": 833, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 962, - "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] + "declaration_locations": [] }, { - "name": "stbi__pnm_is16", + "name": "stbi__start_callbacks", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -6761,75 +7319,77 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7624, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7624, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7629, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 963, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s);" - } - ] - }, - { - "name": "stbi__malloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", + "name": "c", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "stbi_io_callbacks *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - { - "model": "CVoid", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ + "source_text": "stbi_io_callbacks *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "size", + "name": "user", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "size_t size", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null @@ -6844,26 +7404,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 985, + "line": 836, "column": 1, - "source_line": "static void *stbi__malloc(size_t size)" + "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" }, "start": { "filename": "stb/stb_image.h", - "line": 985, + "line": 836, "column": 1, - "source_line": "static void *stbi__malloc(size_t size)" + "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" }, "end": { "filename": "stb/stb_image.h", - "line": 988, + "line": 846, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__addsizes_valid", + "name": "stbi__stdio_read", "result_type": { "model": "CInt", "qualifiers": [], @@ -6871,31 +7431,94 @@ }, "parameters": [ { - "name": "a", + "name": "user", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "size", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int size" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int size" }, "source_location": null, "callback_policy": null @@ -6910,58 +7533,82 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1002, + "line": 850, "column": 1, - "source_line": "static int stbi__addsizes_valid(int a, int b)" + "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" }, "start": { "filename": "stb/stb_image.h", - "line": 1002, + "line": 850, "column": 1, - "source_line": "static int stbi__addsizes_valid(int a, int b)" + "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" }, "end": { "filename": "stb/stb_image.h", - "line": 1010, + "line": 853, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__mul2sizes_valid", + "name": "stbi__stdio_skip", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "user", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -6976,26 +7623,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1014, + "line": 855, "column": 1, - "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + "source_line": "static void stbi__stdio_skip(void *user, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 1014, + "line": 855, "column": 1, - "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + "source_line": "static void stbi__stdio_skip(void *user, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 1020, + "line": 863, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__mad2sizes_valid", + "name": "stbi__stdio_eof", "result_type": { "model": "CInt", "qualifiers": [], @@ -7003,46 +7650,40 @@ }, "parameters": [ { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "add", + "name": "user", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null @@ -7057,88 +7698,98 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1024, + "line": 865, "column": 1, - "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" + "source_line": "static int stbi__stdio_eof(void *user)" }, "start": { "filename": "stb/stb_image.h", - "line": 1024, + "line": 865, "column": 1, - "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" + "source_line": "static int stbi__stdio_eof(void *user)" }, "end": { "filename": "stb/stb_image.h", - "line": 1027, + "line": 868, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__mad3sizes_valid", + "name": "stbi__start_file", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", + "name": "f", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, "source_location": null, "callback_policy": null @@ -7153,103 +7804,63 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1031, + "line": 877, "column": 1, - "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" }, "start": { "filename": "stb/stb_image.h", - "line": 1031, + "line": 877, "column": 1, - "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" }, "end": { "filename": "stb/stb_image.h", - "line": 1035, + "line": 880, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__mad4sizes_valid", + "name": "stbi__rewind", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "add", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -7264,85 +7875,63 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1039, + "line": 886, "column": 1, - "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" + "source_line": "static void stbi__rewind(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1039, + "line": 886, "column": 1, - "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" + "source_line": "static void stbi__rewind(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1043, + "line": 893, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stbi__malloc_mad2", + "name": "stbi__jpeg_test", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "add", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -7357,26 +7946,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1048, + "line": 4042, "column": 1, - "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + "source_line": "static int stbi__jpeg_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1048, + "line": 4042, "column": 1, - "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + "source_line": "static int stbi__jpeg_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1052, + "line": 4054, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 909, + "column": 1, + "source_line": "static int stbi__jpeg_test(stbi__context *s);" + } + ] }, { - "name": "stbi__malloc_mad3", + "name": "stbi__jpeg_load", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -7396,61 +7992,286 @@ }, "parameters": [ { - "name": "a", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int add" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int add" + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__result_info", + "name": "stbi__result_info", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "bits_per_channel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits_per_channel" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 903, + "column": 4, + "source_line": " int bits_per_channel;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_channels" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 904, + "column": 4, + "source_line": " int num_channels;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "channel_order", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel_order" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 905, + "column": 4, + "source_line": " int channel_order;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 901, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 901, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "source_location": null, "callback_policy": null @@ -7465,305 +8286,119 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1055, + "line": 4028, "column": 1, - "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1055, + "line": 4028, "column": 1, - "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1059, + "line": 4040, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 910, + "column": 1, + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__malloc_mad4", + "name": "stbi__jpeg_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "a", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "add", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1062, - "column": 1, - "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1062, - "column": 1, - "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1066, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__addints_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1070, - "column": 1, - "source_line": "static int stbi__addints_valid(int a, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1070, - "column": 1, - "source_line": "static int stbi__addints_valid(int a, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1075, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__mul2shorts_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1078, - "column": 1, - "source_line": "static int stbi__mul2shorts_valid(int a, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1078, - "column": 1, - "source_line": "static int stbi__mul2shorts_valid(int a, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__ldr_to_hdr", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "data", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *data", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -7771,14 +8406,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *data", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -7786,54 +8423,50 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, { "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -7848,55 +8481,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1858, + "line": 4068, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1858, + "line": 4068, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1879, + "line": 4078, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 1107, + "line": 911, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp);" + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp);" } ] }, { - "name": "stbi__hdr_to_ldr", + "name": "stbi__png_test", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -7904,16 +8527,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -7921,59 +8542,12 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -7985,33 +8559,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1884, + "line": 5302, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + "source_line": "static int stbi__png_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1884, + "line": 5302, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + "source_line": "static int stbi__png_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1909, + "line": 5308, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 1111, + "line": 915, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp);" + "source_line": "static int stbi__png_test(stbi__context *s);" } ] }, { - "name": "stbi__load_main", + "name": "stbi__png_load", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -8231,21 +8805,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "bpc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bpc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bpc" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -8257,48 +8816,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1137, + "line": 5295, "column": 1, - "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1137, + "line": 5295, "column": 1, - "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1188, + "line": 5300, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 916, + "column": 1, + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__convert_16_to_8", + "name": "stbi__png_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "orig", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *orig", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8306,29 +8862,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__uint16", - "name": "stbi__uint16", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "typedef unsigned short stbi__uint16" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 642, - "column": 1, - "source_line": "typedef unsigned short stbi__uint16;" - }, - "declaration_locations": [] + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *orig", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8336,7 +8877,7 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "reference": "stbi__context" } ] }, @@ -8344,102 +8885,50 @@ "callback_policy": null }, { - "name": "w", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1190, - "column": 1, - "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1190, - "column": 1, - "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1204, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__convert_8_to_16", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "parameters": [ - { - "name": "orig", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *orig", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -8447,14 +8936,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *orig", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -8462,7 +8953,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -8470,46 +8963,40 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channels", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -8524,38 +9011,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1206, + "line": 5322, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1206, + "line": 5322, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1220, + "line": 5327, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 917, + "column": 1, + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__vertical_flip", + "name": "stbi__png_is16", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "image", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8563,16 +9057,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8580,59 +9072,12 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bytes_per_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -8644,38 +9089,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1222, + "line": 5329, "column": 1, - "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + "source_line": "static int stbi__png_is16(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1222, + "line": 5329, "column": 1, - "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + "source_line": "static int stbi__png_is16(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1244, + "line": 5340, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 918, + "column": 1, + "source_line": "static int stbi__png_is16(stbi__context *s);" + } + ] }, { - "name": "stbi__vertical_flip_slices", + "name": "stbi__bmp_test", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "image", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8683,16 +9135,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -8700,74 +9150,12 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bytes_per_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -8779,30 +9167,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1247, + "line": 5361, "column": 1, - "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + "source_line": "static int stbi__bmp_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1247, + "line": 5361, "column": 1, - "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + "source_line": "static int stbi__bmp_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1257, + "line": 5366, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 922, + "column": 1, + "source_line": "static int stbi__bmp_test(stbi__context *s);" + } + ] }, { - "name": "stbi__load_and_postprocess_8bit", + "name": "stbi__bmp_load", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "void", "components": [ { "model": "CPointer", @@ -8810,9 +9205,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "void" } ] }, @@ -8983,6 +9378,41 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -8994,40 +9424,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1260, + "line": 5531, "column": 1, - "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1260, + "line": 5531, "column": 1, - "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1284, + "line": 5732, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 923, + "column": 1, + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__load_and_postprocess_16bit", + "name": "stbi__bmp_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int" }, "parameters": [ { @@ -9181,21 +9608,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -9207,38 +9619,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1286, + "line": 7335, "column": 1, - "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1286, + "line": 7335, "column": 1, - "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1311, + "line": 7355, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 924, + "column": 1, + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__float_postprocess", + "name": "stbi__tga_test", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "result", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *result", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -9246,16 +9665,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *result", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -9263,48 +9680,97 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5820, + "column": 1, + "source_line": "static int stbi__tga_test(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5820, + "column": 1, + "source_line": "static int stbi__tga_test(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5849, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 928, + "column": 1, + "source_line": "static int stbi__tga_test(stbi__context *s);" + } + ] + }, + { + "name": "stbi__tga_load", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CInt", + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int" + "source_text": "" + }, + { + "reference": "stbi__context" } ] }, @@ -9312,11 +9778,11 @@ "callback_policy": null }, { - "name": "y", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -9333,7 +9799,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -9351,11 +9817,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -9372,7 +9838,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -9390,78 +9856,11 @@ "callback_policy": null }, { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1314, - "column": 1, - "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1314, - "column": 1, - "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1320, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__fopen", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "FILE", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "filename", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *filename", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -9469,18 +9868,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *filename", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -9488,11 +9885,9 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -9500,11 +9895,26 @@ "callback_policy": null }, { - "name": "mode", + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -9512,18 +9922,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -9531,11 +9937,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbi__result_info" } ] }, @@ -9552,42 +9954,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1337, + "line": 5871, "column": 1, - "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1337, + "line": 5871, "column": 1, - "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1363, + "line": 6074, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 929, + "column": 1, + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__loadf_main", + "name": "stbi__tga_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int" }, "parameters": [ { @@ -9741,21 +10138,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -9767,30 +10149,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1460, + "line": 5755, "column": 1, - "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1460, + "line": 5755, "column": 1, - "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1476, + "line": 5818, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 930, + "column": 1, + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__skip", + "name": "stbi__psd_test", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -9827,21 +10216,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -9853,30 +10227,49 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1644, + "line": 6081, "column": 1, - "source_line": "static void stbi__skip(stbi__context *s, int n)" + "source_line": "static int stbi__psd_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1644, + "line": 6081, "column": 1, - "source_line": "static void stbi__skip(stbi__context *s, int n)" + "source_line": "static int stbi__psd_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1660, + "line": 6086, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 934, + "column": 1, + "source_line": "static int stbi__psd_test(stbi__context *s);" + } + ] }, { - "name": "stbi__getn", + "name": "stbi__psd_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -9915,11 +10308,11 @@ "callback_policy": null }, { - "name": "buffer", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *buffer", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -9927,14 +10320,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *buffer", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -9942,7 +10337,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -9950,62 +10347,50 @@ "callback_policy": null }, { - "name": "n", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1666, - "column": 1, - "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1666, - "column": 1, - "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1688, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__get16be", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -10013,14 +10398,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -10028,53 +10415,36 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1694, - "column": 1, - "source_line": "static int stbi__get16be(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1694, - "column": 1, - "source_line": "static int stbi__get16be(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1698, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__get32be", - "result_type": { - "reference": "stbi__uint32" - }, - "parameters": [ + }, { - "name": "s", + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -10082,14 +10452,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -10097,12 +10467,27 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "bpc", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -10114,26 +10499,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1704, + "line": 6126, "column": 1, - "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "start": { "filename": "stb/stb_image.h", - "line": 1704, + "line": 6126, "column": 1, - "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "end": { "filename": "stb/stb_image.h", - "line": 1708, + "line": 6325, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 935, + "column": 1, + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc);" + } + ] }, { - "name": "stbi__get16le", + "name": "stbi__psd_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -10174,6 +10566,123 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -10185,28 +10694,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1714, + "line": 7359, "column": 1, - "source_line": "static int stbi__get16le(stbi__context *s)" + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1714, + "line": 7359, "column": 1, - "source_line": "static int stbi__get16le(stbi__context *s)" + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1718, + "line": 7392, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 936, + "column": 1, + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__get32le", + "name": "stbi__psd_is16", "result_type": { - "reference": "stbi__uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { @@ -10254,71 +10772,70 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1722, + "line": 7394, "column": 1, - "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + "source_line": "static int stbi__psd_is16(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1722, + "line": 7394, "column": 1, - "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + "source_line": "static int stbi__psd_is16(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1727, + "line": 7419, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 937, + "column": 1, + "source_line": "static int stbi__psd_is16(stbi__context *s);" + } + ] }, { - "name": "stbi__compute_y", + "name": "stbi__hdr_test", "result_type": { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "r", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int r" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -10333,30 +10850,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1746, + "line": 7097, "column": 1, - "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + "source_line": "static int stbi__hdr_test(stbi__context* s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1746, + "line": 7097, "column": 1, - "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + "source_line": "static int stbi__hdr_test(stbi__context* s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1749, + "line": 7106, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 941, + "column": 1, + "source_line": "static int stbi__hdr_test(stbi__context *s);" + } + ] }, { - "name": "stbi__convert_format", + "name": "stbi__hdr_load", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "float", "components": [ { "model": "CPointer", @@ -10364,19 +10888,19 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "float" } ] }, "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -10384,16 +10908,51 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -10401,9 +10960,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "int" } ] }, @@ -10411,61 +10970,129 @@ "callback_policy": null }, { - "name": "img_n", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "req_comp", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "req_comp", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int req_comp" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "ri", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "source_location": null, "callback_policy": null @@ -10480,127 +11107,119 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1755, + "line": 7158, "column": 1, - "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1755, + "line": 7158, "column": 1, - "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1797, + "line": 7287, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 942, + "column": 1, + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__compute_y_16", + "name": "stbi__hdr_info", "result_type": { - "reference": "stbi__uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "r", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int r" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int r" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "g", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int g" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int g" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1803, - "column": 1, - "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1803, - "column": 1, - "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1806, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__convert_format16", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "parameters": [ + }, { - "name": "data", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *data", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -10608,14 +11227,16 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *data", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -10623,7 +11244,9 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -10631,61 +11254,40 @@ "callback_policy": null }, { - "name": "img_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int x" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", + "name": "comp", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -10700,26 +11302,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1812, + "line": 7289, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1812, + "line": 7289, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1854, + "line": 7331, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 943, + "column": 1, + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__build_huffman", + "name": "stbi__pic_test", "result_type": { "model": "CInt", "qualifiers": [], @@ -10727,274 +11336,11 @@ }, "parameters": [ { - "name": "h", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__huffman", - "name": "stbi__huffman", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "fast", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc fast[1 << FAST_BITS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "1 << FAST_BITS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1940, - "column": 4, - "source_line": " stbi_uc fast[1 << FAST_BITS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "code", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 code[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1942, - "column": 4, - "source_line": " stbi__uint16 code[256];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "values", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc values[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1943, - "column": 4, - "source_line": " stbi_uc values[256];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "size", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc size[257]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "257", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1944, - "column": 4, - "source_line": " stbi_uc size[257];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "maxcode", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned int maxcode[18]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "18", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1945, - "column": 4, - "source_line": " unsigned int maxcode[18];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delta", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int delta[17]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "17", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1946, - "column": 4, - "source_line": " int delta[17]; // old 'firstsymbol' - old 'firstcode'" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:1938:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1938, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1938, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *count", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -11002,16 +11348,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *count", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -11019,9 +11363,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, @@ -11038,38 +11380,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2003, + "line": 6541, "column": 1, - "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + "source_line": "static int stbi__pic_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 2003, + "line": 6541, "column": 1, - "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + "source_line": "static int stbi__pic_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 2046, + "line": 6546, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 947, + "column": 1, + "source_line": "static int stbi__pic_test(stbi__context *s);" + } + ] }, { - "name": "stbi__build_fast_ac", + "name": "stbi__pic_load", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "fast_ac", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__int16 *fast_ac", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -11077,29 +11438,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__int16", - "name": "stbi__int16", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "typedef signed short stbi__int16" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 643, - "column": 1, - "source_line": "typedef signed short stbi__int16;" - }, - "declaration_locations": [] + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__int16 *fast_ac", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -11107,7 +11453,7 @@ "source_text": "" }, { - "reference": "stbi__int16" + "reference": "stbi__context" } ] }, @@ -11115,11 +11461,11 @@ "callback_policy": null }, { - "name": "h", + "name": "px", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *h", + "source_text": "int *px", "components": [ { "model": "CPointer", @@ -11127,14 +11473,16 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *h", + "source_text": "int *px", "components": [ { "model": "CPointer", @@ -11142,7 +11490,137 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "py", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *py", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *py", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" } ] }, @@ -11159,38 +11637,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2050, + "line": 6500, "column": 1, - "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 2050, + "line": 6500, "column": 1, - "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 2073, + "line": 6539, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 948, + "column": 1, + "source_line": "static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__grow_buffer_unsafe", + "name": "stbi__pic_info", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "j", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -11198,11492 +11683,17 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__jpeg", - "name": "stbi__jpeg", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1951, - "column": 4, - "source_line": " stbi__context *s;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "huff_dc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman huff_dc[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__huffman" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1952, - "column": 4, - "source_line": " stbi__huffman huff_dc[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "huff_ac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman huff_ac[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__huffman" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1953, - "column": 4, - "source_line": " stbi__huffman huff_ac[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dequant", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 dequant[4][64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1954, - "column": 4, - "source_line": " stbi__uint16 dequant[4][64];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fast_ac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__int16 fast_ac[4][1 << FAST_BITS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "1 << FAST_BITS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__int16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1955, - "column": 4, - "source_line": " stbi__int16 fast_ac[4][1 << FAST_BITS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_h_max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_h_max" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1958, - "column": 4, - "source_line": " int img_h_max, img_v_max;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_v_max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_v_max" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1958, - "column": 4, - "source_line": " int img_h_max, img_v_max;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_mcu_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_mcu_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1959, - "column": 4, - "source_line": " int img_mcu_x, img_mcu_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_mcu_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_mcu_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1959, - "column": 4, - "source_line": " int img_mcu_x, img_mcu_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_mcu_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_mcu_w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1960, - "column": 4, - "source_line": " int img_mcu_w, img_mcu_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_mcu_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_mcu_h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1960, - "column": 4, - "source_line": " int img_mcu_w, img_mcu_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "img_comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct img_comp[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1965, - "column": 7, - "source_line": " int id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1966, - "column": 7, - "source_line": " int h,v;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "v", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1966, - "column": 7, - "source_line": " int h,v;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tq", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tq" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1967, - "column": 7, - "source_line": " int tq;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hd", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hd" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1968, - "column": 7, - "source_line": " int hd,ha;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ha" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1968, - "column": 7, - "source_line": " int hd,ha;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dc_pred", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dc_pred" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1969, - "column": 7, - "source_line": " int dc_pred;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1971, - "column": 7, - "source_line": " int x,y,w2,h2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1971, - "column": 7, - "source_line": " int x,y,w2,h2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "w2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w2" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1971, - "column": 7, - "source_line": " int x,y,w2,h2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h2" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1971, - "column": 7, - "source_line": " int x,y,w2,h2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi_uc", - "name": "stbi_uc", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1972, - "column": 7, - "source_line": " stbi_uc *data;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "raw_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *raw_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1973, - "column": 7, - "source_line": " void *raw_data, *raw_coeff;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "raw_coeff", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *raw_coeff", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1973, - "column": 7, - "source_line": " void *raw_data, *raw_coeff;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "linebuf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *linebuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi_uc", - "name": "stbi_uc", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1974, - "column": 7, - "source_line": " stbi_uc *linebuf;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "coeff", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *coeff", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1975, - "column": 7, - "source_line": " short *coeff; // progressive only" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "coeff_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coeff_w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1976, - "column": 7, - "source_line": " int coeff_w, coeff_h; // number of 8x8 coefficient blocks" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "coeff_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coeff_h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1976, - "column": 7, - "source_line": " int coeff_w, coeff_h; // number of 8x8 coefficient blocks" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:1963:4", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1963, - "column": 4, - "source_line": " struct" - } - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1963, - "column": 4, - "source_line": " struct" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "code_buffer", - "type": { - "reference": "stbi__uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1979, - "column": 4, - "source_line": " stbi__uint32 code_buffer; // jpeg entropy-coded buffer" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "code_bits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int code_bits" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1980, - "column": 4, - "source_line": " int code_bits; // number of valid bits" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "marker", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char marker" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1981, - "column": 4, - "source_line": " unsigned char marker; // marker seen while filling entropy buffer" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "nomore", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int nomore" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1982, - "column": 4, - "source_line": " int nomore; // flag if we saw a marker so must stop" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "progressive", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int progressive" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1984, - "column": 4, - "source_line": " int progressive;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "spec_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spec_start" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1985, - "column": 4, - "source_line": " int spec_start;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "spec_end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spec_end" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1986, - "column": 4, - "source_line": " int spec_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "succ_high", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int succ_high" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1987, - "column": 4, - "source_line": " int succ_high;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "succ_low", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int succ_low" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1988, - "column": 4, - "source_line": " int succ_low;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "eob_run", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int eob_run" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1989, - "column": 4, - "source_line": " int eob_run;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "jfif", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int jfif" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1990, - "column": 4, - "source_line": " int jfif;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "app14_color_transform", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int app14_color_transform" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1991, - "column": 4, - "source_line": " int app14_color_transform; // Adobe APP14 tag" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "rgb", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1992, - "column": 4, - "source_line": " int rgb;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scan_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan_n" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1994, - "column": 4, - "source_line": " int scan_n, order[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "order", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int order[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1994, - "column": 4, - "source_line": " int scan_n, order[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "restart_interval", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int restart_interval" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1995, - "column": 4, - "source_line": " int restart_interval, todo;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "todo", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int todo" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1995, - "column": 4, - "source_line": " int restart_interval, todo;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "idct_block_kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64])", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_stride" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1998, - "column": 4, - "source_line": " void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]);" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "YCbCr_to_RGB_kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "void", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1999, - "column": 4, - "source_line": " void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step);" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "resample_row_hv_2_kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "stbi_uc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 2000, - "column": 4, - "source_line": " stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs);" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:1949:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1949, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1949, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2075, - "column": 1, - "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2075, - "column": 1, - "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2091, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_decode_block", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hdc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dequant", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2210, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2210, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2263, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_decode_block_prog_dc", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hdc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2265, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2265, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2291, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_decode_block_prog_ac", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__huffman *hac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fac", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2295, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2295, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2413, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__idct_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2467, - "column": 1, - "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2467, - "column": 1, - "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2524, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__idct_simd", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2530, - "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2530, - "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2703, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__get_marker", - "result_type": { - "reference": "stbi_uc" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2919, - "column": 1, - "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2919, - "column": 1, - "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2928, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_reset", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2936, - "column": 1, - "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2936, - "column": 1, - "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2947, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_entropy_coded_data", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2949, - "column": 1, - "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2949, - "column": 1, - "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3071, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_dequantize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dequant", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3073, - "column": 1, - "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3073, - "column": 1, - "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3078, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_finish", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3080, - "column": 1, - "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3080, - "column": 1, - "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3097, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__process_marker", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "m", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int m" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int m" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3099, - "column": 1, - "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3099, - "column": 1, - "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3200, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__process_scan_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3203, - "column": 1, - "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3203, - "column": 1, - "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3240, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__free_jpeg_components", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ncomp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "why", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int why" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int why" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3242, - "column": 1, - "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3242, - "column": 1, - "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3262, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__process_frame_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scan", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3264, - "column": 1, - "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3264, - "column": 1, - "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3354, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__decode_jpeg_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scan", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3365, - "column": 1, - "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3365, - "column": 1, - "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3387, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__skip_jpeg_junk_at_end", - "result_type": { - "reference": "stbi_uc" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3389, - "column": 1, - "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3389, - "column": 1, - "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3409, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__decode_jpeg_image", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3412, - "column": 1, - "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3412, - "column": 1, - "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3447, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "resample_row_1", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3456, - "column": 1, - "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3456, - "column": 1, - "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3463, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__resample_row_v_2", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3465, - "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3465, - "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3473, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__resample_row_h_2", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3475, - "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3475, - "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3501, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__resample_row_hv_2", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3505, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3505, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3527, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__resample_row_hv_2_simd", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3530, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3530, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3643, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__resample_row_generic", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_near", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_far", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3646, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3646, - "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3655, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__YCbCr_to_RGB_row", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pcb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pcr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *pcr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "step", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3660, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3660, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3683, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__YCbCr_to_RGB_simd", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pcb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *pcb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *pcb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pcr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *pcr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc const *pcr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "step", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3686, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3686, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3817, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__setup_jpeg", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3821, - "column": 1, - "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3821, - "column": 1, - "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3840, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__cleanup_jpeg", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3843, - "column": 1, - "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3843, - "column": 1, - "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3846, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__blinn_8x8", - "result_type": { - "reference": "stbi_uc" - }, - "parameters": [ - { - "name": "x", - "type": { - "reference": "stbi_uc" - }, - "declared_type": { - "reference": "stbi_uc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbi_uc" - }, - "declared_type": { - "reference": "stbi_uc" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3859, - "column": 1, - "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3859, - "column": 1, - "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3863, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "load_jpeg_image", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *out_x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *out_x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *out_y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *out_y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3865, - "column": 1, - "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3865, - "column": 1, - "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4026, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__jpeg_info_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4056, - "column": 1, - "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4056, - "column": 1, - "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4066, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__zbuild_huffman", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zhuffman *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__zhuffman", - "name": "stbi__zhuffman", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "fast", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 fast[1 << STBI__ZFAST_BITS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "1 << STBI__ZFAST_BITS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4099, - "column": 4, - "source_line": " stbi__uint16 fast[1 << STBI__ZFAST_BITS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "firstcode", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 firstcode[16]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4100, - "column": 4, - "source_line": " stbi__uint16 firstcode[16];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "maxcode", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int maxcode[17]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "17", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4101, - "column": 4, - "source_line": " int maxcode[17];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "firstsymbol", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 firstsymbol[16]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4102, - "column": 4, - "source_line": " stbi__uint16 firstsymbol[16];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "size", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc size[STBI__ZNSYMS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBI__ZNSYMS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4103, - "column": 4, - "source_line": " stbi_uc size[STBI__ZNSYMS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "value", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 value[STBI__ZNSYMS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBI__ZNSYMS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4104, - "column": 4, - "source_line": " stbi__uint16 value[STBI__ZNSYMS];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:4097:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4097, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4097, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zhuffman *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zhuffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sizelist", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *sizelist", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *sizelist", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4124, - "column": 1, - "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4124, - "column": 1, - "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4169, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__fill_bits", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__zbuf", - "name": "stbi__zbuf", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "zbuffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *zbuffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4179, - "column": 4, - "source_line": " stbi_uc *zbuffer, *zbuffer_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "zbuffer_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *zbuffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4179, - "column": 4, - "source_line": " stbi_uc *zbuffer, *zbuffer_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_bits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_bits" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4180, - "column": 4, - "source_line": " int num_bits;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hit_zeof_once", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hit_zeof_once" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4181, - "column": 4, - "source_line": " int hit_zeof_once;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "code_buffer", - "type": { - "reference": "stbi__uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4182, - "column": 4, - "source_line": " stbi__uint32 code_buffer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "zout", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *zout", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4184, - "column": 4, - "source_line": " char *zout;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "zout_start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *zout_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4185, - "column": 4, - "source_line": " char *zout_start;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "zout_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *zout_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4186, - "column": 4, - "source_line": " char *zout_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "z_expandable", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z_expandable" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4187, - "column": 4, - "source_line": " int z_expandable;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "z_length", - "type": { - "reference": "stbi__zhuffman" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4189, - "column": 4, - "source_line": " stbi__zhuffman z_length, z_distance;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "z_distance", - "type": { - "reference": "stbi__zhuffman" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4189, - "column": 4, - "source_line": " stbi__zhuffman z_length, z_distance;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:4177:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4177, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4177, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4202, - "column": 1, - "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4202, - "column": 1, - "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4212, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__zhuffman_decode_slowpath", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zhuffman *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zhuffman" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zhuffman *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zhuffman" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4224, - "column": 1, - "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4224, - "column": 1, - "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4241, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__zexpand", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "zout", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *zout", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *zout", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4273, - "column": 1, - "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4273, - "column": 1, - "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4293, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_huffman_block", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4309, - "column": 1, - "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4309, - "column": 1, - "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4357, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__compute_huffman_codes", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4359, - "column": 1, - "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4359, - "column": 1, - "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4407, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_uncompressed_block", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4409, - "column": 1, - "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4409, - "column": 1, - "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4436, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_zlib_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4438, - "column": 1, - "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4438, - "column": 1, - "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4450, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_zlib", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "parse_header", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int parse_header" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int parse_header" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4481, - "column": 1, - "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4481, - "column": 1, - "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4508, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__do_zlib", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "obuf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *obuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *obuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "olen", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int olen" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int olen" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "exp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int exp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int exp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "parse_header", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int parse_header" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int parse_header" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4510, - "column": 1, - "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4510, - "column": 1, - "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4518, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__get_chunk_header", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__pngchunk", - "name": "stbi__pngchunk", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "length", - "type": { - "reference": "stbi__uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4609, - "column": 4, - "source_line": " stbi__uint32 length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "type", - "type": { - "reference": "stbi__uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4610, - "column": 4, - "source_line": " stbi__uint32 type;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:4607:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4607, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4607, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4613, - "column": 1, - "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4613, - "column": 1, - "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4619, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__check_png_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4621, - "column": 1, - "source_line": "static int stbi__check_png_header(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4621, - "column": 1, - "source_line": "static int stbi__check_png_header(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4628, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__paeth", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4657, - "column": 1, - "source_line": "static int stbi__paeth(int a, int b, int c)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4657, - "column": 1, - "source_line": "static int stbi__paeth(int a, int b, int c)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4668, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__create_png_alpha_expand8", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "img_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int img_n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4675, - "column": 1, - "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4675, - "column": 1, - "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4693, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__create_png_image_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__png", - "name": "stbi__png", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4632, - "column": 4, - "source_line": " stbi__context *s;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "idata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *idata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4633, - "column": 4, - "source_line": " stbi_uc *idata, *expanded, *out;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "expanded", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *expanded", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4633, - "column": 4, - "source_line": " stbi_uc *idata, *expanded, *out;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4633, - "column": 4, - "source_line": " stbi_uc *idata, *expanded, *out;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "depth", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4634, - "column": 4, - "source_line": " int depth;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:4630:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4630, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4630, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "raw", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *raw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *raw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "raw_len", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "depth", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4696, - "column": 1, - "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4696, - "column": 1, - "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4859, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__create_png_image", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "image_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *image_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *image_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "image_data_len", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "depth", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "interlaced", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int interlaced" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int interlaced" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4861, - "column": 1, - "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4861, - "column": 1, - "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4904, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__compute_transparency", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc tc[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc tc[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4906, - "column": 1, - "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4906, - "column": 1, - "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4929, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__compute_transparency16", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tc", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 tc[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 tc[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4931, - "column": 1, - "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4931, - "column": 1, - "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4954, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__expand_png_palette", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "palette", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *palette", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *palette", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pal_img_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pal_img_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pal_img_n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4956, - "column": 1, - "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4956, - "column": 1, - "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4991, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__de_iphone", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5033, - "column": 1, - "source_line": "static void stbi__de_iphone(stbi__png *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5033, - "column": 1, - "source_line": "static void stbi__de_iphone(stbi__png *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5074, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__parse_png_file", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scan", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scan" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5078, - "column": 1, - "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5078, - "column": 1, - "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5261, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__do_png", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5263, - "column": 1, - "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5263, - "column": 1, - "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5293, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__png_info_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__png *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__png" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5310, - "column": 1, - "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5310, - "column": 1, - "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5320, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__bmp_test_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5346, - "column": 1, - "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5346, - "column": 1, - "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5359, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__high_bit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int z" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5370, - "column": 1, - "source_line": "static int stbi__high_bit(unsigned int z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5370, - "column": 1, - "source_line": "static int stbi__high_bit(unsigned int z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5380, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__bitcount", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int a" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5382, - "column": 1, - "source_line": "static int stbi__bitcount(unsigned int a)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5382, - "column": 1, - "source_line": "static int stbi__bitcount(unsigned int a)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5390, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__shiftsigned", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "v", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int v" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int v" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shift", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shift" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5395, - "column": 1, - "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5395, - "column": 1, - "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5413, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__bmp_set_mask_defaults", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__bmp_data", - "name": "stbi__bmp_data", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "bpp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bpp" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5417, - "column": 4, - "source_line": " int bpp, offset, hsz;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5417, - "column": 4, - "source_line": " int bpp, offset, hsz;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hsz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hsz" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5417, - "column": 4, - "source_line": " int bpp, offset, hsz;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mr", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int mr" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5418, - "column": 4, - "source_line": " unsigned int mr,mg,mb,ma, all_a;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mg", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int mg" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5418, - "column": 4, - "source_line": " unsigned int mr,mg,mb,ma, all_a;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mb", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int mb" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5418, - "column": 4, - "source_line": " unsigned int mr,mg,mb,ma, all_a;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ma", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int ma" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5418, - "column": 4, - "source_line": " unsigned int mr,mg,mb,ma, all_a;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "all_a", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int all_a" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5418, - "column": 4, - "source_line": " unsigned int mr,mg,mb,ma, all_a;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "extra_read", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int extra_read" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5419, - "column": 4, - "source_line": " int extra_read;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:5415:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5415, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5415, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__bmp_data" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "compress", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int compress" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int compress" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5422, - "column": 1, - "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5422, - "column": 1, - "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5446, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__bmp_parse_header", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__bmp_data" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__bmp_data" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5448, - "column": 1, - "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5448, - "column": 1, - "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5528, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__tga_get_comp", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "bits_per_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits_per_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits_per_pixel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_grey", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_grey" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_grey" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_rgb16", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * is_rgb16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * is_rgb16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5739, - "column": 1, - "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5739, - "column": 1, - "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5753, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__tga_read_rgb16", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc * out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc * out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5852, - "column": 1, - "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5852, - "column": 1, - "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5869, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__psd_decode_rle", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pixelCount", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pixelCount" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pixelCount" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6088, - "column": 1, - "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6088, - "column": 1, - "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6124, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__pic_is4", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6336, - "column": 1, - "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6336, - "column": 1, - "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6344, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__pic_test_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6346, - "column": 1, - "source_line": "static int stbi__pic_test_core(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6346, - "column": 1, - "source_line": "static int stbi__pic_test_core(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6360, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__readval", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6367, - "column": 1, - "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6367, - "column": 1, - "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6379, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__copyval", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "channel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbi_uc *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6381, - "column": 1, - "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6381, - "column": 1, - "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6388, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__pic_load_core", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6390, - "column": 1, - "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6390, - "column": 1, - "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6498, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__gif_test_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6580, - "column": 1, - "source_line": "static int stbi__gif_test_raw(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6580, - "column": 1, - "source_line": "static int stbi__gif_test_raw(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6588, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__gif_parse_colortable", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc pal[256][4]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc pal[256][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_entries" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_entries" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "transp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int transp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int transp" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6597, - "column": 1, - "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6597, - "column": 1, - "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6606, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__gif_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__gif", - "name": "stbi__gif", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6562, - "column": 4, - "source_line": " int w,h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6562, - "column": 4, - "source_line": " int w,h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "out", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6563, - "column": 4, - "source_line": " stbi_uc *out; // output buffer (always 4 components)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "background", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *background", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6564, - "column": 4, - "source_line": " stbi_uc *background; // The current \"background\" as far as a gif is concerned" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "history", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *history", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6565, - "column": 4, - "source_line": " stbi_uc *history;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "flags", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int flags" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6566, - "column": 4, - "source_line": " int flags, bgindex, ratio, transparent, eflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "bgindex", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bgindex" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6566, - "column": 4, - "source_line": " int flags, bgindex, ratio, transparent, eflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ratio", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ratio" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6566, - "column": 4, - "source_line": " int flags, bgindex, ratio, transparent, eflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "transparent", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int transparent" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6566, - "column": 4, - "source_line": " int flags, bgindex, ratio, transparent, eflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "eflags", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int eflags" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6566, - "column": 4, - "source_line": " int flags, bgindex, ratio, transparent, eflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc pal[256][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6567, - "column": 4, - "source_line": " stbi_uc pal[256][4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "lpal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc lpal[256][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6568, - "column": 4, - "source_line": " stbi_uc lpal[256][4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "codes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif_lzw codes[8192]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8192", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__gif_lzw", - "name": "stbi__gif_lzw", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "prefix", - "type": { - "reference": "stbi__int16" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6555, - "column": 4, - "source_line": " stbi__int16 prefix;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "first", - "type": { - "reference": "stbi_uc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6556, - "column": 4, - "source_line": " stbi_uc first;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "suffix", - "type": { - "reference": "stbi_uc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6557, - "column": 4, - "source_line": " stbi_uc suffix;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:6553:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6553, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6553, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6569, - "column": 4, - "source_line": " stbi__gif_lzw codes[8192];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "color_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *color_table", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6570, - "column": 4, - "source_line": " stbi_uc *color_table;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "parse", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int parse" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6571, - "column": 4, - "source_line": " int parse, step;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "step", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6571, - "column": 4, - "source_line": " int parse, step;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "lflags", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lflags" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6572, - "column": 4, - "source_line": " int lflags;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6573, - "column": 4, - "source_line": " int start_x, start_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6573, - "column": 4, - "source_line": " int start_x, start_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6574, - "column": 4, - "source_line": " int max_x, max_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6574, - "column": 4, - "source_line": " int max_x, max_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6575, - "column": 4, - "source_line": " int cur_x, cur_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6575, - "column": 4, - "source_line": " int cur_x, cur_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "line_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int line_size" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6576, - "column": 4, - "source_line": " int line_size;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delay", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int delay" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6577, - "column": 4, - "source_line": " int delay;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:6560:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6560, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6560, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_info", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_info" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_info" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6608, - "column": 1, - "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6608, - "column": 1, - "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6637, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__gif_info_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", "qualifiers": [], "source_text": "" }, @@ -22822,38 +11832,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6639, + "line": 7423, "column": 1, - "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 6639, + "line": 7423, "column": 1, - "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 6652, + "line": 7478, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 949, + "column": 1, + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__out_gif_code", + "name": "stbi__gif_test", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "g", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -22861,14 +11878,14 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -22876,23 +11893,12 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "code", - "type": { - "reference": "stbi__uint16" - }, - "declared_type": { - "reference": "stbi__uint16" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -22904,30 +11910,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6654, + "line": 6590, "column": 1, - "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + "source_line": "static int stbi__gif_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 6654, + "line": 6590, "column": 1, - "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + "source_line": "static int stbi__gif_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 6689, + "line": 6595, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 953, + "column": 1, + "source_line": "static int stbi__gif_test(stbi__context *s);" + } + ] }, { - "name": "stbi__process_gif_raster", + "name": "stbi__gif_load", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc", + "source_text": "void", "components": [ { "model": "CPointer", @@ -22935,7 +11948,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -22976,26 +11991,11 @@ "callback_policy": null }, { - "name": "g", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23003,80 +12003,16 @@ "source_text": "" }, { - "reference": "stbi__gif" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6691, - "column": 1, - "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6691, - "column": 1, - "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6774, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__gif_load_next", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23084,7 +12020,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -23092,11 +12030,11 @@ "callback_policy": null }, { - "name": "g", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23104,14 +12042,16 @@ "source_text": "" }, { - "reference": "stbi__gif" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23119,7 +12059,9 @@ "source_text": "" }, { - "reference": "stbi__gif" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -23181,11 +12123,11 @@ "callback_policy": null }, { - "name": "two_back", + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *two_back", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -23193,14 +12135,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *two_back", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -23208,7 +12150,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__result_info" } ] }, @@ -23225,26 +12167,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6778, + "line": 7048, "column": 1, - "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 6778, + "line": 7048, "column": 1, - "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 6950, + "line": 7075, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 954, + "column": 1, + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, { - "name": "stbi__load_gif_main_outofmem", + "name": "stbi__load_gif_main", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -23264,46 +12213,11 @@ }, "parameters": [ { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -23311,14 +12225,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -23326,7 +12240,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, @@ -23381,103 +12295,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6952, - "column": 1, - "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6952, - "column": 1, - "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6961, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__hdr_test_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null }, { - "name": "signature", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *signature", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *signature", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23485,86 +12309,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7087, - "column": 1, - "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7087, - "column": 1, - "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7095, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__hdr_gettoken", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *z", - "components": [ - { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *z", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23572,7 +12326,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -23580,11 +12336,11 @@ "callback_policy": null }, { - "name": "buffer", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *buffer", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23592,16 +12348,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *buffer", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23609,57 +12365,21 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7109, - "column": 1, - "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7109, - "column": 1, - "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7129, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__hdr_convert", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "output", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "int *z", "components": [ { "model": "CPointer", @@ -23667,16 +12387,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "int *z", "components": [ { "model": "CPointer", @@ -23684,9 +12404,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23694,11 +12414,11 @@ "callback_policy": null }, { - "name": "input", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *input", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -23706,14 +12426,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *input", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -23721,7 +12443,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -23753,26 +12477,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7131, + "line": 6963, "column": 1, - "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7131, + "line": 6963, "column": 1, - "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7156, + "line": 7046, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 955, + "column": 1, + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" + } + ] }, { - "name": "stbi__pnm_isspace", + "name": "stbi__gif_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -23780,62 +12511,46 @@ }, "parameters": [ { - "name": "c", + "name": "s", "type": { - "model": "CChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "char c" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "char c" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7543, - "column": 1, - "source_line": "static int stbi__pnm_isspace(char c)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7543, - "column": 1, - "source_line": "static int stbi__pnm_isspace(char c)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7546, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__pnm_skip_whitespace", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23843,14 +12558,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -23858,7 +12575,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -23866,11 +12585,11 @@ "callback_policy": null }, { - "name": "c", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23878,16 +12597,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -23895,62 +12614,50 @@ "source_text": "" }, { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7548, - "column": 1, - "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7548, - "column": 1, - "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7560, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__pnm_isdigit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "c", + "name": "comp", "type": { - "model": "CChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "char c" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "char c" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -23965,26 +12672,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7562, + "line": 7077, "column": 1, - "source_line": "static int stbi__pnm_isdigit(char c)" + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7562, + "line": 7077, "column": 1, - "source_line": "static int stbi__pnm_isdigit(char c)" + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7565, + "line": 7080, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 956, + "column": 1, + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "name": "stbi__pnm_getinteger", + "name": "stbi__pnm_test", "result_type": { "model": "CInt", "qualifiers": [], @@ -24025,45 +12739,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -24075,30 +12750,49 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7567, + "line": 7494, "column": 1, - "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + "source_line": "static int stbi__pnm_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 7567, + "line": 7494, "column": 1, - "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + "source_line": "static int stbi__pnm_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 7579, + "line": 7504, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 960, + "column": 1, + "source_line": "static int stbi__pnm_test(stbi__context *s);" + } + ] }, { - "name": "stbi__info_main", + "name": "stbi__pnm_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -24252,49 +12946,28 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7632, - "column": 1, - "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7632, - "column": 1, - "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7672, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__is_16_main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s", + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -24302,14 +12975,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -24317,7 +12990,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, @@ -24334,168 +13007,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7674, + "line": 7506, "column": 1, - "source_line": "static int stbi__is_16_main(stbi__context *s)" + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 7674, - "column": 1, - "source_line": "static int stbi__is_16_main(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7688, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_image.h:805:1" - }, - { - "reference": "struct@stb/stb_image.h:901:1" - }, - { - "reference": "struct@stb/stb_image.h:1938:1" - }, - { - "reference": "struct@stb/stb_image.h:1949:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "resample", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "resample_row_func", - "name": "resample_row_func", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1,\n int w, int hs)", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "stbi_uc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in0", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc *in1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int hs" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3451, - "column": 1, - "source_line": "typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1," - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3850, - "column": 4, - "source_line": " resample_row_func resample;" - }, - "callback_policy": null, - "declaration_locations": [] - }, + "line": 7506, + "column": 1, + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7541, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "line0", + "filename": "stb/stb_image.h", + "line": 961, + "column": 1, + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] + }, + { + "name": "stbi__pnm_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *line0", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -24503,28 +13053,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3851, - "column": 4, - "source_line": " stbi_uc *line0,*line1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "line1", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *line1", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -24532,8784 +13068,23375 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3851, - "column": 4, - "source_line": " stbi_uc *line0,*line1;" - }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "hs", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int hs" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3852, - "column": 4, - "source_line": " int hs,vs; // expansion factor in each axis" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vs", - "type": { - "model": "CInt", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int vs" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3852, - "column": 4, - "source_line": " int hs,vs; // expansion factor in each axis" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "w_lores", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w_lores" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3853, - "column": 4, - "source_line": " int w_lores; // horizontal pixels pre-expansion" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ystep", - "type": { - "model": "CInt", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int ystep" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3854, - "column": 4, - "source_line": " int ystep; // how far through vertical expansion we are" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "ypos", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int ypos" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3855, - "column": 4, - "source_line": " int ypos; // which pre-expansion row we're on" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:3848:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3848, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "reference": "struct@stb/stb_image.h:4097:1" - }, - { - "reference": "struct@stb/stb_image.h:4177:1" - }, - { - "reference": "struct@stb/stb_image.h:4607:1" - }, - { - "reference": "struct@stb/stb_image.h:4630:1" - }, - { - "reference": "struct@stb/stb_image.h:5415:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "size", - "type": { - "reference": "stbi_uc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6364, - "column": 4, - "source_line": " stbi_uc size,type,channel;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "type", - "type": { - "reference": "stbi_uc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6364, - "column": 4, - "source_line": " stbi_uc size,type,channel;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "channel", - "type": { - "reference": "stbi_uc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6364, - "column": 4, - "source_line": " stbi_uc size,type,channel;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image.h:6362:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6362, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "reference": "struct@stb/stb_image.h:6553:1" - }, - { - "reference": "struct@stb/stb_image.h:6560:1" - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBI_default", - "value": "0", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI_grey", - "value": "1", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI_grey_alpha", - "value": "2", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI_rgb", - "value": "3", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI_rgb_alpha", - "value": "4", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image.h:376:1", - "source_location": { - "filename": "stb/stb_image.h", - "line": 376, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBI_ORDER_RGB", - "value": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 895, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI_ORDER_BGR", - "value": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 895, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image.h:895:1", - "source_location": { - "filename": "stb/stb_image.h", - "line": 895, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBI__SCAN_load", - "value": "0", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1590, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI__SCAN_type", - "value": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1590, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBI__SCAN_header", - "value": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1590, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image.h:1590:1", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1590, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBI__F_none", - "value": "0", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "STBI__F_sub", - "value": "1", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "STBI__F_up", - "value": "2", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "STBI__F_avg", - "value": "3", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "STBI__F_paeth", - "value": "4", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "STBI__F_avg_first", - "value": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4638, - "column": 1, - "source_line": "enum {" - } + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "anonymous_id": "enum@stb/stb_image.h:4638:1", + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 7581, "column": 1, - "source_line": "enum {" - } - } - ], - "typedefs": [ - { - "reference": "stbi_uc" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi_us", - "name": "stbi_us", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "typedef unsigned short stbi_us" + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" }, - "source_location": { + "start": { "filename": "stb/stb_image.h", - "line": 388, + "line": 7581, "column": 1, - "source_line": "typedef unsigned short stbi_us;" - }, - "declaration_locations": [] - }, - { - "reference": "stbi__uint16" - }, - { - "reference": "stbi__int16" - }, - { - "reference": "stbi__uint32" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__int32", - "name": "stbi__int32", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "typedef signed int stbi__int32" + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" }, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 645, + "line": 7622, "column": 1, - "source_line": "typedef signed int stbi__int32;" + "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 962, + "column": 1, + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "validate_uint32", - "name": "validate_uint32", - "type": { - "model": "CComposedType", + "name": "stbi__pnm_is16", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "sizeof(stbi__uint32)==4 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, - { - "model": "CUnsignedChar", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 655, - "column": 1, - "source_line": "typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];" - }, - "declaration_locations": [] - }, - { - "reference": "stbi__context" - }, - { - "reference": "stbi__result_info" - }, - { - "reference": "stbi__huffman" - }, - { - "reference": "stbi__jpeg" - }, - { - "reference": "resample_row_func" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__resample", - "name": "stbi__resample", - "type": { - "reference": "struct@stb/stb_image.h:3848:1" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 3848, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "stbi__zhuffman" - }, - { - "reference": "stbi__zbuf" - }, - { - "reference": "stbi__pngchunk" - }, - { - "reference": "stbi__png" - }, - { - "reference": "stbi__bmp_data" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__pic_packet", - "name": "stbi__pic_packet", - "type": { - "reference": "struct@stb/stb_image.h:6362:1" - }, - "source_location": { - "filename": "stb/stb_image.h", - "line": 6362, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "stbi__gif_lzw" - }, - { - "reference": "stbi__gif" - } - ], - "variables": [ - { - "name": "stbi__stdio_callbacks", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static stbi_io_callbacks stbi__stdio_callbacks", - "name": "stbi_io_callbacks", - "type": null, - "source_location": null, - "declaration_locations": [] - }, + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n stbi__stdio_read,\n stbi__stdio_skip,\n stbi__stdio_eof,\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 870, + "line": 7624, "column": 1, - "source_line": "static stbi_io_callbacks stbi__stdio_callbacks =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__vertically_flip_on_load_global", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__vertically_flip_on_load_global" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" + "source_line": "static int stbi__pnm_is16(stbi__context *s)" }, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_image.h", - "line": 1114, + "line": 7624, "column": 1, - "source_line": "static int stbi__vertically_flip_on_load_global = 0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__l2h_gamma", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__l2h_gamma" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "2.2f" + "source_line": "static int stbi__pnm_is16(stbi__context *s)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 1573, + "line": 7629, "column": 1, - "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" + "source_line": "}" }, - "callback_policy": null, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 963, + "column": 1, + "source_line": "static int stbi__pnm_is16(stbi__context *s);" + } + ] }, { - "name": "stbi__l2h_scale", - "type": { - "model": "CFloat", + "name": "stbi__err", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static float stbi__l2h_scale" + "source_text": "int" }, + "parameters": [ + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "1.0f" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1573, + "line": 978, "column": 1, - "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__h2l_gamma_i", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__h2l_gamma_i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1.0f/2.2f" + "source_line": "static int stbi__err(const char *str)" }, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_image.h", - "line": 1579, + "line": 978, "column": 1, - "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__h2l_scale_i", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__h2l_scale_i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1.0f" + "source_line": "static int stbi__err(const char *str)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 1579, + "line": 982, "column": 1, - "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__bmask", - "type": { + "name": "stbi__malloc", + "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static const stbi__uint32 stbi__bmask[17]", + "source_text": "void", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "17", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi__uint32" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, + "parameters": [ + { + "name": "size", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2094, + "line": 985, "column": 1, - "source_line": "static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__jbias", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int stbi__jbias[16]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] + "source_line": "static void *stbi__malloc(size_t size)" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767}" + "start": { + "filename": "stb/stb_image.h", + "line": 985, + "column": 1, + "source_line": "static void *stbi__malloc(size_t size)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 2149, + "line": 988, "column": 1, - "source_line": "static const int stbi__jbias[16] = {0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767};" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__jpeg_dezigzag", - "type": { - "model": "CComposedType", + "name": "stbi__addsizes_valid", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const stbi_uc stbi__jpeg_dezigzag[64+15]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "64+15", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, - { - "reference": "stbi_uc" - } - ] - }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 0, 1, 8, 16, 9, 2, 3, 10,\n 17, 24, 32, 25, 18, 11, 4, 5,\n 12, 19, 26, 33, 40, 48, 41, 34,\n 27, 20, 13, 6, 7, 14, 21, 28,\n 35, 42, 49, 56, 57, 50, 43, 36,\n 29, 22, 15, 23, 30, 37, 44, 51,\n 58, 59, 52, 45, 38, 31, 39, 46,\n 53, 60, 61, 54, 47, 55, 62, 63,\n \n 63, 63, 63, 63, 63, 63, 63, 63,\n 63, 63, 63, 63, 63, 63, 63\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2194, + "line": 1002, "column": 1, - "source_line": "static const stbi_uc stbi__jpeg_dezigzag[64+15] =" + "source_line": "static int stbi__addsizes_valid(int a, int b)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1002, + "column": 1, + "source_line": "static int stbi__addsizes_valid(int a, int b)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1010, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__zlength_base", - "type": { - "model": "CComposedType", + "name": "stbi__mul2sizes_valid", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const int stbi__zlength_base[31]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "31", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int a" }, - { + "declared_type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 3,4,5,6,7,8,9,10,11,13,\n 15,17,19,23,27,31,35,43,51,59,\n 67,83,99,115,131,163,195,227,258,0,0 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4295, + "line": 1014, "column": 1, - "source_line": "static const int stbi__zlength_base[31] = {" + "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1014, + "column": 1, + "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1020, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__zlength_extra", - "type": { - "model": "CComposedType", + "name": "stbi__mad2sizes_valid", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const int stbi__zlength_extra[31]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "31", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int a" }, - { + "declared_type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4300, + "line": 1024, "column": 1, - "source_line": "static const int stbi__zlength_extra[31]=" + "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1024, + "column": 1, + "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1027, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__zdist_base", - "type": { - "model": "CComposedType", + "name": "stbi__mad3sizes_valid", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const int stbi__zdist_base[32]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int a" }, - { + "declared_type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,\n257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4303, + "line": 1031, "column": 1, - "source_line": "static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193," + "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1031, + "column": 1, + "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1035, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__zdist_extra", - "type": { - "model": "CComposedType", + "name": "stbi__mad4sizes_valid", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const int stbi__zdist_extra[32]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int a" }, - { + "declared_type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4306, + "line": 1039, "column": 1, - "source_line": "static const int stbi__zdist_extra[32] =" + "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1039, + "column": 1, + "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1043, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__zdefault_length", - "type": { + "name": "stbi__malloc_mad2", + "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS]", + "source_text": "void", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "STBI__ZNSYMS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4452, - "column": 1, - "source_line": "static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__zdefault_distance", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbi_uc stbi__zdefault_distance[32]", - "components": [ - { - "model": "CArray", + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int add" }, - { - "reference": "stbi_uc" - } - ] - }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4464, + "line": 1048, "column": 1, - "source_line": "static const stbi_uc stbi__zdefault_distance[32] =" + "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1048, + "column": 1, + "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1052, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "first_row_filter", - "type": { + "name": "stbi__malloc_mad3", + "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static stbi_uc first_row_filter[5]", + "source_text": "void", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n STBI__F_none,\n STBI__F_sub,\n STBI__F_none,\n STBI__F_avg_first,\n STBI__F_sub \n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4648, + "line": 1055, "column": 1, - "source_line": "static stbi_uc first_row_filter[5] =" + "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1055, + "column": 1, + "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1059, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__depth_scale_table", - "type": { + "name": "stbi__malloc_mad4", + "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static const stbi_uc stbi__depth_scale_table[9]", + "source_text": "void", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4670, + "line": 1062, "column": 1, - "source_line": "static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__unpremultiply_on_load_global", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__unpremultiply_on_load_global" + "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" + "start": { + "filename": "stb/stb_image.h", + "line": 1062, + "column": 1, + "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 4993, + "line": 1066, "column": 1, - "source_line": "static int stbi__unpremultiply_on_load_global = 0;" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi__de_iphone_flag_global", - "type": { + "name": "stbi__addints_valid", + "result_type": { "model": "CInt", "qualifiers": [], - "source_text": "static int stbi__de_iphone_flag_global" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4994, - "column": 1, - "source_line": "static int stbi__de_iphone_flag_global = 0;" + "source_text": "int" }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STBI_INCLUDE_STB_IMAGE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 130, - "column": 1, - "source_line": "#define STBI_INCLUDE_STB_IMAGE_H" - } - }, - { - "name": "STBI_VERSION", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 374, - "column": 1, - "source_line": "#define STBI_VERSION 1" - } - }, - { - "name": "STBIDEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 396, - "column": 1, - "source_line": "#define STBIDEF static" - } - }, - { - "name": "STBIDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 398, - "column": 1, - "source_line": "#define STBIDEF extern" - } - }, - { - "name": "STBI_NO_JPEG", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 554, - "column": 4, - "source_line": " #define STBI_NO_JPEG" - } - }, - { - "name": "STBI_NO_PNG", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 557, - "column": 4, - "source_line": " #define STBI_NO_PNG" - } - }, - { - "name": "STBI_NO_BMP", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 560, - "column": 4, - "source_line": " #define STBI_NO_BMP" - } - }, - { - "name": "STBI_NO_PSD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 563, - "column": 4, - "source_line": " #define STBI_NO_PSD" - } - }, - { - "name": "STBI_NO_TGA", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 566, - "column": 4, - "source_line": " #define STBI_NO_TGA" - } - }, - { - "name": "STBI_NO_GIF", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 569, - "column": 4, - "source_line": " #define STBI_NO_GIF" - } - }, - { - "name": "STBI_NO_HDR", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 572, - "column": 4, - "source_line": " #define STBI_NO_HDR" - } - }, - { - "name": "STBI_NO_PIC", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 575, - "column": 4, - "source_line": " #define STBI_NO_PIC" - } - }, - { - "name": "STBI_NO_PNM", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 578, - "column": 4, - "source_line": " #define STBI_NO_PNM" - } - }, - { - "name": "STBI_NO_ZLIB", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 583, - "column": 1, - "source_line": "#define STBI_NO_ZLIB" - } - }, - { - "name": "STBI_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 603, - "column": 1, - "source_line": "#define STBI_ASSERT(x) assert(x)" - } - }, - { - "name": "STBI_EXTERN", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 607, - "column": 1, - "source_line": "#define STBI_EXTERN extern \"C\"" - } - }, - { - "name": "STBI_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 609, - "column": 1, - "source_line": "#define STBI_EXTERN extern" - } - }, - { - "name": "stbi_inline", - "value": "inline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 615, - "column": 4, - "source_line": " #define stbi_inline inline" - } - }, - { - "name": "stbi_inline", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 617, - "column": 4, - "source_line": " #define stbi_inline" - } - }, - { - "name": "stbi_inline", - "value": "__forceinline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 620, - "column": 4, - "source_line": " #define stbi_inline __forceinline" - } - }, - { - "name": "STBI_THREAD_LOCAL", - "value": "thread_local", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 625, - "column": 7, - "source_line": " #define STBI_THREAD_LOCAL thread_local" - } - }, - { - "name": "STBI_THREAD_LOCAL", - "value": "__thread", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 627, - "column": 7, - "source_line": " #define STBI_THREAD_LOCAL __thread" - } - }, - { - "name": "STBI_THREAD_LOCAL", - "value": "__declspec(thread)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 629, - "column": 7, - "source_line": " #define STBI_THREAD_LOCAL __declspec(thread)" - } - }, - { - "name": "STBI_THREAD_LOCAL", - "value": "_Thread_local", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 631, - "column": 7, - "source_line": " #define STBI_THREAD_LOCAL _Thread_local" - } - }, - { - "name": "STBI_THREAD_LOCAL", - "value": "__thread", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 636, - "column": 9, - "source_line": " #define STBI_THREAD_LOCAL __thread" - } - }, - { - "name": "STBI_NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 658, - "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBI_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 660, - "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "STBI_HAS_LROTL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 664, - "column": 1, - "source_line": "#define STBI_HAS_LROTL" - } - }, - { - "name": "stbi_lrot", - "value": "_lrotl(x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 668, - "column": 4, - "source_line": " #define stbi_lrot(x,y) _lrotl(x,y)" - } - }, - { - "name": "stbi_lrot", - "value": "(((x) << (y)) | ((x) >> (-(y) & 31)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 670, - "column": 4, - "source_line": " #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31)))" - } - }, - { - "name": "STBI_MALLOC", - "value": "malloc(sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 682, - "column": 1, - "source_line": "#define STBI_MALLOC(sz) malloc(sz)" - } - }, - { - "name": "STBI_REALLOC", - "value": "realloc(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 683, - "column": 1, - "source_line": "#define STBI_REALLOC(p,newsz) realloc(p,newsz)" - } - }, - { - "name": "STBI_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 684, - "column": 1, - "source_line": "#define STBI_FREE(p) free(p)" - } - }, - { - "name": "STBI_REALLOC_SIZED", - "value": "STBI_REALLOC(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 688, - "column": 1, - "source_line": "#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz)" - } - }, - { - "name": "STBI__X64_TARGET", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 693, - "column": 1, - "source_line": "#define STBI__X64_TARGET" - } - }, - { - "name": "STBI__X86_TARGET", - "value": null, - "function_like": false, - "directive": "define", + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 695, + "line": 1070, "column": 1, - "source_line": "#define STBI__X86_TARGET" - } - }, - { - "name": "STBI_NO_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__addints_valid(int a, int b)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 706, + "line": 1070, "column": 1, - "source_line": "#define STBI_NO_SIMD" - } - }, - { - "name": "STBI_NO_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__addints_valid(int a, int b)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 721, + "line": 1075, "column": 1, - "source_line": "#define STBI_NO_SIMD" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI_SSE2", - "value": null, - "function_like": false, - "directive": "define", + "name": "stbi__mul2shorts_valid", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 725, + "line": 1078, "column": 1, - "source_line": "#define STBI_SSE2" - } - }, - { - "name": "STBI_SIMD_ALIGN", - "value": "__declspec(align(16)) type name", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__mul2shorts_valid(int a, int b)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 751, + "line": 1078, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" - } - }, - { - "name": "STBI_SIMD_ALIGN", - "value": "type name __attribute__((aligned(16)))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__mul2shorts_valid(int a, int b)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 762, + "line": 1084, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI_NEON", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__ldr_to_hdr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 779, + "line": 1858, "column": 1, - "source_line": "#undef STBI_NEON" - } - }, - { - "name": "STBI_SIMD_ALIGN", - "value": "__declspec(align(16)) type name", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 785, + "line": 1858, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" - } - }, - { - "name": "STBI_SIMD_ALIGN", - "value": "type name __attribute__((aligned(16)))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 787, + "line": 1879, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 1107, + "column": 1, + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp);" + } + ] }, { - "name": "STBI_SIMD_ALIGN", - "value": "type name", - "function_like": true, - "directive": "define", + "name": "stbi__hdr_to_ldr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 792, + "line": 1884, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name" - } - }, - { - "name": "STBI_MAX_DIMENSIONS", - "value": "(1 << 24)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 796, + "line": 1884, "column": 1, - "source_line": "#define STBI_MAX_DIMENSIONS (1 << 24)" - } - }, - { - "name": "stbi__err", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1091, - "column": 4, - "source_line": " #define stbi__err(x,y) 0" - } - }, - { - "name": "stbi__err", - "value": "stbi__err(y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1093, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(y)" - } - }, - { - "name": "stbi__err", - "value": "stbi__err(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1095, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(x)" - } - }, - { - "name": "stbi__errpf", - "value": "((float *)(size_t) (stbi__err(x,y)?NULL:NULL))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1098, + "line": 1909, "column": 1, - "source_line": "#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL))" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 1111, + "column": 1, + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp);" + } + ] }, { - "name": "stbi__errpuc", - "value": "((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))", - "function_like": true, - "directive": "define", + "name": "stbi__load_main", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bpc", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1099, + "line": 1137, "column": 1, - "source_line": "#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))" - } - }, - { - "name": "stbi__vertically_flip_on_load", - "value": "stbi__vertically_flip_on_load_global", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1122, + "line": 1137, "column": 1, - "source_line": "#define stbi__vertically_flip_on_load stbi__vertically_flip_on_load_global" - } - }, - { - "name": "stbi__vertically_flip_on_load", - "value": "(stbi__vertically_flip_on_load_set ? stbi__vertically_flip_on_load_local : stbi__vertically_flip_on_load_global)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1132, + "line": 1188, "column": 1, - "source_line": "#define stbi__vertically_flip_on_load (stbi__vertically_flip_on_load_set \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI__BYTECAST", - "value": "((stbi_uc) ((x) & 255))", - "function_like": true, - "directive": "define", + "name": "stbi__convert_16_to_8", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "orig", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *orig", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__uint16", + "name": "stbi__uint16", + "type": { + "reference": "uint16_t" + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 648, + "column": 1, + "source_line": "typedef uint16_t stbi__uint16;" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *orig", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1730, + "line": 1190, "column": 1, - "source_line": "#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings" - } - }, - { - "name": "STBI__COMBO", - "value": "((a)*8+(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1773, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" - } - }, - { - "name": "STBI__CASE", - "value": "case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1774, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" - } - }, - { - "name": "STBI__CASE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1792, - "column": 7, - "source_line": " #undef STBI__CASE" - } - }, - { - "name": "STBI__COMBO", - "value": "((a)*8+(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1830, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" - } - }, - { - "name": "STBI__CASE", - "value": "case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1831, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" - } - }, - { - "name": "STBI__CASE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1849, - "column": 7, - "source_line": " #undef STBI__CASE" - } - }, - { - "name": "stbi__float2int", - "value": "((int) (x))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1883, + "line": 1190, "column": 1, - "source_line": "#define stbi__float2int(x) ((int) (x))" - } - }, - { - "name": "FAST_BITS", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1936, + "line": 1204, "column": 1, - "source_line": "#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbi__f2f", - "value": "((int) (((x) * 4096 + 0.5)))", - "function_like": true, - "directive": "define", + "name": "stbi__convert_8_to_16", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "parameters": [ + { + "name": "orig", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *orig", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *orig", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2426, + "line": 1206, "column": 1, - "source_line": "#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))" - } - }, - { - "name": "stbi__fsh", - "value": "((x) * 4096)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2427, + "line": 1206, "column": 1, - "source_line": "#define stbi__fsh(x) ((x) * 4096)" - } - }, - { - "name": "STBI__IDCT_1D", - "value": "int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; p2 = s2; p3 = s6; p1 = (p2+p3) * stbi__f2f(0.5411961f); t2 = p1 + p3*stbi__f2f(-1.847759065f); t3 = p1 + p2*stbi__f2f( 0.765366865f); p2 = s0; p3 = s4; t0 = stbi__fsh(p2+p3); t1 = stbi__fsh(p2-p3); x0 = t0+t3; x3 = t0-t3; x1 = t1+t2; x2 = t1-t2; t0 = s7; t1 = s5; t2 = s3; t3 = s1; p3 = t0+t2; p4 = t1+t3; p1 = t0+t3; p2 = t1+t2; p5 = (p3+p4)*stbi__f2f( 1.175875602f); t0 = t0*stbi__f2f( 0.298631336f); t1 = t1*stbi__f2f( 2.053119869f); t2 = t2*stbi__f2f( 3.072711026f); t3 = t3*stbi__f2f( 1.501321110f); p1 = p5 + p1*stbi__f2f(-0.899976223f); p2 = p5 + p2*stbi__f2f(-2.562915447f); p3 = p3*stbi__f2f(-1.961570560f); p4 = p4*stbi__f2f(-0.390180644f); t3 += p1+p4; t2 += p2+p3; t1 += p2+p4; t0 += p1+p3;", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2430, + "line": 1220, "column": 1, - "source_line": "#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \\" - } - }, - { - "name": "dct_const", - "value": "_mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2537, - "column": 4, - "source_line": " #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y))" - } - }, - { - "name": "dct_rot", - "value": "__m128i c0##lo = _mm_unpacklo_epi16((x),(y)); __m128i c0##hi = _mm_unpackhi_epi16((x),(y)); __m128i out0##_l = _mm_madd_epi16(c0##lo, c0); __m128i out0##_h = _mm_madd_epi16(c0##hi, c0); __m128i out1##_l = _mm_madd_epi16(c0##lo, c1); __m128i out1##_h = _mm_madd_epi16(c0##hi, c1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2541, - "column": 4, - "source_line": " #define dct_rot(out0,out1, x,y,c0,c1) \\" - } - }, - { - "name": "dct_widen", - "value": "__m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); __m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2550, - "column": 4, - "source_line": " #define dct_widen(out, in) \\" - } - }, - { - "name": "dct_wadd", - "value": "__m128i out##_l = _mm_add_epi32(a##_l, b##_l); __m128i out##_h = _mm_add_epi32(a##_h, b##_h)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2555, - "column": 4, - "source_line": " #define dct_wadd(out, a, b) \\" - } - }, - { - "name": "dct_wsub", - "value": "__m128i out##_l = _mm_sub_epi32(a##_l, b##_l); __m128i out##_h = _mm_sub_epi32(a##_h, b##_h)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2560, - "column": 4, - "source_line": " #define dct_wsub(out, a, b) \\" - } - }, - { - "name": "dct_bfly32o", - "value": "{ __m128i abiased_l = _mm_add_epi32(a##_l, bias); __m128i abiased_h = _mm_add_epi32(a##_h, bias); dct_wadd(sum, abiased, b); dct_wsub(dif, abiased, b); out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2565, - "column": 4, - "source_line": " #define dct_bfly32o(out0, out1, a,b,bias,s) \\" - } - }, - { - "name": "dct_interleave8", - "value": "tmp = a; a = _mm_unpacklo_epi8(a, b); b = _mm_unpackhi_epi8(tmp, b)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2576, - "column": 4, - "source_line": " #define dct_interleave8(a, b) \\" - } - }, - { - "name": "dct_interleave16", - "value": "tmp = a; a = _mm_unpacklo_epi16(a, b); b = _mm_unpackhi_epi16(tmp, b)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2582, - "column": 4, - "source_line": " #define dct_interleave16(a, b) \\" - } - }, - { - "name": "dct_pass", - "value": "{ dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); __m128i sum04 = _mm_add_epi16(row0, row4); __m128i dif04 = _mm_sub_epi16(row0, row4); dct_widen(t0e, sum04); dct_widen(t1e, dif04); dct_wadd(x0, t0e, t3e); dct_wsub(x3, t0e, t3e); dct_wadd(x1, t1e, t2e); dct_wsub(x2, t1e, t2e); dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); __m128i sum17 = _mm_add_epi16(row1, row7); __m128i sum35 = _mm_add_epi16(row3, row5); dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); dct_wadd(x4, y0o, y4o); dct_wadd(x5, y1o, y5o); dct_wadd(x6, y2o, y5o); dct_wadd(x7, y3o, y4o); dct_bfly32o(row0,row7, x0,x7,bias,shift); dct_bfly32o(row1,row6, x1,x6,bias,shift); dct_bfly32o(row2,row5, x2,x5,bias,shift); dct_bfly32o(row3,row4, x3,x4,bias,shift); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2587, - "column": 4, - "source_line": " #define dct_pass(bias,shift) \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_const", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__vertical_flip", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "image", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bytes_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2694, + "line": 1222, "column": 1, - "source_line": "#undef dct_const" - } - }, - { - "name": "dct_rot", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2695, + "line": 1222, "column": 1, - "source_line": "#undef dct_rot" - } - }, - { - "name": "dct_widen", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2696, + "line": 1244, "column": 1, - "source_line": "#undef dct_widen" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_wadd", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__vertical_flip_slices", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "image", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *image", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bytes_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2697, + "line": 1247, "column": 1, - "source_line": "#undef dct_wadd" - } - }, - { - "name": "dct_wsub", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2698, + "line": 1247, "column": 1, - "source_line": "#undef dct_wsub" - } - }, - { - "name": "dct_bfly32o", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2699, + "line": 1257, "column": 1, - "source_line": "#undef dct_bfly32o" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_interleave8", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__load_and_postprocess_8bit", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2700, + "line": 1260, "column": 1, - "source_line": "#undef dct_interleave8" - } - }, - { - "name": "dct_interleave16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2701, + "line": 1260, "column": 1, - "source_line": "#undef dct_interleave16" - } - }, - { - "name": "dct_pass", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2702, + "line": 1284, "column": 1, - "source_line": "#undef dct_pass" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_long_mul", - "value": "int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff)", - "function_like": true, - "directive": "define", + "name": "stbi__load_and_postprocess_16bit", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2728, + "line": 1286, "column": 1, - "source_line": "#define dct_long_mul(out, inq, coeff) \\" - } - }, - { - "name": "dct_long_mac", - "value": "int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2732, + "line": 1286, "column": 1, - "source_line": "#define dct_long_mac(out, acc, inq, coeff) \\" - } - }, - { - "name": "dct_widen", - "value": "int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2736, + "line": 1311, "column": 1, - "source_line": "#define dct_widen(out, inq) \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_wadd", - "value": "int32x4_t out##_l = vaddq_s32(a##_l, b##_l); int32x4_t out##_h = vaddq_s32(a##_h, b##_h)", - "function_like": true, - "directive": "define", + "name": "stbi__float_postprocess", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "result", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2741, + "line": 1314, "column": 1, - "source_line": "#define dct_wadd(out, a, b) \\" - } - }, - { - "name": "dct_wsub", - "value": "int32x4_t out##_l = vsubq_s32(a##_l, b##_l); int32x4_t out##_h = vsubq_s32(a##_h, b##_h)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2746, + "line": 1314, "column": 1, - "source_line": "#define dct_wsub(out, a, b) \\" - } - }, - { - "name": "dct_bfly32o", - "value": "{ dct_wadd(sum, a, b); dct_wsub(dif, a, b); out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); }", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2751, + "line": 1320, "column": 1, - "source_line": "#define dct_bfly32o(out0,out1, a,b,shiftop,s) \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_pass", - "value": "{ int16x8_t sum26 = vaddq_s16(row2, row6); dct_long_mul(p1e, sum26, rot0_0); dct_long_mac(t2e, p1e, row6, rot0_1); dct_long_mac(t3e, p1e, row2, rot0_2); int16x8_t sum04 = vaddq_s16(row0, row4); int16x8_t dif04 = vsubq_s16(row0, row4); dct_widen(t0e, sum04); dct_widen(t1e, dif04); dct_wadd(x0, t0e, t3e); dct_wsub(x3, t0e, t3e); dct_wadd(x1, t1e, t2e); dct_wsub(x2, t1e, t2e); int16x8_t sum15 = vaddq_s16(row1, row5); int16x8_t sum17 = vaddq_s16(row1, row7); int16x8_t sum35 = vaddq_s16(row3, row5); int16x8_t sum37 = vaddq_s16(row3, row7); int16x8_t sumodd = vaddq_s16(sum17, sum35); dct_long_mul(p5o, sumodd, rot1_0); dct_long_mac(p1o, p5o, sum17, rot1_1); dct_long_mac(p2o, p5o, sum35, rot1_2); dct_long_mul(p3o, sum37, rot2_0); dct_long_mul(p4o, sum15, rot2_1); dct_wadd(sump13o, p1o, p3o); dct_wadd(sump24o, p2o, p4o); dct_wadd(sump23o, p2o, p3o); dct_wadd(sump14o, p1o, p4o); dct_long_mac(x4, sump13o, row7, rot3_0); dct_long_mac(x5, sump24o, row5, rot3_1); dct_long_mac(x6, sump23o, row3, rot3_2); dct_long_mac(x7, sump14o, row1, rot3_3); dct_bfly32o(row0,row7, x0,x7,shiftop,shift); dct_bfly32o(row1,row6, x1,x6,shiftop,shift); dct_bfly32o(row2,row5, x2,x5,shiftop,shift); dct_bfly32o(row3,row4, x3,x4,shiftop,shift); }", - "function_like": true, - "directive": "define", + "name": "stbi__fopen", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2759, + "line": 1337, "column": 1, - "source_line": "#define dct_pass(shiftop, shift) \\" - } - }, - { - "name": "dct_trn16", - "value": "{ int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; }", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2819, + "line": 1337, "column": 1, - "source_line": "#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; }" - } - }, - { - "name": "dct_trn32", - "value": "{ int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); }", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2820, + "line": 1363, "column": 1, - "source_line": "#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); }" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_trn64", - "value": "{ int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); }", - "function_like": true, - "directive": "define", + "name": "stbi__loadf_main", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2821, + "line": 1460, "column": 1, - "source_line": "#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); }" - } - }, - { - "name": "dct_trn16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2841, + "line": 1460, "column": 1, - "source_line": "#undef dct_trn16" - } - }, - { - "name": "dct_trn32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2842, + "line": 1476, "column": 1, - "source_line": "#undef dct_trn32" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_trn64", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__get8", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2843, - "column": 1, - "source_line": "#undef dct_trn64" - } - }, - { - "name": "dct_trn8_8", - "value": "{ uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; }", - "function_like": true, - "directive": "define", - "source_location": { + "line": 1614, + "column": 2, + "source_line": " static stbi_uc stbi__get8(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2864, - "column": 1, - "source_line": "#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; }" - } - }, - { - "name": "dct_trn8_16", - "value": "{ uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); }", - "function_like": true, - "directive": "define", - "source_location": { + "line": 1614, + "column": 2, + "source_line": " static stbi_uc stbi__get8(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2865, + "line": 1623, "column": 1, - "source_line": "#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); }" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_trn8_32", - "value": "{ uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); }", - "function_like": true, - "directive": "define", + "name": "stbi__at_eof", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2866, - "column": 1, - "source_line": "#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); }" - } - }, - { - "name": "dct_trn8_8", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "line": 1628, + "column": 2, + "source_line": " static int stbi__at_eof(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2899, - "column": 1, - "source_line": "#undef dct_trn8_8" - } - }, - { - "name": "dct_trn8_16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "line": 1628, + "column": 2, + "source_line": " static int stbi__at_eof(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2900, + "line": 1638, "column": 1, - "source_line": "#undef dct_trn8_16" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_trn8_32", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__skip", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2901, + "line": 1644, "column": 1, - "source_line": "#undef dct_trn8_32" - } - }, - { - "name": "dct_long_mul", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__skip(stbi__context *s, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2904, + "line": 1644, "column": 1, - "source_line": "#undef dct_long_mul" - } - }, - { - "name": "dct_long_mac", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void stbi__skip(stbi__context *s, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2905, + "line": 1660, "column": 1, - "source_line": "#undef dct_long_mac" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_widen", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__getn", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2906, + "line": 1666, "column": 1, - "source_line": "#undef dct_widen" - } - }, - { - "name": "dct_wadd", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2907, + "line": 1666, "column": 1, - "source_line": "#undef dct_wadd" - } - }, - { - "name": "dct_wsub", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2908, + "line": 1688, "column": 1, - "source_line": "#undef dct_wsub" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "dct_bfly32o", - "value": null, - "function_like": false, - "directive": "undef", + "name": "stbi__get16be", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2909, + "line": 1694, "column": 1, - "source_line": "#undef dct_bfly32o" - } - }, - { - "name": "dct_pass", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__get16be(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2910, + "line": 1694, "column": 1, - "source_line": "#undef dct_pass" - } - }, - { - "name": "STBI__MARKER_none", - "value": "0xff", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__get16be(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2915, + "line": 1698, "column": 1, - "source_line": "#define STBI__MARKER_none 0xff" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI__RESTART", - "value": "((x) >= 0xd0 && (x) <= 0xd7)", - "function_like": true, - "directive": "define", + "name": "stbi__get32be", + "result_type": { + "reference": "stbi__uint32" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2932, + "line": 1704, "column": 1, - "source_line": "#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7)" - } - }, - { - "name": "stbi__DNL", - "value": "((x) == 0xdc)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3357, + "line": 1704, "column": 1, - "source_line": "#define stbi__DNL(x) ((x) == 0xdc)" - } - }, - { - "name": "stbi__SOI", - "value": "((x) == 0xd8)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3358, + "line": 1708, "column": 1, - "source_line": "#define stbi__SOI(x) ((x) == 0xd8)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbi__EOI", - "value": "((x) == 0xd9)", - "function_like": true, - "directive": "define", + "name": "stbi__get16le", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3359, + "line": 1714, "column": 1, - "source_line": "#define stbi__EOI(x) ((x) == 0xd9)" - } - }, - { - "name": "stbi__SOF", - "value": "((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__get16le(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3360, + "line": 1714, "column": 1, - "source_line": "#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)" - } - }, - { - "name": "stbi__SOS", - "value": "((x) == 0xda)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__get16le(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3361, + "line": 1718, "column": 1, - "source_line": "#define stbi__SOS(x) ((x) == 0xda)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbi__SOF_progressive", - "value": "((x) == 0xc2)", - "function_like": true, - "directive": "define", + "name": "stbi__get32le", + "result_type": { + "reference": "stbi__uint32" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3363, + "line": 1722, "column": 1, - "source_line": "#define stbi__SOF_progressive(x) ((x) == 0xc2)" - } - }, - { - "name": "stbi__div4", - "value": "((stbi_uc) ((x) >> 2))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3454, + "line": 1722, "column": 1, - "source_line": "#define stbi__div4(x) ((stbi_uc) ((x) >> 2))" - } - }, - { - "name": "stbi__div16", - "value": "((stbi_uc) ((x) >> 4))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3503, + "line": 1727, "column": 1, - "source_line": "#define stbi__div16(x) ((stbi_uc) ((x) >> 4))" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbi__float2fixed", - "value": "(((int) ((x) * 4096.0f + 0.5f)) << 8)", - "function_like": true, - "directive": "define", + "name": "stbi__compute_y", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3659, + "line": 1746, "column": 1, - "source_line": "#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8)" - } - }, - { - "name": "STBI__ZFAST_BITS", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 4091, + "line": 1746, "column": 1, - "source_line": "#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables" - } - }, - { - "name": "STBI__ZFAST_MASK", - "value": "((1 << STBI__ZFAST_BITS) - 1)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4092, + "line": 1749, "column": 1, - "source_line": "#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI__ZNSYMS", - "value": "288", - "function_like": false, - "directive": "define", + "name": "stbi__convert_format", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4093, + "line": 1755, + "column": 1, + "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1755, "column": 1, - "source_line": "#define STBI__ZNSYMS 288 // number of symbols in literal/length alphabet" - } - }, - { - "name": "stbi__unpremultiply_on_load", - "value": "stbi__unpremultiply_on_load_global", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 5007, + "line": 1797, "column": 1, - "source_line": "#define stbi__unpremultiply_on_load stbi__unpremultiply_on_load_global" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "stbi__de_iphone_flag", - "value": "stbi__de_iphone_flag_global", - "function_like": false, - "directive": "define", + "name": "stbi__compute_y_16", + "result_type": { + "reference": "stbi__uint16" + }, + "parameters": [ + { + "name": "r", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int r" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int g" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5008, + "line": 1803, "column": 1, - "source_line": "#define stbi__de_iphone_flag stbi__de_iphone_flag_global" - } - }, - { - "name": "stbi__unpremultiply_on_load", - "value": "(stbi__unpremultiply_on_load_set ? stbi__unpremultiply_on_load_local : stbi__unpremultiply_on_load_global)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 5025, + "line": 1803, "column": 1, - "source_line": "#define stbi__unpremultiply_on_load (stbi__unpremultiply_on_load_set \\" - } - }, - { - "name": "stbi__de_iphone_flag", - "value": "(stbi__de_iphone_flag_set ? stbi__de_iphone_flag_local : stbi__de_iphone_flag_global)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 5028, + "line": 1806, "column": 1, - "source_line": "#define stbi__de_iphone_flag (stbi__de_iphone_flag_set \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBI__PNG_TYPE", - "value": "(((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))", - "function_like": true, - "directive": "define", + "name": "stbi__convert_format16", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "parameters": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5076, + "line": 1812, "column": 1, - "source_line": "#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))" - } - }, - { - "name": "STBI__HDR_BUFLEN", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7108, + "line": 1812, "column": 1, - "source_line": "#define STBI__HDR_BUFLEN 1024" - } - } - ], - "includes": [ - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 371, + "line": 1854, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "name": "stbi__build_huffman", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "h", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__huffman", + "name": "stbi__huffman", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "fast", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc fast[1 << 9]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1 << 9", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1940, + "column": 4, + "source_line": " stbi_uc fast[1 << 9];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "code", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 code[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1942, + "column": 4, + "source_line": " stbi__uint16 code[256];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "values", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc values[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1943, + "column": 4, + "source_line": " stbi_uc values[256];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "size", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc size[257]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "257", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1944, + "column": 4, + "source_line": " stbi_uc size[257];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "maxcode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned int maxcode[18]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "18", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1945, + "column": 4, + "source_line": " unsigned int maxcode[18];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "delta", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int delta[17]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "17", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1946, + "column": 4, + "source_line": " int delta[17];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1938, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1938, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *count", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *count", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 386, + "line": 2003, "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 587, + "line": 2003, "column": 1, - "source_line": "#include " - } - }, - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 588, + "line": 2046, "column": 1, - "source_line": "#include // ptrdiff_t on osx" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "name": "stbi__build_fast_ac", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "fast_ac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fast_ac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__int16", + "name": "stbi__int16", + "type": { + "reference": "int16_t" + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 649, + "column": 1, + "source_line": "typedef int16_t stbi__int16;" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fast_ac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 589, + "line": 2050, "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 590, + "line": 2050, "column": 1, - "source_line": "#include " - } - }, - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 591, + "line": 2073, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "target": "math.h", - "kind": "system", - "resolved_path": null, + "name": "stbi__grow_buffer_unsafe", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__jpeg", + "name": "stbi__jpeg", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1951, + "column": 4, + "source_line": " stbi__context *s;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "huff_dc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman huff_dc[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__huffman" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1952, + "column": 4, + "source_line": " stbi__huffman huff_dc[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "huff_ac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman huff_ac[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__huffman" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1953, + "column": 4, + "source_line": " stbi__huffman huff_ac[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dequant", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 dequant[4][64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1954, + "column": 4, + "source_line": " stbi__uint16 dequant[4][64];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fast_ac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 fast_ac[4][1 << 9]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1 << 9", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__int16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1955, + "column": 4, + "source_line": " stbi__int16 fast_ac[4][1 << 9];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_h_max", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_h_max" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1958, + "column": 4, + "source_line": " int img_h_max, img_v_max;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_v_max", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_v_max" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1958, + "column": 4, + "source_line": " int img_h_max, img_v_max;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_mcu_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_mcu_x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1959, + "column": 4, + "source_line": " int img_mcu_x, img_mcu_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_mcu_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_mcu_y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1959, + "column": 4, + "source_line": " int img_mcu_x, img_mcu_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_mcu_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_mcu_w" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1960, + "column": 4, + "source_line": " int img_mcu_w, img_mcu_h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_mcu_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_mcu_h" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1960, + "column": 4, + "source_line": " int img_mcu_w, img_mcu_h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "img_comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "struct img_comp[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "id", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int id" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1965, + "column": 7, + "source_line": " int id;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1966, + "column": 7, + "source_line": " int h,v;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "v", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int v" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1966, + "column": 7, + "source_line": " int h,v;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "tq", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int tq" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1967, + "column": 7, + "source_line": " int tq;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hd", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hd" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1968, + "column": 7, + "source_line": " int hd,ha;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ha", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ha" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1968, + "column": 7, + "source_line": " int hd,ha;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "dc_pred", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int dc_pred" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1969, + "column": 7, + "source_line": " int dc_pred;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1971, + "column": 7, + "source_line": " int x,y,w2,h2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1971, + "column": 7, + "source_line": " int x,y,w2,h2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "w2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1971, + "column": 7, + "source_line": " int x,y,w2,h2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1971, + "column": 7, + "source_line": " int x,y,w2,h2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi_uc", + "name": "stbi_uc", + "type": null, + "source_location": null, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1972, + "column": 7, + "source_line": " stbi_uc *data;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "raw_data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *raw_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1973, + "column": 7, + "source_line": " void *raw_data, *raw_coeff;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "raw_coeff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *raw_coeff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1973, + "column": 7, + "source_line": " void *raw_data, *raw_coeff;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "linebuf", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *linebuf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi_uc", + "name": "stbi_uc", + "type": null, + "source_location": null, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1974, + "column": 7, + "source_line": " stbi_uc *linebuf;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "coeff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *coeff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1975, + "column": 7, + "source_line": " short *coeff;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "coeff_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int coeff_w" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1976, + "column": 7, + "source_line": " int coeff_w, coeff_h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "coeff_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int coeff_h" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1976, + "column": 7, + "source_line": " int coeff_w, coeff_h;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1963, + "column": 4, + "source_line": " struct" + } + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1963, + "column": 4, + "source_line": " struct" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "code_buffer", + "type": { + "reference": "stbi__uint32" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1979, + "column": 4, + "source_line": " stbi__uint32 code_buffer;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "code_bits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int code_bits" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1980, + "column": 4, + "source_line": " int code_bits;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "marker", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char marker" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1981, + "column": 4, + "source_line": " unsigned char marker;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "nomore", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nomore" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1982, + "column": 4, + "source_line": " int nomore;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "progressive", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int progressive" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1984, + "column": 4, + "source_line": " int progressive;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "spec_start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spec_start" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1985, + "column": 4, + "source_line": " int spec_start;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "spec_end", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spec_end" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1986, + "column": 4, + "source_line": " int spec_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "succ_high", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int succ_high" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1987, + "column": 4, + "source_line": " int succ_high;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "succ_low", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int succ_low" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1988, + "column": 4, + "source_line": " int succ_low;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "eob_run", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int eob_run" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1989, + "column": 4, + "source_line": " int eob_run;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "jfif", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int jfif" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1990, + "column": 4, + "source_line": " int jfif;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "app14_color_transform", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int app14_color_transform" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1991, + "column": 4, + "source_line": " int app14_color_transform;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "rgb", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rgb" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1992, + "column": 4, + "source_line": " int rgb;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "scan_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan_n" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1994, + "column": 4, + "source_line": " int scan_n, order[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "order", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int order[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1994, + "column": 4, + "source_line": " int scan_n, order[4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "restart_interval", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int restart_interval" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1995, + "column": 4, + "source_line": " int restart_interval, todo;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "todo", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int todo" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1995, + "column": 4, + "source_line": " int restart_interval, todo;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "idct_block_kernel", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64])", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1998, + "column": 4, + "source_line": " void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "YCbCr_to_RGB_kernel", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "void", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1999, + "column": 4, + "source_line": " void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step);" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "resample_row_hv_2_kernel", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "stbi_uc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 2000, + "column": 4, + "source_line": " stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs);" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1949, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1949, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 594, + "line": 2075, "column": 1, - "source_line": "#include // ldexp, pow" - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 598, + "line": 2075, "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 602, + "line": 2091, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, + "name": "stbi__jpeg_huff_decode", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *h", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 647, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "emmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "line": 2097, + "column": 2, + "source_line": " static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 726, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "intrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "line": 2097, + "column": 2, + "source_line": " static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 731, + "line": 2146, "column": 1, - "source_line": "#include // __cpuid" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "target": "arm_neon.h", - "kind": "system", - "resolved_path": null, + "name": "stbi__extend_receive", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 783, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STBI_INCLUDE_STB_IMAGE_H", - "source_location": { + "line": 2153, + "column": 2, + "source_line": " static int stbi__extend_receive(stbi__jpeg *j, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 129, - "column": 1, - "source_line": "#ifndef STBI_INCLUDE_STB_IMAGE_H" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "line": 2153, + "column": 2, + "source_line": " static int stbi__extend_receive(stbi__jpeg *j, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 370, + "line": 2166, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__jpeg_get_bits", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 372, - "column": 1, - "source_line": "#endif // STBI_NO_STDIO" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { + "line": 2169, + "column": 2, + "source_line": " static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 390, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 2169, + "column": 2, + "source_line": " static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 392, + "line": 2179, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBIDEF", + "name": "stbi__jpeg_get_bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 394, - "column": 1, - "source_line": "#ifndef STBIDEF" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_STATIC", - "source_location": { + "line": 2181, + "column": 2, + "source_line": " static int stbi__jpeg_get_bit(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 395, - "column": 1, - "source_line": "#ifdef STB_IMAGE_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "line": 2181, + "column": 2, + "source_line": " static int stbi__jpeg_get_bit(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 397, + "line": 2190, "column": 1, - "source_line": "#else" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__jpeg_decode_block", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hdc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dequant", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *dequant", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *dequant", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 399, + "line": 2210, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 400, + "line": 2210, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 426, + "line": 2263, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__jpeg_decode_block_prog_dc", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hdc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 430, + "line": 2265, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_GIF", - "source_location": { + "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 432, + "line": 2265, "column": 1, - "source_line": "#ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 434, + "line": 2291, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "STBI_WINDOWS_UTF8", + "name": "stbi__jpeg_decode_block_prog_ac", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 436, + "line": 2295, "column": 1, - "source_line": "#ifdef STBI_WINDOWS_UTF8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 438, + "line": 2295, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 448, + "line": 2413, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__clamp", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 451, + "line": 2416, + "column": 2, + "source_line": " static stbi_uc stbi__clamp(int x)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2416, + "column": 2, + "source_line": " static stbi_uc stbi__clamp(int x)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2424, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", + "name": "stbi__idct_block", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 457, + "line": 2467, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + }, + "start": { "filename": "stb/stb_image.h", - "line": 461, - "column": 4, - "source_line": " #ifndef STBI_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 2467, + "column": 1, + "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + }, + "end": { "filename": "stb/stb_image.h", - "line": 464, - "column": 4, - "source_line": " #endif" - } + "line": 2524, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__idct_simd", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 465, + "line": 2530, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" + }, + "start": { "filename": "stb/stb_image.h", - "line": 467, + "line": 2530, "column": 1, - "source_line": "#ifndef STBI_NO_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" + }, + "end": { "filename": "stb/stb_image.h", - "line": 470, + "line": 2703, "column": 1, - "source_line": "#endif // STBI_NO_HDR" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", + "name": "stbi__get_marker", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 472, + "line": 2919, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 475, + "line": 2919, "column": 1, - "source_line": "#endif // STBI_NO_LINEAR" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 480, + "line": 2928, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__jpeg_reset", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 483, + "line": 2936, "column": 1, - "source_line": "#endif // STBI_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 499, + "line": 2936, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 504, + "line": 2947, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "__cplusplus", + "name": "stbi__parse_entropy_coded_data", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 538, + "line": 2949, "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 540, + "line": 2949, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 545, + "line": 3071, "column": 1, - "source_line": "#endif // STBI_INCLUDE_STB_IMAGE_H" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "STB_IMAGE_IMPLEMENTATION", + "name": "stbi__jpeg_dequantize", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dequant", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *dequant", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 *dequant", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 547, + "line": 3073, "column": 1, - "source_line": "#ifdef STB_IMAGE_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) || defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) || defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) || defined(STBI_ONLY_ZLIB)", - "source_location": { + "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 549, + "line": 3073, "column": 1, - "source_line": "#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \\" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_JPEG", - "source_location": { - "filename": "stb/stb_image.h", - "line": 553, - "column": 4, - "source_line": " #ifndef STBI_ONLY_JPEG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 555, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_PNG", - "source_location": { - "filename": "stb/stb_image.h", - "line": 556, - "column": 4, - "source_line": " #ifndef STBI_ONLY_PNG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 558, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_BMP", - "source_location": { - "filename": "stb/stb_image.h", - "line": 559, - "column": 4, - "source_line": " #ifndef STBI_ONLY_BMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 561, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_PSD", - "source_location": { - "filename": "stb/stb_image.h", - "line": 562, - "column": 4, - "source_line": " #ifndef STBI_ONLY_PSD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 564, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_TGA", - "source_location": { - "filename": "stb/stb_image.h", - "line": 565, - "column": 4, - "source_line": " #ifndef STBI_ONLY_TGA" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 567, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_GIF", - "source_location": { - "filename": "stb/stb_image.h", - "line": 568, - "column": 4, - "source_line": " #ifndef STBI_ONLY_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 570, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_HDR", - "source_location": { - "filename": "stb/stb_image.h", - "line": 571, - "column": 4, - "source_line": " #ifndef STBI_ONLY_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 573, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_PIC", - "source_location": { + "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 574, - "column": 4, - "source_line": " #ifndef STBI_ONLY_PIC" - } + "line": 3078, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__jpeg_finish", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 576, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ONLY_PNM", - "source_location": { + "line": 3080, + "column": 1, + "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 577, - "column": 4, - "source_line": " #ifndef STBI_ONLY_PNM" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 3080, + "column": 1, + "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 579, - "column": 4, - "source_line": " #endif" - } + "line": 3097, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__process_marker", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "m", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int m" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int m" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 580, + "line": 3099, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB)", - "source_location": { + "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 582, + "line": 3099, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 584, + "line": 3200, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "!defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)", + "name": "stbi__process_scan_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 593, + "line": 3203, "column": 1, - "source_line": "#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 595, + "line": 3203, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 597, + "line": 3240, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__free_jpeg_components", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ncomp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ncomp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ncomp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "why", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int why" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int why" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 599, + "line": 3242, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_ASSERT", - "source_location": { + "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 601, + "line": 3242, "column": 1, - "source_line": "#ifndef STBI_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 604, + "line": 3262, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "__cplusplus", + "name": "stbi__process_frame_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scan", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 606, + "line": 3264, "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 608, + "line": 3264, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 610, + "line": 3354, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "_MSC_VER", + "name": "stbi__decode_jpeg_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scan", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 613, + "line": 3365, "column": 1, - "source_line": "#ifndef _MSC_VER" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_image.h", - "line": 614, - "column": 4, - "source_line": " #ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 616, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 618, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 619, + "line": 3365, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 621, + "line": 3387, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_THREAD_LOCALS", + "name": "stbi__skip_jpeg_junk_at_end", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 623, + "line": 3389, "column": 1, - "source_line": "#ifndef STBI_NO_THREAD_LOCALS" - } - }, - { - "directive": "if", - "argument": "defined(__cplusplus) && __cplusplus >= 201103L", - "source_location": { - "filename": "stb/stb_image.h", - "line": 624, - "column": 4, - "source_line": " #if defined(__cplusplus) && __cplusplus >= 201103L" - } - }, - { - "directive": "elif", - "argument": "defined(__GNUC__) && __GNUC__ < 5", - "source_location": { - "filename": "stb/stb_image.h", - "line": 626, - "column": 4, - "source_line": " #elif defined(__GNUC__) && __GNUC__ < 5" - } - }, - { - "directive": "elif", - "argument": "defined(_MSC_VER)", - "source_location": { - "filename": "stb/stb_image.h", - "line": 628, - "column": 4, - "source_line": " #elif defined(_MSC_VER)" - } - }, - { - "directive": "elif", - "argument": "defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__)", - "source_location": { - "filename": "stb/stb_image.h", - "line": 630, - "column": 4, - "source_line": " #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 632, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_THREAD_LOCAL", - "source_location": { - "filename": "stb/stb_image.h", - "line": 634, - "column": 4, - "source_line": " #ifndef STBI_THREAD_LOCAL" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__)", - "source_location": { - "filename": "stb/stb_image.h", - "line": 635, - "column": 7, - "source_line": " #if defined(__GNUC__)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 637, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 3389, + "column": 1, + "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 638, - "column": 4, - "source_line": " #endif" - } + "line": 3409, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__decode_jpeg_image", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 639, + "line": 3412, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) || defined(__SYMBIAN32__)", - "source_location": { + "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 641, + "line": 3412, "column": 1, - "source_line": "#if defined(_MSC_VER) || defined(__SYMBIAN32__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 646, + "line": 3447, "column": 1, - "source_line": "#else" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "resample_row_1", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 652, + "line": 3456, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { + "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 657, + "line": 3456, "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 659, + "line": 3463, "column": 1, - "source_line": "#else" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__resample_row_v_2", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 661, + "line": 3465, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { + "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 663, + "line": 3465, "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 665, + "line": 3473, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "STBI_HAS_LROTL", + "name": "stbi__resample_row_h_2", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 667, + "line": 3475, "column": 1, - "source_line": "#ifdef STBI_HAS_LROTL" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 669, + "line": 3475, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 671, + "line": 3501, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED))", + "name": "stbi__resample_row_hv_2", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 673, + "line": 3505, "column": 1, - "source_line": "#if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED))" - } - }, - { - "directive": "elif", - "argument": "!defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED)", - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 675, + "line": 3505, "column": 1, - "source_line": "#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 677, + "line": 3527, "column": 1, - "source_line": "#else" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__resample_row_hv_2_simd", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 679, + "line": 3530, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_MALLOC", - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 681, + "line": 3530, "column": 1, - "source_line": "#ifndef STBI_MALLOC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 685, + "line": 3643, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_REALLOC_SIZED", + "name": "stbi__resample_row_generic", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_near", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 687, + "line": 3646, "column": 1, - "source_line": "#ifndef STBI_REALLOC_SIZED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 689, + "line": 3646, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__x86_64__) || defined(_M_X64)", - "source_location": { + "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 692, + "line": 3655, "column": 1, - "source_line": "#if defined(__x86_64__) || defined(_M_X64)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "elif", - "argument": "defined(__i386) || defined(_M_IX86)", + "name": "stbi__YCbCr_to_RGB_row", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pcb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pcr", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *pcr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 694, + "line": 3660, "column": 1, - "source_line": "#elif defined(__i386) || defined(_M_IX86)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 696, + "line": 3660, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD)", - "source_location": { + "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 698, + "line": 3683, "column": 1, - "source_line": "#if defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__YCbCr_to_RGB_simd", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pcb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *pcb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *pcb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pcr", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *pcr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *pcr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 707, + "line": 3686, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD)", - "source_location": { + "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 709, + "line": 3686, "column": 1, - "source_line": "#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 722, + "line": 3817, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "!defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET))", + "name": "stbi__setup_jpeg", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 724, + "line": 3821, "column": 1, - "source_line": "#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET))" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { + "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 728, + "line": 3821, "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "if", - "argument": "_MSC_VER >= 1400", - "source_location": { + "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 730, + "line": 3840, "column": 1, - "source_line": "#if _MSC_VER >= 1400 // not VC6" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__cleanup_jpeg", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 738, + "line": 3843, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 749, + "line": 3843, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_JPEG) && defined(STBI_SSE2)", - "source_location": { + "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 753, + "line": 3846, "column": 1, - "source_line": "#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__blinn_8x8", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "x", + "type": { + "reference": "stbi_uc" + }, + "declared_type": { + "reference": "stbi_uc" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "reference": "stbi_uc" + }, + "declared_type": { + "reference": "stbi_uc" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 759, + "line": 3859, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 761, + "line": 3859, "column": 1, - "source_line": "#else // assume GCC-style if not VC++" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_JPEG) && defined(STBI_SSE2)", - "source_location": { + "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 764, + "line": 3863, "column": 1, - "source_line": "#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "load_jpeg_image", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *out_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *out_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *out_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *out_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 772, + "line": 3865, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 774, + "line": 3865, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 775, + "line": 4026, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "defined(STBI_NO_SIMD) && defined(STBI_NEON)", + "name": "stbi__jpeg_info_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "j", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 778, + "line": 4056, "column": 1, - "source_line": "#if defined(STBI_NO_SIMD) && defined(STBI_NEON)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 780, + "line": 4056, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBI_NEON", - "source_location": { + "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 782, + "line": 4066, "column": 1, - "source_line": "#ifdef STBI_NEON" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "_MSC_VER", + "name": "stbi__bitreverse16", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 784, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "line": 4107, + "column": 2, + "source_line": " static int stbi__bitreverse16(int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 786, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4107, + "column": 2, + "source_line": " static int stbi__bitreverse16(int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 788, + "line": 4114, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__bit_reverse", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "v", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int v" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int v" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 789, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_SIMD_ALIGN", - "source_location": { + "line": 4116, + "column": 2, + "source_line": " static int stbi__bit_reverse(int v, int bits)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 791, - "column": 1, - "source_line": "#ifndef STBI_SIMD_ALIGN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4116, + "column": 2, + "source_line": " static int stbi__bit_reverse(int v, int bits)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 793, + "line": 4122, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_MAX_DIMENSIONS", + "name": "stbi__zbuild_huffman", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__zhuffman", + "name": "stbi__zhuffman", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "fast", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 fast[1 << 9]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1 << 9", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4099, + "column": 4, + "source_line": " stbi__uint16 fast[1 << 9];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "firstcode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 firstcode[16]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "16", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4100, + "column": 4, + "source_line": " stbi__uint16 firstcode[16];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "maxcode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int maxcode[17]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "17", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4101, + "column": 4, + "source_line": " int maxcode[17];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "firstsymbol", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 firstsymbol[16]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "16", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4102, + "column": 4, + "source_line": " stbi__uint16 firstsymbol[16];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "size", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc size[288]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "288", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4103, + "column": 4, + "source_line": " stbi_uc size[288];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 value[288]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "288", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4104, + "column": 4, + "source_line": " stbi__uint16 value[288];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4097, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4097, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zhuffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sizelist", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *sizelist", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *sizelist", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 795, + "line": 4124, "column": 1, - "source_line": "#ifndef STBI_MAX_DIMENSIONS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 797, + "line": 4124, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 848, + "line": 4169, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__zeof", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__zbuf", + "name": "stbi__zbuf", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "zbuffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *zbuffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4179, + "column": 4, + "source_line": " stbi_uc *zbuffer, *zbuffer_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "zbuffer_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *zbuffer_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4179, + "column": 4, + "source_line": " stbi_uc *zbuffer, *zbuffer_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_bits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_bits" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4180, + "column": 4, + "source_line": " int num_bits;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hit_zeof_once", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hit_zeof_once" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4181, + "column": 4, + "source_line": " int hit_zeof_once;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "code_buffer", + "type": { + "reference": "stbi__uint32" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4182, + "column": 4, + "source_line": " stbi__uint32 code_buffer;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "zout", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *zout", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4184, + "column": 4, + "source_line": " char *zout;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "zout_start", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *zout_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4185, + "column": 4, + "source_line": " char *zout_start;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "zout_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *zout_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4186, + "column": 4, + "source_line": " char *zout_end;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "z_expandable", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z_expandable" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4187, + "column": 4, + "source_line": " int z_expandable;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "z_length", + "type": { + "reference": "stbi__zhuffman" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4189, + "column": 4, + "source_line": " stbi__zhuffman z_length, z_distance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "z_distance", + "type": { + "reference": "stbi__zhuffman" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4189, + "column": 4, + "source_line": " stbi__zhuffman z_length, z_distance;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4177, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4177, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 884, - "column": 1, - "source_line": "#endif // !STBI_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_JPEG", - "source_location": { + "line": 4192, + "column": 2, + "source_line": " static int stbi__zeof(stbi__zbuf *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 908, - "column": 1, - "source_line": "#ifndef STBI_NO_JPEG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4192, + "column": 2, + "source_line": " static int stbi__zeof(stbi__zbuf *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 912, + "line": 4195, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PNG", + "name": "stbi__zget8", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 914, - "column": 1, - "source_line": "#ifndef STBI_NO_PNG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4197, + "column": 2, + "source_line": " static stbi_uc stbi__zget8(stbi__zbuf *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 919, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_BMP", - "source_location": { + "line": 4197, + "column": 2, + "source_line": " static stbi_uc stbi__zget8(stbi__zbuf *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 921, + "line": 4200, "column": 1, - "source_line": "#ifndef STBI_NO_BMP" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__fill_bits", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 925, + "line": 4202, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_TGA", - "source_location": { + "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 927, + "line": 4202, "column": 1, - "source_line": "#ifndef STBI_NO_TGA" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 931, + "line": 4212, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PSD", + "name": "stbi__zreceive", + "result_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 933, - "column": 1, - "source_line": "#ifndef STBI_NO_PSD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4214, + "column": 2, + "source_line": " static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 938, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "line": 4214, + "column": 2, + "source_line": " static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 940, + "line": 4222, "column": 1, - "source_line": "#ifndef STBI_NO_HDR" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__zhuffman_decode_slowpath", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zhuffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zhuffman" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 944, + "line": 4224, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PIC", - "source_location": { + "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 946, + "line": 4224, "column": 1, - "source_line": "#ifndef STBI_NO_PIC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 950, + "line": 4241, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_GIF", + "name": "stbi__zhuffman_decode", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zhuffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zhuffman *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zhuffman" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 952, - "column": 1, - "source_line": "#ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4243, + "column": 2, + "source_line": " static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 957, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNM", - "source_location": { + "line": 4243, + "column": 2, + "source_line": " static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 959, + "line": 4271, "column": 1, - "source_line": "#ifndef STBI_NO_PNM" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__zexpand", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "zout", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *zout", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *zout", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 964, + "line": 4273, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBI_THREAD_LOCAL", - "source_location": { + "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 967, + "line": 4273, "column": 1, - "source_line": "#ifdef STBI_THREAD_LOCAL" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 969, + "line": 4293, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_FAILURE_STRINGS", + "name": "stbi__parse_huffman_block", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 977, + "line": 4309, "column": 1, - "source_line": "#ifndef STBI_NO_FAILURE_STRINGS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 983, + "line": 4309, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR)", - "source_location": { + "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1022, + "line": 4357, "column": 1, - "source_line": "#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__compute_huffman_codes", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1028, + "line": 4359, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1038, + "line": 4359, "column": 1, - "source_line": "#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1044, + "line": 4407, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "!defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR)", + "name": "stbi__parse_uncompressed_block", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1046, + "line": 4409, "column": 1, - "source_line": "#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1053, + "line": 4409, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1061, + "line": 4436, "column": 1, - "source_line": "#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__parse_zlib_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1067, + "line": 4438, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBI_NO_FAILURE_STRINGS", - "source_location": { + "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1090, + "line": 4438, "column": 1, - "source_line": "#ifdef STBI_NO_FAILURE_STRINGS" - } - }, - { - "directive": "elif", - "argument": "defined(STBI_FAILURE_USERMSG)", - "source_location": { + "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1092, + "line": 4450, "column": 1, - "source_line": "#elif defined(STBI_FAILURE_USERMSG)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__parse_zlib", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "parse_header", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1094, + "line": 4481, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1096, + "line": 4481, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", - "source_location": { + "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1106, + "line": 4508, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__do_zlib", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__zbuf *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__zbuf" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "obuf", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *obuf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *obuf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "olen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "exp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int exp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int exp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "parse_header", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1108, + "line": 4510, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1110, + "line": 4510, "column": 1, - "source_line": "#ifndef STBI_NO_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1112, + "line": 4518, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_THREAD_LOCAL", + "name": "stbi__get_chunk_header", + "result_type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__pngchunk", + "name": "stbi__pngchunk", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "length", + "type": { + "reference": "stbi__uint32" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4609, + "column": 4, + "source_line": " stbi__uint32 length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "reference": "stbi__uint32" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4610, + "column": 4, + "source_line": " stbi__uint32 type;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4607, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4607, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1121, + "line": 4613, "column": 1, - "source_line": "#ifndef STBI_THREAD_LOCAL" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1123, + "line": 4613, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1135, + "line": 4619, "column": 1, - "source_line": "#endif // STBI_THREAD_LOCAL" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNG", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1146, - "column": 4, - "source_line": " #ifndef STBI_NO_PNG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1148, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_BMP", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1149, - "column": 4, - "source_line": " #ifndef STBI_NO_BMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1151, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_GIF", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1152, - "column": 4, - "source_line": " #ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1154, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PSD", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1155, - "column": 4, - "source_line": " #ifndef STBI_NO_PSD" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1157, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1159, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PIC", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1160, - "column": 4, - "source_line": " #ifndef STBI_NO_PIC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1162, - "column": 4, - "source_line": " #endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_JPEG", + "name": "stbi__check_png_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1167, - "column": 4, - "source_line": " #ifndef STBI_NO_JPEG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4621, + "column": 1, + "source_line": "static int stbi__check_png_header(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1169, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNM", - "source_location": { + "line": 4621, + "column": 1, + "source_line": "static int stbi__check_png_header(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1170, - "column": 4, - "source_line": " #ifndef STBI_NO_PNM" - } + "line": 4628, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__paeth", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1172, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "line": 4657, + "column": 1, + "source_line": "static int stbi__paeth(int a, int b, int c)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1174, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4657, + "column": 1, + "source_line": "static int stbi__paeth(int a, int b, int c)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1179, - "column": 4, - "source_line": " #endif" - } + "line": 4668, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_TGA", + "name": "stbi__create_png_alpha_expand8", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1181, - "column": 4, - "source_line": " #ifndef STBI_NO_TGA" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 4675, + "column": 1, + "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1185, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_GIF", - "source_location": { + "line": 4675, + "column": 1, + "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1246, + "line": 4693, "column": 1, - "source_line": "#ifndef STBI_NO_GIF" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__create_png_image_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__png", + "name": "stbi__png", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4632, + "column": 4, + "source_line": " stbi__context *s;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "idata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *idata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4633, + "column": 4, + "source_line": " stbi_uc *idata, *expanded, *out;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "expanded", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *expanded", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4633, + "column": 4, + "source_line": " stbi_uc *idata, *expanded, *out;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4633, + "column": 4, + "source_line": " stbi_uc *idata, *expanded, *out;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4634, + "column": 4, + "source_line": " int depth;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4630, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4630, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "raw", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *raw", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "raw_len", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "color", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1258, + "line": 4696, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR)", - "source_location": { + "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1313, + "line": 4696, "column": 1, - "source_line": "#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1321, + "line": 4859, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", + "name": "stbi__create_png_image", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "image_data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *image_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *image_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "image_data_len", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "color", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "interlaced", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int interlaced" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int interlaced" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1323, + "line": 4861, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(STBI_WINDOWS_UTF8)", - "source_location": { + "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1325, + "line": 4861, "column": 1, - "source_line": "#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1328, + "line": 4904, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "defined(_WIN32) && defined(STBI_WINDOWS_UTF8)", + "name": "stbi__compute_transparency", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc tc[3]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc tc[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1330, + "line": 4906, "column": 1, - "source_line": "#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1335, + "line": 4906, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(STBI_WINDOWS_UTF8)", - "source_location": { + "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1340, + "line": 4929, "column": 1, - "source_line": "#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "defined(_MSC_VER) && _MSC_VER >= 1400", + "name": "stbi__compute_transparency16", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 tc[3]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16 tc[3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1349, + "line": 4931, "column": 1, - "source_line": "#if defined(_MSC_VER) && _MSC_VER >= 1400" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1352, + "line": 4931, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1354, + "line": 4954, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "elif", - "argument": "defined(_MSC_VER) && _MSC_VER >= 1400", + "name": "stbi__expand_png_palette", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "palette", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *palette", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *palette", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pal_img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pal_img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pal_img_n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1356, + "line": 4956, "column": 1, - "source_line": "#elif defined(_MSC_VER) && _MSC_VER >= 1400" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1359, + "line": 4956, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1361, + "line": 4991, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__de_iphone", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1413, + "line": 5033, "column": 1, - "source_line": "#endif //!STBI_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_GIF", - "source_location": { + "source_line": "static void stbi__de_iphone(stbi__png *z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1443, + "line": 5033, "column": 1, - "source_line": "#ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__de_iphone(stbi__png *z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1457, + "line": 5074, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", + "name": "stbi__parse_png_file", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scan", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1459, + "line": 5078, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1463, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1471, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1492, + "line": 5078, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1509, + "line": 5261, "column": 1, - "source_line": "#endif // !STBI_NO_STDIO" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__do_png", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1511, + "line": 5263, "column": 1, - "source_line": "#endif // !STBI_NO_LINEAR" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1519, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1523, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1527, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", - "source_location": { + "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1530, + "line": 5263, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1544, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1552, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1555, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1557, + "line": 5293, "column": 1, - "source_line": "#endif // !STBI_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1561, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1565, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1569, - "column": 4, - "source_line": " #endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", + "name": "stbi__png_info_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1572, + "line": 5310, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1577, + "line": 5310, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1625, + "line": 5320, "column": 1, - "source_line": "#if defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__bmp_test_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1627, + "line": 5346, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1639, + "line": 5346, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC)", - "source_location": { + "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1641, + "line": 5359, "column": 1, - "source_line": "#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__high_bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int z" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1643, + "line": 5370, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__high_bit(unsigned int z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1661, + "line": 5370, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static int stbi__high_bit(unsigned int z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1663, + "line": 5380, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__bitcount", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int a" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int a" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1665, + "line": 5382, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__bitcount(unsigned int a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1689, + "line": 5382, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC)", - "source_location": { + "source_line": "static int stbi__bitcount(unsigned int a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1691, + "line": 5390, "column": 1, - "source_line": "#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__shiftsigned", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "v", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shift" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shift" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1693, + "line": 5395, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1699, + "line": 5395, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC)", - "source_location": { + "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1701, + "line": 5413, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__bmp_set_mask_defaults", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__bmp_data", + "name": "stbi__bmp_data", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "bpp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpp" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5417, + "column": 4, + "source_line": " int bpp, offset, hsz;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5417, + "column": 4, + "source_line": " int bpp, offset, hsz;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hsz", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hsz" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5417, + "column": 4, + "source_line": " int bpp, offset, hsz;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "mr", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int mr" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5418, + "column": 4, + "source_line": " unsigned int mr,mg,mb,ma, all_a;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "mg", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int mg" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5418, + "column": 4, + "source_line": " unsigned int mr,mg,mb,ma, all_a;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "mb", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int mb" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5418, + "column": 4, + "source_line": " unsigned int mr,mg,mb,ma, all_a;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ma", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int ma" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5418, + "column": 4, + "source_line": " unsigned int mr,mg,mb,ma, all_a;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "all_a", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int all_a" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5418, + "column": 4, + "source_line": " unsigned int mr,mg,mb,ma, all_a;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "extra_read", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int extra_read" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5419, + "column": 4, + "source_line": " int extra_read;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5415, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 5415, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "compress", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int compress" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int compress" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1703, + "line": 5422, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1709, + "line": 5422, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF)", - "source_location": { + "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1711, + "line": 5446, "column": 1, - "source_line": "#if defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__bmp_parse_header", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1713, + "line": 5448, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1719, + "line": 5448, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_BMP", - "source_location": { + "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1721, + "line": 5528, "column": 1, - "source_line": "#ifndef STBI_NO_BMP" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__tga_get_comp", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "bits_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits_per_pixel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_grey", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_grey" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_grey" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_rgb16", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int * is_rgb16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int * is_rgb16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1728, + "line": 5739, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1732, + "line": 5739, "column": 1, - "source_line": "#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)" - } + "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5753, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__tga_read_rgb16", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc * out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc * out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1734, + "line": 5852, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1750, + "line": 5852, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)", - "source_location": { + "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1752, + "line": 5869, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__psd_decode_rle", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixelCount", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pixelCount" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pixelCount" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1754, + "line": 6088, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1798, + "line": 6088, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && defined(STBI_NO_PSD)", - "source_location": { + "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1800, + "line": 6124, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__pic_is4", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1802, + "line": 6336, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1807, + "line": 6336, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_NO_PNG) && defined(STBI_NO_PSD)", - "source_location": { + "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1809, + "line": 6344, "column": 1, - "source_line": "#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "else", - "argument": null, + "name": "stbi__pic_test_core", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1811, + "line": 6346, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__pic_test_core(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1855, + "line": 6346, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_LINEAR", - "source_location": { + "source_line": "static int stbi__pic_test_core(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1857, + "line": 6360, "column": 1, - "source_line": "#ifndef STBI_NO_LINEAR" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__readval", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1880, + "line": 6367, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1882, + "line": 6367, "column": 1, - "source_line": "#ifndef STBI_NO_HDR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1910, + "line": 6379, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_JPEG", + "name": "stbi__copyval", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "channel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1933, + "line": 6381, "column": 1, - "source_line": "#ifndef STBI_NO_JPEG" - } - }, - { - "directive": "ifdef", - "argument": "STBI_SSE2", - "source_location": { + "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2526, + "line": 6381, "column": 1, - "source_line": "#ifdef STBI_SSE2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2705, + "line": 6388, "column": 1, - "source_line": "#endif // STBI_SSE2" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "STBI_NEON", + "name": "stbi__pic_load_core", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "result", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2707, + "line": 6390, "column": 1, - "source_line": "#ifdef STBI_NEON" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2913, + "line": 6390, "column": 1, - "source_line": "#endif // STBI_NEON" - } - }, - { - "directive": "if", - "argument": "defined(STBI_SSE2) || defined(STBI_NEON)", - "source_location": { + "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3529, + "line": 6498, "column": 1, - "source_line": "#if defined(STBI_SSE2) || defined(STBI_NEON)" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "if", - "argument": "defined(STBI_SSE2)", + "name": "stbi__gif_test_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3545, + "line": 6580, "column": 1, - "source_line": "#if defined(STBI_SSE2)" - } - }, - { - "directive": "elif", - "argument": "defined(STBI_NEON)", - "source_location": { + "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3588, + "line": 6580, "column": 1, - "source_line": "#elif defined(STBI_NEON)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3622, + "line": 6588, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__gif_parse_colortable", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pal", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc pal[256][4]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc pal[256][4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_entries", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_entries" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_entries" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "transp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int transp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int transp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3644, + "line": 6597, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBI_SSE2) || defined(STBI_NEON)", - "source_location": { + "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3685, + "line": 6597, "column": 1, - "source_line": "#if defined(STBI_SSE2) || defined(STBI_NEON)" - } - }, - { - "directive": "ifdef", - "argument": "STBI_SSE2", - "source_location": { + "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3690, + "line": 6606, "column": 1, - "source_line": "#ifdef STBI_SSE2" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__gif_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__gif", + "name": "stbi__gif", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6562, + "column": 4, + "source_line": " int w,h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6562, + "column": 4, + "source_line": " int w,h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6563, + "column": 4, + "source_line": " stbi_uc *out;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "background", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *background", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6564, + "column": 4, + "source_line": " stbi_uc *background;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "history", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *history", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6565, + "column": 4, + "source_line": " stbi_uc *history;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "flags", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flags" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6566, + "column": 4, + "source_line": " int flags, bgindex, ratio, transparent, eflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bgindex", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bgindex" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6566, + "column": 4, + "source_line": " int flags, bgindex, ratio, transparent, eflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ratio", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ratio" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6566, + "column": 4, + "source_line": " int flags, bgindex, ratio, transparent, eflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "transparent", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int transparent" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6566, + "column": 4, + "source_line": " int flags, bgindex, ratio, transparent, eflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "eflags", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int eflags" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6566, + "column": 4, + "source_line": " int flags, bgindex, ratio, transparent, eflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "pal", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc pal[256][4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6567, + "column": 4, + "source_line": " stbi_uc pal[256][4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "lpal", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc lpal[256][4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6568, + "column": 4, + "source_line": " stbi_uc lpal[256][4];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "codes", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif_lzw codes[8192]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "8192", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__gif_lzw", + "name": "stbi__gif_lzw", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "prefix", + "type": { + "reference": "stbi__int16" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6555, + "column": 4, + "source_line": " stbi__int16 prefix;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "first", + "type": { + "reference": "stbi_uc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6556, + "column": 4, + "source_line": " stbi_uc first;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "suffix", + "type": { + "reference": "stbi_uc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6557, + "column": 4, + "source_line": " stbi_uc suffix;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6553, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6553, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6569, + "column": 4, + "source_line": " stbi__gif_lzw codes[8192];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "color_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *color_table", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6570, + "column": 4, + "source_line": " stbi_uc *color_table;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "parse", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6571, + "column": 4, + "source_line": " int parse, step;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6571, + "column": 4, + "source_line": " int parse, step;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "lflags", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lflags" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6572, + "column": 4, + "source_line": " int lflags;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "start_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int start_x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6573, + "column": 4, + "source_line": " int start_x, start_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "start_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int start_y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6573, + "column": 4, + "source_line": " int start_x, start_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "max_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6574, + "column": 4, + "source_line": " int max_x, max_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "max_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6574, + "column": 4, + "source_line": " int max_x, max_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cur_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cur_x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6575, + "column": 4, + "source_line": " int cur_x, cur_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cur_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cur_y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6575, + "column": 4, + "source_line": " int cur_x, cur_y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "line_size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int line_size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6576, + "column": 4, + "source_line": " int line_size;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "delay", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int delay" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6577, + "column": 4, + "source_line": " int delay;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6560, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6560, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_info", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_info" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_info" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3749, + "line": 6608, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBI_NEON", - "source_location": { + "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3751, + "line": 6608, "column": 1, - "source_line": "#ifdef STBI_NEON" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3795, + "line": 6637, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__gif_info_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3818, + "line": 6639, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBI_SSE2", - "source_location": { + "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3827, + "line": 6639, "column": 1, - "source_line": "#ifdef STBI_SSE2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3833, + "line": 6652, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "STBI_NEON", + "name": "stbi__out_gif_code", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "code", + "type": { + "reference": "stbi__uint16" + }, + "declared_type": { + "reference": "stbi__uint16" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3835, + "line": 6654, "column": 1, - "source_line": "#ifdef STBI_NEON" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3839, + "line": 6654, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4079, + "line": 6689, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_ZLIB", + "name": "stbi__process_gif_raster", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4088, + "line": 6691, "column": 1, - "source_line": "#ifndef STBI_NO_ZLIB" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 4594, + "line": 6691, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNG", - "source_location": { + "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4606, + "line": 6774, "column": 1, - "source_line": "#ifndef STBI_NO_PNG" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_THREAD_LOCAL", + "name": "stbi__gif_load_next", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "two_back", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *two_back", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *two_back", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5006, + "line": 6778, "column": 1, - "source_line": "#ifndef STBI_THREAD_LOCAL" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 5009, + "line": 6778, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 5031, + "line": 6950, "column": 1, - "source_line": "#endif // STBI_THREAD_LOCAL" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_FAILURE_STRINGS", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5245, - "column": 16, - "source_line": " #ifndef STBI_NO_FAILURE_STRINGS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 5252, - "column": 16, - "source_line": " #endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__load_gif_main_outofmem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "delays", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5341, + "line": 6952, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_BMP", - "source_location": { + "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 5345, + "line": 6952, "column": 1, - "source_line": "#ifndef STBI_NO_BMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 5733, + "line": 6961, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_TGA", + "name": "stbi__hdr_test_core", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "signature", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *signature", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *signature", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5737, + "line": 7087, "column": 1, - "source_line": "#ifndef STBI_NO_TGA" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 6075, + "line": 7087, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PSD", - "source_location": { + "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 6080, + "line": 7095, "column": 1, - "source_line": "#ifndef STBI_NO_PSD" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__hdr_gettoken", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6326, + "line": 7109, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PIC", - "source_location": { + "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 6335, + "line": 7109, "column": 1, - "source_line": "#ifndef STBI_NO_PIC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 6547, + "line": 7129, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_GIF", + "name": "stbi__hdr_convert", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6552, + "line": 7131, "column": 1, - "source_line": "#ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7081, + "line": 7131, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_HDR", - "source_location": { + "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7086, + "line": 7156, "column": 1, - "source_line": "#ifndef STBI_NO_HDR" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__pnm_isspace", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7332, - "column": 1, - "source_line": "#endif // STBI_NO_HDR" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_BMP", - "source_location": { + "line": 7543, + "column": 1, + "source_line": "static int stbi__pnm_isspace(char c)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7334, + "line": 7543, "column": 1, - "source_line": "#ifndef STBI_NO_BMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__pnm_isspace(char c)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7356, + "line": 7546, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PSD", + "name": "stbi__pnm_skip_whitespace", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7358, + "line": 7548, "column": 1, - "source_line": "#ifndef STBI_NO_PSD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7420, + "line": 7548, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PIC", - "source_location": { + "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7422, + "line": 7560, "column": 1, - "source_line": "#ifndef STBI_NO_PIC" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__pnm_isdigit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7479, + "line": 7562, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNM", - "source_location": { + "source_line": "static int stbi__pnm_isdigit(char c)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7492, + "line": 7562, "column": 1, - "source_line": "#ifndef STBI_NO_PNM" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbi__pnm_isdigit(char c)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7630, + "line": 7565, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_JPEG", + "name": "stbi__pnm_getinteger", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7634, - "column": 4, - "source_line": " #ifndef STBI_NO_JPEG" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 7567, + "column": 1, + "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7636, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PNG", - "source_location": { + "line": 7567, + "column": 1, + "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7638, - "column": 4, - "source_line": " #ifndef STBI_NO_PNG" - } + "line": 7579, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__info_main", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7640, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_GIF", - "source_location": { + "line": 7632, + "column": 1, + "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7642, - "column": 4, - "source_line": " #ifndef STBI_NO_GIF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 7632, + "column": 1, + "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7644, - "column": 4, - "source_line": " #endif" - } + "line": 7672, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_BMP", + "name": "stbi__is_16_main", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7646, - "column": 4, - "source_line": " #ifndef STBI_NO_BMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "line": 7674, + "column": 1, + "source_line": "static int stbi__is_16_main(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7648, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_NO_PSD", - "source_location": { + "line": 7674, + "column": 1, + "source_line": "static int stbi__is_16_main(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 7650, - "column": 4, - "source_line": " #ifndef STBI_NO_PSD" - } - }, + "line": 7688, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [ { - "directive": "endif", - "argument": null, + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "resample", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "resample_row_func", + "name": "resample_row_func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1, int w, int hs)", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "stbi_uc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3451, + "column": 1, + "source_line": "typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1," + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3850, + "column": 4, + "source_line": " resample_row_func resample;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "line0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *line0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3851, + "column": 4, + "source_line": " stbi_uc *line0,*line1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "line1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *line1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3851, + "column": 4, + "source_line": " stbi_uc *line0,*line1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "hs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int hs" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3852, + "column": 4, + "source_line": " int hs,vs;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "vs", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int vs" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3852, + "column": 4, + "source_line": " int hs,vs;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "w_lores", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w_lores" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3853, + "column": 4, + "source_line": " int w_lores;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ystep", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ystep" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3854, + "column": 4, + "source_line": " int ystep;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ypos", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ypos" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 3855, + "column": 4, + "source_line": " int ypos;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_image.h", - "line": 7652, - "column": 4, - "source_line": " #endif" + "line": 3848, + "column": 1, + "source_line": "typedef struct" } }, { - "directive": "ifndef", - "argument": "STBI_NO_PIC", + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "size", + "type": { + "reference": "stbi_uc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6364, + "column": 4, + "source_line": " stbi_uc size,type,channel;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "reference": "stbi_uc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6364, + "column": 4, + "source_line": " stbi_uc size,type,channel;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "channel", + "type": { + "reference": "stbi_uc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 6364, + "column": 4, + "source_line": " stbi_uc size,type,channel;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_image.h", - "line": 7654, - "column": 4, - "source_line": " #ifndef STBI_NO_PIC" + "line": 6362, + "column": 1, + "source_line": "typedef struct" } - }, + } + ], + "unions": [], + "enums": [ { - "directive": "endif", - "argument": null, + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBI_default", + "value": "0", + "source_location": { + "filename": "stb/stb_image.h", + "line": 376, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI_grey", + "value": "1", + "source_location": { + "filename": "stb/stb_image.h", + "line": 376, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI_grey_alpha", + "value": "2", + "source_location": { + "filename": "stb/stb_image.h", + "line": 376, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI_rgb", + "value": "3", + "source_location": { + "filename": "stb/stb_image.h", + "line": 376, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI_rgb_alpha", + "value": "4", + "source_location": { + "filename": "stb/stb_image.h", + "line": 376, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_image.h", - "line": 7656, - "column": 4, - "source_line": " #endif" + "line": 376, + "column": 1, + "source_line": "enum" } }, { - "directive": "ifndef", - "argument": "STBI_NO_PNM", + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBI_ORDER_RGB", + "value": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 895, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI_ORDER_BGR", + "value": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 895, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_image.h", - "line": 7658, - "column": 4, - "source_line": " #ifndef STBI_NO_PNM" + "line": 895, + "column": 1, + "source_line": "enum" } }, { - "directive": "endif", - "argument": null, + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBI__SCAN_load", + "value": "0", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1590, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI__SCAN_type", + "value": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1590, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBI__SCAN_header", + "value": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 1590, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_image.h", - "line": 7660, - "column": 4, - "source_line": " #endif" + "line": 1590, + "column": 1, + "source_line": "enum" } }, { - "directive": "ifndef", - "argument": "STBI_NO_HDR", + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBI__F_none", + "value": "0", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBI__F_sub", + "value": "1", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBI__F_up", + "value": "2", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBI__F_avg", + "value": "3", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBI__F_paeth", + "value": "4", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBI__F_avg_first", + "value": null, + "source_location": { + "filename": "stb/stb_image.h", + "line": 4638, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_image.h", - "line": 7662, - "column": 4, - "source_line": " #ifndef STBI_NO_HDR" + "line": 4638, + "column": 1, + "source_line": "enum {" } - }, + } + ], + "typedefs": [ { - "directive": "endif", - "argument": null, + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__int32", + "name": "stbi__int32", + "type": { + "reference": "int32_t" + }, "source_location": { "filename": "stb/stb_image.h", - "line": 7664, - "column": 4, - "source_line": " #endif" - } + "line": 651, + "column": 1, + "source_line": "typedef int32_t stbi__int32;" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_TGA", + "model": "CTypedef", + "qualifiers": [], + "source_text": "validate_uint32", + "name": "validate_uint32", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "sizeof(stbi__uint32)==4 ? 1 : -1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, "source_location": { "filename": "stb/stb_image.h", - "line": 7667, - "column": 4, - "source_line": " #ifndef STBI_NO_TGA" - } + "line": 655, + "column": 1, + "source_line": "typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__resample", + "name": "stbi__resample", + "type": { + "reference": "struct@:0:0" + }, "source_location": { "filename": "stb/stb_image.h", - "line": 7670, - "column": 4, - "source_line": " #endif" - } + "line": 3848, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PNG", + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi__pic_packet", + "name": "stbi__pic_packet", + "type": { + "reference": "struct@:0:0" + }, "source_location": { "filename": "stb/stb_image.h", - "line": 7676, - "column": 4, - "source_line": " #ifndef STBI_NO_PNG" - } - }, + "line": 6362, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ], + "variables": [ { - "directive": "endif", - "argument": null, + "name": "stbi__stdio_callbacks", + "type": { + "reference": "stbi_io_callbacks" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ stbi__stdio_read, stbi__stdio_skip, stbi__stdio_eof, }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7678, - "column": 4, - "source_line": " #endif" - } + "line": 870, + "column": 1, + "source_line": "static stbi_io_callbacks stbi__stdio_callbacks =" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PSD", + "name": "stbi__g_failure_reason", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static _Thread_local const char *stbi__g_failure_reason", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7680, - "column": 4, - "source_line": " #ifndef STBI_NO_PSD" - } + "line": 966, + "column": 1, + "source_line": "static" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__vertically_flip_on_load_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__vertically_flip_on_load_global" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7682, - "column": 4, - "source_line": " #endif" - } + "line": 1114, + "column": 1, + "source_line": "static int stbi__vertically_flip_on_load_global = 0;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_PNM", + "name": "stbi__vertically_flip_on_load_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__vertically_flip_on_load_local" + }, + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7684, - "column": 4, - "source_line": " #ifndef STBI_NO_PNM" - } + "line": 1124, + "column": 1, + "source_line": "static _Thread_local int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__vertically_flip_on_load_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__vertically_flip_on_load_set" + }, + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7686, - "column": 4, - "source_line": " #endif" - } + "line": 1124, + "column": 1, + "source_line": "static _Thread_local int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "ifndef", - "argument": "STBI_NO_STDIO", + "name": "stbi__l2h_gamma", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__l2h_gamma" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "2.2f" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7690, + "line": 1573, "column": 1, - "source_line": "#ifndef STBI_NO_STDIO" - } + "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__l2h_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__l2h_scale" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7732, + "line": 1573, "column": 1, - "source_line": "#endif // !STBI_NO_STDIO" - } + "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbi__h2l_gamma_i", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__h2l_gamma_i" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f/2.2f" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 7762, + "line": 1579, "column": 1, - "source_line": "#endif // STB_IMAGE_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ + "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" + }, + "callback_policy": null, + "declaration_locations": [] + }, { - "name": "STBI_THREAD_LOCAL", - "context": "declaration", + "name": "stbi__h2l_scale_i", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__h2l_scale_i" + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 966, + "line": 1579, "column": 1, - "source_line": "static" + "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" }, - "source_text": "static\n \nSTBI_THREAD_LOCAL\n \nconst char *stbi__g_failure_reason" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", + "name": "stbi__bmask", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi__uint32 stbi__bmask[17]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "17", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint32" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 972, + "line": 2094, "column": 1, - "source_line": "STBIDEF const char *stbi_failure_reason(void)" + "source_line": "static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535};" }, - "source_text": "STBIDEF const char *stbi_failure_reason(void)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "stbi__err", - "context": "declaration", + "name": "stbi__jbias", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__jbias[16]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "16", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767}" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 978, + "line": 2149, "column": 1, - "source_line": "static int stbi__err(const char *str)" + "source_line": "static const int stbi__jbias[16] = {0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767};" }, - "source_text": "static int stbi__err(const char *str)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", + "name": "stbi__jpeg_dezigzag", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__jpeg_dezigzag[64+15]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64+15", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63 }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1101, + "line": 2194, "column": 1, - "source_line": "STBIDEF void stbi_image_free(void *retval_from_stbi_load)" + "source_line": "static const stbi_uc stbi__jpeg_dezigzag[64+15] =" }, - "source_text": "STBIDEF void stbi_image_free(void *retval_from_stbi_load)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", + "name": "stbi__zlength_base", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zlength_base[31]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "31", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 3,4,5,6,7,8,9,10,11,13, 15,17,19,23,27,31,35,43,51,59, 67,83,99,115,131,163,195,227,258,0,0 }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1116, + "line": 4295, "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + "source_line": "static const int stbi__zlength_base[31] = {" }, - "source_text": "STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBI_THREAD_LOCAL", - "context": "declaration", + "name": "stbi__zlength_extra", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zlength_extra[31]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "31", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1124, + "line": 4300, "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" + "source_line": "static const int stbi__zlength_extra[31]=" }, - "source_text": "static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1126, - "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" + "name": "stbi__zdist_base", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zdist_base[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, 257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}" }, - "source_text": "STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" - }, - { - "name": "STBI_EXTERN", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1326, + "line": 4303, "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" + "source_line": "static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193," }, - "source_text": "STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBI_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1327, - "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" + "name": "stbi__zdist_extra", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zdist_extra[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "source_text": "STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1331, - "column": 1, - "source_line": "STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}" }, - "source_text": "STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1366, + "line": 4306, "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const int stbi__zdist_extra[32] =" }, - "source_text": "STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1376, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "name": "stbi__zdefault_length", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__zdefault_length[288]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "288", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1389, - "column": 1, - "source_line": "STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8 }" }, - "source_text": "STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1402, + "line": 4452, "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const stbi_uc stbi__zdefault_length[288] =" }, - "source_text": "STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1415, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" + "name": "stbi__zdefault_distance", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__zdefault_distance[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1422, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 }" }, - "source_text": "STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1429, + "line": 4464, "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const stbi_uc stbi__zdefault_distance[32] =" }, - "source_text": "STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1436, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "name": "first_row_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static stbi_uc first_row_filter[5]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "5", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1444, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ STBI__F_none, STBI__F_sub, STBI__F_none, STBI__F_avg_first, STBI__F_sub }" }, - "source_text": "STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1478, + "line": 4648, "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "source_line": "static stbi_uc first_row_filter[5] =" }, - "source_text": "STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1485, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "name": "stbi__depth_scale_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__depth_scale_table[9]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "9", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1493, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }" }, - "source_text": "STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1503, + "line": 4670, "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 };" }, - "source_text": "STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1517, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" + "name": "stbi__unpremultiply_on_load_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__unpremultiply_on_load_global" }, - "source_text": "STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1531, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr (char const *filename)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" }, - "source_text": "STBIDEF int stbi_is_hdr (char const *filename)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1542, + "line": 4993, "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_file(FILE *f)" + "source_line": "static int stbi__unpremultiply_on_load_global = 0;" }, - "source_text": "STBIDEF int stbi_is_hdr_from_file(FILE *f)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1559, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" + "name": "stbi__de_iphone_flag_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__de_iphone_flag_global" }, - "source_text": "STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1575, - "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" }, - "source_text": "STBIDEF void stbi_ldr_to_hdr_gamma(float gamma)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1576, + "line": 4994, "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + "source_line": "static int stbi__de_iphone_flag_global = 0;" }, - "source_text": "STBIDEF void stbi_ldr_to_hdr_scale(float scale)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1581, - "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + "name": "stbi__unpremultiply_on_load_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__unpremultiply_on_load_local" }, - "source_text": "STBIDEF void stbi_hdr_to_ldr_gamma(float gamma)" - }, - { - "name": "STBIDEF", - "context": "declaration", + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1582, + "line": 5010, "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + "source_line": "static _Thread_local int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" }, - "source_text": "STBIDEF void stbi_hdr_to_ldr_scale(float scale)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1614, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__get8(stbi__context *s)" + "name": "stbi__unpremultiply_on_load_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__unpremultiply_on_load_set" }, - "source_text": "stbi_inline static stbi_uc stbi__get8(stbi__context *s)" - }, - { - "name": "stbi_inline", - "context": "declaration", + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 1628, + "line": 5010, "column": 1, - "source_line": "stbi_inline static int stbi__at_eof(stbi__context *s)" + "source_line": "static _Thread_local int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" }, - "source_text": "stbi_inline static int stbi__at_eof(stbi__context *s)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2097, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + "name": "stbi__de_iphone_flag_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__de_iphone_flag_local" }, - "source_text": "stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" - }, - { - "name": "stbi_inline", - "context": "declaration", + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 2153, + "line": 5011, "column": 1, - "source_line": "stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)" + "source_line": "static _Thread_local int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" }, - "source_text": "stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)" + "callback_policy": null, + "declaration_locations": [] }, { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2169, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" + "name": "stbi__de_iphone_flag_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__de_iphone_flag_set" }, - "source_text": "stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" - }, - { - "name": "stbi_inline", - "context": "declaration", + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image.h", - "line": 2181, + "line": 5011, "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)" + "source_line": "static _Thread_local int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" }, - "source_text": "stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)" - }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [ { - "name": "stbi_inline", - "context": "declaration", - "source_location": { + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stbi_load_from_file_16'.", + "severity": "error", + "location": { "filename": "stb/stb_image.h", - "line": 2416, + "line": 1389, "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__clamp(int x)" + "source_line": "extern stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" }, - "source_text": "stbi_inline static stbi_uc stbi__clamp(int x)" - }, - { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4107, - "column": 1, - "source_line": "stbi_inline static int stbi__bitreverse16(int n)" + "unit_kind": "function", + "unit_name": "stbi_load_from_file_16" + } + ] + } + }, + "functions": { + "stbi_load_from_memory": { + "name": "stbi_load_from_memory", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "source_text": "stbi_inline static int stbi__bitreverse16(int n)" - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4116, - "column": 1, - "source_line": "stbi_inline static int stbi__bit_reverse(int v, int bits)" + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "stbi_inline static int stbi__bit_reverse(int v, int bits)" - }, - { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4192, - "column": 1, - "source_line": "stbi_inline static int stbi__zeof(stbi__zbuf *z)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "source_text": "stbi_inline static int stbi__zeof(stbi__zbuf *z)" + "source_location": null, + "callback_policy": null }, { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4197, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z)" + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "source_text": "stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z)" - }, - { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4214, - "column": 1, - "source_line": "stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "source_text": "stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + "source_location": null, + "callback_policy": null }, { - "name": "stbi_inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4243, - "column": 1, - "source_line": "stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4520, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4536, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4541, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4557, - "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4568, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4584, - "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "source_text": "STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4996, - "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "source_text": "STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1429, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1429, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1434, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5001, - "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + "filename": "stb/stb_image.h", + "line": 423, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_from_callbacks": { + "name": "stbi_load_from_callbacks", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "source_text": "STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "name": "STBI_THREAD_LOCAL", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5010, - "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" + "name": "clbk", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "source_text": "static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set" - }, - { - "name": "STBI_THREAD_LOCAL", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5011, - "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "source_text": "static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5013, - "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "source_text": "STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5019, - "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "source_text": "STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7691, - "column": 1, - "source_line": "STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7701, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7712, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit(char const *filename)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_is_16_bit(char const *filename)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7722, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_file(FILE *f)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_is_16_bit_from_file(FILE *f)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7734, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7741, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "source_text": "STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" + "source_location": null, + "callback_policy": null }, { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7748, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "source_text": "STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" - }, - { - "name": "STBIDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7755, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "source_text": "STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" + "source_location": null, + "callback_policy": null } ], - "diagnostics": [ + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1436, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1436, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1441, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 603, - "column": 1, - "source_line": "#define STBI_ASSERT(x) assert(x)" + "filename": "stb/stb_image.h", + "line": 424, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load": { + "name": "stbi_load", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "STBI_ASSERT" - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 658, - "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)(v)" + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 660, - "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)sizeof(v)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_NOTUSED" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi_lrot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 668, - "column": 4, - "source_line": " #define stbi_lrot(x,y) _lrotl(x,y)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi_lrot" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi_lrot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 670, - "column": 4, - "source_line": " #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31)))" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi_lrot" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 682, - "column": 1, - "source_line": "#define STBI_MALLOC(sz) malloc(sz)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_MALLOC" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 683, - "column": 1, - "source_line": "#define STBI_REALLOC(p,newsz) realloc(p,newsz)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 684, - "column": 1, - "source_line": "#define STBI_FREE(p) free(p)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_FREE" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_REALLOC_SIZED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 688, - "column": 1, - "source_line": "#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "STBI_REALLOC_SIZED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 751, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1366, + "column": 1, + "source_line": "extern stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1366, + "column": 1, + "source_line": "extern stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1374, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 762, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" + "filename": "stb/stb_image.h", + "line": 427, + "column": 1, + "source_line": "extern stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_from_file": { + "name": "stbi_load_from_file", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 785, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 787, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 792, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1091, - "column": 4, - "source_line": " #define stbi__err(x,y) 0" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__err" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1093, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(y)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__err" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1095, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(x)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__err" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__errpf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1098, - "column": 1, - "source_line": "#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL))" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__errpf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__errpuc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1099, - "column": 1, - "source_line": "#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__errpuc" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__BYTECAST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1730, - "column": 1, - "source_line": "#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "STBI__BYTECAST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__COMBO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1773, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "STBI__COMBO" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1376, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1376, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1387, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__CASE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1774, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" + "filename": "stb/stb_image.h", + "line": 428, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_gif_from_memory": { + "name": "stbi_load_gif_from_memory", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "STBI__CASE" - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__COMBO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1830, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI__COMBO" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__CASE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1831, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI__CASE" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__float2int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1883, - "column": 1, - "source_line": "#define stbi__float2int(x) ((int) (x))" + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro", - "unit_name": "stbi__float2int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__f2f' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2426, - "column": 1, - "source_line": "#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro", - "unit_name": "stbi__f2f" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__fsh' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2427, - "column": 1, - "source_line": "#define stbi__fsh(x) ((x) * 4096)" + "name": "delays", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__fsh" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__IDCT_1D' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2430, - "column": 1, - "source_line": "#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI__IDCT_1D" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_const' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2537, - "column": 4, - "source_line": " #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y))" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_const" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_rot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2541, - "column": 4, - "source_line": " #define dct_rot(out0,out1, x,y,c0,c1) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_rot" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_widen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2550, - "column": 4, - "source_line": " #define dct_widen(out, in) \\" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_widen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wadd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2555, - "column": 4, - "source_line": " #define dct_wadd(out, a, b) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_wadd" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wsub' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2560, - "column": 4, - "source_line": " #define dct_wsub(out, a, b) \\" + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_wsub" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_bfly32o' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2565, - "column": 4, - "source_line": " #define dct_bfly32o(out0, out1, a,b,bias,s) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_bfly32o" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_interleave8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2576, - "column": 4, - "source_line": " #define dct_interleave8(a, b) \\" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_interleave8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_interleave16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2582, - "column": 4, - "source_line": " #define dct_interleave16(a, b) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_interleave16" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_pass' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2587, - "column": 4, - "source_line": " #define dct_pass(bias,shift) \\" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "dct_pass" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_long_mul' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2728, - "column": 1, - "source_line": "#define dct_long_mul(out, inq, coeff) \\" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro", - "unit_name": "dct_long_mul" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1444, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1444, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1456, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_long_mac' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2732, - "column": 1, - "source_line": "#define dct_long_mac(out, acc, inq, coeff) \\" + "filename": "stb/stb_image.h", + "line": 433, + "column": 1, + "source_line": "extern stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" + } + ] + }, + "stbi_load_16_from_memory": { + "name": "stbi_load_16_from_memory", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "dct_long_mac" - }, + { + "reference": "stbi_us" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_widen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2736, - "column": 1, - "source_line": "#define dct_widen(out, inq) \\" + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_widen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wadd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2741, - "column": 1, - "source_line": "#define dct_wadd(out, a, b) \\" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_wadd" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wsub' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2746, - "column": 1, - "source_line": "#define dct_wsub(out, a, b) \\" + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro", - "unit_name": "dct_wsub" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_bfly32o' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2751, - "column": 1, - "source_line": "#define dct_bfly32o(out0,out1, a,b,shiftop,s) \\" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro", - "unit_name": "dct_bfly32o" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_pass' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2759, - "column": 1, - "source_line": "#define dct_pass(shiftop, shift) \\" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_pass" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2819, - "column": 1, - "source_line": "#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; }" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_trn16" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2820, - "column": 1, - "source_line": "#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); }" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_trn32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn64' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2821, - "column": 1, - "source_line": "#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); }" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_trn64" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2864, - "column": 1, - "source_line": "#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; }" + "name": "channels_in_file", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_trn8_8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2865, - "column": 1, - "source_line": "#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); }" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "dct_trn8_16" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2866, - "column": 1, - "source_line": "#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); }" + "name": "desired_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro", - "unit_name": "dct_trn8_32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__RESTART' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2932, - "column": 1, - "source_line": "#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro", - "unit_name": "STBI__RESTART" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1415, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1415, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1420, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__DNL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3357, - "column": 1, - "source_line": "#define stbi__DNL(x) ((x) == 0xdc)" + "filename": "stb/stb_image.h", + "line": 445, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_16_from_callbacks": { + "name": "stbi_load_16_from_callbacks", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "stbi__DNL" - }, + { + "reference": "stbi_us" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3358, - "column": 1, - "source_line": "#define stbi__SOI(x) ((x) == 0xd8)" + "name": "clbk", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__SOI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__EOI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3359, - "column": 1, - "source_line": "#define stbi__EOI(x) ((x) == 0xd9)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__EOI" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3360, - "column": 1, - "source_line": "#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)" + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__SOF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3361, - "column": 1, - "source_line": "#define stbi__SOS(x) ((x) == 0xda)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__SOS" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOF_progressive' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3363, - "column": 1, - "source_line": "#define stbi__SOF_progressive(x) ((x) == 0xc2)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__SOF_progressive" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__div4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3454, - "column": 1, - "source_line": "#define stbi__div4(x) ((stbi_uc) ((x) >> 2))" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__div4" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__div16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3503, - "column": 1, - "source_line": "#define stbi__div16(x) ((stbi_uc) ((x) >> 4))" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__div16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__float2fixed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3659, - "column": 1, - "source_line": "#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__float2fixed" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__PNG_TYPE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5076, - "column": 1, - "source_line": "#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))" + "name": "channels_in_file", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "STBI__PNG_TYPE" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 391, - "column": 1, - "source_line": "extern \"C\" {" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "declarator", - "unit_name": null + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 966, - "column": 1, - "source_line": "static" + "name": "desired_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 972, - "column": 1, - "source_line": "STBIDEF const char *stbi_failure_reason(void)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1422, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1422, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1427, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbi__err'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 978, - "column": 1, - "source_line": "static int stbi__err(const char *str)" + "filename": "stb/stb_image.h", + "line": 446, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_16": { + "name": "stbi_load_16", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi__err" - }, + { + "reference": "stbi_us" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1101, - "column": 1, - "source_line": "STBIDEF void stbi_image_free(void *retval_from_stbi_load)" + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1116, - "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1124, - "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1126, - "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1326, - "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1327, - "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_EXTERN" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1331, - "column": 1, - "source_line": "STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1366, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1376, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1389, - "column": 1, - "source_line": "STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1402, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1402, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1410, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1402, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + "filename": "stb/stb_image.h", + "line": 449, + "column": 1, + "source_line": "extern stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_load_from_file_16": { + "name": "stbi_load_from_file_16", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_us", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + { + "reference": "stbi_us" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1415, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1422, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1429, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1436, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1444, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1478, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1485, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "name": "channels_in_file", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1493, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels_in_file", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1503, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "name": "desired_channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1517, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desired_channels" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1531, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr (char const *filename)" + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 450, + "column": 1, + "source_line": "extern stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 450, + "column": 1, + "source_line": "extern stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_loadf_from_memory": { + "name": "stbi_loadf_from_memory", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1542, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_file(FILE *f)" + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1559, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc const *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1575, - "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1576, - "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1581, - "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1582, - "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1614, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__get8(stbi__context *s)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1628, - "column": 1, - "source_line": "stbi_inline static int stbi__at_eof(stbi__context *s)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2097, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2153, - "column": 1, - "source_line": "stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2169, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2181, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1478, + "column": 1, + "source_line": "extern float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1478, + "column": 1, + "source_line": "extern float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1483, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2416, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__clamp(int x)" + "filename": "stb/stb_image.h", + "line": 458, + "column": 4, + "source_line": " extern float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_loadf_from_callbacks": { + "name": "stbi_loadf_from_callbacks", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4107, - "column": 1, - "source_line": "stbi_inline static int stbi__bitreverse16(int n)" + "name": "clbk", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4116, - "column": 1, - "source_line": "stbi_inline static int stbi__bit_reverse(int v, int bits)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks const *clbk", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4192, - "column": 1, - "source_line": "stbi_inline static int stbi__zeof(stbi__zbuf *z)" + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4197, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4214, - "column": 1, - "source_line": "stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4243, - "column": 1, - "source_line": "stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4520, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4536, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4541, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4557, - "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4568, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4584, - "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1485, + "column": 1, + "source_line": "extern float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1485, + "column": 1, + "source_line": "extern float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1490, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4996, - "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + "filename": "stb/stb_image.h", + "line": 459, + "column": 4, + "source_line": " extern float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_loadf": { + "name": "stbi_loadf", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5001, - "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5010, - "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5011, - "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5013, - "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5019, - "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7691, - "column": 1, - "source_line": "STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7701, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7712, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit(char const *filename)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7722, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_file(FILE *f)" + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7734, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1493, + "column": 1, + "source_line": "extern float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1493, + "column": 1, + "source_line": "extern float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1501, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7741, - "column": 1, - "source_line": "STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" + "filename": "stb/stb_image.h", + "line": 462, + "column": 4, + "source_line": " extern float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);" + } + ] + }, + "stbi_loadf_from_file": { + "name": "stbi_loadf_from_file", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7748, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 7755, - "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__uint16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image.h", - "line": 648, - "column": 1, - "source_line": "typedef uint16_t stbi__uint16;" + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "typedef", - "unit_name": "stbi__uint16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__int16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image.h", - "line": 649, - "column": 1, - "source_line": "typedef int16_t stbi__int16;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "typedef", - "unit_name": "stbi__int16" + "source_location": null, + "callback_policy": null }, { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__uint32'.", - "severity": "error", - "location": { - "filename": "stb/stb_image.h", - "line": 650, - "column": 1, - "source_line": "typedef uint32_t stbi__uint32;" + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "typedef", - "unit_name": "stbi__uint32" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__int32'.", - "severity": "error", - "location": { - "filename": "stb/stb_image.h", - "line": 651, - "column": 1, - "source_line": "typedef int32_t stbi__int32;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "typedef", - "unit_name": "stbi__int32" + "source_location": null, + "callback_policy": null }, { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'stbi__idct_simd'.", - "severity": "error", - "location": { - "filename": "stb/stb_image.h", - "line": 2711, - "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" - }, - "unit_kind": "function", - "unit_name": "stbi__idct_simd" - } - ] - } - }, - "functions": { - "stbi__refill_buffer": { - "name": "stbi__refill_buffer", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -33317,14 +36444,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -33332,16 +36461,33 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -33349,33 +36495,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1597, + "line": 1503, "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s)" + "source_line": "extern float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1597, + "line": 1503, "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s)" + "source_line": "extern float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1612, + "line": 1508, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 823, - "column": 1, - "source_line": "static void stbi__refill_buffer(stbi__context *s);" + "line": 463, + "column": 4, + "source_line": " extern float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);" } ] }, - "stbi__start_mem": { - "name": "stbi__start_mem", + "stbi_hdr_to_ldr_gamma": { + "name": "stbi_hdr_to_ldr_gamma", "result_type": { "model": "CVoid", "qualifiers": [], @@ -33383,11 +36529,243 @@ }, "parameters": [ { - "name": "s", + "name": "gamma", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float gamma" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float gamma" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1581, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1581, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1581, + "column": 79, + "source_line": "extern void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 468, + "column": 4, + "source_line": " extern void stbi_hdr_to_ldr_gamma(float gamma);" + } + ] + }, + "stbi_hdr_to_ldr_scale": { + "name": "stbi_hdr_to_ldr_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 1, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1582, + "column": 79, + "source_line": "extern void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 469, + "column": 4, + "source_line": " extern void stbi_hdr_to_ldr_scale(float scale);" + } + ] + }, + "stbi_ldr_to_hdr_gamma": { + "name": "stbi_ldr_to_hdr_gamma", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "gamma", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float gamma" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float gamma" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1575, + "column": 75, + "source_line": "extern void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 473, + "column": 4, + "source_line": " extern void stbi_ldr_to_hdr_gamma(float gamma);" + } + ] + }, + "stbi_ldr_to_hdr_scale": { + "name": "stbi_ldr_to_hdr_scale", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1576, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1576, + "column": 1, + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1576, + "column": 75, + "source_line": "extern void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 474, + "column": 4, + "source_line": " extern void stbi_ldr_to_hdr_scale(float scale);" + } + ] + }, + "stbi_is_hdr_from_callbacks": { + "name": "stbi_is_hdr_from_callbacks", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "clbk", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -33395,14 +36773,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *clbk", "components": [ { "model": "CPointer", @@ -33410,7 +36788,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, @@ -33418,11 +36796,11 @@ "callback_policy": null }, { - "name": "buffer", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *buffer", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -33430,14 +36808,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *buffer", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -33445,31 +36825,18 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -33477,38 +36844,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 826, + "line": 1559, "column": 1, - "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" }, "start": { "filename": "stb/stb_image.h", - "line": 826, + "line": 1559, "column": 1, - "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" }, "end": { "filename": "stb/stb_image.h", - "line": 833, + "line": 1570, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 478, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user);" + } + ] }, - "stbi__start_callbacks": { - "name": "stbi__start_callbacks", + "stbi_is_hdr_from_memory": { + "name": "stbi_is_hdr_from_memory", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -33516,14 +36890,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -33531,7 +36905,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, @@ -33539,11 +36913,69 @@ "callback_policy": null }, { - "name": "c", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1517, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1517, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1528, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 479, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len);" + } + ] + }, + "stbi_is_hdr": { + "name": "stbi_is_hdr", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_io_callbacks *c", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -33551,14 +36983,18 @@ "source_text": "" }, { - "reference": "stbi_io_callbacks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_io_callbacks *c", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -33566,19 +37002,66 @@ "source_text": "" }, { - "reference": "stbi_io_callbacks" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1531, + "column": 1, + "source_line": "extern int stbi_is_hdr (char const *filename)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1531, + "column": 1, + "source_line": "extern int stbi_is_hdr (char const *filename)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1540, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "user", + "filename": "stb/stb_image.h", + "line": 481, + "column": 1, + "source_line": "extern int stbi_is_hdr (char const *filename);" + } + ] + }, + "stbi_is_hdr_from_file": { + "name": "stbi_is_hdr_from_file", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -33586,16 +37069,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -33603,9 +37084,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "FILE" } ] }, @@ -33614,7 +37093,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -33622,38 +37101,101 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 836, + "line": 1542, "column": 1, - "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + "source_line": "extern int stbi_is_hdr_from_file(FILE *f)" }, "start": { "filename": "stb/stb_image.h", - "line": 836, + "line": 1542, "column": 1, - "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + "source_line": "extern int stbi_is_hdr_from_file(FILE *f)" }, "end": { "filename": "stb/stb_image.h", - "line": 846, + "line": 1556, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 482, + "column": 1, + "source_line": "extern int stbi_is_hdr_from_file(FILE *f);" + } + ] }, - "stbi__stdio_read": { - "name": "stbi__stdio_read", + "stbi_failure_reason": { + "name": "stbi_failure_reason", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 972, + "column": 1, + "source_line": "extern const char *stbi_failure_reason(void)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 972, + "column": 1, + "source_line": "extern const char *stbi_failure_reason(void)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 975, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 488, + "column": 1, + "source_line": "extern const char *stbi_failure_reason (void);" + } + ] + }, + "stbi_image_free": { + "name": "stbi_image_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "user", + "name": "retval_from_stbi_load", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "void *retval_from_stbi_load", "components": [ { "model": "CPointer", @@ -33670,7 +37212,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "void *retval_from_stbi_load", "components": [ { "model": "CPointer", @@ -33686,64 +37228,10 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -33751,38 +37239,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 850, + "line": 1101, "column": 1, - "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" + "source_line": "extern void stbi_image_free(void *retval_from_stbi_load)" }, "start": { "filename": "stb/stb_image.h", - "line": 850, + "line": 1101, "column": 1, - "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" + "source_line": "extern void stbi_image_free(void *retval_from_stbi_load)" }, "end": { "filename": "stb/stb_image.h", - "line": 853, + "line": 1104, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 491, + "column": 1, + "source_line": "extern void stbi_image_free (void *retval_from_stbi_load);" + } + ] }, - "stbi__stdio_skip": { - "name": "stbi__stdio_skip", + "stbi_info_from_memory": { + "name": "stbi_info_from_memory", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "user", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -33790,16 +37285,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -33807,9 +37300,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi_uc" } ] }, @@ -33817,62 +37308,26 @@ "callback_policy": null }, { - "name": "n", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 855, - "column": 1, - "source_line": "static void stbi__stdio_skip(void *user, int n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 855, - "column": 1, - "source_line": "static void stbi__stdio_skip(void *user, int n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 863, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__stdio_eof": { - "name": "stbi__stdio_eof", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "user", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -33880,16 +37335,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -33897,57 +37352,21 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 865, - "column": 1, - "source_line": "static int stbi__stdio_eof(void *user)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 865, - "column": 1, - "source_line": "static int stbi__stdio_eof(void *user)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 868, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__start_file": { - "name": "stbi__start_file", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -33955,14 +37374,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -33970,7 +37391,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -33978,11 +37401,11 @@ "callback_policy": null }, { - "name": "f", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *f", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -33990,14 +37413,16 @@ "source_text": "" }, { - "reference": "FILE" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *f", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -34005,7 +37430,9 @@ "source_text": "" }, { - "reference": "FILE" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -34014,7 +37441,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -34022,38 +37449,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 877, + "line": 7734, "column": 1, - "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 877, + "line": 7734, "column": 1, - "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 880, + "line": 7739, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 494, + "column": 1, + "source_line": "extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp);" + } + ] }, - "stbi__rewind": { - "name": "stbi__rewind", + "stbi_info_from_callbacks": { + "name": "stbi_info_from_callbacks", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -34061,14 +37495,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -34076,55 +37510,19 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_io_callbacks" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 886, - "column": 1, - "source_line": "static void stbi__rewind(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 886, - "column": 1, - "source_line": "static void stbi__rewind(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 893, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__jpeg_test": { - "name": "stbi__jpeg_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -34132,14 +37530,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -34147,74 +37547,60 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4042, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4042, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4054, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 909, - "column": 1, - "source_line": "static int stbi__jpeg_test(stbi__context *s);" - } - ] - }, - "stbi__jpeg_load": { - "name": "stbi__jpeg_load", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", + "name": "x", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CVoid", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -34222,14 +37608,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -34237,7 +37625,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -34245,11 +37635,11 @@ "callback_policy": null }, { - "name": "x", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -34266,7 +37656,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -34282,13 +37672,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7741, + "column": 1, + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7741, + "column": 1, + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7746, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 495, + "column": 1, + "source_line": "extern int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp);" + } + ] + }, + "stbi_is_16_bit_from_memory": { + "name": "stbi_is_16_bit_from_memory", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "y", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -34296,16 +37729,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -34313,9 +37744,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -34323,11 +37752,69 @@ "callback_policy": null }, { - "name": "comp", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7748, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7748, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7753, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 496, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len);" + } + ] + }, + "stbi_is_16_bit_from_callbacks": { + "name": "stbi_is_16_bit_from_callbacks", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -34335,16 +37822,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_io_callbacks" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi_io_callbacks const *c", "components": [ { "model": "CPointer", @@ -34352,9 +37837,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_io_callbacks" } ] }, @@ -34362,26 +37845,11 @@ "callback_policy": null }, { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -34389,14 +37857,16 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -34404,7 +37874,9 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -34413,7 +37885,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -34421,33 +37893,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4028, + "line": 7755, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" }, "start": { "filename": "stb/stb_image.h", - "line": 4028, + "line": 7755, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" }, "end": { "filename": "stb/stb_image.h", - "line": 4040, + "line": 7760, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 910, + "line": 497, "column": 1, - "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user);" } ] }, - "stbi__jpeg_info": { - "name": "stbi__jpeg_info", + "stbi_info": { + "name": "stbi_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -34455,11 +37927,11 @@ }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -34467,14 +37939,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -34482,7 +37958,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -34608,7 +38088,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -34616,33 +38096,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4068, + "line": 7691, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info(char const *filename, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 4068, + "line": 7691, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_info(char const *filename, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 4078, + "line": 7699, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 911, + "line": 500, "column": 1, - "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern int stbi_info (char const *filename, int *x, int *y, int *comp);" } ] }, - "stbi__png_test": { - "name": "stbi__png_test", + "stbi_info_from_file": { + "name": "stbi_info_from_file", "result_type": { "model": "CInt", "qualifiers": [], @@ -34650,101 +38130,11 @@ }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5302, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5302, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5308, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 915, - "column": 1, - "source_line": "static int stbi__png_test(stbi__context *s);" - } - ] - }, - "stbi__png_load": { - "name": "stbi__png_load", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -34752,14 +38142,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -34767,7 +38157,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, @@ -34890,28 +38280,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7701, + "column": 1, + "source_line": "extern int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7701, + "column": 1, + "source_line": "extern int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7710, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_image.h", + "line": 501, + "column": 1, + "source_line": "extern int stbi_info_from_file (FILE *f, int *x, int *y, int *comp);" + } + ] + }, + "stbi_is_16_bit": { + "name": "stbi_is_16_bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "ri", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -34919,14 +38337,18 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -34934,7 +38356,11 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -34943,7 +38369,7 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -34951,33 +38377,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5295, + "line": 7712, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_is_16_bit(char const *filename)" }, "start": { "filename": "stb/stb_image.h", - "line": 5295, + "line": 7712, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_is_16_bit(char const *filename)" }, "end": { "filename": "stb/stb_image.h", - "line": 5300, + "line": 7720, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 916, + "line": 502, "column": 1, - "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_is_16_bit (char const *filename);" } ] }, - "stbi__png_info": { - "name": "stbi__png_info", + "stbi_is_16_bit_from_file": { + "name": "stbi_is_16_bit_from_file", "result_type": { "model": "CInt", "qualifiers": [], @@ -34985,11 +38411,11 @@ }, "parameters": [ { - "name": "s", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -34997,14 +38423,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -35012,133 +38438,248 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7722, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7722, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7731, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "x", + "filename": "stb/stb_image.h", + "line": 503, + "column": 1, + "source_line": "extern int stbi_is_16_bit_from_file(FILE *f);" + } + ] + }, + "stbi_set_unpremultiply_on_load": { + "name": "stbi_set_unpremultiply_on_load", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_unpremultiply", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4996, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4996, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4999, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "y", + "filename": "stb/stb_image.h", + "line": 511, + "column": 1, + "source_line": "extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply);" + } + ] + }, + "stbi_convert_iphone_png_to_rgb": { + "name": "stbi_convert_iphone_png_to_rgb", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_convert", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_convert" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_convert" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5001, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5001, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5004, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 515, + "column": 1, + "source_line": "extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert);" + } + ] + }, + "stbi_set_flip_vertically_on_load": { + "name": "stbi_set_flip_vertically_on_load", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_flip", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flag_true_if_should_flip" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flag_true_if_should_flip" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1116, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1116, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1119, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "comp", + "filename": "stb/stb_image.h", + "line": 518, + "column": 1, + "source_line": "extern void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip);" + } + ] + }, + "stbi_set_unpremultiply_on_load_thread": { + "name": "stbi_set_unpremultiply_on_load_thread", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "flag_true_if_should_unpremultiply", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int flag_true_if_should_unpremultiply" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -35146,77 +38687,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5322, + "line": 5013, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" }, "start": { "filename": "stb/stb_image.h", - "line": 5322, + "line": 5013, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" }, "end": { "filename": "stb/stb_image.h", - "line": 5327, + "line": 5017, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 917, + "line": 523, "column": 1, - "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply);" } ] }, - "stbi__png_is16": { - "name": "stbi__png_is16", + "stbi_convert_iphone_png_to_rgb_thread": { + "name": "stbi_convert_iphone_png_to_rgb_thread", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "flag_true_if_should_convert", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int flag_true_if_should_convert" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int flag_true_if_should_convert" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -35224,77 +38745,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5329, + "line": 5019, "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s)" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" }, "start": { "filename": "stb/stb_image.h", - "line": 5329, + "line": 5019, "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s)" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" }, "end": { "filename": "stb/stb_image.h", - "line": 5340, + "line": 5023, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 918, + "line": 524, "column": 1, - "source_line": "static int stbi__png_is16(stbi__context *s);" + "source_line": "extern void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert);" } ] }, - "stbi__bmp_test": { - "name": "stbi__bmp_test", + "stbi_set_flip_vertically_on_load_thread": { + "name": "stbi_set_flip_vertically_on_load_thread", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "flag_true_if_should_flip", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int flag_true_if_should_flip" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int flag_true_if_should_flip" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -35302,37 +38803,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5361, + "line": 1126, "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s)" + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" }, "start": { "filename": "stb/stb_image.h", - "line": 5361, + "line": 1126, "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s)" + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" }, "end": { "filename": "stb/stb_image.h", - "line": 5366, + "line": 1130, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 922, + "line": 525, "column": 1, - "source_line": "static int stbi__bmp_test(stbi__context *s);" + "source_line": "extern void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip);" } ] }, - "stbi__bmp_load": { - "name": "stbi__bmp_load", + "stbi_zlib_decode_malloc_guesssize": { + "name": "stbi_zlib_decode_malloc_guesssize", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "char", "components": [ { "model": "CPointer", @@ -35340,19 +38841,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -35360,14 +38861,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -35375,7 +38880,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -35383,89 +38892,41 @@ "callback_policy": null }, { - "name": "x", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "initial_size", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int initial_size" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int initial_size" }, "source_location": null, "callback_policy": null }, { - "name": "comp", + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35482,7 +38943,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35498,60 +38959,10 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ri", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -35559,45 +38970,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5531, + "line": 4520, "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" }, "start": { "filename": "stb/stb_image.h", - "line": 5531, + "line": 4520, "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" }, "end": { "filename": "stb/stb_image.h", - "line": 5732, + "line": 4534, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 923, + "line": 529, "column": 1, - "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen);" } ] }, - "stbi__bmp_info": { - "name": "stbi__bmp_info", + "stbi_zlib_decode_malloc_guesssize_headerflag": { + "name": "stbi_zlib_decode_malloc_guesssize_headerflag", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -35605,14 +39028,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *buffer", "components": [ { "model": "CPointer", @@ -35620,7 +39047,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -35628,89 +39059,41 @@ "callback_policy": null }, { - "name": "x", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "initial_size", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int initial_size" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int initial_size" }, "source_location": null, "callback_policy": null }, { - "name": "comp", + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35727,7 +39110,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35743,88 +39126,25 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7335, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7335, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7355, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 924, - "column": 1, - "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] - }, - "stbi__tga_test": { - "name": "stbi__tga_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s", + "name": "parse_header", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int parse_header" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int parse_header" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -35832,37 +39152,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5820, + "line": 4541, "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" }, "start": { "filename": "stb/stb_image.h", - "line": 5820, + "line": 4541, "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s)" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" }, "end": { "filename": "stb/stb_image.h", - "line": 5849, + "line": 4555, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 928, + "line": 530, "column": 1, - "source_line": "static int stbi__tga_test(stbi__context *s);" + "source_line": "extern char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header);" } ] - }, - "stbi__tga_load": { - "name": "stbi__tga_load", + }, + "stbi_zlib_decode_malloc": { + "name": "stbi_zlib_decode_malloc", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "char", "components": [ { "model": "CPointer", @@ -35870,19 +39190,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CChar", "qualifiers": [], - "source_text": "void" + "source_text": "char" } ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -35890,14 +39210,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -35905,7 +39229,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -35913,50 +39241,26 @@ "callback_policy": null }, { - "name": "x", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35973,7 +39277,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -35989,13 +39293,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4536, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4536, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4539, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "comp", + "filename": "stb/stb_image.h", + "line": 531, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen);" + } + ] + }, + "stbi_zlib_decode_buffer": { + "name": "stbi_zlib_decode_buffer", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "obuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -36003,16 +39350,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -36020,9 +39367,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, @@ -36030,26 +39377,26 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "olen", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "source_location": null, "callback_policy": null }, { - "name": "ri", + "name": "ibuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "char const *ibuffer", "components": [ { "model": "CPointer", @@ -36057,14 +39404,18 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "char const *ibuffer", "components": [ { "model": "CPointer", @@ -36072,16 +39423,35 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "ilen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -36089,45 +39459,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5871, + "line": 4557, "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" }, "start": { "filename": "stb/stb_image.h", - "line": 5871, + "line": 4557, "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" }, "end": { "filename": "stb/stb_image.h", - "line": 6074, + "line": 4566, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 929, + "line": 532, "column": 1, - "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "extern int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);" } ] }, - "stbi__tga_info": { - "name": "stbi__tga_info", + "stbi_zlib_decode_noheader_malloc": { + "name": "stbi_zlib_decode_noheader_malloc", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "s", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -36135,14 +39517,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "char const *buffer", "components": [ { "model": "CPointer", @@ -36150,7 +39536,11 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -36158,11 +39548,26 @@ "callback_policy": null }, { - "name": "x", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "outlen", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -36179,7 +39584,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *outlen", "components": [ { "model": "CPointer", @@ -36195,13 +39600,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4568, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4568, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4582, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "y", + "filename": "stb/stb_image.h", + "line": 534, + "column": 1, + "source_line": "extern char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen);" + } + ] + }, + "stbi_zlib_decode_noheader_buffer": { + "name": "stbi_zlib_decode_noheader_buffer", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "obuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -36209,16 +39657,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "char *obuffer", "components": [ { "model": "CPointer", @@ -36226,9 +39674,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, @@ -36236,11 +39684,26 @@ "callback_policy": null }, { - "name": "comp", + "name": "olen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int olen" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ibuffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "const char *ibuffer", "components": [ { "model": "CPointer", @@ -36248,16 +39711,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "const char *ibuffer", "components": [ { "model": "CPointer", @@ -36265,18 +39730,35 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "ilen", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ilen" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -36284,38 +39766,73 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5755, + "line": 4584, "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" }, "start": { "filename": "stb/stb_image.h", - "line": 5755, + "line": 4584, "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" }, "end": { "filename": "stb/stb_image.h", - "line": 5818, + "line": 4593, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 930, + "line": 535, "column": 1, - "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);" } ] }, - "stbi__psd_test": { - "name": "stbi__psd_test", + "stbi__sse2_available": { + "name": "stbi__sse2_available", "result_type": { "model": "CInt", "qualifiers": [], "source_text": "int" }, + "parameters": [], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 765, + "column": 1, + "source_line": "static int stbi__sse2_available(void)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 765, + "column": 1, + "source_line": "static int stbi__sse2_available(void)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 771, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__refill_buffer": { + "name": "stbi__refill_buffer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, "parameters": [ { "name": "s", @@ -36362,49 +39879,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6081, + "line": 1597, "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s)" + "source_line": "static void stbi__refill_buffer(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 6081, + "line": 1597, "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s)" + "source_line": "static void stbi__refill_buffer(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 6086, + "line": 1612, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 934, + "line": 823, "column": 1, - "source_line": "static int stbi__psd_test(stbi__context *s);" + "source_line": "static void stbi__refill_buffer(stbi__context *s);" } ] }, - "stbi__psd_load": { - "name": "stbi__psd_load", + "stbi__start_mem": { + "name": "stbi__start_mem", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "void" }, "parameters": [ { @@ -36427,159 +39932,27 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "ri", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -36587,14 +39960,14 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi_uc const *buffer", "components": [ { "model": "CPointer", @@ -36602,7 +39975,7 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi_uc" } ] }, @@ -36610,16 +39983,16 @@ "callback_policy": null }, { - "name": "bpc", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int bpc" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int bpc" + "source_text": "int len" }, "source_location": null, "callback_policy": null @@ -36634,37 +40007,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6126, + "line": 826, "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" }, "start": { "filename": "stb/stb_image.h", - "line": 6126, + "line": 826, "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)" }, "end": { "filename": "stb/stb_image.h", - "line": 6325, + "line": 833, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 935, - "column": 1, - "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc);" - } - ] + "declaration_locations": [] }, - "stbi__psd_info": { - "name": "stbi__psd_info", + "stbi__start_callbacks": { + "name": "stbi__start_callbacks", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -36703,11 +40069,11 @@ "callback_policy": null }, { - "name": "x", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi_io_callbacks *c", "components": [ { "model": "CPointer", @@ -36715,16 +40081,51 @@ "source_text": "" }, { - "model": "CInt", + "reference": "stbi_io_callbacks" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_io_callbacks *c", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int" + "source_text": "" + }, + { + "reference": "stbi_io_callbacks" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36732,21 +40133,57 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 836, + "column": 1, + "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 836, + "column": 1, + "source_line": "static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 846, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__stdio_read": { + "name": "stbi__stdio_read", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "y", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36754,16 +40191,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36771,9 +40208,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, @@ -36781,11 +40218,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *data", "components": [ { "model": "CPointer", @@ -36793,16 +40230,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *data", "components": [ { "model": "CPointer", @@ -36810,14 +40247,29 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -36829,45 +40281,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7359, + "line": 850, "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" }, "start": { "filename": "stb/stb_image.h", - "line": 7359, + "line": 850, "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__stdio_read(void *user, char *data, int size)" }, "end": { "filename": "stb/stb_image.h", - "line": 7392, + "line": 853, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 936, - "column": 1, - "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] + "declaration_locations": [] }, - "stbi__psd_is16": { - "name": "stbi__psd_is16", + "stbi__stdio_skip": { + "name": "stbi__stdio_skip", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36875,14 +40320,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36890,12 +40337,29 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -36907,33 +40371,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7394, + "line": 855, "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s)" + "source_line": "static void stbi__stdio_skip(void *user, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 7394, + "line": 855, "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s)" + "source_line": "static void stbi__stdio_skip(void *user, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 7419, + "line": 863, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 937, - "column": 1, - "source_line": "static int stbi__psd_is16(stbi__context *s);" - } - ] + "declaration_locations": [] }, - "stbi__hdr_test": { - "name": "stbi__hdr_test", + "stbi__stdio_eof": { + "name": "stbi__stdio_eof", "result_type": { "model": "CInt", "qualifiers": [], @@ -36941,11 +40398,11 @@ }, "parameters": [ { - "name": "s", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context * s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36953,14 +40410,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context * s", + "source_text": "void *user", "components": [ { "model": "CPointer", @@ -36968,7 +40427,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -36985,49 +40446,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7097, + "line": 865, "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context* s)" + "source_line": "static int stbi__stdio_eof(void *user)" }, "start": { "filename": "stb/stb_image.h", - "line": 7097, + "line": 865, "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context* s)" + "source_line": "static int stbi__stdio_eof(void *user)" }, "end": { "filename": "stb/stb_image.h", - "line": 7106, + "line": 868, "column": 1, "source_line": "}" }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 941, - "column": 1, - "source_line": "static int stbi__hdr_test(stbi__context *s);" - } - ] + "declaration_locations": [] }, - "stbi__hdr_load": { - "name": "stbi__hdr_load", + "stbi__start_file": { + "name": "stbi__start_file", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "void" }, "parameters": [ { @@ -37066,50 +40508,11 @@ "callback_policy": null }, { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -37117,16 +40520,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "FILE *f", "components": [ { "model": "CPointer", @@ -37134,21 +40535,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 877, + "column": 1, + "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 877, + "column": 1, + "source_line": "static void stbi__start_file(stbi__context *s, FILE *f)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 880, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__rewind": { + "name": "stbi__rewind", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "comp", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37156,16 +40591,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37173,36 +40606,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 886, + "column": 1, + "source_line": "static void stbi__rewind(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 886, + "column": 1, + "source_line": "static void stbi__rewind(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 893, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__jpeg_test": { + "name": "stbi__jpeg_test", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "ri", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37210,14 +40662,14 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37225,7 +40677,7 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, @@ -37242,37 +40694,49 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7158, + "line": 4042, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__jpeg_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 7158, + "line": 4042, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__jpeg_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 7287, + "line": 4054, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 942, + "line": 909, "column": 1, - "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "static int stbi__jpeg_test(stbi__context *s);" } ] }, - "stbi__hdr_info": { - "name": "stbi__hdr_info", + "stbi__jpeg_load": { + "name": "stbi__jpeg_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -37426,56 +40890,28 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7289, - "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7289, - "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7331, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 943, - "column": 1, - "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] - }, - "stbi__pic_test": { - "name": "stbi__pic_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -37483,14 +40919,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -37498,7 +40934,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, @@ -37515,49 +40951,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6541, + "line": 4028, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s)" + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 6541, + "line": 4028, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s)" + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 6546, + "line": 4040, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 947, + "line": 910, "column": 1, - "source_line": "static int stbi__pic_test(stbi__context *s);" + "source_line": "static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" } ] }, - "stbi__pic_load": { - "name": "stbi__pic_load", + "stbi__jpeg_info": { + "name": "stbi__jpeg_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { @@ -37596,11 +41020,11 @@ "callback_policy": null }, { - "name": "px", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *px", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -37617,7 +41041,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *px", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -37635,11 +41059,11 @@ "callback_policy": null }, { - "name": "py", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *py", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -37656,7 +41080,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *py", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -37711,28 +41135,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4068, + "column": 1, + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4068, + "column": 1, + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4078, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_image.h", + "line": 911, + "column": 1, + "source_line": "static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] + }, + "stbi__png_test": { + "name": "stbi__png_test", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "ri", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37740,14 +41192,14 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -37755,7 +41207,7 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, @@ -37772,37 +41224,49 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6500, + "line": 5302, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__png_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 6500, + "line": 5302, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__png_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 6539, + "line": 5308, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 948, + "line": 915, "column": 1, - "source_line": "static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "static int stbi__png_test(stbi__context *s);" } ] }, - "stbi__pic_info": { - "name": "stbi__pic_info", + "stbi__png_load": { + "name": "stbi__png_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -37956,56 +41420,28 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7423, - "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7423, - "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7478, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ + }, { - "filename": "stb/stb_image.h", - "line": 949, - "column": 1, - "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp);" - } - ] - }, - "stbi__gif_test": { - "name": "stbi__gif_test", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -38013,14 +41449,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -38028,7 +41464,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__result_info" } ] }, @@ -38045,49 +41481,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6590, + "line": 5295, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s)" + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 6590, + "line": 5295, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s)" + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 6595, + "line": 5300, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 953, + "line": 916, "column": 1, - "source_line": "static int stbi__gif_test(stbi__context *s);" + "source_line": "static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" } ] }, - "stbi__gif_load": { - "name": "stbi__gif_load", + "stbi__png_info": { + "name": "stbi__png_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { @@ -38241,28 +41665,56 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5322, + "column": 1, + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5322, + "column": 1, + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5327, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_image.h", + "line": 917, + "column": 1, + "source_line": "static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] + }, + "stbi__png_is16": { + "name": "stbi__png_is16", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "ri", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -38270,14 +41722,14 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__result_info *ri", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -38285,7 +41737,7 @@ "source_text": "" }, { - "reference": "stbi__result_info" + "reference": "stbi__context" } ] }, @@ -38302,49 +41754,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7048, + "line": 5329, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__png_is16(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 7048, + "line": 5329, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static int stbi__png_is16(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 7075, + "line": 5340, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 954, + "line": 918, "column": 1, - "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "static int stbi__png_is16(stbi__context *s);" } ] }, - "stbi__load_gif_main": { - "name": "stbi__load_gif_main", + "stbi__bmp_test": { + "name": "stbi__bmp_test", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { @@ -38381,13 +41821,68 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 5361, + "column": 1, + "source_line": "static int stbi__bmp_test(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5361, + "column": 1, + "source_line": "static int stbi__bmp_test(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5366, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "delays", + "filename": "stb/stb_image.h", + "line": 922, + "column": 1, + "source_line": "static int stbi__bmp_test(stbi__context *s);" + } + ] + }, + "stbi__bmp_load": { + "name": "stbi__bmp_load", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -38395,21 +41890,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -38417,14 +41905,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, @@ -38510,11 +41991,11 @@ "callback_policy": null }, { - "name": "z", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *z", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -38531,7 +42012,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *z", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -38549,11 +42030,26 @@ "callback_policy": null }, { - "name": "comp", + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -38561,16 +42057,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -38578,29 +42072,12 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__result_info" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -38612,33 +42089,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6963, + "line": 5531, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 6963, + "line": 5531, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 7046, + "line": 5732, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 955, + "line": 923, "column": 1, - "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" + "source_line": "static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" } ] }, - "stbi__gif_info": { - "name": "stbi__gif_info", + "stbi__bmp_info": { + "name": "stbi__bmp_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -38807,33 +42284,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7077, + "line": 7335, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7077, + "line": 7335, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7080, + "line": 7355, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 956, + "line": 924, "column": 1, - "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp);" } ] }, - "stbi__pnm_test": { - "name": "stbi__pnm_test", + "stbi__tga_test": { + "name": "stbi__tga_test", "result_type": { "model": "CInt", "qualifiers": [], @@ -38885,33 +42362,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7494, + "line": 5820, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s)" + "source_line": "static int stbi__tga_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 7494, + "line": 5820, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s)" + "source_line": "static int stbi__tga_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 7504, + "line": 5849, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 960, + "line": 928, "column": 1, - "source_line": "static int stbi__pnm_test(stbi__context *s);" + "source_line": "static int stbi__tga_test(stbi__context *s);" } ] }, - "stbi__pnm_load": { - "name": "stbi__pnm_load", + "stbi__tga_load": { + "name": "stbi__tga_load", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -39142,33 +42619,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7506, + "line": 5871, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 7506, + "line": 5871, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 7541, + "line": 6074, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 961, + "line": 929, "column": 1, - "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + "source_line": "static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" } ] }, - "stbi__pnm_info": { - "name": "stbi__pnm_info", + "stbi__tga_info": { + "name": "stbi__tga_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -39337,33 +42814,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7581, + "line": 5755, "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 7581, + "line": 5755, "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 7622, + "line": 5818, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 962, + "line": 930, "column": 1, - "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp);" + "source_line": "static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp);" } ] }, - "stbi__pnm_is16": { - "name": "stbi__pnm_is16", + "stbi__psd_test": { + "name": "stbi__psd_test", "result_type": { "model": "CInt", "qualifiers": [], @@ -39373,232 +42850,34 @@ { "name": "s", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7624, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7624, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7629, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_image.h", - "line": 963, - "column": 1, - "source_line": "static int stbi__pnm_is16(stbi__context *s);" - } - ] - }, - "stbi__malloc": { - "name": "stbi__malloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "size", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 985, - "column": 1, - "source_line": "static void *stbi__malloc(size_t size)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 985, - "column": 1, - "source_line": "static void *stbi__malloc(size_t size)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 988, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__addsizes_valid": { - "name": "stbi__addsizes_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1002, - "column": 1, - "source_line": "static int stbi__addsizes_valid(int a, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1002, - "column": 1, - "source_line": "static int stbi__addsizes_valid(int a, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1010, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__mul2sizes_valid": { - "name": "stbi__mul2sizes_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -39613,169 +42892,264 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1014, + "line": 6081, "column": 1, - "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + "source_line": "static int stbi__psd_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1014, + "line": 6081, "column": 1, - "source_line": "static int stbi__mul2sizes_valid(int a, int b)" + "source_line": "static int stbi__psd_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1020, + "line": 6086, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 934, + "column": 1, + "source_line": "static int stbi__psd_test(stbi__context *s);" + } + ] }, - "stbi__mad2sizes_valid": { - "name": "stbi__mad2sizes_valid", + "stbi__psd_load": { + "name": "stbi__psd_load", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "a", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1024, - "column": 1, - "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1024, - "column": 1, - "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1027, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__mad3sizes_valid": { - "name": "stbi__mad3sizes_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "a", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "ri", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", + "name": "bpc", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int add" + "source_text": "int bpc" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int add" + "source_text": "int bpc" }, "source_location": null, "callback_policy": null @@ -39790,26 +43164,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1031, + "line": 6126, "column": 1, - "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "start": { "filename": "stb/stb_image.h", - "line": 1031, + "line": 6126, "column": 1, - "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "end": { "filename": "stb/stb_image.h", - "line": 1035, + "line": 6325, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 935, + "column": 1, + "source_line": "static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc);" + } + ] }, - "stbi__mad4sizes_valid": { - "name": "stbi__mad4sizes_valid", + "stbi__psd_info": { + "name": "stbi__psd_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -39817,76 +43198,153 @@ }, "parameters": [ { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "d", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -39901,85 +43359,70 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1039, + "line": 7359, "column": 1, - "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1039, - "column": 1, - "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1043, + "line": 7359, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__malloc_mad2": { - "name": "stbi__malloc_mad2", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7392, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "add", + "filename": "stb/stb_image.h", + "line": 936, + "column": 1, + "source_line": "static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] + }, + "stbi__psd_is16": { + "name": "stbi__psd_is16", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -39994,100 +43437,70 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1048, + "line": 7394, "column": 1, - "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + "source_line": "static int stbi__psd_is16(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1048, + "line": 7394, "column": 1, - "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" + "source_line": "static int stbi__psd_is16(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1052, + "line": 7419, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 937, + "column": 1, + "source_line": "static int stbi__psd_is16(stbi__context *s);" + } + ] }, - "stbi__malloc_mad3": { - "name": "stbi__malloc_mad3", + "stbi__hdr_test": { + "name": "stbi__hdr_test", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "add", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int add" + "source_text": "stbi__context * s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -40102,30 +43515,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1055, + "line": 7097, "column": 1, - "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + "source_line": "static int stbi__hdr_test(stbi__context* s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1055, + "line": 7097, "column": 1, - "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" + "source_line": "static int stbi__hdr_test(stbi__context* s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1059, + "line": 7106, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 941, + "column": 1, + "source_line": "static int stbi__hdr_test(stbi__context *s);" + } + ] }, - "stbi__malloc_mad4": { - "name": "stbi__malloc_mad4", + "stbi__hdr_load": { + "name": "stbi__hdr_load", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "float", "components": [ { "model": "CPointer", @@ -40133,150 +43553,211 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" } ] }, "parameters": [ { - "name": "a", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int a" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int c" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "d", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "add", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int add" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1062, - "column": 1, - "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1062, - "column": 1, - "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1066, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__addints_valid": { - "name": "stbi__addints_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int a" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "ri", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "source_location": null, "callback_policy": null @@ -40291,116 +43772,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1070, + "line": 7158, "column": 1, - "source_line": "static int stbi__addints_valid(int a, int b)" + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1070, + "line": 7158, "column": 1, - "source_line": "static int stbi__addints_valid(int a, int b)" + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1075, + "line": 7287, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - "stbi__mul2shorts_valid": { - "name": "stbi__mul2shorts_valid", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, + "declaration_locations": [ { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null + "filename": "stb/stb_image.h", + "line": 942, + "column": 1, + "source_line": "static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1078, - "column": 1, - "source_line": "static int stbi__mul2shorts_valid(int a, int b)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1078, - "column": 1, - "source_line": "static int stbi__mul2shorts_valid(int a, int b)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__ldr_to_hdr": { - "name": "stbi__ldr_to_hdr", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + ] + }, + "stbi__hdr_info": { + "name": "stbi__hdr_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40408,14 +43818,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40423,7 +43833,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, @@ -40433,14 +43843,38 @@ { "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int x" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int x" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -40448,14 +43882,38 @@ { "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -40463,14 +43921,38 @@ { "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int comp" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -40485,55 +43967,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1858, + "line": 7289, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1858, + "line": 7289, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1879, + "line": 7331, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 1107, + "line": 943, "column": 1, - "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp);" + "source_line": "static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp);" } ] }, - "stbi__hdr_to_ldr": { - "name": "stbi__hdr_to_ldr", + "stbi__pic_test": { + "name": "stbi__pic_test", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40541,16 +44013,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40558,59 +44028,12 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -40622,33 +44045,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1884, + "line": 6541, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + "source_line": "static int stbi__pic_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1884, + "line": 6541, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" + "source_line": "static int stbi__pic_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1909, + "line": 6546, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "stb/stb_image.h", - "line": 1111, + "line": 947, "column": 1, - "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp);" + "source_line": "static int stbi__pic_test(stbi__context *s);" } ] }, - "stbi__load_main": { - "name": "stbi__load_main", + "stbi__pic_load": { + "name": "stbi__pic_load", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -40703,11 +44126,11 @@ "callback_policy": null }, { - "name": "x", + "name": "px", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *px", "components": [ { "model": "CPointer", @@ -40724,7 +44147,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "int *px", "components": [ { "model": "CPointer", @@ -40742,11 +44165,11 @@ "callback_policy": null }, { - "name": "y", + "name": "py", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *py", "components": [ { "model": "CPointer", @@ -40763,7 +44186,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "int *py", "components": [ { "model": "CPointer", @@ -40868,21 +44291,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "bpc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bpc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bpc" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -40894,48 +44302,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1137, + "line": 6500, "column": 1, - "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1137, + "line": 6500, "column": 1, - "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" + "source_line": "static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1188, + "line": 6539, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 948, + "column": 1, + "source_line": "static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, - "stbi__convert_16_to_8": { - "name": "stbi__convert_16_to_8", + "stbi__pic_info": { + "name": "stbi__pic_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "orig", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *orig", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40943,14 +44348,14 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *orig", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -40958,7 +44363,7 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "reference": "stbi__context" } ] }, @@ -40966,102 +44371,11 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1190, - "column": 1, - "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1190, - "column": 1, - "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1204, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__convert_8_to_16": { - "name": "stbi__convert_8_to_16", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "parameters": [ - { - "name": "orig", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *orig", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -41069,14 +44383,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *orig", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -41084,7 +44400,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -41092,46 +44410,79 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "channels", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -41146,38 +44497,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1206, + "line": 7423, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1206, + "line": 7423, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1220, + "line": 7478, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 949, + "column": 1, + "source_line": "static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, - "stbi__vertical_flip": { - "name": "stbi__vertical_flip", + "stbi__gif_test": { + "name": "stbi__gif_test", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "image", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -41185,16 +44543,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -41202,59 +44558,12 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bytes_per_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bytes_per_pixel" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -41266,38 +44575,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1222, + "line": 6590, "column": 1, - "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + "source_line": "static int stbi__gif_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1222, + "line": 6590, "column": 1, - "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" + "source_line": "static int stbi__gif_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1244, + "line": 6595, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 953, + "column": 1, + "source_line": "static int stbi__gif_test(stbi__context *s);" + } + ] }, - "stbi__vertical_flip_slices": { - "name": "stbi__vertical_flip_slices", + "stbi__gif_load": { + "name": "stbi__gif_load", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "image", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -41305,16 +44633,51 @@ "source_text": "" }, { - "model": "CVoid", + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "void" + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *image", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -41322,9 +44685,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -41332,61 +44695,129 @@ "callback_policy": null }, { - "name": "w", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "h", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "z", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int z" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int z" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "bytes_per_pixel", + "name": "ri", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int bytes_per_pixel" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int bytes_per_pixel" + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, "source_location": null, "callback_policy": null @@ -41401,30 +44832,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1247, + "line": 7048, "column": 1, - "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1247, + "line": 7048, "column": 1, - "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1257, + "line": 7075, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 954, + "column": 1, + "source_line": "static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, - "stbi__load_and_postprocess_8bit": { - "name": "stbi__load_and_postprocess_8bit", + "stbi__load_gif_main": { + "name": "stbi__load_gif_main", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "void", "components": [ { "model": "CPointer", @@ -41432,9 +44870,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CVoid", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "void" } ] }, @@ -41474,6 +44912,55 @@ "source_location": null, "callback_policy": null }, + { + "name": "delays", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { "name": "x", "type": { @@ -41552,6 +45039,45 @@ "source_location": null, "callback_policy": null }, + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { "name": "comp", "type": { @@ -41616,40 +45142,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1260, + "line": 6963, "column": 1, - "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1260, + "line": 6963, "column": 1, - "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1284, + "line": 7046, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 955, + "column": 1, + "source_line": "static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp);" + } + ] }, - "stbi__load_and_postprocess_16bit": { - "name": "stbi__load_and_postprocess_16bit", + "stbi__gif_info": { + "name": "stbi__gif_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int" }, "parameters": [ { @@ -41803,18 +45326,81 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 7077, + "column": 1, + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 7077, + "column": 1, + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 7080, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "req_comp", + "filename": "stb/stb_image.h", + "line": 956, + "column": 1, + "source_line": "static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] + }, + "stbi__pnm_test": { + "name": "stbi__pnm_test", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -41829,38 +45415,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1286, + "line": 7494, "column": 1, - "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__pnm_test(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1286, + "line": 7494, "column": 1, - "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__pnm_test(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1311, + "line": 7504, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 960, + "column": 1, + "source_line": "static int stbi__pnm_test(stbi__context *s);" + } + ] }, - "stbi__float_postprocess": { - "name": "stbi__float_postprocess", + "stbi__pnm_load": { + "name": "stbi__pnm_load", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "result", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *result", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -41868,16 +45473,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *result", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -41885,9 +45488,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__context" } ] }, @@ -42025,102 +45626,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1314, - "column": 1, - "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1314, - "column": 1, - "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1320, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__fopen": { - "name": "stbi__fopen", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "FILE", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null }, { - "name": "mode", + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -42128,18 +45640,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -42147,11 +45655,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbi__result_info" } ] }, @@ -42168,42 +45672,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1337, + "line": 7506, "column": 1, - "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "start": { "filename": "stb/stb_image.h", - "line": 1337, + "line": 7506, "column": 1, - "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)" }, "end": { "filename": "stb/stb_image.h", - "line": 1363, + "line": 7541, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 961, + "column": 1, + "source_line": "static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);" + } + ] }, - "stbi__loadf_main": { - "name": "stbi__loadf_main", + "stbi__pnm_info": { + "name": "stbi__pnm_info", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int" }, "parameters": [ { @@ -42357,21 +45856,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "req_comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int req_comp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -42383,30 +45867,37 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1460, + "line": 7581, "column": 1, - "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 1460, + "line": 7581, "column": 1, - "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 1476, + "line": 7622, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 962, + "column": 1, + "source_line": "static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp);" + } + ] }, - "stbi__skip": { - "name": "stbi__skip", + "stbi__pnm_is16": { + "name": "stbi__pnm_is16", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -42443,21 +45934,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -42469,26 +45945,33 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1644, + "line": 7624, "column": 1, - "source_line": "static void stbi__skip(stbi__context *s, int n)" + "source_line": "static int stbi__pnm_is16(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 1644, + "line": 7624, "column": 1, - "source_line": "static void stbi__skip(stbi__context *s, int n)" + "source_line": "static int stbi__pnm_is16(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 1660, + "line": 7629, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 963, + "column": 1, + "source_line": "static int stbi__pnm_is16(stbi__context *s);" + } + ] }, - "stbi__getn": { - "name": "stbi__getn", + "stbi__err": { + "name": "stbi__err", "result_type": { "model": "CInt", "qualifiers": [], @@ -42496,11 +45979,11 @@ }, "parameters": [ { - "name": "s", + "name": "str", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *str", "components": [ { "model": "CPointer", @@ -42508,14 +45991,18 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "const char *str", "components": [ { "model": "CPointer", @@ -42523,59 +46010,72 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 978, + "column": 1, + "source_line": "static int stbi__err(const char *str)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 978, + "column": 1, + "source_line": "static int stbi__err(const char *str)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 982, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__malloc": { + "name": "stbi__malloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbi_uc *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CVoid", "qualifiers": [], - "source_text": "stbi_uc *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "n", + "name": "size", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "size_t" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "size_t" }, "source_location": null, "callback_policy": null @@ -42590,26 +46090,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1666, + "line": 985, "column": 1, - "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + "source_line": "static void *stbi__malloc(size_t size)" }, "start": { "filename": "stb/stb_image.h", - "line": 1666, + "line": 985, "column": 1, - "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + "source_line": "static void *stbi__malloc(size_t size)" }, "end": { "filename": "stb/stb_image.h", - "line": 1688, + "line": 988, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get16be": { - "name": "stbi__get16be", + "stbi__addsizes_valid": { + "name": "stbi__addsizes_valid", "result_type": { "model": "CInt", "qualifiers": [], @@ -42617,36 +46117,31 @@ }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -42661,61 +46156,58 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1694, + "line": 1002, "column": 1, - "source_line": "static int stbi__get16be(stbi__context *s)" + "source_line": "static int stbi__addsizes_valid(int a, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 1694, + "line": 1002, "column": 1, - "source_line": "static int stbi__get16be(stbi__context *s)" + "source_line": "static int stbi__addsizes_valid(int a, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 1698, + "line": 1010, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get32be": { - "name": "stbi__get32be", + "stbi__mul2sizes_valid": { + "name": "stbi__mul2sizes_valid", "result_type": { - "reference": "stbi__uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -42730,26 +46222,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1704, + "line": 1014, "column": 1, - "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + "source_line": "static int stbi__mul2sizes_valid(int a, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 1704, + "line": 1014, "column": 1, - "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" + "source_line": "static int stbi__mul2sizes_valid(int a, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 1708, + "line": 1020, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get16le": { - "name": "stbi__get16le", + "stbi__mad2sizes_valid": { + "name": "stbi__mad2sizes_valid", "result_type": { "model": "CInt", "qualifiers": [], @@ -42757,36 +46249,46 @@ }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "add", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int add" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -42801,140 +46303,88 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1714, + "line": 1024, "column": 1, - "source_line": "static int stbi__get16le(stbi__context *s)" + "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 1714, + "line": 1024, "column": 1, - "source_line": "static int stbi__get16le(stbi__context *s)" + "source_line": "static int stbi__mad2sizes_valid(int a, int b, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 1718, + "line": 1027, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get32le": { - "name": "stbi__get32le", + "stbi__mad3sizes_valid": { + "name": "stbi__mad3sizes_valid", "result_type": { - "reference": "stbi__uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1722, - "column": 1, - "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 1722, - "column": 1, - "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 1727, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__compute_y": { - "name": "stbi__compute_y", - "result_type": { - "reference": "stbi_uc" - }, - "parameters": [ + }, { - "name": "r", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int r" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int r" + "source_text": "int b" }, "source_location": null, "callback_policy": null }, { - "name": "g", + "name": "c", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int g" + "source_text": "int c" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int g" + "source_text": "int c" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "add", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int add" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -42949,139 +46399,103 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1746, + "line": 1031, "column": 1, - "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 1746, + "line": 1031, "column": 1, - "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" + "source_line": "static int stbi__mad3sizes_valid(int a, int b, int c, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 1749, + "line": 1035, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__convert_format": { - "name": "stbi__convert_format", + "stbi__mad4sizes_valid": { + "name": "stbi__mad4sizes_valid", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "img_n", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int b" }, "source_location": null, "callback_policy": null }, { - "name": "req_comp", + "name": "c", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int c" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int c" }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "d", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int d" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int d" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "add", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int add" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -43096,71 +46510,85 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1755, + "line": 1039, "column": 1, - "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 1755, + "line": 1039, "column": 1, - "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 1797, + "line": 1043, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__compute_y_16": { - "name": "stbi__compute_y_16", + "stbi__malloc_mad2": { + "name": "stbi__malloc_mad2", "result_type": { - "reference": "stbi__uint16" + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "r", + "name": "a", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int r" + "source_text": "int a" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int r" + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "g", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int g" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int g" + "source_text": "int b" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "add", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int add" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -43175,30 +46603,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1803, + "line": 1048, "column": 1, - "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" + "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 1803, + "line": 1048, "column": 1, - "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" + "source_line": "static void *stbi__malloc_mad2(int a, int b, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 1806, + "line": 1052, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__convert_format16": { - "name": "stbi__convert_format16", + "stbi__malloc_mad3": { + "name": "stbi__malloc_mad3", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16", + "source_text": "void", "components": [ { "model": "CPointer", @@ -43206,102 +46634,69 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "parameters": [ { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__uint16 *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "img_n", + "name": "a", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int a" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "req_comp", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int b" }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "c", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int c" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int x" + "source_text": "int c" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "add", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int add" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int y" + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -43316,208 +46711,115 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1812, + "line": 1055, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 1812, + "line": 1055, "column": 1, - "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + "source_line": "static void *stbi__malloc_mad3(int a, int b, int c, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 1854, + "line": 1059, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__build_huffman": { - "name": "stbi__build_huffman", + "stbi__malloc_mad4": { + "name": "stbi__malloc_mad4", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { - "name": "h", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "count", + "name": "b", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int b" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *count", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int b" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2003, - "column": 1, - "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2003, - "column": 1, - "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2046, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__build_fast_ac": { - "name": "stbi__build_fast_ac", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "fast_ac", + "name": "c", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__int16 *fast_ac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] + "source_text": "int c" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d" + }, + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "stbi__int16 *fast_ac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] + "source_text": "int d" }, "source_location": null, "callback_policy": null }, { - "name": "h", + "name": "add", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int add" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *h", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int add" }, "source_location": null, "callback_policy": null @@ -43532,63 +46834,58 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2050, + "line": 1062, "column": 1, - "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" }, "start": { "filename": "stb/stb_image.h", - "line": 2050, + "line": 1062, "column": 1, - "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" + "source_line": "static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)" }, "end": { "filename": "stb/stb_image.h", - "line": 2073, + "line": 1066, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__grow_buffer_unsafe": { - "name": "stbi__grow_buffer_unsafe", + "stbi__addints_valid": { + "name": "stbi__addints_valid", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "j", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] + "source_text": "int a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -43603,26 +46900,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2075, + "line": 1070, "column": 1, - "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + "source_line": "static int stbi__addints_valid(int a, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 2075, + "line": 1070, "column": 1, - "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + "source_line": "static int stbi__addints_valid(int a, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 2091, + "line": 1075, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__jpeg_decode_block": { - "name": "stbi__jpeg_decode_block", + "stbi__mul2shorts_valid": { + "name": "stbi__mul2shorts_valid", "result_type": { "model": "CInt", "qualifiers": [], @@ -43630,124 +46927,89 @@ }, "parameters": [ { - "name": "j", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "b", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int b" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int b" }, "source_location": null, "callback_policy": null - }, - { - "name": "hdc", - "type": { - "model": "CComposedType", + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1078, + "column": 1, + "source_line": "static int stbi__mul2shorts_valid(int a, int b)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1078, + "column": 1, + "source_line": "static int stbi__mul2shorts_valid(int a, int b)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1084, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__ldr_to_hdr": { + "name": "stbi__ldr_to_hdr", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CFloat", "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "float" + } + ] + }, + "parameters": [ { - "name": "hac", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *hac", + "source_text": "stbi_uc *data", "components": [ { "model": "CPointer", @@ -43755,14 +47017,14 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *hac", + "source_text": "stbi_uc *data", "components": [ { "model": "CPointer", @@ -43770,7 +47032,7 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "reference": "stbi_uc" } ] }, @@ -43778,86 +47040,46 @@ "callback_policy": null }, { - "name": "fac", + "name": "x", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] + "source_text": "int x" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__int16 *fac", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__int16" - } - ] + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int y" }, "source_location": null, "callback_policy": null }, { - "name": "dequant", + "name": "comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16 *dequant", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int comp" }, "source_location": null, "callback_policy": null @@ -43872,38 +47094,55 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2210, + "line": 1858, "column": 1, - "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 2210, + "line": 1858, "column": 1, - "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 2263, + "line": 1879, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 1107, + "column": 1, + "source_line": "static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp);" + } + ] }, - "stbi__jpeg_decode_block_prog_dc": { - "name": "stbi__jpeg_decode_block_prog_dc", + "stbi__hdr_to_ldr": { + "name": "stbi__hdr_to_ldr", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "j", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "float *data", "components": [ { "model": "CPointer", @@ -43911,14 +47150,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "float *data", "components": [ { "model": "CPointer", @@ -43926,7 +47167,9 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -43934,94 +47177,46 @@ "callback_policy": null }, { - "name": "data", + "name": "x", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int x" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "hdc", + "name": "y", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int y" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__huffman *hdc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__huffman" - } - ] + "source_text": "int y" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b" + "source_text": "int comp" }, "source_location": null, "callback_policy": null @@ -44036,73 +47231,57 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2265, + "line": 1884, "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 2265, + "line": 1884, "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 2291, + "line": 1909, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_image.h", + "line": 1111, + "column": 1, + "source_line": "static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp);" + } + ] }, - "stbi__jpeg_decode_block_prog_ac": { - "name": "stbi__jpeg_decode_block_prog_ac", + "stbi__load_main": { + "name": "stbi__load_main", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "j", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "source_text": "void", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbi__jpeg *j", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__jpeg" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short data[64]", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -44110,30 +47289,22 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short data[64]", + "source_text": "stbi__context *s", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__context" } ] }, @@ -44141,11 +47312,11 @@ "callback_policy": null }, { - "name": "hac", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *hac", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -44153,14 +47324,16 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__huffman *hac", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -44168,7 +47341,9 @@ "source_text": "" }, { - "reference": "stbi__huffman" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -44176,11 +47351,11 @@ "callback_policy": null }, { - "name": "fac", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__int16 *fac", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -44188,14 +47363,16 @@ "source_text": "" }, { - "reference": "stbi__int16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__int16 *fac", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -44203,55 +47380,21 @@ "source_text": "" }, { - "reference": "stbi__int16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 2295, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 2295, - "column": 1, - "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 2413, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__idct_block": { - "name": "stbi__idct_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "out", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -44259,14 +47402,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -44274,7 +47419,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -44282,26 +47429,26 @@ "callback_policy": null }, { - "name": "out_stride", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_stride" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_stride" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "ri", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short data[64]", + "source_text": "stbi__result_info *ri", "components": [ { "model": "CPointer", @@ -44309,35 +47456,42 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__result_info" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short data[64]", + "source_text": "stbi__result_info *ri", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__result_info" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "bpc", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bpc" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -44349,38 +47503,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2467, + "line": 1137, "column": 1, - "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "start": { "filename": "stb/stb_image.h", - "line": 2467, + "line": 1137, "column": 1, - "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + "source_line": "static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)" }, "end": { "filename": "stb/stb_image.h", - "line": 2524, + "line": 1188, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__idct_simd": { - "name": "stbi__idct_simd", + "stbi__convert_16_to_8": { + "name": "stbi__convert_16_to_8", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "out", + "name": "orig", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__uint16 *orig", "components": [ { "model": "CPointer", @@ -44388,14 +47552,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__uint16 *orig", "components": [ { "model": "CPointer", @@ -44403,7 +47567,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__uint16" } ] }, @@ -44411,59 +47575,46 @@ "callback_policy": null }, { - "name": "out_stride", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_stride" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_stride" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short data[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" }, "source_location": null, "callback_policy": null @@ -44478,36 +47629,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2530, + "line": 1190, "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" + "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" }, "start": { "filename": "stb/stb_image.h", - "line": 2530, + "line": 1190, "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" + "source_line": "static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)" }, "end": { "filename": "stb/stb_image.h", - "line": 2703, + "line": 1204, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get_marker": { - "name": "stbi__get_marker", + "stbi__convert_8_to_16": { + "name": "stbi__convert_8_to_16", "result_type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__uint16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] }, "parameters": [ { - "name": "j", + "name": "orig", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "stbi_uc *orig", "components": [ { "model": "CPointer", @@ -44515,14 +47678,14 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "stbi_uc *orig", "components": [ { "model": "CPointer", @@ -44530,12 +47693,57 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -44547,26 +47755,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2919, + "line": 1206, "column": 1, - "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" + "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" }, "start": { "filename": "stb/stb_image.h", - "line": 2919, + "line": 1206, "column": 1, - "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" + "source_line": "static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)" }, "end": { "filename": "stb/stb_image.h", - "line": 2928, + "line": 1220, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__jpeg_reset": { - "name": "stbi__jpeg_reset", + "stbi__vertical_flip": { + "name": "stbi__vertical_flip", "result_type": { "model": "CVoid", "qualifiers": [], @@ -44574,11 +47782,11 @@ }, "parameters": [ { - "name": "j", + "name": "image", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "void *image", "components": [ { "model": "CPointer", @@ -44586,14 +47794,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "void *image", "components": [ { "model": "CPointer", @@ -44601,12 +47811,59 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bytes_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -44618,38 +47875,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2936, + "line": 1222, "column": 1, - "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" }, "start": { "filename": "stb/stb_image.h", - "line": 2936, + "line": 1222, "column": 1, - "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + "source_line": "static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)" }, "end": { "filename": "stb/stb_image.h", - "line": 2947, + "line": 1244, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__parse_entropy_coded_data": { - "name": "stbi__parse_entropy_coded_data", + "stbi__vertical_flip_slices": { + "name": "stbi__vertical_flip_slices", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "z", + "name": "image", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "void *image", "components": [ { "model": "CPointer", @@ -44657,14 +47914,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "void *image", "components": [ { "model": "CPointer", @@ -44672,12 +47931,74 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bytes_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_pixel" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -44689,38 +48010,50 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2949, + "line": 1247, "column": 1, - "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" + "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" }, "start": { "filename": "stb/stb_image.h", - "line": 2949, + "line": 1247, "column": 1, - "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" + "source_line": "static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)" }, "end": { "filename": "stb/stb_image.h", - "line": 3071, + "line": 1257, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__jpeg_dequantize": { - "name": "stbi__jpeg_dequantize", + "stbi__load_and_postprocess_8bit": { + "name": "stbi__load_and_postprocess_8bit", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "data", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -44728,16 +48061,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *data", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -44745,9 +48076,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stbi__context" } ] }, @@ -44755,11 +48084,11 @@ "callback_policy": null }, { - "name": "dequant", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *dequant", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -44767,14 +48096,16 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__uint16 *dequant", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -44782,55 +48113,21 @@ "source_text": "" }, { - "reference": "stbi__uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3073, - "column": 1, - "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3073, - "column": 1, - "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3078, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__jpeg_finish": { - "name": "stbi__jpeg_finish", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "z", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -44838,14 +48135,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -44853,55 +48152,21 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3080, - "column": 1, - "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3080, - "column": 1, - "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3097, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__process_marker": { - "name": "stbi__process_marker", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "z", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -44909,14 +48174,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -44924,7 +48191,9 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -44932,16 +48201,16 @@ "callback_policy": null }, { - "name": "m", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int m" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int m" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null @@ -44956,38 +48225,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3099, + "line": 1260, "column": 1, - "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" + "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 3099, + "line": 1260, "column": 1, - "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" + "source_line": "static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 3200, + "line": 1284, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__process_scan_header": { - "name": "stbi__process_scan_header", + "stbi__load_and_postprocess_16bit": { + "name": "stbi__load_and_postprocess_16bit", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi__uint16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__uint16" + } + ] }, "parameters": [ { - "name": "z", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -44995,14 +48274,14 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45010,55 +48289,19 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3203, - "column": 1, - "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3203, - "column": 1, - "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3240, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__free_jpeg_components": { - "name": "stbi__free_jpeg_components", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "z", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -45066,14 +48309,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -45081,7 +48326,9 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -45089,31 +48336,94 @@ "callback_policy": null }, { - "name": "ncomp", + "name": "y", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int ncomp" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int ncomp" + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "why", + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int why" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int why" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null @@ -45128,38 +48438,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3242, + "line": 1286, "column": 1, - "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" + "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 3242, + "line": 1286, "column": 1, - "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" + "source_line": "static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 3262, + "line": 1311, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__process_frame_header": { - "name": "stbi__process_frame_header", + "stbi__float_postprocess": { + "name": "stbi__float_postprocess", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "z", + "name": "result", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "float *result", "components": [ { "model": "CPointer", @@ -45167,14 +48477,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "float *result", "components": [ { "model": "CPointer", @@ -45182,7 +48494,9 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -45190,62 +48504,50 @@ "callback_policy": null }, { - "name": "scan", + "name": "x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int scan" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int scan" + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3264, - "column": 1, - "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3264, - "column": 1, - "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3354, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__decode_jpeg_header": { - "name": "stbi__decode_jpeg_header", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "z", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -45253,14 +48555,16 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -45268,7 +48572,9 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -45276,16 +48582,55 @@ "callback_policy": null }, { - "name": "scan", + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int scan" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int scan" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null @@ -45300,36 +48645,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3365, + "line": 1314, "column": 1, - "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" + "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 3365, + "line": 1314, "column": 1, - "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" + "source_line": "static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 3387, + "line": 1320, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__skip_jpeg_junk_at_end": { - "name": "stbi__skip_jpeg_junk_at_end", + "stbi__fopen": { + "name": "stbi__fopen", "result_type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "FILE", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "FILE" + } + ] }, "parameters": [ { - "name": "j", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -45337,14 +48694,18 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -45352,55 +48713,23 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3389, - "column": 1, - "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3389, - "column": 1, - "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3409, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__decode_jpeg_image": { - "name": "stbi__decode_jpeg_image", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "j", + "name": "mode", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "char const *mode", "components": [ { "model": "CPointer", @@ -45408,14 +48737,18 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *j", + "source_text": "char const *mode", "components": [ { "model": "CPointer", @@ -45423,7 +48756,11 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -45440,30 +48777,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3412, + "line": 1337, "column": 1, - "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" + "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" }, "start": { "filename": "stb/stb_image.h", - "line": 3412, + "line": 1337, "column": 1, - "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" + "source_line": "static FILE *stbi__fopen(char const *filename, char const *mode)" }, "end": { "filename": "stb/stb_image.h", - "line": 3447, + "line": 1363, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "resample_row_1": { - "name": "resample_row_1", + "stbi__loadf_main": { + "name": "stbi__loadf_main", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc", + "source_text": "float", "components": [ { "model": "CPointer", @@ -45471,17 +48808,19 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "parameters": [ { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45489,14 +48828,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45504,7 +48843,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, @@ -45512,11 +48851,11 @@ "callback_policy": null }, { - "name": "in_near", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -45524,14 +48863,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -45539,7 +48880,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -45547,11 +48890,11 @@ "callback_policy": null }, { - "name": "in_far", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -45559,14 +48902,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -45574,7 +48919,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -45582,31 +48929,55 @@ "callback_policy": null }, { - "name": "w", + "name": "comp", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int w" + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "hs", + "name": "req_comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int req_comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null @@ -45621,48 +48992,36 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3456, + "line": 1460, "column": 1, - "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 3456, + "line": 1460, "column": 1, - "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 3463, + "line": 1476, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__resample_row_v_2": { - "name": "stbi__resample_row_v_2", + "stbi__get8": { + "name": "stbi__get8", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "reference": "stbi_uc" }, "parameters": [ { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45670,14 +49029,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45685,19 +49044,55 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1614, + "column": 2, + "source_line": " static stbi_uc stbi__get8(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1614, + "column": 2, + "source_line": " static stbi_uc stbi__get8(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1623, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__at_eof": { + "name": "stbi__at_eof", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "in_near", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45705,14 +49100,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45720,19 +49115,55 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1628, + "column": 2, + "source_line": " static int stbi__at_eof(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1628, + "column": 2, + "source_line": " static int stbi__at_eof(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1638, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__skip": { + "name": "stbi__skip", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "in_far", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45740,14 +49171,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45755,7 +49186,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, @@ -45763,31 +49194,16 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "hs", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -45802,48 +49218,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3465, + "line": 1644, "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static void stbi__skip(stbi__context *s, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 3465, + "line": 1644, "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static void stbi__skip(stbi__context *s, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 3473, + "line": 1660, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__resample_row_h_2": { - "name": "stbi__resample_row_h_2", + "stbi__getn": { + "name": "stbi__getn", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45851,14 +49257,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45866,7 +49272,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, @@ -45874,11 +49280,11 @@ "callback_policy": null }, { - "name": "in_near", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi_uc *buffer", "components": [ { "model": "CPointer", @@ -45893,7 +49299,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi_uc *buffer", "components": [ { "model": "CPointer", @@ -45909,11 +49315,62 @@ "callback_policy": null }, { - "name": "in_far", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1666, + "column": 1, + "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1666, + "column": 1, + "source_line": "static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1688, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__get16be": { + "name": "stbi__get16be", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45921,14 +49378,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_far", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -45936,39 +49393,78 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1694, + "column": 1, + "source_line": "static int stbi__get16be(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1694, + "column": 1, + "source_line": "static int stbi__get16be(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1698, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__get32be": { + "name": "stbi__get32be", + "result_type": { + "reference": "stbi__uint32" + }, + "parameters": [ { - "name": "hs", + "name": "s", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int hs" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int hs" + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] }, "source_location": null, "callback_policy": null @@ -45983,48 +49479,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3475, + "line": 1704, "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 3475, + "line": 1704, "column": 1, - "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint32 stbi__get32be(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 3501, + "line": 1708, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__resample_row_hv_2": { - "name": "stbi__resample_row_hv_2", + "stbi__get16le": { + "name": "stbi__get16le", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -46032,14 +49518,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -46047,19 +49533,53 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1714, + "column": 1, + "source_line": "static int stbi__get16le(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1714, + "column": 1, + "source_line": "static int stbi__get16le(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1718, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__get32le": { + "name": "stbi__get32le", + "result_type": { + "reference": "stbi__uint32" + }, + "parameters": [ { - "name": "in_near", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -46067,14 +49587,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *in_near", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -46082,74 +49602,88 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1722, + "column": 1, + "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1722, + "column": 1, + "source_line": "static stbi__uint32 stbi__get32le(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1727, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__compute_y": { + "name": "stbi__compute_y", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ { - "name": "in_far", + "name": "r", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int r" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int r" }, "source_location": null, "callback_policy": null }, { - "name": "w", + "name": "g", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int g" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int g" }, "source_location": null, "callback_policy": null }, { - "name": "hs", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -46164,30 +49698,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3505, + "line": 1746, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 3505, + "line": 1746, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi_uc stbi__compute_y(int r, int g, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 3527, + "line": 1749, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__resample_row_hv_2_simd": { - "name": "stbi__resample_row_hv_2_simd", + "stbi__convert_format": { + "name": "stbi__convert_format", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc", + "source_text": "unsigned char", "components": [ { "model": "CPointer", @@ -46195,17 +49729,19 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "parameters": [ { - "name": "out", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "unsigned char *data", "components": [ { "model": "CPointer", @@ -46213,14 +49749,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "unsigned char *data", "components": [ { "model": "CPointer", @@ -46228,7 +49766,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -46236,101 +49776,140 @@ "callback_policy": null }, { - "name": "in_near", + "name": "img_n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int img_n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int img_n" }, "source_location": null, "callback_policy": null }, { - "name": "in_far", + "name": "req_comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "w", + "name": "x", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 1755, + "column": 1, + "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 1755, + "column": 1, + "source_line": "static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 1797, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__compute_y_16": { + "name": "stbi__compute_y_16", + "result_type": { + "reference": "stbi__uint16" + }, + "parameters": [ + { + "name": "r", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int r" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int r" }, "source_location": null, "callback_policy": null }, { - "name": "hs", + "name": "g", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int g" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "int g" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -46345,30 +49924,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3530, + "line": 1803, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 3530, + "line": 1803, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint16 stbi__compute_y_16(int r, int g, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 3643, + "line": 1806, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__resample_row_generic": { - "name": "stbi__resample_row_generic", + "stbi__convert_format16": { + "name": "stbi__convert_format16", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc", + "source_text": "stbi__uint16", "components": [ { "model": "CPointer", @@ -46376,17 +49955,17 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__uint16" } ] }, "parameters": [ { - "name": "out", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__uint16 *data", "components": [ { "model": "CPointer", @@ -46394,14 +49973,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__uint16 *data", "components": [ { "model": "CPointer", @@ -46409,7 +49988,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__uint16" } ] }, @@ -46417,101 +49996,61 @@ "callback_policy": null }, { - "name": "in_near", + "name": "img_n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int img_n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_near", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int img_n" }, "source_location": null, "callback_policy": null }, { - "name": "in_far", + "name": "req_comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *in_far", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null }, { - "name": "w", + "name": "x", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int w" + "source_text": "unsigned int x" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int w" + "source_text": "unsigned int x" }, "source_location": null, "callback_policy": null }, { - "name": "hs", + "name": "y", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "unsigned int y" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int hs" + "source_text": "unsigned int y" }, "source_location": null, "callback_policy": null @@ -46526,38 +50065,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3646, + "line": 1812, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" }, "start": { "filename": "stb/stb_image.h", - "line": 3646, + "line": 1812, "column": 1, - "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" + "source_line": "static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)" }, "end": { "filename": "stb/stb_image.h", - "line": 3655, + "line": 1854, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__YCbCr_to_RGB_row": { - "name": "stbi__YCbCr_to_RGB_row", + "stbi__build_huffman": { + "name": "stbi__build_huffman", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "out", + "name": "h", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46565,14 +50104,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46580,7 +50119,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, @@ -46588,11 +50127,11 @@ "callback_policy": null }, { - "name": "y", + "name": "count", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *y", + "source_text": "int *count", "components": [ { "model": "CPointer", @@ -46600,14 +50139,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *y", + "source_text": "int *count", "components": [ { "model": "CPointer", @@ -46615,19 +50156,57 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2003, + "column": 1, + "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2003, + "column": 1, + "source_line": "static int stbi__build_huffman(stbi__huffman *h, int *count)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2046, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__build_fast_ac": { + "name": "stbi__build_fast_ac", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "pcb", + "name": "fast_ac", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *pcb", + "source_text": "stbi__int16 *fast_ac", "components": [ { "model": "CPointer", @@ -46635,14 +50214,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__int16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *pcb", + "source_text": "stbi__int16 *fast_ac", "components": [ { "model": "CPointer", @@ -46650,7 +50229,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__int16" } ] }, @@ -46658,11 +50237,11 @@ "callback_policy": null }, { - "name": "pcr", + "name": "h", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *pcr", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46670,14 +50249,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *pcr", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46685,42 +50264,12 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "step", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -46732,26 +50281,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3660, + "line": 2050, "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" + "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" }, "start": { "filename": "stb/stb_image.h", - "line": 3660, + "line": 2050, "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" + "source_line": "static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)" }, "end": { "filename": "stb/stb_image.h", - "line": 3683, + "line": 2073, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__YCbCr_to_RGB_simd": { - "name": "stbi__YCbCr_to_RGB_simd", + "stbi__grow_buffer_unsafe": { + "name": "stbi__grow_buffer_unsafe", "result_type": { "model": "CVoid", "qualifiers": [], @@ -46759,11 +50308,11 @@ }, "parameters": [ { - "name": "out", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46771,14 +50320,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46786,19 +50335,55 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2075, + "column": 1, + "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2075, + "column": 1, + "source_line": "static void stbi__grow_buffer_unsafe(stbi__jpeg *j)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2091, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__jpeg_huff_decode": { + "name": "stbi__jpeg_huff_decode", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "y", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *y", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46806,14 +50391,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *y", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46821,7 +50406,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, @@ -46829,11 +50414,11 @@ "callback_policy": null }, { - "name": "pcb", + "name": "h", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *pcb", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46841,14 +50426,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *pcb", + "source_text": "stbi__huffman *h", "components": [ { "model": "CPointer", @@ -46856,19 +50441,55 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__huffman" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2097, + "column": 2, + "source_line": " static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2097, + "column": 2, + "source_line": " static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2146, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__extend_receive": { + "name": "stbi__extend_receive", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "pcr", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *pcr", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46876,14 +50497,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc const *pcr", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -46891,7 +50512,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__jpeg" } ] }, @@ -46899,31 +50520,16 @@ "callback_policy": null }, { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "step", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int step" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int step" + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -46938,30 +50544,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3686, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" + "line": 2153, + "column": 2, + "source_line": " static int stbi__extend_receive(stbi__jpeg *j, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 3686, - "column": 1, - "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" + "line": 2153, + "column": 2, + "source_line": " static int stbi__extend_receive(stbi__jpeg *j, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 3817, + "line": 2166, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__setup_jpeg": { - "name": "stbi__setup_jpeg", + "stbi__jpeg_get_bits": { + "name": "stbi__jpeg_get_bits", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -46998,6 +50604,21 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -47009,30 +50630,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3821, - "column": 1, - "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" + "line": 2169, + "column": 2, + "source_line": " static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 3821, - "column": 1, - "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" + "line": 2169, + "column": 2, + "source_line": " static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 3840, + "line": 2179, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__cleanup_jpeg": { - "name": "stbi__cleanup_jpeg", + "stbi__jpeg_get_bit": { + "name": "stbi__jpeg_get_bit", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -47080,104 +50701,236 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3843, - "column": 1, - "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" + "line": 2181, + "column": 2, + "source_line": " static int stbi__jpeg_get_bit(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 3843, - "column": 1, - "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" + "line": 2181, + "column": 2, + "source_line": " static int stbi__jpeg_get_bit(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 3846, + "line": 2190, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__blinn_8x8": { - "name": "stbi__blinn_8x8", + "stbi__jpeg_decode_block": { + "name": "stbi__jpeg_decode_block", "result_type": { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "x", + "name": "j", "type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] }, "declared_type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "data", "type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, "declared_type": { - "reference": "stbi_uc" + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 3859, - "column": 1, - "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 3859, - "column": 1, - "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 3863, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "load_jpeg_image": { - "name": "load_jpeg_image", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", + }, + { + "name": "hdc", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] }, - { - "reference": "stbi_uc" - } - ] - }, - "parameters": [ + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hdc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "hac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__huffman *hac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__huffman" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fac", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__int16 *fac", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__int16" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "z", + "name": "dequant", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "stbi__uint16 *dequant", "components": [ { "model": "CPointer", @@ -47185,14 +50938,14 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi__uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__jpeg *z", + "source_text": "stbi__uint16 *dequant", "components": [ { "model": "CPointer", @@ -47200,19 +50953,55 @@ "source_text": "" }, { - "reference": "stbi__jpeg" + "reference": "stbi__uint16" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2210, + "column": 1, + "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2210, + "column": 1, + "source_line": "static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2263, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__jpeg_decode_block_prog_dc": { + "name": "stbi__jpeg_decode_block_prog_dc", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "out_x", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *out_x", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47220,16 +51009,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *out_x", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47237,9 +51024,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__jpeg" } ] }, @@ -47247,11 +51032,11 @@ "callback_policy": null }, { - "name": "out_y", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *out_y", + "source_text": "short data[64]", "components": [ { "model": "CPointer", @@ -47259,26 +51044,30 @@ "source_text": "" }, { - "model": "CInt", + "model": "CShort", "qualifiers": [], - "source_text": "int" + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *out_y", + "source_text": "short data[64]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CInt", + "model": "CShort", "qualifiers": [], - "source_text": "int" + "source_text": "short" } ] }, @@ -47286,11 +51075,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "hdc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__huffman *hdc", "components": [ { "model": "CPointer", @@ -47298,16 +51087,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__huffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__huffman *hdc", "components": [ { "model": "CPointer", @@ -47315,9 +51102,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__huffman" } ] }, @@ -47325,16 +51110,16 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -47349,26 +51134,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3865, + "line": 2265, "column": 1, - "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" + "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" }, "start": { "filename": "stb/stb_image.h", - "line": 3865, + "line": 2265, "column": 1, - "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" + "source_line": "static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)" }, "end": { "filename": "stb/stb_image.h", - "line": 4026, + "line": 2291, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__jpeg_info_raw": { - "name": "stbi__jpeg_info_raw", + "stbi__jpeg_decode_block_prog_ac": { + "name": "stbi__jpeg_decode_block_prog_ac", "result_type": { "model": "CInt", "qualifiers": [], @@ -47411,11 +51196,11 @@ "callback_policy": null }, { - "name": "x", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "short data[64]", "components": [ { "model": "CPointer", @@ -47423,26 +51208,30 @@ "source_text": "" }, { - "model": "CInt", + "model": "CShort", "qualifiers": [], - "source_text": "int" + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "short data[64]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CInt", + "model": "CShort", "qualifiers": [], - "source_text": "int" + "source_text": "short" } ] }, @@ -47450,11 +51239,11 @@ "callback_policy": null }, { - "name": "y", + "name": "hac", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi__huffman *hac", "components": [ { "model": "CPointer", @@ -47462,16 +51251,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__huffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi__huffman *hac", "components": [ { "model": "CPointer", @@ -47479,9 +51266,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__huffman" } ] }, @@ -47489,11 +51274,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "fac", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__int16 *fac", "components": [ { "model": "CPointer", @@ -47501,16 +51286,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__int16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__int16 *fac", "components": [ { "model": "CPointer", @@ -47518,9 +51301,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__int16" } ] }, @@ -47537,38 +51318,87 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4056, + "line": 2295, "column": 1, - "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" + "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" }, "start": { "filename": "stb/stb_image.h", - "line": 4056, + "line": 2295, "column": 1, - "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" + "source_line": "static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)" }, "end": { "filename": "stb/stb_image.h", - "line": 4066, + "line": 2413, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__zbuild_huffman": { - "name": "stbi__zbuild_huffman", + "stbi__clamp": { + "name": "stbi__clamp", "result_type": { - "model": "CInt", + "reference": "stbi_uc" + }, + "parameters": [ + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2416, + "column": 2, + "source_line": " static stbi_uc stbi__clamp(int x)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2416, + "column": 2, + "source_line": " static stbi_uc stbi__clamp(int x)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2424, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__idct_block": { + "name": "stbi__idct_block", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "z", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zhuffman *z", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -47576,14 +51406,14 @@ "source_text": "" }, { - "reference": "stbi__zhuffman" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zhuffman *z", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -47591,7 +51421,7 @@ "source_text": "" }, { - "reference": "stbi__zhuffman" + "reference": "stbi_uc" } ] }, @@ -47599,11 +51429,105 @@ "callback_policy": null }, { - "name": "sizelist", + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *sizelist", + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2467, + "column": 1, + "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2467, + "column": 1, + "source_line": "static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2524, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__idct_simd": { + "name": "stbi__idct_simd", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -47618,7 +51542,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *sizelist", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -47634,16 +51558,59 @@ "callback_policy": null }, { - "name": "num", + "name": "out_stride", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num" + "source_text": "int out_stride" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num" + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short data[64]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, "source_location": null, "callback_policy": null @@ -47658,38 +51625,36 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4124, + "line": 2530, "column": 1, - "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" + "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" }, "start": { "filename": "stb/stb_image.h", - "line": 4124, + "line": 2530, "column": 1, - "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" + "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" }, "end": { "filename": "stb/stb_image.h", - "line": 4169, + "line": 2703, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__fill_bits": { - "name": "stbi__fill_bits", + "stbi__get_marker": { + "name": "stbi__get_marker", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi_uc" }, "parameters": [ { - "name": "z", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *z", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47697,14 +51662,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *z", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47712,7 +51677,7 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, @@ -47729,38 +51694,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4202, + "line": 2919, "column": 1, - "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" + "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 4202, + "line": 2919, "column": 1, - "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" + "source_line": "static stbi_uc stbi__get_marker(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 4212, + "line": 2928, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__zhuffman_decode_slowpath": { - "name": "stbi__zhuffman_decode_slowpath", + "stbi__jpeg_reset": { + "name": "stbi__jpeg_reset", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47768,14 +51733,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -47783,19 +51748,55 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 2936, + "column": 1, + "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 2936, + "column": 1, + "source_line": "static void stbi__jpeg_reset(stbi__jpeg *j)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 2947, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__parse_entropy_coded_data": { + "name": "stbi__parse_entropy_coded_data", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zhuffman *z", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -47803,14 +51804,14 @@ "source_text": "" }, { - "reference": "stbi__zhuffman" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zhuffman *z", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -47818,7 +51819,7 @@ "source_text": "" }, { - "reference": "stbi__zhuffman" + "reference": "stbi__jpeg" } ] }, @@ -47835,38 +51836,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4224, + "line": 2949, "column": 1, - "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" + "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 4224, + "line": 2949, "column": 1, - "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" + "source_line": "static int stbi__parse_entropy_coded_data(stbi__jpeg *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 4241, + "line": 3071, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__zexpand": { - "name": "stbi__zexpand", + "stbi__jpeg_dequantize": { + "name": "stbi__jpeg_dequantize", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "z", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *z", + "source_text": "short *data", "components": [ { "model": "CPointer", @@ -47874,14 +51875,16 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *z", + "source_text": "short *data", "components": [ { "model": "CPointer", @@ -47889,7 +51892,9 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -47897,11 +51902,11 @@ "callback_policy": null }, { - "name": "zout", + "name": "dequant", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *zout", + "source_text": "stbi__uint16 *dequant", "components": [ { "model": "CPointer", @@ -47909,16 +51914,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi__uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *zout", + "source_text": "stbi__uint16 *dequant", "components": [ { "model": "CPointer", @@ -47926,29 +51929,12 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi__uint16" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -47960,38 +51946,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4273, + "line": 3073, "column": 1, - "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes" + "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" }, "start": { "filename": "stb/stb_image.h", - "line": 4273, + "line": 3073, "column": 1, - "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes" + "source_line": "static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)" }, "end": { "filename": "stb/stb_image.h", - "line": 4293, + "line": 3078, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__parse_huffman_block": { - "name": "stbi__parse_huffman_block", + "stbi__jpeg_finish": { + "name": "stbi__jpeg_finish", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "a", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -47999,14 +51985,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48014,7 +52000,7 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, @@ -48031,26 +52017,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4309, + "line": 3080, "column": 1, - "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" + "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 4309, + "line": 3080, "column": 1, - "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" + "source_line": "static void stbi__jpeg_finish(stbi__jpeg *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 4357, + "line": 3097, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__compute_huffman_codes": { - "name": "stbi__compute_huffman_codes", + "stbi__process_marker": { + "name": "stbi__process_marker", "result_type": { "model": "CInt", "qualifiers": [], @@ -48058,11 +52044,11 @@ }, "parameters": [ { - "name": "a", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48070,14 +52056,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48085,12 +52071,27 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "m", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int m" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int m" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -48102,26 +52103,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4359, + "line": 3099, "column": 1, - "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" + "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" }, "start": { "filename": "stb/stb_image.h", - "line": 4359, + "line": 3099, "column": 1, - "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" + "source_line": "static int stbi__process_marker(stbi__jpeg *z, int m)" }, "end": { "filename": "stb/stb_image.h", - "line": 4407, + "line": 3200, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__parse_uncompressed_block": { - "name": "stbi__parse_uncompressed_block", + "stbi__process_scan_header": { + "name": "stbi__process_scan_header", "result_type": { "model": "CInt", "qualifiers": [], @@ -48129,11 +52130,11 @@ }, "parameters": [ { - "name": "a", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48141,14 +52142,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48156,7 +52157,7 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, @@ -48173,26 +52174,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4409, + "line": 3203, "column": 1, - "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 4409, + "line": 3203, "column": 1, - "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + "source_line": "static int stbi__process_scan_header(stbi__jpeg *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 4436, + "line": 3240, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__parse_zlib_header": { - "name": "stbi__parse_zlib_header", + "stbi__free_jpeg_components": { + "name": "stbi__free_jpeg_components", "result_type": { "model": "CInt", "qualifiers": [], @@ -48200,11 +52201,11 @@ }, "parameters": [ { - "name": "a", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48212,14 +52213,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48227,12 +52228,42 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "ncomp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ncomp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ncomp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "why", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int why" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int why" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -48244,26 +52275,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4438, + "line": 3242, "column": 1, - "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" + "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" }, "start": { "filename": "stb/stb_image.h", - "line": 4438, + "line": 3242, "column": 1, - "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" + "source_line": "static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)" }, "end": { "filename": "stb/stb_image.h", - "line": 4450, + "line": 3262, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__parse_zlib": { - "name": "stbi__parse_zlib", + "stbi__process_frame_header": { + "name": "stbi__process_frame_header", "result_type": { "model": "CInt", "qualifiers": [], @@ -48271,11 +52302,11 @@ }, "parameters": [ { - "name": "a", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48283,14 +52314,14 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__zbuf *a", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48298,7 +52329,7 @@ "source_text": "" }, { - "reference": "stbi__zbuf" + "reference": "stbi__jpeg" } ] }, @@ -48306,16 +52337,16 @@ "callback_policy": null }, { - "name": "parse_header", + "name": "scan", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int parse_header" + "source_text": "int scan" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int parse_header" + "source_text": "int scan" }, "source_location": null, "callback_policy": null @@ -48330,26 +52361,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4481, + "line": 3264, "column": 1, - "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" }, "start": { "filename": "stb/stb_image.h", - "line": 4481, + "line": 3264, "column": 1, - "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + "source_line": "static int stbi__process_frame_header(stbi__jpeg *z, int scan)" }, "end": { "filename": "stb/stb_image.h", - "line": 4508, + "line": 3354, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__do_zlib": { - "name": "stbi__do_zlib", + "stbi__decode_jpeg_header": { + "name": "stbi__decode_jpeg_header", "result_type": { "model": "CInt", "qualifiers": [], @@ -48357,46 +52388,11 @@ }, "parameters": [ { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__zbuf *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__zbuf" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "obuf", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *obuf", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48404,16 +52400,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *obuf", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -48421,9 +52415,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi__jpeg" } ] }, @@ -48431,46 +52423,16 @@ "callback_policy": null }, { - "name": "olen", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int olen" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int olen" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "exp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int exp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int exp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "parse_header", + "name": "scan", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int parse_header" + "source_text": "int scan" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int parse_header" + "source_text": "int scan" }, "source_location": null, "callback_policy": null @@ -48485,36 +52447,36 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4510, + "line": 3365, "column": 1, - "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" + "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" }, "start": { "filename": "stb/stb_image.h", - "line": 4510, + "line": 3365, "column": 1, - "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" + "source_line": "static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)" }, "end": { "filename": "stb/stb_image.h", - "line": 4518, + "line": 3387, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__get_chunk_header": { - "name": "stbi__get_chunk_header", + "stbi__skip_jpeg_junk_at_end": { + "name": "stbi__skip_jpeg_junk_at_end", "result_type": { - "reference": "stbi__pngchunk" + "reference": "stbi_uc" }, "parameters": [ { - "name": "s", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -48522,14 +52484,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -48537,7 +52499,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, @@ -48554,26 +52516,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4613, + "line": 3389, "column": 1, - "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 4613, + "line": 3389, "column": 1, - "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + "source_line": "static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 4619, + "line": 3409, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__check_png_header": { - "name": "stbi__check_png_header", + "stbi__decode_jpeg_image": { + "name": "stbi__decode_jpeg_image", "result_type": { "model": "CInt", "qualifiers": [], @@ -48581,11 +52543,11 @@ }, "parameters": [ { - "name": "s", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -48593,14 +52555,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -48608,7 +52570,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, @@ -48625,119 +52587,83 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4621, + "line": 3412, "column": 1, - "source_line": "static int stbi__check_png_header(stbi__context *s)" + "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 4621, + "line": 3412, "column": 1, - "source_line": "static int stbi__check_png_header(stbi__context *s)" + "source_line": "static int stbi__decode_jpeg_image(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 4628, + "line": 3447, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__paeth": { - "name": "stbi__paeth", + "resample_row_1": { + "name": "resample_row_1", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int a" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ { - "name": "b", + "name": "out", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4657, - "column": 1, - "source_line": "static int stbi__paeth(int a, int b, int c)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4657, - "column": 1, - "source_line": "static int stbi__paeth(int a, int b, int c)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4668, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__create_png_alpha_expand8": { - "name": "stbi__create_png_alpha_expand8", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *dest", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -48752,7 +52678,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *dest", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -48768,11 +52694,11 @@ "callback_policy": null }, { - "name": "src", + "name": "in_far", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *src", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -48787,7 +52713,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *src", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -48803,27 +52729,31 @@ "callback_policy": null }, { - "name": "x", + "name": "w", "type": { - "reference": "stbi__uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, "declared_type": { - "reference": "stbi__uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "img_n", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int img_n" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -48838,38 +52768,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4675, + "line": 3456, "column": 1, - "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" + "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 4675, + "line": 3456, "column": 1, - "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" + "source_line": "static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 4693, + "line": 3463, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__create_png_image_raw": { - "name": "stbi__create_png_image_raw", + "stbi__resample_row_v_2": { + "name": "stbi__resample_row_v_2", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "a", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -48877,14 +52817,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -48892,7 +52832,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -48900,11 +52840,11 @@ "callback_policy": null }, { - "name": "raw", + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *raw", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -48919,7 +52859,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *raw", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -48935,79 +52875,66 @@ "callback_policy": null }, { - "name": "raw_len", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", + "name": "in_far", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int out_n" + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "depth", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int depth" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int depth" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "color", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int color" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int color" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -49022,38 +52949,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4696, + "line": 3465, "column": 1, - "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" + "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 4696, + "line": 3465, "column": 1, - "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" + "source_line": "static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 4859, + "line": 3473, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__create_png_image": { - "name": "stbi__create_png_image", + "stbi__resample_row_h_2": { + "name": "stbi__resample_row_h_2", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "a", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49061,14 +52998,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49076,7 +53013,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49084,11 +53021,11 @@ "callback_policy": null }, { - "name": "image_data", + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *image_data", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49103,7 +53040,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *image_data", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49119,72 +53056,66 @@ "callback_policy": null }, { - "name": "image_data_len", - "type": { - "reference": "stbi__uint32" - }, - "declared_type": { - "reference": "stbi__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "depth", + "name": "in_far", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int depth" + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int depth" + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "color", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int color" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int color" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "interlaced", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int interlaced" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int interlaced" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -49199,38 +53130,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4861, + "line": 3475, "column": 1, - "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" + "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 4861, + "line": 3475, "column": 1, - "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" + "source_line": "static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 4904, + "line": 3501, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__compute_transparency": { - "name": "stbi__compute_transparency", + "stbi__resample_row_hv_2": { + "name": "stbi__resample_row_hv_2", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "z", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49238,14 +53179,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49253,7 +53194,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49261,11 +53202,11 @@ "callback_policy": null }, { - "name": "tc", + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc tc[3]", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49280,16 +53221,12 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc tc[3]", + "source_text": "stbi_uc *in_near", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { "reference": "stbi_uc" @@ -49300,62 +53237,11 @@ "callback_policy": null }, { - "name": "out_n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 4906, - "column": 1, - "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 4906, - "column": 1, - "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 4929, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__compute_transparency16": { - "name": "stbi__compute_transparency16", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", + "name": "in_far", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -49363,14 +53249,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -49378,7 +53264,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49386,55 +53272,31 @@ "callback_policy": null }, { - "name": "tc", + "name": "w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16 tc[3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__uint16 tc[3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi__uint16" - } - ] + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "out_n", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_n" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int out_n" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -49449,38 +53311,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4931, + "line": 3505, "column": 1, - "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" + "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 4931, + "line": 3505, "column": 1, - "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" + "source_line": "static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 4954, + "line": 3527, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__expand_png_palette": { - "name": "stbi__expand_png_palette", + "stbi__resample_row_hv_2_simd": { + "name": "stbi__resample_row_hv_2_simd", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "a", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49488,14 +53360,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *a", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49503,7 +53375,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49511,11 +53383,11 @@ "callback_policy": null }, { - "name": "palette", + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *palette", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49530,7 +53402,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *palette", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49546,31 +53418,66 @@ "callback_policy": null }, { - "name": "len", + "name": "in_far", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *in_far", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "pal_img_n", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int pal_img_n" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int pal_img_n" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -49585,38 +53492,83 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4956, + "line": 3530, "column": 1, - "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" + "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 4956, + "line": 3530, "column": 1, - "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" + "source_line": "static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 4991, + "line": 3643, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__de_iphone": { - "name": "stbi__de_iphone", + "stbi__resample_row_generic": { + "name": "stbi__resample_row_generic", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, "parameters": [ { - "name": "z", + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "in_near", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49624,14 +53576,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_near", "components": [ { "model": "CPointer", @@ -49639,55 +53591,19 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5033, - "column": 1, - "source_line": "static void stbi__de_iphone(stbi__png *z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5033, - "column": 1, - "source_line": "static void stbi__de_iphone(stbi__png *z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5074, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__parse_png_file": { - "name": "stbi__parse_png_file", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "z", + "name": "in_far", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -49695,14 +53611,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *z", + "source_text": "stbi_uc *in_far", "components": [ { "model": "CPointer", @@ -49710,7 +53626,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49718,31 +53634,31 @@ "callback_policy": null }, { - "name": "scan", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int scan" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int scan" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "req_comp", + "name": "hs", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int hs" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int hs" }, "source_location": null, "callback_policy": null @@ -49757,50 +53673,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5078, + "line": 3646, "column": 1, - "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "start": { "filename": "stb/stb_image.h", - "line": 5078, + "line": 3646, "column": 1, - "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + "source_line": "static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)" }, "end": { "filename": "stb/stb_image.h", - "line": 5261, + "line": 3655, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__do_png": { - "name": "stbi__do_png", + "stbi__YCbCr_to_RGB_row": { + "name": "stbi__YCbCr_to_RGB_row", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *p", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49808,14 +53712,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *p", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -49823,7 +53727,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -49831,11 +53735,11 @@ "callback_policy": null }, { - "name": "x", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "const stbi_uc *y", "components": [ { "model": "CPointer", @@ -49843,16 +53747,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "const stbi_uc *y", "components": [ { "model": "CPointer", @@ -49860,9 +53762,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -49870,11 +53770,11 @@ "callback_policy": null }, { - "name": "y", + "name": "pcb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "const stbi_uc *pcb", "components": [ { "model": "CPointer", @@ -49882,16 +53782,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "const stbi_uc *pcb", "components": [ { "model": "CPointer", @@ -49899,9 +53797,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -49909,11 +53805,11 @@ "callback_policy": null }, { - "name": "n", + "name": "pcr", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *n", + "source_text": "const stbi_uc *pcr", "components": [ { "model": "CPointer", @@ -49921,16 +53817,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *n", + "source_text": "const stbi_uc *pcr", "components": [ { "model": "CPointer", @@ -49938,9 +53832,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -49948,51 +53840,31 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "count", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int count" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int count" }, "source_location": null, "callback_policy": null }, { - "name": "ri", + "name": "step", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] + "source_text": "int step" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__result_info *ri", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__result_info" - } - ] + "source_text": "int step" }, "source_location": null, "callback_policy": null @@ -50007,38 +53879,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5263, + "line": 3660, "column": 1, - "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" + "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" }, "start": { "filename": "stb/stb_image.h", - "line": 5263, + "line": 3660, "column": 1, - "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" + "source_line": "static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)" }, "end": { "filename": "stb/stb_image.h", - "line": 5293, + "line": 3683, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__png_info_raw": { - "name": "stbi__png_info_raw", + "stbi__YCbCr_to_RGB_simd": { + "name": "stbi__YCbCr_to_RGB_simd", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "out", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *p", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -50046,14 +53918,14 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__png *p", + "source_text": "stbi_uc *out", "components": [ { "model": "CPointer", @@ -50061,7 +53933,7 @@ "source_text": "" }, { - "reference": "stbi__png" + "reference": "stbi_uc" } ] }, @@ -50069,11 +53941,11 @@ "callback_policy": null }, { - "name": "x", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi_uc const *y", "components": [ { "model": "CPointer", @@ -50081,16 +53953,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi_uc const *y", "components": [ { "model": "CPointer", @@ -50098,9 +53968,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -50108,11 +53976,11 @@ "callback_policy": null }, { - "name": "y", + "name": "pcb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *pcb", "components": [ { "model": "CPointer", @@ -50120,16 +53988,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi_uc const *pcb", "components": [ { "model": "CPointer", @@ -50137,9 +54003,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, @@ -50147,11 +54011,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "pcr", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi_uc const *pcr", "components": [ { "model": "CPointer", @@ -50159,16 +54023,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi_uc const *pcr", "components": [ { "model": "CPointer", @@ -50176,14 +54038,42 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -50195,38 +54085,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5310, + "line": 3686, "column": 1, - "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" + "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" }, "start": { "filename": "stb/stb_image.h", - "line": 5310, + "line": 3686, "column": 1, - "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" + "source_line": "static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)" }, "end": { "filename": "stb/stb_image.h", - "line": 5320, + "line": 3817, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__bmp_test_raw": { - "name": "stbi__bmp_test_raw", + "stbi__setup_jpeg": { + "name": "stbi__setup_jpeg", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -50234,14 +54124,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -50249,7 +54139,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, @@ -50266,175 +54156,63 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5346, - "column": 1, - "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5346, - "column": 1, - "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5359, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__high_bit": { - "name": "stbi__high_bit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int z" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5370, - "column": 1, - "source_line": "static int stbi__high_bit(unsigned int z)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5370, - "column": 1, - "source_line": "static int stbi__high_bit(unsigned int z)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5380, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__bitcount": { - "name": "stbi__bitcount", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int a" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5382, + "line": 3821, "column": 1, - "source_line": "static int stbi__bitcount(unsigned int a)" + "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 5382, + "line": 3821, "column": 1, - "source_line": "static int stbi__bitcount(unsigned int a)" + "source_line": "static void stbi__setup_jpeg(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 5390, + "line": 3840, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__shiftsigned": { - "name": "stbi__shiftsigned", + "stbi__cleanup_jpeg": { + "name": "stbi__cleanup_jpeg", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "v", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int v" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int v" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shift", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shift" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bits", + "name": "j", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int bits" + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int bits" + "source_text": "stbi__jpeg *j", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__jpeg" + } + ] }, "source_location": null, "callback_policy": null @@ -50449,78 +54227,48 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5395, + "line": 3843, "column": 1, - "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" }, "start": { "filename": "stb/stb_image.h", - "line": 5395, + "line": 3843, "column": 1, - "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + "source_line": "static void stbi__cleanup_jpeg(stbi__jpeg *j)" }, "end": { "filename": "stb/stb_image.h", - "line": 5413, + "line": 3846, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__bmp_set_mask_defaults": { - "name": "stbi__bmp_set_mask_defaults", + "stbi__blinn_8x8": { + "name": "stbi__blinn_8x8", "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi_uc" }, "parameters": [ { - "name": "info", + "name": "x", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__bmp_data" - } - ] + "reference": "stbi_uc" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__bmp_data *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__bmp_data" - } - ] + "reference": "stbi_uc" }, "source_location": null, "callback_policy": null }, { - "name": "compress", + "name": "y", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int compress" + "reference": "stbi_uc" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int compress" + "reference": "stbi_uc" }, "source_location": null, "callback_policy": null @@ -50535,30 +54283,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5422, + "line": 3859, "column": 1, - "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" }, "start": { "filename": "stb/stb_image.h", - "line": 5422, + "line": 3859, "column": 1, - "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + "source_line": "static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)" }, "end": { "filename": "stb/stb_image.h", - "line": 5446, + "line": 3863, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__bmp_parse_header": { - "name": "stbi__bmp_parse_header", + "load_jpeg_image": { + "name": "load_jpeg_image", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "stbi_uc", "components": [ { "model": "CPointer", @@ -50566,19 +54314,17 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbi_uc" } ] }, "parameters": [ { - "name": "s", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -50586,14 +54332,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *z", "components": [ { "model": "CPointer", @@ -50601,7 +54347,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, @@ -50609,11 +54355,11 @@ "callback_policy": null }, { - "name": "info", + "name": "out_x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__bmp_data *info", + "source_text": "int *out_x", "components": [ { "model": "CPointer", @@ -50621,14 +54367,16 @@ "source_text": "" }, { - "reference": "stbi__bmp_data" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__bmp_data *info", + "source_text": "int *out_x", "components": [ { "model": "CPointer", @@ -50636,85 +54384,21 @@ "source_text": "" }, { - "reference": "stbi__bmp_data" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5448, - "column": 1, - "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5448, - "column": 1, - "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5528, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__tga_get_comp": { - "name": "stbi__tga_get_comp", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "bits_per_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits_per_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bits_per_pixel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_grey", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_grey" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_grey" - }, - "source_location": null, - "callback_policy": null }, { - "name": "is_rgb16", + "name": "out_y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int * is_rgb16", + "source_text": "int *out_y", "components": [ { "model": "CPointer", @@ -50731,7 +54415,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int * is_rgb16", + "source_text": "int *out_y", "components": [ { "model": "CPointer", @@ -50747,49 +54431,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 5739, - "column": 1, - "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 5739, - "column": 1, - "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 5753, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__tga_read_rgb16": { - "name": "stbi__tga_read_rgb16", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -50797,14 +54445,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -50812,7 +54462,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -50820,36 +54472,16 @@ "callback_policy": null }, { - "name": "out", + "name": "req_comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc * out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc * out", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int req_comp" }, "source_location": null, "callback_policy": null @@ -50864,26 +54496,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5852, + "line": 3865, "column": 1, - "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 5852, + "line": 3865, "column": 1, - "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + "source_line": "static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 5869, + "line": 4026, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__psd_decode_rle": { - "name": "stbi__psd_decode_rle", + "stbi__jpeg_info_raw": { + "name": "stbi__jpeg_info_raw", "result_type": { "model": "CInt", "qualifiers": [], @@ -50891,11 +54523,11 @@ }, "parameters": [ { - "name": "s", + "name": "j", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -50903,14 +54535,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__jpeg *j", "components": [ { "model": "CPointer", @@ -50918,7 +54550,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__jpeg" } ] }, @@ -50926,11 +54558,11 @@ "callback_policy": null }, { - "name": "p", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *p", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -50938,14 +54570,16 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *p", + "source_text": "int *x", "components": [ { "model": "CPointer", @@ -50953,7 +54587,9 @@ "source_text": "" }, { - "reference": "stbi_uc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -50961,62 +54597,11 @@ "callback_policy": null }, { - "name": "pixelCount", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pixelCount" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pixelCount" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 6088, - "column": 1, - "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 6088, - "column": 1, - "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 6124, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__pic_is4": { - "name": "stbi__pic_is4", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", + "name": "y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -51024,14 +54609,16 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "int *y", "components": [ { "model": "CPointer", @@ -51039,7 +54626,9 @@ "source_text": "" }, { - "reference": "stbi__context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -51047,11 +54636,11 @@ "callback_policy": null }, { - "name": "str", + "name": "comp", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *str", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -51059,18 +54648,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *str", + "source_text": "int *comp", "components": [ { "model": "CPointer", @@ -51078,11 +54665,9 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -51099,26 +54684,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6336, + "line": 4056, "column": 1, - "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" }, "start": { "filename": "stb/stb_image.h", - "line": 6336, + "line": 4056, "column": 1, - "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + "source_line": "static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)" }, "end": { "filename": "stb/stb_image.h", - "line": 6344, + "line": 4066, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__pic_test_core": { - "name": "stbi__pic_test_core", + "stbi__bitreverse16": { + "name": "stbi__bitreverse16", "result_type": { "model": "CInt", "qualifiers": [], @@ -51126,36 +54711,16 @@ }, "parameters": [ { - "name": "s", + "name": "n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -51170,123 +54735,58 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6346, - "column": 1, - "source_line": "static int stbi__pic_test_core(stbi__context *s)" + "line": 4107, + "column": 2, + "source_line": " static int stbi__bitreverse16(int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 6346, - "column": 1, - "source_line": "static int stbi__pic_test_core(stbi__context *s)" + "line": 4107, + "column": 2, + "source_line": " static int stbi__bitreverse16(int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 6360, + "line": 4114, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__readval": { - "name": "stbi__readval", + "stbi__bit_reverse": { + "name": "stbi__bit_reverse", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channel", + "name": "v", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int channel" + "source_text": "int v" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int channel" + "source_text": "int v" }, "source_location": null, "callback_policy": null }, { - "name": "dest", + "name": "bits", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int bits" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int bits" }, "source_location": null, "callback_policy": null @@ -51301,53 +54801,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6367, - "column": 1, - "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + "line": 4116, + "column": 2, + "source_line": " static int stbi__bit_reverse(int v, int bits)" }, "start": { "filename": "stb/stb_image.h", - "line": 6367, - "column": 1, - "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + "line": 4116, + "column": 2, + "source_line": " static int stbi__bit_reverse(int v, int bits)" }, "end": { "filename": "stb/stb_image.h", - "line": 6379, + "line": 4122, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__copyval": { - "name": "stbi__copyval", + "stbi__zbuild_huffman": { + "name": "stbi__zbuild_huffman", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "channel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *dest", + "source_text": "stbi__zhuffman *z", "components": [ { "model": "CPointer", @@ -51355,14 +54840,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__zhuffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *dest", + "source_text": "stbi__zhuffman *z", "components": [ { "model": "CPointer", @@ -51370,7 +54855,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__zhuffman" } ] }, @@ -51378,11 +54863,11 @@ "callback_policy": null }, { - "name": "src", + "name": "sizelist", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *src", + "source_text": "const stbi_uc *sizelist", "components": [ { "model": "CPointer", @@ -51397,7 +54882,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbi_uc *src", + "source_text": "const stbi_uc *sizelist", "components": [ { "model": "CPointer", @@ -51411,6 +54896,21 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "num", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -51422,48 +54922,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6381, + "line": 4124, "column": 1, - "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" }, "start": { "filename": "stb/stb_image.h", - "line": 6381, + "line": 4124, "column": 1, - "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + "source_line": "static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)" }, "end": { "filename": "stb/stb_image.h", - "line": 6388, + "line": 4169, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__pic_load_core": { - "name": "stbi__pic_load_core", + "stbi__zeof": { + "name": "stbi__zeof", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51471,14 +54961,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51486,49 +54976,53 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4192, + "column": 2, + "source_line": " static int stbi__zeof(stbi__zbuf *z)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4192, + "column": 2, + "source_line": " static int stbi__zeof(stbi__zbuf *z)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4195, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__zget8": { + "name": "stbi__zget8", + "result_type": { + "reference": "stbi_uc" + }, + "parameters": [ { - "name": "comp", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51536,16 +55030,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51553,21 +55045,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4197, + "column": 2, + "source_line": " static stbi_uc stbi__zget8(stbi__zbuf *z)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4197, + "column": 2, + "source_line": " static stbi_uc stbi__zget8(stbi__zbuf *z)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4200, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__fill_bits": { + "name": "stbi__fill_bits", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "result", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *result", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51575,14 +55101,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *result", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51590,7 +55116,7 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__zbuf" } ] }, @@ -51607,38 +55133,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6390, + "line": 4202, "column": 1, - "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 6390, + "line": 4202, "column": 1, - "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + "source_line": "static void stbi__fill_bits(stbi__zbuf *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 6498, + "line": 4212, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__gif_test_raw": { - "name": "stbi__gif_test_raw", + "stbi__zreceive": { + "name": "stbi__zreceive", "result_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned int" }, "parameters": [ { - "name": "s", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51646,14 +55172,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -51661,12 +55187,27 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -51678,38 +55219,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6580, - "column": 1, - "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + "line": 4214, + "column": 2, + "source_line": " static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" }, "start": { "filename": "stb/stb_image.h", - "line": 6580, - "column": 1, - "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + "line": 4214, + "column": 2, + "source_line": " static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" }, "end": { "filename": "stb/stb_image.h", - "line": 6588, + "line": 4222, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__gif_parse_colortable": { - "name": "stbi__gif_parse_colortable", + "stbi__zhuffman_decode_slowpath": { + "name": "stbi__zhuffman_decode_slowpath", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -51717,14 +55258,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -51732,7 +55273,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, @@ -51740,11 +55281,11 @@ "callback_policy": null }, { - "name": "pal", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc pal[256][4]", + "source_text": "stbi__zhuffman *z", "components": [ { "model": "CPointer", @@ -51752,79 +55293,27 @@ "source_text": "" }, { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" + "reference": "stbi__zhuffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc pal[256][4]", + "source_text": "stbi__zhuffman *z", "components": [ { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__zhuffman" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "num_entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_entries" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_entries" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "transp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int transp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int transp" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -51836,26 +55325,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6597, + "line": 4224, "column": 1, - "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 6597, + "line": 4224, "column": 1, - "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + "source_line": "static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 6606, + "line": 4241, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__gif_header": { - "name": "stbi__gif_header", + "stbi__zhuffman_decode": { + "name": "stbi__zhuffman_decode", "result_type": { "model": "CInt", "qualifiers": [], @@ -51863,46 +55352,11 @@ }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "g", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -51910,14 +55364,14 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -51925,7 +55379,7 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, @@ -51933,11 +55387,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zhuffman *z", "components": [ { "model": "CPointer", @@ -51945,16 +55399,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zhuffman" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zhuffman *z", "components": [ { "model": "CPointer", @@ -51962,29 +55414,12 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zhuffman" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "is_info", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_info" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_info" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -51996,26 +55431,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6608, - "column": 1, - "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + "line": 4243, + "column": 2, + "source_line": " static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" }, "start": { "filename": "stb/stb_image.h", - "line": 6608, - "column": 1, - "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + "line": 4243, + "column": 2, + "source_line": " static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" }, "end": { "filename": "stb/stb_image.h", - "line": 6637, + "line": 4271, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__gif_info_raw": { - "name": "stbi__gif_info_raw", + "stbi__zexpand": { + "name": "stbi__zexpand", "result_type": { "model": "CInt", "qualifiers": [], @@ -52023,46 +55458,11 @@ }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -52070,16 +55470,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__zbuf *z", "components": [ { "model": "CPointer", @@ -52087,9 +55485,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, @@ -52097,11 +55493,11 @@ "callback_policy": null }, { - "name": "y", + "name": "zout", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "char *zout", "components": [ { "model": "CPointer", @@ -52109,16 +55505,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "char *zout", "components": [ { "model": "CPointer", @@ -52126,9 +55522,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, @@ -52136,11 +55532,62 @@ "callback_policy": null }, { - "name": "comp", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4273, + "column": 1, + "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4273, + "column": 1, + "source_line": "static int stbi__zexpand(stbi__zbuf *z, char *zout, int n)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4293, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__parse_huffman_block": { + "name": "stbi__parse_huffman_block", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52148,16 +55595,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52165,9 +55610,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__zbuf" } ] }, @@ -52184,38 +55627,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6639, + "line": 4309, "column": 1, - "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" }, "start": { "filename": "stb/stb_image.h", - "line": 6639, + "line": 4309, "column": 1, - "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__parse_huffman_block(stbi__zbuf *a)" }, "end": { "filename": "stb/stb_image.h", - "line": 6652, + "line": 4357, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__out_gif_code": { - "name": "stbi__out_gif_code", + "stbi__compute_huffman_codes": { + "name": "stbi__compute_huffman_codes", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "g", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52223,14 +55666,14 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52238,23 +55681,12 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "code", - "type": { - "reference": "stbi__uint16" - }, - "declared_type": { - "reference": "stbi__uint16" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -52266,48 +55698,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6654, + "line": 4359, "column": 1, - "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" }, "start": { "filename": "stb/stb_image.h", - "line": 6654, + "line": 4359, "column": 1, - "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + "source_line": "static int stbi__compute_huffman_codes(stbi__zbuf *a)" }, "end": { "filename": "stb/stb_image.h", - "line": 6689, + "line": 4407, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__process_gif_raster": { - "name": "stbi__process_gif_raster", + "stbi__parse_uncompressed_block": { + "name": "stbi__parse_uncompressed_block", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52315,14 +55737,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52330,19 +55752,55 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4409, + "column": 1, + "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4409, + "column": 1, + "source_line": "static int stbi__parse_uncompressed_block(stbi__zbuf *a)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4436, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__parse_zlib_header": { + "name": "stbi__parse_zlib_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "g", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52350,14 +55808,14 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52365,7 +55823,7 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, @@ -52382,48 +55840,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6691, + "line": 4438, "column": 1, - "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" }, "start": { "filename": "stb/stb_image.h", - "line": 6691, + "line": 4438, "column": 1, - "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + "source_line": "static int stbi__parse_zlib_header(stbi__zbuf *a)" }, "end": { "filename": "stb/stb_image.h", - "line": 6774, + "line": 4450, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__gif_load_next": { - "name": "stbi__gif_load_next", + "stbi__parse_zlib": { + "name": "stbi__parse_zlib", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52431,14 +55879,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52446,7 +55894,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__zbuf" } ] }, @@ -52454,11 +55902,62 @@ "callback_policy": null }, { - "name": "g", + "name": "parse_header", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4481, + "column": 1, + "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4481, + "column": 1, + "source_line": "static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4508, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__do_zlib": { + "name": "stbi__do_zlib", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52466,14 +55965,14 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__gif *g", + "source_text": "stbi__zbuf *a", "components": [ { "model": "CPointer", @@ -52481,7 +55980,7 @@ "source_text": "" }, { - "reference": "stbi__gif" + "reference": "stbi__zbuf" } ] }, @@ -52489,11 +55988,11 @@ "callback_policy": null }, { - "name": "comp", + "name": "obuf", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuf", "components": [ { "model": "CPointer", @@ -52501,16 +56000,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *comp", + "source_text": "char *obuf", "components": [ { "model": "CPointer", @@ -52518,9 +56017,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CChar", "qualifiers": [], - "source_text": "int" + "source_text": "char" } ] }, @@ -52528,51 +56027,46 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "olen", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int olen" }, "source_location": null, "callback_policy": null }, { - "name": "two_back", + "name": "exp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *two_back", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int exp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_uc *two_back", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_uc" - } - ] + "source_text": "int exp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "parse_header", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int parse_header" }, "source_location": null, "callback_policy": null @@ -52587,85 +56081,36 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6778, + "line": 4510, "column": 1, - "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" }, "start": { "filename": "stb/stb_image.h", - "line": 6778, + "line": 4510, "column": 1, - "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + "source_line": "static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)" }, "end": { "filename": "stb/stb_image.h", - "line": 6950, + "line": 4518, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__load_gif_main_outofmem": { - "name": "stbi__load_gif_main_outofmem", + "stbi__get_chunk_header": { + "name": "stbi__get_chunk_header", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "reference": "stbi__pngchunk" }, "parameters": [ { - "name": "g", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__gif *g", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__gif" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -52673,14 +56118,14 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *out", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -52688,19 +56133,55 @@ "source_text": "" }, { - "reference": "stbi_uc" + "reference": "stbi__context" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image.h", + "line": 4613, + "column": 1, + "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 4613, + "column": 1, + "source_line": "static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 4619, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbi__check_png_header": { + "name": "stbi__check_png_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "delays", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -52708,21 +56189,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **delays", + "source_text": "stbi__context *s", "components": [ { "model": "CPointer", @@ -52730,14 +56204,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__context" } ] }, @@ -52754,26 +56221,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 6952, + "line": 4621, "column": 1, - "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + "source_line": "static int stbi__check_png_header(stbi__context *s)" }, "start": { "filename": "stb/stb_image.h", - "line": 6952, + "line": 4621, "column": 1, - "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + "source_line": "static int stbi__check_png_header(stbi__context *s)" }, "end": { "filename": "stb/stb_image.h", - "line": 6961, + "line": 4628, "column": 1, "source_line": "}" }, "declaration_locations": [] - }, - "stbi__hdr_test_core": { - "name": "stbi__hdr_test_core", + }, + "stbi__paeth": { + "name": "stbi__paeth", "result_type": { "model": "CInt", "qualifiers": [], @@ -52781,79 +56248,46 @@ }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] + "source_text": "int a" }, "source_location": null, "callback_policy": null }, { - "name": "signature", + "name": "b", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const char *signature", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] + "source_text": "int b" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const char *signature", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int c" }, "source_location": null, "callback_policy": null @@ -52868,50 +56302,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7087, + "line": 4657, "column": 1, - "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" + "source_line": "static int stbi__paeth(int a, int b, int c)" }, "start": { "filename": "stb/stb_image.h", - "line": 7087, + "line": 4657, "column": 1, - "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" + "source_line": "static int stbi__paeth(int a, int b, int c)" }, "end": { "filename": "stb/stb_image.h", - "line": 7095, + "line": 4668, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__hdr_gettoken": { - "name": "stbi__hdr_gettoken", + "stbi__create_png_alpha_expand8": { + "name": "stbi__create_png_alpha_expand8", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "z", + "name": "dest", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *z", + "source_text": "stbi_uc *dest", "components": [ { "model": "CPointer", @@ -52919,14 +56341,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *z", + "source_text": "stbi_uc *dest", "components": [ { "model": "CPointer", @@ -52934,7 +56356,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi_uc" } ] }, @@ -52942,11 +56364,11 @@ "callback_policy": null }, { - "name": "buffer", + "name": "src", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *buffer", + "source_text": "stbi_uc *src", "components": [ { "model": "CPointer", @@ -52954,16 +56376,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *buffer", + "source_text": "stbi_uc *src", "components": [ { "model": "CPointer", @@ -52971,14 +56391,38 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "x", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "img_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int img_n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -52990,38 +56434,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7109, + "line": 4675, "column": 1, - "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" + "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" }, "start": { "filename": "stb/stb_image.h", - "line": 7109, + "line": 4675, "column": 1, - "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" + "source_line": "static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)" }, "end": { "filename": "stb/stb_image.h", - "line": 7129, + "line": 4693, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__hdr_convert": { - "name": "stbi__hdr_convert", + "stbi__create_png_image_raw": { + "name": "stbi__create_png_image_raw", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "output", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53029,16 +56473,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__png" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53046,9 +56488,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbi__png" } ] }, @@ -53056,11 +56496,11 @@ "callback_policy": null }, { - "name": "input", + "name": "raw", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *input", + "source_text": "stbi_uc *raw", "components": [ { "model": "CPointer", @@ -53075,7 +56515,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi_uc *input", + "source_text": "stbi_uc *raw", "components": [ { "model": "CPointer", @@ -53091,67 +56531,79 @@ "callback_policy": null }, { - "name": "req_comp", + "name": "raw_len", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int out_n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int req_comp" + "source_text": "int out_n" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7131, - "column": 1, - "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7131, - "column": 1, - "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7156, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__pnm_isspace": { - "name": "stbi__pnm_isspace", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "c", + "name": "x", "type": { - "model": "CChar", + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "char c" + "source_text": "int depth" }, "declared_type": { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char c" + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "color", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" }, "source_location": null, "callback_policy": null @@ -53166,38 +56618,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7543, + "line": 4696, "column": 1, - "source_line": "static int stbi__pnm_isspace(char c)" + "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" }, "start": { "filename": "stb/stb_image.h", - "line": 7543, + "line": 4696, "column": 1, - "source_line": "static int stbi__pnm_isspace(char c)" + "source_line": "static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)" }, "end": { "filename": "stb/stb_image.h", - "line": 7546, + "line": 4859, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__pnm_skip_whitespace": { - "name": "stbi__pnm_skip_whitespace", + "stbi__create_png_image": { + "name": "stbi__create_png_image", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53205,14 +56657,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53220,7 +56672,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, @@ -53228,11 +56680,11 @@ "callback_policy": null }, { - "name": "c", + "name": "image_data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "stbi_uc *image_data", "components": [ { "model": "CPointer", @@ -53240,16 +56692,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "stbi_uc *image_data", "components": [ { "model": "CPointer", @@ -53257,62 +56707,80 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7548, - "column": 1, - "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7548, - "column": 1, - "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7560, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__pnm_isdigit": { - "name": "stbi__pnm_isdigit", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "c", + "name": "image_data_len", "type": { - "model": "CChar", + "reference": "stbi__uint32" + }, + "declared_type": { + "reference": "stbi__uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "char c" + "source_text": "int out_n" }, "declared_type": { - "model": "CChar", + "model": "CInt", "qualifiers": [], - "source_text": "char c" + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "color", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int color" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "interlaced", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int interlaced" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int interlaced" }, "source_location": null, "callback_policy": null @@ -53327,26 +56795,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7562, + "line": 4861, "column": 1, - "source_line": "static int stbi__pnm_isdigit(char c)" + "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" }, "start": { "filename": "stb/stb_image.h", - "line": 7562, + "line": 4861, "column": 1, - "source_line": "static int stbi__pnm_isdigit(char c)" + "source_line": "static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)" }, "end": { "filename": "stb/stb_image.h", - "line": 7565, + "line": 4904, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__pnm_getinteger": { - "name": "stbi__pnm_getinteger", + "stbi__compute_transparency": { + "name": "stbi__compute_transparency", "result_type": { "model": "CInt", "qualifiers": [], @@ -53354,11 +56822,11 @@ }, "parameters": [ { - "name": "s", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *z", "components": [ { "model": "CPointer", @@ -53366,14 +56834,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *z", "components": [ { "model": "CPointer", @@ -53381,7 +56849,7 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, @@ -53389,11 +56857,11 @@ "callback_policy": null }, { - "name": "c", + "name": "tc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "stbi_uc tc[3]", "components": [ { "model": "CPointer", @@ -53401,31 +56869,46 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *c", + "source_text": "stbi_uc tc[3]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbi_uc" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "out_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -53437,26 +56920,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7567, + "line": 4906, "column": 1, - "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" }, "start": { "filename": "stb/stb_image.h", - "line": 7567, + "line": 4906, "column": 1, - "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" + "source_line": "static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)" }, "end": { "filename": "stb/stb_image.h", - "line": 7579, + "line": 4929, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__info_main": { - "name": "stbi__info_main", + "stbi__compute_transparency16": { + "name": "stbi__compute_transparency16", "result_type": { "model": "CInt", "qualifiers": [], @@ -53464,46 +56947,11 @@ }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__png *z", "components": [ { "model": "CPointer", @@ -53511,16 +56959,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__png" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x", + "source_text": "stbi__png *z", "components": [ { "model": "CPointer", @@ -53528,9 +56974,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__png" } ] }, @@ -53538,11 +56982,11 @@ "callback_policy": null }, { - "name": "y", + "name": "tc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi__uint16 tc[3]", "components": [ { "model": "CPointer", @@ -53550,26 +56994,26 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y", + "source_text": "stbi__uint16 tc[3]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbi__uint16" } ] }, @@ -53577,40 +57021,16 @@ "callback_policy": null }, { - "name": "comp", + "name": "out_n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int out_n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *comp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int out_n" }, "source_location": null, "callback_policy": null @@ -53625,26 +57045,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 7632, + "line": 4931, "column": 1, - "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" }, "start": { "filename": "stb/stb_image.h", - "line": 7632, + "line": 4931, "column": 1, - "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" + "source_line": "static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)" }, "end": { "filename": "stb/stb_image.h", - "line": 7672, + "line": 4954, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbi__is_16_main": { - "name": "stbi__is_16_main", + "stbi__expand_png_palette": { + "name": "stbi__expand_png_palette", "result_type": { "model": "CInt", "qualifiers": [], @@ -53652,11 +57072,11 @@ }, "parameters": [ { - "name": "s", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53664,14 +57084,14 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__context *s", + "source_text": "stbi__png *a", "components": [ { "model": "CPointer", @@ -53679,4020 +57099,5424 @@ "source_text": "" }, { - "reference": "stbi__context" + "reference": "stbi__png" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 7674, - "column": 1, - "source_line": "static int stbi__is_16_main(stbi__context *s)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 7674, - "column": 1, - "source_line": "static int stbi__is_16_main(stbi__context *s)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 7688, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": {}, - "unions": {}, - "enums": {}, - "typedefs": { - "stbi_uc": { - "reference": "stbi_uc" - }, - "stbi_us": { - "reference": "stbi_us" - }, - "stbi__uint16": { - "reference": "stbi__uint16" - }, - "stbi__int16": { - "reference": "stbi__int16" - }, - "stbi__uint32": { - "reference": "stbi__uint32" - }, - "stbi__int32": { - "reference": "stbi__int32" - }, - "validate_uint32": { - "reference": "validate_uint32" - }, - "stbi__context": { - "reference": "stbi__context" - }, - "stbi__result_info": { - "reference": "stbi__result_info" - }, - "stbi__huffman": { - "reference": "stbi__huffman" - }, - "stbi__jpeg": { - "reference": "stbi__jpeg" - }, - "resample_row_func": { - "reference": "resample_row_func" - }, - "stbi__resample": { - "reference": "stbi__resample" - }, - "stbi__zhuffman": { - "reference": "stbi__zhuffman" - }, - "stbi__zbuf": { - "reference": "stbi__zbuf" - }, - "stbi__pngchunk": { - "reference": "stbi__pngchunk" - }, - "stbi__png": { - "reference": "stbi__png" - }, - "stbi__bmp_data": { - "reference": "stbi__bmp_data" - }, - "stbi__pic_packet": { - "reference": "stbi__pic_packet" - }, - "stbi__gif_lzw": { - "reference": "stbi__gif_lzw" - }, - "stbi__gif": { - "reference": "stbi__gif" - } - }, - "variables": { - "stbi__stdio_callbacks": { - "name": "stbi__stdio_callbacks", - "type": { - "reference": "stbi_io_callbacks" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbi__stdio_read,\n stbi__stdio_skip,\n stbi__stdio_eof,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 870, - "column": 1, - "source_line": "static stbi_io_callbacks stbi__stdio_callbacks =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__vertically_flip_on_load_global": { - "name": "stbi__vertically_flip_on_load_global", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__vertically_flip_on_load_global" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1114, - "column": 1, - "source_line": "static int stbi__vertically_flip_on_load_global = 0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__l2h_gamma": { - "name": "stbi__l2h_gamma", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__l2h_gamma" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "2.2f" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1573, - "column": 1, - "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__l2h_scale": { - "name": "stbi__l2h_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__l2h_scale" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1.0f" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1573, - "column": 1, - "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__h2l_gamma_i": { - "name": "stbi__h2l_gamma_i", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__h2l_gamma_i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1.0f/2.2f" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1579, - "column": 1, - "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__h2l_scale_i": { - "name": "stbi__h2l_scale_i", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbi__h2l_scale_i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1.0f" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 1579, - "column": 1, - "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__bmask": { - "name": "stbi__bmask", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbi__uint32 stbi__bmask[17]", - "components": [ - { - "model": "CArray", + }, + { + "name": "palette", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "17", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi_uc *palette", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - { - "reference": "stbi__uint32" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 2094, - "column": 1, - "source_line": "static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__jbias": { - "name": "stbi__jbias", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int stbi__jbias[16]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi_uc *palette", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] }, - { + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 2149, - "column": 1, - "source_line": "static const int stbi__jbias[16] = {0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__jpeg_dezigzag": { - "name": "stbi__jpeg_dezigzag", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbi_uc stbi__jpeg_dezigzag[64+15]", - "components": [ - { - "model": "CArray", "qualifiers": [], - "source_text": "", - "bound": "64+15", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int len" }, - { - "reference": "stbi_uc" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0, 1, 8, 16, 9, 2, 3, 10,\n 17, 24, 32, 25, 18, 11, 4, 5,\n 12, 19, 26, 33, 40, 48, 41, 34,\n 27, 20, 13, 6, 7, 14, 21, 28,\n 35, 42, 49, 56, 57, 50, 43, 36,\n 29, 22, 15, 23, 30, 37, 44, 51,\n 58, 59, 52, 45, 38, 31, 39, 46,\n 53, 60, 61, 54, 47, 55, 62, 63,\n \n 63, 63, 63, 63, 63, 63, 63, 63,\n 63, 63, 63, 63, 63, 63, 63\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 2194, - "column": 1, - "source_line": "static const stbi_uc stbi__jpeg_dezigzag[64+15] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__zlength_base": { - "name": "stbi__zlength_base", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int stbi__zlength_base[31]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "31", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int len" }, - { + "source_location": null, + "callback_policy": null + }, + { + "name": "pal_img_n", + "type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int pal_img_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pal_img_n" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 3,4,5,6,7,8,9,10,11,13,\n 15,17,19,23,27,31,35,43,51,59,\n 67,83,99,115,131,163,195,227,258,0,0 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4295, + "line": 4956, "column": 1, - "source_line": "static const int stbi__zlength_base[31] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__zlength_extra": { - "name": "stbi__zlength_extra", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int stbi__zlength_extra[31]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "31", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] + "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }" + "start": { + "filename": "stb/stb_image.h", + "line": 4956, + "column": 1, + "source_line": "static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 4300, + "line": 4991, "column": 1, - "source_line": "static const int stbi__zlength_extra[31]=" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "stbi__zdist_base": { - "name": "stbi__zdist_base", - "type": { - "model": "CComposedType", + "stbi__de_iphone": { + "name": "stbi__de_iphone", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "static const int stbi__zdist_base[32]", - "components": [ - { - "model": "CArray", + "source_text": "void" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] }, - { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,\n257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4303, + "line": 5033, "column": 1, - "source_line": "static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193," + "source_line": "static void stbi__de_iphone(stbi__png *z)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5033, + "column": 1, + "source_line": "static void stbi__de_iphone(stbi__png *z)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5074, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "stbi__zdist_extra": { - "name": "stbi__zdist_extra", - "type": { - "model": "CComposedType", + "stbi__parse_png_file": { + "name": "stbi__parse_png_file", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const int stbi__zdist_extra[32]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] }, - { + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scan", + "type": { "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, + "qualifiers": [], + "source_text": "int scan" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scan" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4306, + "line": 5078, "column": 1, - "source_line": "static const int stbi__zdist_extra[32] =" + "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + }, + "start": { + "filename": "stb/stb_image.h", + "line": 5078, + "column": 1, + "source_line": "static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)" + }, + "end": { + "filename": "stb/stb_image.h", + "line": 5261, + "column": 1, + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "stbi__zdefault_length": { - "name": "stbi__zdefault_length", - "type": { + "stbi__do_png": { + "name": "stbi__do_png", + "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS]", + "source_text": "void", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "STBI__ZNSYMS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "reference": "stbi_uc" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,\n 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,\n 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4452, - "column": 1, - "source_line": "static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__zdefault_distance": { - "name": "stbi__zdefault_distance", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbi_uc stbi__zdefault_distance[32]", - "components": [ - { - "model": "CArray", + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ri", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__result_info *ri", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__result_info" + } + ] }, - { - "reference": "stbi_uc" - } - ] - }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4464, + "line": 5263, "column": 1, - "source_line": "static const stbi_uc stbi__zdefault_distance[32] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "first_row_filter": { - "name": "first_row_filter", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbi_uc first_row_filter[5]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbi_uc" - } - ] + "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBI__F_none,\n STBI__F_sub,\n STBI__F_none,\n STBI__F_avg_first,\n STBI__F_sub \n}" + "start": { + "filename": "stb/stb_image.h", + "line": 5263, + "column": 1, + "source_line": "static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 4648, + "line": 5293, "column": 1, - "source_line": "static stbi_uc first_row_filter[5] =" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "stbi__depth_scale_table": { - "name": "stbi__depth_scale_table", - "type": { - "model": "CComposedType", + "stbi__png_info_raw": { + "name": "stbi__png_info_raw", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static const stbi_uc stbi__depth_scale_table[9]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] }, - { - "reference": "stbi_uc" - } - ] - }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__png *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__png" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{ 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4670, + "line": 5310, "column": 1, - "source_line": "static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__unpremultiply_on_load_global": { - "name": "stbi__unpremultiply_on_load_global", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__unpremultiply_on_load_global" + "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" + "start": { + "filename": "stb/stb_image.h", + "line": 5310, + "column": 1, + "source_line": "static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)" }, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_image.h", - "line": 4993, + "line": 5320, "column": 1, - "source_line": "static int stbi__unpremultiply_on_load_global = 0;" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "stbi__de_iphone_flag_global": { - "name": "stbi__de_iphone_flag_global", - "type": { + "stbi__bmp_test_raw": { + "name": "stbi__bmp_test_raw", + "result_type": { "model": "CInt", "qualifiers": [], - "source_text": "static int stbi__de_iphone_flag_global" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image.h", - "line": 4994, - "column": 1, - "source_line": "static int stbi__de_iphone_flag_global = 0;" + "source_text": "int" }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STBI_INCLUDE_STB_IMAGE_H": { - "name": "STBI_INCLUDE_STB_IMAGE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 130, - "column": 1, - "source_line": "#define STBI_INCLUDE_STB_IMAGE_H" - } - }, - "STBI_VERSION": { - "name": "STBI_VERSION", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 374, - "column": 1, - "source_line": "#define STBI_VERSION 1" - } - }, - "STBIDEF": { - "name": "STBIDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 398, - "column": 1, - "source_line": "#define STBIDEF extern" - } - }, - "STBI_NO_JPEG": { - "name": "STBI_NO_JPEG", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 554, - "column": 4, - "source_line": " #define STBI_NO_JPEG" - } - }, - "STBI_NO_PNG": { - "name": "STBI_NO_PNG", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 557, - "column": 4, - "source_line": " #define STBI_NO_PNG" - } - }, - "STBI_NO_BMP": { - "name": "STBI_NO_BMP", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 560, - "column": 4, - "source_line": " #define STBI_NO_BMP" - } - }, - "STBI_NO_PSD": { - "name": "STBI_NO_PSD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 563, - "column": 4, - "source_line": " #define STBI_NO_PSD" - } - }, - "STBI_NO_TGA": { - "name": "STBI_NO_TGA", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 566, - "column": 4, - "source_line": " #define STBI_NO_TGA" - } - }, - "STBI_NO_GIF": { - "name": "STBI_NO_GIF", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 569, - "column": 4, - "source_line": " #define STBI_NO_GIF" - } - }, - "STBI_NO_HDR": { - "name": "STBI_NO_HDR", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 572, - "column": 4, - "source_line": " #define STBI_NO_HDR" - } - }, - "STBI_NO_PIC": { - "name": "STBI_NO_PIC", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 575, - "column": 4, - "source_line": " #define STBI_NO_PIC" - } - }, - "STBI_NO_PNM": { - "name": "STBI_NO_PNM", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 578, - "column": 4, - "source_line": " #define STBI_NO_PNM" - } - }, - "STBI_NO_ZLIB": { - "name": "STBI_NO_ZLIB", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 583, - "column": 1, - "source_line": "#define STBI_NO_ZLIB" - } - }, - "STBI_ASSERT": { - "name": "STBI_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 603, - "column": 1, - "source_line": "#define STBI_ASSERT(x) assert(x)" - } - }, - "STBI_EXTERN": { - "name": "STBI_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 609, - "column": 1, - "source_line": "#define STBI_EXTERN extern" - } - }, - "stbi_inline": { - "name": "stbi_inline", - "value": "__forceinline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 620, - "column": 4, - "source_line": " #define stbi_inline __forceinline" - } - }, - "STBI_THREAD_LOCAL": { - "name": "STBI_THREAD_LOCAL", - "value": "__thread", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 636, - "column": 9, - "source_line": " #define STBI_THREAD_LOCAL __thread" - } - }, - "STBI_NOTUSED": { - "name": "STBI_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 660, - "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)sizeof(v)" - } - }, - "STBI_HAS_LROTL": { - "name": "STBI_HAS_LROTL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 664, - "column": 1, - "source_line": "#define STBI_HAS_LROTL" - } - }, - "stbi_lrot": { - "name": "stbi_lrot", - "value": "(((x) << (y)) | ((x) >> (-(y) & 31)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 670, - "column": 4, - "source_line": " #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31)))" - } - }, - "STBI_MALLOC": { - "name": "STBI_MALLOC", - "value": "malloc(sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 682, - "column": 1, - "source_line": "#define STBI_MALLOC(sz) malloc(sz)" - } - }, - "STBI_REALLOC": { - "name": "STBI_REALLOC", - "value": "realloc(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 683, - "column": 1, - "source_line": "#define STBI_REALLOC(p,newsz) realloc(p,newsz)" - } - }, - "STBI_FREE": { - "name": "STBI_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 684, - "column": 1, - "source_line": "#define STBI_FREE(p) free(p)" - } - }, - "STBI_REALLOC_SIZED": { - "name": "STBI_REALLOC_SIZED", - "value": "STBI_REALLOC(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 688, - "column": 1, - "source_line": "#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz)" - } - }, - "STBI__X64_TARGET": { - "name": "STBI__X64_TARGET", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 693, - "column": 1, - "source_line": "#define STBI__X64_TARGET" - } - }, - "STBI__X86_TARGET": { - "name": "STBI__X86_TARGET", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 695, - "column": 1, - "source_line": "#define STBI__X86_TARGET" - } - }, - "STBI_NO_SIMD": { - "name": "STBI_NO_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 721, - "column": 1, - "source_line": "#define STBI_NO_SIMD" - } - }, - "STBI_SSE2": { - "name": "STBI_SSE2", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 725, - "column": 1, - "source_line": "#define STBI_SSE2" - } - }, - "STBI_SIMD_ALIGN": { - "name": "STBI_SIMD_ALIGN", - "value": "type name", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 792, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name" - } - }, - "STBI_NEON": { - "name": "STBI_NEON", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image.h", - "line": 779, - "column": 1, - "source_line": "#undef STBI_NEON" - } - }, - "STBI_MAX_DIMENSIONS": { - "name": "STBI_MAX_DIMENSIONS", - "value": "(1 << 24)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 796, - "column": 1, - "source_line": "#define STBI_MAX_DIMENSIONS (1 << 24)" - } - }, - "stbi__err": { - "name": "stbi__err", - "value": "stbi__err(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1095, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(x)" - } - }, - "stbi__errpf": { - "name": "stbi__errpf", - "value": "((float *)(size_t) (stbi__err(x,y)?NULL:NULL))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1098, - "column": 1, - "source_line": "#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL))" - } - }, - "stbi__errpuc": { - "name": "stbi__errpuc", - "value": "((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1099, - "column": 1, - "source_line": "#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))" - } - }, - "stbi__vertically_flip_on_load": { - "name": "stbi__vertically_flip_on_load", - "value": "(stbi__vertically_flip_on_load_set ? stbi__vertically_flip_on_load_local : stbi__vertically_flip_on_load_global)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1132, - "column": 1, - "source_line": "#define stbi__vertically_flip_on_load (stbi__vertically_flip_on_load_set \\" - } - }, - "STBI__BYTECAST": { - "name": "STBI__BYTECAST", - "value": "((stbi_uc) ((x) & 255))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1730, - "column": 1, - "source_line": "#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings" - } - }, - "STBI__COMBO": { - "name": "STBI__COMBO", - "value": "((a)*8+(b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1830, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" - } - }, - "STBI__CASE": { - "name": "STBI__CASE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1849, - "column": 7, - "source_line": " #undef STBI__CASE" - } - }, - "stbi__float2int": { - "name": "stbi__float2int", - "value": "((int) (x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1883, - "column": 1, - "source_line": "#define stbi__float2int(x) ((int) (x))" - } - }, - "FAST_BITS": { - "name": "FAST_BITS", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image.h", - "line": 1936, - "column": 1, - "source_line": "#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache" - } - }, - "stbi__f2f": { - "name": "stbi__f2f", - "value": "((int) (((x) * 4096 + 0.5)))", - "function_like": true, - "directive": "define", + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2426, + "line": 5346, "column": 1, - "source_line": "#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))" - } - }, - "stbi__fsh": { - "name": "stbi__fsh", - "value": "((x) * 4096)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2427, + "line": 5346, "column": 1, - "source_line": "#define stbi__fsh(x) ((x) * 4096)" - } - }, - "STBI__IDCT_1D": { - "name": "STBI__IDCT_1D", - "value": "int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; p2 = s2; p3 = s6; p1 = (p2+p3) * stbi__f2f(0.5411961f); t2 = p1 + p3*stbi__f2f(-1.847759065f); t3 = p1 + p2*stbi__f2f( 0.765366865f); p2 = s0; p3 = s4; t0 = stbi__fsh(p2+p3); t1 = stbi__fsh(p2-p3); x0 = t0+t3; x3 = t0-t3; x1 = t1+t2; x2 = t1-t2; t0 = s7; t1 = s5; t2 = s3; t3 = s1; p3 = t0+t2; p4 = t1+t3; p1 = t0+t3; p2 = t1+t2; p5 = (p3+p4)*stbi__f2f( 1.175875602f); t0 = t0*stbi__f2f( 0.298631336f); t1 = t1*stbi__f2f( 2.053119869f); t2 = t2*stbi__f2f( 3.072711026f); t3 = t3*stbi__f2f( 1.501321110f); p1 = p5 + p1*stbi__f2f(-0.899976223f); p2 = p5 + p2*stbi__f2f(-2.562915447f); p3 = p3*stbi__f2f(-1.961570560f); p4 = p4*stbi__f2f(-0.390180644f); t3 += p1+p4; t2 += p2+p3; t1 += p2+p4; t0 += p1+p3;", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__bmp_test_raw(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2430, + "line": 5359, "column": 1, - "source_line": "#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_const": { - "name": "dct_const", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__high_bit": { + "name": "stbi__high_bit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "z", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int z" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2694, + "line": 5370, "column": 1, - "source_line": "#undef dct_const" - } - }, - "dct_rot": { - "name": "dct_rot", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__high_bit(unsigned int z)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2695, + "line": 5370, "column": 1, - "source_line": "#undef dct_rot" - } - }, - "dct_widen": { - "name": "dct_widen", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__high_bit(unsigned int z)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2906, + "line": 5380, "column": 1, - "source_line": "#undef dct_widen" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_wadd": { - "name": "dct_wadd", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__bitcount": { + "name": "stbi__bitcount", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int a" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int a" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2907, + "line": 5382, "column": 1, - "source_line": "#undef dct_wadd" - } - }, - "dct_wsub": { - "name": "dct_wsub", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__bitcount(unsigned int a)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2908, + "line": 5382, "column": 1, - "source_line": "#undef dct_wsub" - } - }, - "dct_bfly32o": { - "name": "dct_bfly32o", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__bitcount(unsigned int a)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2909, + "line": 5390, "column": 1, - "source_line": "#undef dct_bfly32o" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_interleave8": { - "name": "dct_interleave8", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__shiftsigned": { + "name": "stbi__shiftsigned", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "v", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shift" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shift" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2700, + "line": 5395, "column": 1, - "source_line": "#undef dct_interleave8" - } - }, - "dct_interleave16": { - "name": "dct_interleave16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2701, + "line": 5395, "column": 1, - "source_line": "#undef dct_interleave16" - } - }, - "dct_pass": { - "name": "dct_pass", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__shiftsigned(unsigned int v, int shift, int bits)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2910, + "line": 5413, "column": 1, - "source_line": "#undef dct_pass" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_long_mul": { - "name": "dct_long_mul", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__bmp_set_mask_defaults": { + "name": "stbi__bmp_set_mask_defaults", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "compress", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int compress" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int compress" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2904, + "line": 5422, "column": 1, - "source_line": "#undef dct_long_mul" - } - }, - "dct_long_mac": { - "name": "dct_long_mac", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2905, + "line": 5422, "column": 1, - "source_line": "#undef dct_long_mac" - } - }, - "dct_trn16": { - "name": "dct_trn16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2841, + "line": 5446, "column": 1, - "source_line": "#undef dct_trn16" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_trn32": { - "name": "dct_trn32", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__bmp_parse_header": { + "name": "stbi__bmp_parse_header", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__bmp_data *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__bmp_data" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2842, + "line": 5448, "column": 1, - "source_line": "#undef dct_trn32" - } - }, - "dct_trn64": { - "name": "dct_trn64", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2843, + "line": 5448, "column": 1, - "source_line": "#undef dct_trn64" - } - }, - "dct_trn8_8": { - "name": "dct_trn8_8", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2899, + "line": 5528, "column": 1, - "source_line": "#undef dct_trn8_8" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "dct_trn8_16": { - "name": "dct_trn8_16", - "value": null, - "function_like": false, - "directive": "undef", + "stbi__tga_get_comp": { + "name": "stbi__tga_get_comp", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "bits_per_pixel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits_per_pixel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bits_per_pixel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_grey", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_grey" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_grey" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_rgb16", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int * is_rgb16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int * is_rgb16", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2900, + "line": 5739, "column": 1, - "source_line": "#undef dct_trn8_16" - } - }, - "dct_trn8_32": { - "name": "dct_trn8_32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 2901, + "line": 5739, "column": 1, - "source_line": "#undef dct_trn8_32" - } - }, - "STBI__MARKER_none": { - "name": "STBI__MARKER_none", - "value": "0xff", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 2915, + "line": 5753, "column": 1, - "source_line": "#define STBI__MARKER_none 0xff" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__RESTART": { - "name": "STBI__RESTART", - "value": "((x) >= 0xd0 && (x) <= 0xd7)", - "function_like": true, - "directive": "define", + "stbi__tga_read_rgb16": { + "name": "stbi__tga_read_rgb16", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc * out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc * out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 2932, + "line": 5852, "column": 1, - "source_line": "#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7)" - } - }, - "stbi__DNL": { - "name": "stbi__DNL", - "value": "((x) == 0xdc)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3357, + "line": 5852, "column": 1, - "source_line": "#define stbi__DNL(x) ((x) == 0xdc)" - } - }, - "stbi__SOI": { - "name": "stbi__SOI", - "value": "((x) == 0xd8)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3358, + "line": 5869, "column": 1, - "source_line": "#define stbi__SOI(x) ((x) == 0xd8)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stbi__EOI": { - "name": "stbi__EOI", - "value": "((x) == 0xd9)", - "function_like": true, - "directive": "define", + "stbi__psd_decode_rle": { + "name": "stbi__psd_decode_rle", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixelCount", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pixelCount" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pixelCount" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3359, + "line": 6088, "column": 1, - "source_line": "#define stbi__EOI(x) ((x) == 0xd9)" - } - }, - "stbi__SOF": { - "name": "stbi__SOF", - "value": "((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3360, + "line": 6088, "column": 1, - "source_line": "#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)" - } - }, - "stbi__SOS": { - "name": "stbi__SOS", - "value": "((x) == 0xda)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3361, + "line": 6124, "column": 1, - "source_line": "#define stbi__SOS(x) ((x) == 0xda)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stbi__SOF_progressive": { - "name": "stbi__SOF_progressive", - "value": "((x) == 0xc2)", - "function_like": true, - "directive": "define", + "stbi__pic_is4": { + "name": "stbi__pic_is4", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "str", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *str", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3363, + "line": 6336, "column": 1, - "source_line": "#define stbi__SOF_progressive(x) ((x) == 0xc2)" - } - }, - "stbi__div4": { - "name": "stbi__div4", - "value": "((stbi_uc) ((x) >> 2))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 3454, + "line": 6336, "column": 1, - "source_line": "#define stbi__div4(x) ((stbi_uc) ((x) >> 2))" - } - }, - "stbi__div16": { - "name": "stbi__div16", - "value": "((stbi_uc) ((x) >> 4))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int stbi__pic_is4(stbi__context *s,const char *str)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 3503, + "line": 6344, "column": 1, - "source_line": "#define stbi__div16(x) ((stbi_uc) ((x) >> 4))" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stbi__float2fixed": { - "name": "stbi__float2fixed", - "value": "(((int) ((x) * 4096.0f + 0.5f)) << 8)", - "function_like": true, - "directive": "define", + "stbi__pic_test_core": { + "name": "stbi__pic_test_core", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 3659, + "line": 6346, "column": 1, - "source_line": "#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8)" - } - }, - "STBI__ZFAST_BITS": { - "name": "STBI__ZFAST_BITS", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__pic_test_core(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 4091, + "line": 6346, "column": 1, - "source_line": "#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables" - } - }, - "STBI__ZFAST_MASK": { - "name": "STBI__ZFAST_MASK", - "value": "((1 << STBI__ZFAST_BITS) - 1)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int stbi__pic_test_core(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4092, + "line": 6360, "column": 1, - "source_line": "#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__ZNSYMS": { - "name": "STBI__ZNSYMS", - "value": "288", - "function_like": false, - "directive": "define", + "stbi__readval": { + "name": "stbi__readval", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4093, + "line": 6367, "column": 1, - "source_line": "#define STBI__ZNSYMS 288 // number of symbols in literal/length alphabet" - } - }, - "stbi__unpremultiply_on_load": { - "name": "stbi__unpremultiply_on_load", - "value": "(stbi__unpremultiply_on_load_set ? stbi__unpremultiply_on_load_local : stbi__unpremultiply_on_load_global)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 5025, + "line": 6367, "column": 1, - "source_line": "#define stbi__unpremultiply_on_load (stbi__unpremultiply_on_load_set \\" - } - }, - "stbi__de_iphone_flag": { - "name": "stbi__de_iphone_flag", - "value": "(stbi__de_iphone_flag_set ? stbi__de_iphone_flag_local : stbi__de_iphone_flag_global)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 5028, + "line": 6379, "column": 1, - "source_line": "#define stbi__de_iphone_flag (stbi__de_iphone_flag_set \\" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__PNG_TYPE": { - "name": "STBI__PNG_TYPE", - "value": "(((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))", - "function_like": true, - "directive": "define", + "stbi__copyval": { + "name": "stbi__copyval", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "channel", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channel" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbi_uc *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 5076, + "line": 6381, "column": 1, - "source_line": "#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))" - } - }, - "STBI__HDR_BUFLEN": { - "name": "STBI__HDR_BUFLEN", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 7108, + "line": 6381, "column": 1, - "source_line": "#define STBI__HDR_BUFLEN 1024" - } - } - }, - "includes": { - "stb/stb_image.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 598, + "line": 6388, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stb/stb_image.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "stbi__pic_load_core": { + "name": "stbi__pic_load_core", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "result", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 589, + "line": 6390, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:stdarg.h": { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 587, + "line": 6390, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 588, + "line": 6498, "column": 1, - "source_line": "#include // ptrdiff_t on osx" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stb/stb_image.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "stbi__gif_test_raw": { + "name": "stbi__gif_test_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 590, + "line": 6580, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:limits.h": { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 591, + "line": 6580, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static int stbi__gif_test_raw(stbi__context *s)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 594, + "line": 6588, "column": 1, - "source_line": "#include // ldexp, pow" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stb/stb_image.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, + "stbi__gif_parse_colortable": { + "name": "stbi__gif_parse_colortable", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pal", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc pal[256][4]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc pal[256][4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_entries", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_entries" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_entries" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "transp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int transp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int transp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 602, + "line": 6597, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:stdint.h": { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 647, + "line": 6597, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image.h:emmintrin.h": { - "target": "emmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 726, + "line": 6606, "column": 1, - "source_line": "#include " - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stb/stb_image.h:intrin.h": { - "target": "intrin.h", - "kind": "system", - "resolved_path": null, + "stbi__gif_header": { + "name": "stbi__gif_header", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "is_info", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_info" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int is_info" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 731, + "line": 6608, "column": 1, - "source_line": "#include // __cpuid" - } - }, - "stb/stb_image.h:arm_neon.h": { - "target": "arm_neon.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 783, + "line": 6608, "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_image.h": [ - "stbi__cpuid3", - "stbi__cpuid3", - "stbi__sse2_available", - "stbi__sse2_available", - "stbi__refill_buffer", - "stbi__start_mem", - "stbi__start_callbacks", - "stbi__stdio_read", - "stbi__stdio_skip", - "stbi__stdio_eof", - "stbi__start_file", - "stbi__rewind", - "stbi__jpeg_test", - "stbi__jpeg_load", - "stbi__jpeg_info", - "stbi__png_test", - "stbi__png_load", - "stbi__png_info", - "stbi__png_is16", - "stbi__bmp_test", - "stbi__bmp_load", - "stbi__bmp_info", - "stbi__tga_test", - "stbi__tga_load", - "stbi__tga_info", - "stbi__psd_test", - "stbi__psd_load", - "stbi__psd_info", - "stbi__psd_is16", - "stbi__hdr_test", - "stbi__hdr_load", - "stbi__hdr_info", - "stbi__pic_test", - "stbi__pic_load", - "stbi__pic_info", - "stbi__gif_test", - "stbi__gif_load", - "stbi__load_gif_main", - "stbi__gif_info", - "stbi__pnm_test", - "stbi__pnm_load", - "stbi__pnm_info", - "stbi__pnm_is16", - "stbi__malloc", - "stbi__addsizes_valid", - "stbi__mul2sizes_valid", - "stbi__mad2sizes_valid", - "stbi__mad3sizes_valid", - "stbi__mad4sizes_valid", - "stbi__malloc_mad2", - "stbi__malloc_mad3", - "stbi__malloc_mad4", - "stbi__addints_valid", - "stbi__mul2shorts_valid", - "stbi__ldr_to_hdr", - "stbi__hdr_to_ldr", - "stbi__load_main", - "stbi__convert_16_to_8", - "stbi__convert_8_to_16", - "stbi__vertical_flip", - "stbi__vertical_flip_slices", - "stbi__load_and_postprocess_8bit", - "stbi__load_and_postprocess_16bit", - "stbi__float_postprocess", - "stbi__fopen", - "stbi__loadf_main", - "stbi__skip", - "stbi__getn", - "stbi__get16be", - "stbi__get32be", - "stbi__get16le", - "stbi__get32le", - "stbi__compute_y", - "stbi__convert_format", - "stbi__compute_y_16", - "stbi__convert_format16", - "stbi__build_huffman", - "stbi__build_fast_ac", - "stbi__grow_buffer_unsafe", - "stbi__jpeg_decode_block", - "stbi__jpeg_decode_block_prog_dc", - "stbi__jpeg_decode_block_prog_ac", - "stbi__idct_block", - "stbi__idct_simd", - "stbi__get_marker", - "stbi__jpeg_reset", - "stbi__parse_entropy_coded_data", - "stbi__jpeg_dequantize", - "stbi__jpeg_finish", - "stbi__process_marker", - "stbi__process_scan_header", - "stbi__free_jpeg_components", - "stbi__process_frame_header", - "stbi__decode_jpeg_header", - "stbi__skip_jpeg_junk_at_end", - "stbi__decode_jpeg_image", - "resample_row_1", - "stbi__resample_row_v_2", - "stbi__resample_row_h_2", - "stbi__resample_row_hv_2", - "stbi__resample_row_hv_2_simd", - "stbi__resample_row_generic", - "stbi__YCbCr_to_RGB_row", - "stbi__YCbCr_to_RGB_simd", - "stbi__setup_jpeg", - "stbi__cleanup_jpeg", - "stbi__blinn_8x8", - "load_jpeg_image", - "stbi__jpeg_info_raw", - "stbi__zbuild_huffman", - "stbi__fill_bits", - "stbi__zhuffman_decode_slowpath", - "stbi__zexpand", - "stbi__parse_huffman_block", - "stbi__compute_huffman_codes", - "stbi__parse_uncompressed_block", - "stbi__parse_zlib_header", - "stbi__parse_zlib", - "stbi__do_zlib", - "stbi__get_chunk_header", - "stbi__check_png_header", - "stbi__paeth", - "stbi__create_png_alpha_expand8", - "stbi__create_png_image_raw", - "stbi__create_png_image", - "stbi__compute_transparency", - "stbi__compute_transparency16", - "stbi__expand_png_palette", - "stbi__de_iphone", - "stbi__parse_png_file", - "stbi__do_png", - "stbi__png_info_raw", - "stbi__bmp_test_raw", - "stbi__high_bit", - "stbi__bitcount", - "stbi__shiftsigned", - "stbi__bmp_set_mask_defaults", - "stbi__bmp_parse_header", - "stbi__tga_get_comp", - "stbi__tga_read_rgb16", - "stbi__psd_decode_rle", - "stbi__pic_is4", - "stbi__pic_test_core", - "stbi__readval", - "stbi__copyval", - "stbi__pic_load_core", - "stbi__gif_test_raw", - "stbi__gif_parse_colortable", - "stbi__gif_header", - "stbi__gif_info_raw", - "stbi__out_gif_code", - "stbi__process_gif_raster", - "stbi__gif_load_next", - "stbi__load_gif_main_outofmem", - "stbi__hdr_test_core", - "stbi__hdr_gettoken", - "stbi__hdr_convert", - "stbi__pnm_isspace", - "stbi__pnm_skip_whitespace", - "stbi__pnm_isdigit", - "stbi__pnm_getinteger", - "stbi__info_main", - "stbi__is_16_main" - ] - }, - "enum_constants": { - "STBI_default": { - "name": "STBI_default", - "value": "0", - "source_location": { + "source_line": "static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 376, + "line": 6637, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI_grey": { - "name": "STBI_grey", - "value": "1", + "stbi__gif_info_raw": { + "name": "stbi__gif_info_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 376, + "line": 6639, "column": 1, - "source_line": "enum" - } - }, - "STBI_grey_alpha": { - "name": "STBI_grey_alpha", - "value": "2", - "source_location": { + "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 376, + "line": 6639, "column": 1, - "source_line": "enum" - } - }, - "STBI_rgb": { - "name": "STBI_rgb", - "value": "3", - "source_location": { + "source_line": "static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 376, + "line": 6652, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI_rgb_alpha": { - "name": "STBI_rgb_alpha", - "value": "4", + "stbi__out_gif_code": { + "name": "stbi__out_gif_code", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "code", + "type": { + "reference": "stbi__uint16" + }, + "declared_type": { + "reference": "stbi__uint16" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 376, + "line": 6654, "column": 1, - "source_line": "enum" - } - }, - "STBI_ORDER_RGB": { - "name": "STBI_ORDER_RGB", - "value": null, - "source_location": { + "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 895, + "line": 6654, "column": 1, - "source_line": "enum" - } - }, - "STBI_ORDER_BGR": { - "name": "STBI_ORDER_BGR", - "value": null, - "source_location": { + "source_line": "static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 895, + "line": 6689, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__SCAN_load": { - "name": "STBI__SCAN_load", - "value": "0", + "stbi__process_gif_raster": { + "name": "stbi__process_gif_raster", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 1590, + "line": 6691, "column": 1, - "source_line": "enum" - } - }, - "STBI__SCAN_type": { - "name": "STBI__SCAN_type", - "value": null, - "source_location": { + "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 1590, + "line": 6691, "column": 1, - "source_line": "enum" - } - }, - "STBI__SCAN_header": { - "name": "STBI__SCAN_header", - "value": null, - "source_location": { + "source_line": "static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 1590, + "line": 6774, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__F_none": { - "name": "STBI__F_none", - "value": "0", + "stbi__gif_load_next": { + "name": "stbi__gif_load_next", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "two_back", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *two_back", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *two_back", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6778, "column": 1, - "source_line": "enum {" - } - }, - "STBI__F_sub": { - "name": "STBI__F_sub", - "value": "1", - "source_location": { + "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6778, "column": 1, - "source_line": "enum {" - } - }, - "STBI__F_up": { - "name": "STBI__F_up", - "value": "2", - "source_location": { + "source_line": "static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6950, "column": 1, - "source_line": "enum {" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STBI__F_avg": { - "name": "STBI__F_avg", - "value": "3", + "stbi__load_gif_main_outofmem": { + "name": "stbi__load_gif_main_outofmem", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "g", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__gif *g", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__gif" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *out", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "delays", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int **delays", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6952, "column": 1, - "source_line": "enum {" - } - }, - "STBI__F_paeth": { - "name": "STBI__F_paeth", - "value": "4", - "source_location": { + "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + }, + "start": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6952, "column": 1, - "source_line": "enum {" - } - }, - "STBI__F_avg_first": { - "name": "STBI__F_avg_first", - "value": null, - "source_location": { + "source_line": "static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)" + }, + "end": { "filename": "stb/stb_image.h", - "line": 4638, + "line": 6961, "column": 1, - "source_line": "enum {" - } - } - }, - "include_graph": { - "stb/stb_image.h": [] - }, - "system_includes": { - "stb/stb_image.h": [ - "arm_neon.h", - "assert.h", - "emmintrin.h", - "intrin.h", - "limits.h", - "math.h", - "stdarg.h", - "stddef.h", - "stdint.h", - "stdio.h", - "stdlib.h", - "string.h" - ] - }, - "unresolved_includes": { - "stb/stb_image.h": [] - }, - "header_source_pairs": { - "stb/stb_image.h": [] - }, - "conditional_function_variants": { - "stbi__cpuid3": [ - { - "name": "stbi__cpuid3", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 732, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 732, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 737, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g51:b0" - ] + "source_line": "}" }, - { - "name": "stbi__cpuid3", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 739, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 739, - "column": 1, - "source_line": "static int stbi__cpuid3(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 748, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g51:b1" - ] - } - ], - "stbi__sse2_available": [ - { - "name": "stbi__sse2_available", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 754, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 754, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" - }, - "end": { - "filename": "stb/stb_image.h", - "line": 758, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b0", - "g52:b0" - ] + "declaration_locations": [] + }, + "stbi__hdr_test_core": { + "name": "stbi__hdr_test_core", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - { - "name": "stbi__sse2_available", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image.h", - "line": 765, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" - }, - "start": { - "filename": "stb/stb_image.h", - "line": 765, - "column": 1, - "source_line": "static int stbi__sse2_available(void)" + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null }, - "end": { - "filename": "stb/stb_image.h", - "line": 771, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g17:b0", - "g49:b0", - "g50:b1", - "g53:b0" - ] - } - ] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { + { + "name": "signature", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *signature", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *signature", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 603, + "line": 7087, "column": 1, - "source_line": "#define STBI_ASSERT(x) assert(x)" + "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" }, - "unit_kind": "macro", - "unit_name": "STBI_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 658, + "line": 7087, "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)(v)" + "source_line": "static int stbi__hdr_test_core(stbi__context *s, const char *signature)" }, - "unit_kind": "macro", - "unit_name": "STBI_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 660, + "line": 7095, "column": 1, - "source_line": "#define STBI_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBI_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi_lrot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 668, - "column": 4, - "source_line": " #define stbi_lrot(x,y) _lrotl(x,y)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbi_lrot" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi_lrot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 670, - "column": 4, - "source_line": " #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31)))" + "stbi__hdr_gettoken": { + "name": "stbi__hdr_gettoken", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi_lrot" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 682, + "line": 7109, "column": 1, - "source_line": "#define STBI_MALLOC(sz) malloc(sz)" + "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" }, - "unit_kind": "macro", - "unit_name": "STBI_MALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 683, + "line": 7109, "column": 1, - "source_line": "#define STBI_REALLOC(p,newsz) realloc(p,newsz)" + "source_line": "static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)" }, - "unit_kind": "macro", - "unit_name": "STBI_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 684, + "line": 7129, "column": 1, - "source_line": "#define STBI_FREE(p) free(p)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBI_FREE" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_REALLOC_SIZED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 688, - "column": 1, - "source_line": "#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz)" + "stbi__hdr_convert": { + "name": "stbi__hdr_convert", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "STBI_REALLOC_SIZED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_uc *input", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_uc" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "req_comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int req_comp" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 751, + "line": 7131, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" + "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 762, + "line": 7131, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" + "source_line": "static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 785, + "line": 7156, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 787, - "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))" + "stbi__pnm_isspace": { + "name": "stbi__pnm_isspace", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI_SIMD_ALIGN' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "c", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 792, + "line": 7543, "column": 1, - "source_line": "#define STBI_SIMD_ALIGN(type, name) type name" + "source_line": "static int stbi__pnm_isspace(char c)" }, - "unit_kind": "macro", - "unit_name": "STBI_SIMD_ALIGN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 1091, - "column": 4, - "source_line": " #define stbi__err(x,y) 0" + "line": 7543, + "column": 1, + "source_line": "static int stbi__pnm_isspace(char c)" }, - "unit_kind": "macro", - "unit_name": "stbi__err" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 1093, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(y)" + "line": 7546, + "column": 1, + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "stbi__err" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__err' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1095, - "column": 4, - "source_line": " #define stbi__err(x,y) stbi__err(x)" + "stbi__pnm_skip_whitespace": { + "name": "stbi__pnm_skip_whitespace", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro", - "unit_name": "stbi__err" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__errpf' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 1098, + "line": 7548, "column": 1, - "source_line": "#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL))" + "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" }, - "unit_kind": "macro", - "unit_name": "stbi__errpf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__errpuc' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 1099, + "line": 7548, "column": 1, - "source_line": "#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))" + "source_line": "static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)" }, - "unit_kind": "macro", - "unit_name": "stbi__errpuc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__BYTECAST' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 1730, + "line": 7560, "column": 1, - "source_line": "#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings" - }, - "unit_kind": "macro", - "unit_name": "STBI__BYTECAST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__COMBO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1773, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" - }, - "unit_kind": "macro", - "unit_name": "STBI__COMBO" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__CASE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1774, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" - }, - "unit_kind": "macro", - "unit_name": "STBI__CASE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__COMBO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1830, - "column": 7, - "source_line": " #define STBI__COMBO(a,b) ((a)*8+(b))" - }, - "unit_kind": "macro", - "unit_name": "STBI__COMBO" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__CASE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1831, - "column": 7, - "source_line": " #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "STBI__CASE" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__float2int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1883, - "column": 1, - "source_line": "#define stbi__float2int(x) ((int) (x))" + "stbi__pnm_isdigit": { + "name": "stbi__pnm_isdigit", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "stbi__float2int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__f2f' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "c", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char c" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 2426, + "line": 7562, "column": 1, - "source_line": "#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))" + "source_line": "static int stbi__pnm_isdigit(char c)" }, - "unit_kind": "macro", - "unit_name": "stbi__f2f" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__fsh' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 2427, + "line": 7562, "column": 1, - "source_line": "#define stbi__fsh(x) ((x) * 4096)" + "source_line": "static int stbi__pnm_isdigit(char c)" }, - "unit_kind": "macro", - "unit_name": "stbi__fsh" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__IDCT_1D' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 2430, + "line": 7565, "column": 1, - "source_line": "#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \\" - }, - "unit_kind": "macro", - "unit_name": "STBI__IDCT_1D" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_const' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2537, - "column": 4, - "source_line": " #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y))" - }, - "unit_kind": "macro", - "unit_name": "dct_const" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_rot' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2541, - "column": 4, - "source_line": " #define dct_rot(out0,out1, x,y,c0,c1) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_rot" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_widen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2550, - "column": 4, - "source_line": " #define dct_widen(out, in) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_widen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wadd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2555, - "column": 4, - "source_line": " #define dct_wadd(out, a, b) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_wadd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wsub' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2560, - "column": 4, - "source_line": " #define dct_wsub(out, a, b) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_wsub" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_bfly32o' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2565, - "column": 4, - "source_line": " #define dct_bfly32o(out0, out1, a,b,bias,s) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_bfly32o" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_interleave8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2576, - "column": 4, - "source_line": " #define dct_interleave8(a, b) \\" - }, - "unit_kind": "macro", - "unit_name": "dct_interleave8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_interleave16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2582, - "column": 4, - "source_line": " #define dct_interleave16(a, b) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "dct_interleave16" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_pass' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2587, - "column": 4, - "source_line": " #define dct_pass(bias,shift) \\" + "stbi__pnm_getinteger": { + "name": "stbi__pnm_getinteger", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "dct_pass" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_long_mul' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 2728, + "line": 7567, "column": 1, - "source_line": "#define dct_long_mul(out, inq, coeff) \\" + "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" }, - "unit_kind": "macro", - "unit_name": "dct_long_mul" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_long_mac' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 2732, + "line": 7567, "column": 1, - "source_line": "#define dct_long_mac(out, acc, inq, coeff) \\" + "source_line": "static int stbi__pnm_getinteger(stbi__context *s, char *c)" }, - "unit_kind": "macro", - "unit_name": "dct_long_mac" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_widen' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 2736, + "line": 7579, "column": 1, - "source_line": "#define dct_widen(out, inq) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "dct_widen" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wadd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2741, - "column": 1, - "source_line": "#define dct_wadd(out, a, b) \\" + "stbi__info_main": { + "name": "stbi__info_main", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "dct_wadd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_wsub' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *comp", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 2746, + "line": 7632, "column": 1, - "source_line": "#define dct_wsub(out, a, b) \\" + "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" }, - "unit_kind": "macro", - "unit_name": "dct_wsub" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_bfly32o' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 2751, + "line": 7632, "column": 1, - "source_line": "#define dct_bfly32o(out0,out1, a,b,shiftop,s) \\" + "source_line": "static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)" }, - "unit_kind": "macro", - "unit_name": "dct_bfly32o" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_pass' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 2759, + "line": 7672, "column": 1, - "source_line": "#define dct_pass(shiftop, shift) \\" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "dct_pass" + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2819, - "column": 1, - "source_line": "#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; }" + "stbi__is_16_main": { + "name": "stbi__is_16_main", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro", - "unit_name": "dct_trn16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn32' is recorded but not expanded.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi__context *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi__context" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image.h", - "line": 2820, + "line": 7674, "column": 1, - "source_line": "#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); }" + "source_line": "static int stbi__is_16_main(stbi__context *s)" }, - "unit_kind": "macro", - "unit_name": "dct_trn32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn64' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image.h", - "line": 2821, + "line": 7674, "column": 1, - "source_line": "#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); }" + "source_line": "static int stbi__is_16_main(stbi__context *s)" }, - "unit_kind": "macro", - "unit_name": "dct_trn64" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_8' is recorded but not expanded.", - "severity": "warning", - "location": { + "end": { "filename": "stb/stb_image.h", - "line": 2864, + "line": 7688, "column": 1, - "source_line": "#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; }" + "source_line": "}" }, - "unit_kind": "macro", - "unit_name": "dct_trn8_8" + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": { + "stbi__int32": { + "reference": "stbi__int32" }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2865, - "column": 1, - "source_line": "#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); }" - }, - "unit_kind": "macro", - "unit_name": "dct_trn8_16" + "validate_uint32": { + "reference": "validate_uint32" }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'dct_trn8_32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2866, - "column": 1, - "source_line": "#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); }" - }, - "unit_kind": "macro", - "unit_name": "dct_trn8_32" + "stbi__resample": { + "reference": "stbi__resample" }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__RESTART' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2932, - "column": 1, - "source_line": "#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7)" + "stbi__pic_packet": { + "reference": "stbi__pic_packet" + } + }, + "variables": { + "stbi__stdio_callbacks": { + "name": "stbi__stdio_callbacks", + "type": { + "reference": "stbi_io_callbacks" }, - "unit_kind": "macro", - "unit_name": "STBI__RESTART" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__DNL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3357, - "column": 1, - "source_line": "#define stbi__DNL(x) ((x) == 0xdc)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ stbi__stdio_read, stbi__stdio_skip, stbi__stdio_eof, }" }, - "unit_kind": "macro", - "unit_name": "stbi__DNL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOI' is recorded but not expanded.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 3358, + "line": 870, "column": 1, - "source_line": "#define stbi__SOI(x) ((x) == 0xd8)" + "source_line": "static stbi_io_callbacks stbi__stdio_callbacks =" }, - "unit_kind": "macro", - "unit_name": "stbi__SOI" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__EOI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3359, - "column": 1, - "source_line": "#define stbi__EOI(x) ((x) == 0xd9)" + "stbi__g_failure_reason": { + "name": "stbi__g_failure_reason", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static _Thread_local const char *stbi__g_failure_reason", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbi__EOI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOF' is recorded but not expanded.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 3360, + "line": 966, "column": 1, - "source_line": "#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)" + "source_line": "static" }, - "unit_kind": "macro", - "unit_name": "stbi__SOF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3361, - "column": 1, - "source_line": "#define stbi__SOS(x) ((x) == 0xda)" + "stbi__vertically_flip_on_load_global": { + "name": "stbi__vertically_flip_on_load_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__vertically_flip_on_load_global" }, - "unit_kind": "macro", - "unit_name": "stbi__SOS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__SOF_progressive' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3363, - "column": 1, - "source_line": "#define stbi__SOF_progressive(x) ((x) == 0xc2)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" }, - "unit_kind": "macro", - "unit_name": "stbi__SOF_progressive" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__div4' is recorded but not expanded.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 3454, + "line": 1114, "column": 1, - "source_line": "#define stbi__div4(x) ((stbi_uc) ((x) >> 2))" + "source_line": "static int stbi__vertically_flip_on_load_global = 0;" }, - "unit_kind": "macro", - "unit_name": "stbi__div4" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__div16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 3503, - "column": 1, - "source_line": "#define stbi__div16(x) ((stbi_uc) ((x) >> 4))" + "stbi__vertically_flip_on_load_local": { + "name": "stbi__vertically_flip_on_load_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__vertically_flip_on_load_local" }, - "unit_kind": "macro", - "unit_name": "stbi__div16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbi__float2fixed' is recorded but not expanded.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 3659, + "line": 1124, "column": 1, - "source_line": "#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8)" + "source_line": "static _Thread_local int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" }, - "unit_kind": "macro", - "unit_name": "stbi__float2fixed" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBI__PNG_TYPE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 5076, - "column": 1, - "source_line": "#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))" + "stbi__vertically_flip_on_load_set": { + "name": "stbi__vertically_flip_on_load_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__vertically_flip_on_load_set" }, - "unit_kind": "macro", - "unit_name": "STBI__PNG_TYPE" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 391, + "line": 1124, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "static _Thread_local int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" }, - "unit_kind": "declarator", - "unit_name": null + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 966, - "column": 1, - "source_line": "static" + "stbi__l2h_gamma": { + "name": "stbi__l2h_gamma", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__l2h_gamma" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 972, - "column": 1, - "source_line": "STBIDEF const char *stbi_failure_reason(void)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "2.2f" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbi__err'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 978, + "line": 1573, "column": 1, - "source_line": "static int stbi__err(const char *str)" + "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi__err" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1101, - "column": 1, - "source_line": "STBIDEF void stbi_image_free(void *retval_from_stbi_load)" + "stbi__l2h_scale": { + "name": "stbi__l2h_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__l2h_scale" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1116, - "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1124, + "line": 1573, "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set;" + "source_line": "static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1126, - "column": 1, - "source_line": "STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip)" + "stbi__h2l_gamma_i": { + "name": "stbi__h2l_gamma_i", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__h2l_gamma_i" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1326, - "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f/2.2f" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1327, + "line": 1579, "column": 1, - "source_line": "STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" + "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_EXTERN" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1331, - "column": 1, - "source_line": "STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" + "stbi__h2l_scale_i": { + "name": "stbi__h2l_scale_i", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "static float stbi__h2l_scale_i" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1366, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "1.0f" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1376, + "line": 1579, "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "source_line": "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1389, - "column": 1, - "source_line": "STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" + "stbi__bmask": { + "name": "stbi__bmask", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi__uint32 stbi__bmask[17]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "17", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi__uint32" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1402, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1415, + "line": 2094, "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)" + "source_line": "static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535};" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1422, - "column": 1, - "source_line": "STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)" + "stbi__jbias": { + "name": "stbi__jbias", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__jbias[16]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "16", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1429, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1436, + "line": 2149, "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const int stbi__jbias[16] = {0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767};" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1444, - "column": 1, - "source_line": "STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)" + "stbi__jpeg_dezigzag": { + "name": "stbi__jpeg_dezigzag", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__jpeg_dezigzag[64+15]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "64+15", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1478, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63 }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1485, + "line": 2194, "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)" + "source_line": "static const stbi_uc stbi__jpeg_dezigzag[64+15] =" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1493, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)" + "stbi__zlength_base": { + "name": "stbi__zlength_base", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zlength_base[31]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "31", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1503, - "column": 1, - "source_line": "STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 3,4,5,6,7,8,9,10,11,13, 15,17,19,23,27,31,35,43,51,59, 67,83,99,115,131,163,195,227,258,0,0 }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1517, + "line": 4295, "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)" + "source_line": "static const int stbi__zlength_base[31] = {" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1531, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr (char const *filename)" + "stbi__zlength_extra": { + "name": "stbi__zlength_extra", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zlength_extra[31]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "31", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1542, - "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_file(FILE *f)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1559, + "line": 4300, "column": 1, - "source_line": "STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)" + "source_line": "static const int stbi__zlength_extra[31]=" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1575, - "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }" + "stbi__zdist_base": { + "name": "stbi__zdist_base", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zdist_base[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1576, - "column": 1, - "source_line": "STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, 257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1581, + "line": 4303, "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }" + "source_line": "static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1582, - "column": 1, - "source_line": "STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }" + "stbi__zdist_extra": { + "name": "stbi__zdist_extra", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const int stbi__zdist_extra[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 1614, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__get8(stbi__context *s)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 1628, + "line": 4306, "column": 1, - "source_line": "stbi_inline static int stbi__at_eof(stbi__context *s)" + "source_line": "static const int stbi__zdist_extra[32] =" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbi__zdefault_length": { + "name": "stbi__zdefault_length", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__zdefault_length[288]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "288", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8 }" + }, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 2097, + "line": 4452, "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)" + "source_line": "static const stbi_uc stbi__zdefault_length[288] =" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbi__zdefault_distance": { + "name": "stbi__zdefault_distance", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__zdefault_distance[32]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "32", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 }" + }, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 2153, + "line": 4464, "column": 1, - "source_line": "stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)" + "source_line": "static const stbi_uc stbi__zdefault_distance[32] =" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "first_row_filter": { + "name": "first_row_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static stbi_uc first_row_filter[5]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "5", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ STBI__F_none, STBI__F_sub, STBI__F_none, STBI__F_avg_first, STBI__F_sub }" + }, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 2169, + "line": 4648, "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)" + "source_line": "static stbi_uc first_row_filter[5] =" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 2181, - "column": 1, - "source_line": "stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)" + "stbi__depth_scale_table": { + "name": "stbi__depth_scale_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const stbi_uc stbi__depth_scale_table[9]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "9", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbi_uc" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 2416, + "line": 4670, "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__clamp(int x)" + "source_line": "static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 };" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4107, - "column": 1, - "source_line": "stbi_inline static int stbi__bitreverse16(int n)" + "stbi__unpremultiply_on_load_global": { + "name": "stbi__unpremultiply_on_load_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__unpremultiply_on_load_global" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4116, - "column": 1, - "source_line": "stbi_inline static int stbi__bit_reverse(int v, int bits)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 4192, + "line": 4993, "column": 1, - "source_line": "stbi_inline static int stbi__zeof(stbi__zbuf *z)" + "source_line": "static int stbi__unpremultiply_on_load_global = 0;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4197, - "column": 1, - "source_line": "stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z)" + "stbi__de_iphone_flag_global": { + "name": "stbi__de_iphone_flag_global", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static int stbi__de_iphone_flag_global" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4214, - "column": 1, - "source_line": "stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)" + "storage": [ + "static" + ], + "initializer": { + "source_text": "0" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbi_inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 4243, + "line": 4994, "column": 1, - "source_line": "stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)" + "source_line": "static int stbi__de_iphone_flag_global = 0;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbi_inline" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4520, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)" + "stbi__unpremultiply_on_load_local": { + "name": "stbi__unpremultiply_on_load_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__unpremultiply_on_load_local" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 4536, + "line": 5010, "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)" + "source_line": "static _Thread_local int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4541, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)" + "stbi__unpremultiply_on_load_set": { + "name": "stbi__unpremultiply_on_load_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__unpremultiply_on_load_set" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 4557, + "line": 5010, "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)" + "source_line": "static _Thread_local int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4568, - "column": 1, - "source_line": "STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)" + "stbi__de_iphone_flag_local": { + "name": "stbi__de_iphone_flag_local", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__de_iphone_flag_local" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 4584, + "line": 5011, "column": 1, - "source_line": "STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)" + "source_line": "static _Thread_local int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image.h", - "line": 4996, - "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)" + "stbi__de_iphone_flag_set": { + "name": "stbi__de_iphone_flag_set", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "static _Thread_local int stbi__de_iphone_flag_set" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "storage": [ + "static", + "_Thread_local" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 5001, + "line": 5011, "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)" + "source_line": "static _Thread_local int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "callback_policy": null, + "declaration_locations": [] + } + }, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_image.h": [ + "stbi_load_from_memory", + "stbi_load_from_callbacks", + "stbi_load", + "stbi_load_from_file", + "stbi_load_gif_from_memory", + "stbi_load_16_from_memory", + "stbi_load_16_from_callbacks", + "stbi_load_16", + "stbi_load_from_file_16", + "stbi_loadf_from_memory", + "stbi_loadf_from_callbacks", + "stbi_loadf", + "stbi_loadf_from_file", + "stbi_hdr_to_ldr_gamma", + "stbi_hdr_to_ldr_scale", + "stbi_ldr_to_hdr_gamma", + "stbi_ldr_to_hdr_scale", + "stbi_is_hdr_from_callbacks", + "stbi_is_hdr_from_memory", + "stbi_is_hdr", + "stbi_is_hdr_from_file", + "stbi_failure_reason", + "stbi_image_free", + "stbi_info_from_memory", + "stbi_info_from_callbacks", + "stbi_is_16_bit_from_memory", + "stbi_is_16_bit_from_callbacks", + "stbi_info", + "stbi_info_from_file", + "stbi_is_16_bit", + "stbi_is_16_bit_from_file", + "stbi_set_unpremultiply_on_load", + "stbi_convert_iphone_png_to_rgb", + "stbi_set_flip_vertically_on_load", + "stbi_set_unpremultiply_on_load_thread", + "stbi_convert_iphone_png_to_rgb_thread", + "stbi_set_flip_vertically_on_load_thread", + "stbi_zlib_decode_malloc_guesssize", + "stbi_zlib_decode_malloc_guesssize_headerflag", + "stbi_zlib_decode_malloc", + "stbi_zlib_decode_buffer", + "stbi_zlib_decode_noheader_malloc", + "stbi_zlib_decode_noheader_buffer", + "stbi__sse2_available", + "stbi__refill_buffer", + "stbi__start_mem", + "stbi__start_callbacks", + "stbi__stdio_read", + "stbi__stdio_skip", + "stbi__stdio_eof", + "stbi__start_file", + "stbi__rewind", + "stbi__jpeg_test", + "stbi__jpeg_load", + "stbi__jpeg_info", + "stbi__png_test", + "stbi__png_load", + "stbi__png_info", + "stbi__png_is16", + "stbi__bmp_test", + "stbi__bmp_load", + "stbi__bmp_info", + "stbi__tga_test", + "stbi__tga_load", + "stbi__tga_info", + "stbi__psd_test", + "stbi__psd_load", + "stbi__psd_info", + "stbi__psd_is16", + "stbi__hdr_test", + "stbi__hdr_load", + "stbi__hdr_info", + "stbi__pic_test", + "stbi__pic_load", + "stbi__pic_info", + "stbi__gif_test", + "stbi__gif_load", + "stbi__load_gif_main", + "stbi__gif_info", + "stbi__pnm_test", + "stbi__pnm_load", + "stbi__pnm_info", + "stbi__pnm_is16", + "stbi__err", + "stbi__malloc", + "stbi__addsizes_valid", + "stbi__mul2sizes_valid", + "stbi__mad2sizes_valid", + "stbi__mad3sizes_valid", + "stbi__mad4sizes_valid", + "stbi__malloc_mad2", + "stbi__malloc_mad3", + "stbi__malloc_mad4", + "stbi__addints_valid", + "stbi__mul2shorts_valid", + "stbi__ldr_to_hdr", + "stbi__hdr_to_ldr", + "stbi__load_main", + "stbi__convert_16_to_8", + "stbi__convert_8_to_16", + "stbi__vertical_flip", + "stbi__vertical_flip_slices", + "stbi__load_and_postprocess_8bit", + "stbi__load_and_postprocess_16bit", + "stbi__float_postprocess", + "stbi__fopen", + "stbi__loadf_main", + "stbi__get8", + "stbi__at_eof", + "stbi__skip", + "stbi__getn", + "stbi__get16be", + "stbi__get32be", + "stbi__get16le", + "stbi__get32le", + "stbi__compute_y", + "stbi__convert_format", + "stbi__compute_y_16", + "stbi__convert_format16", + "stbi__build_huffman", + "stbi__build_fast_ac", + "stbi__grow_buffer_unsafe", + "stbi__jpeg_huff_decode", + "stbi__extend_receive", + "stbi__jpeg_get_bits", + "stbi__jpeg_get_bit", + "stbi__jpeg_decode_block", + "stbi__jpeg_decode_block_prog_dc", + "stbi__jpeg_decode_block_prog_ac", + "stbi__clamp", + "stbi__idct_block", + "stbi__idct_simd", + "stbi__get_marker", + "stbi__jpeg_reset", + "stbi__parse_entropy_coded_data", + "stbi__jpeg_dequantize", + "stbi__jpeg_finish", + "stbi__process_marker", + "stbi__process_scan_header", + "stbi__free_jpeg_components", + "stbi__process_frame_header", + "stbi__decode_jpeg_header", + "stbi__skip_jpeg_junk_at_end", + "stbi__decode_jpeg_image", + "resample_row_1", + "stbi__resample_row_v_2", + "stbi__resample_row_h_2", + "stbi__resample_row_hv_2", + "stbi__resample_row_hv_2_simd", + "stbi__resample_row_generic", + "stbi__YCbCr_to_RGB_row", + "stbi__YCbCr_to_RGB_simd", + "stbi__setup_jpeg", + "stbi__cleanup_jpeg", + "stbi__blinn_8x8", + "load_jpeg_image", + "stbi__jpeg_info_raw", + "stbi__bitreverse16", + "stbi__bit_reverse", + "stbi__zbuild_huffman", + "stbi__zeof", + "stbi__zget8", + "stbi__fill_bits", + "stbi__zreceive", + "stbi__zhuffman_decode_slowpath", + "stbi__zhuffman_decode", + "stbi__zexpand", + "stbi__parse_huffman_block", + "stbi__compute_huffman_codes", + "stbi__parse_uncompressed_block", + "stbi__parse_zlib_header", + "stbi__parse_zlib", + "stbi__do_zlib", + "stbi__get_chunk_header", + "stbi__check_png_header", + "stbi__paeth", + "stbi__create_png_alpha_expand8", + "stbi__create_png_image_raw", + "stbi__create_png_image", + "stbi__compute_transparency", + "stbi__compute_transparency16", + "stbi__expand_png_palette", + "stbi__de_iphone", + "stbi__parse_png_file", + "stbi__do_png", + "stbi__png_info_raw", + "stbi__bmp_test_raw", + "stbi__high_bit", + "stbi__bitcount", + "stbi__shiftsigned", + "stbi__bmp_set_mask_defaults", + "stbi__bmp_parse_header", + "stbi__tga_get_comp", + "stbi__tga_read_rgb16", + "stbi__psd_decode_rle", + "stbi__pic_is4", + "stbi__pic_test_core", + "stbi__readval", + "stbi__copyval", + "stbi__pic_load_core", + "stbi__gif_test_raw", + "stbi__gif_parse_colortable", + "stbi__gif_header", + "stbi__gif_info_raw", + "stbi__out_gif_code", + "stbi__process_gif_raster", + "stbi__gif_load_next", + "stbi__load_gif_main_outofmem", + "stbi__hdr_test_core", + "stbi__hdr_gettoken", + "stbi__hdr_convert", + "stbi__pnm_isspace", + "stbi__pnm_skip_whitespace", + "stbi__pnm_isdigit", + "stbi__pnm_getinteger", + "stbi__info_main", + "stbi__is_16_main" + ] + }, + "enum_constants": { + "STBI_default": { + "name": "STBI_default", + "value": "0", + "source_location": { "filename": "stb/stb_image.h", - "line": 5010, + "line": 376, "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBI_THREAD_LOCAL'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_grey": { + "name": "STBI_grey", + "value": "1", + "source_location": { "filename": "stb/stb_image.h", - "line": 5011, + "line": 376, "column": 1, - "source_line": "static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBI_THREAD_LOCAL" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_grey_alpha": { + "name": "STBI_grey_alpha", + "value": "2", + "source_location": { "filename": "stb/stb_image.h", - "line": 5013, + "line": 376, "column": 1, - "source_line": "STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_rgb": { + "name": "STBI_rgb", + "value": "3", + "source_location": { "filename": "stb/stb_image.h", - "line": 5019, + "line": 376, "column": 1, - "source_line": "STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_rgb_alpha": { + "name": "STBI_rgb_alpha", + "value": "4", + "source_location": { "filename": "stb/stb_image.h", - "line": 7691, + "line": 376, "column": 1, - "source_line": "STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_ORDER_RGB": { + "name": "STBI_ORDER_RGB", + "value": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 7701, + "line": 895, "column": 1, - "source_line": "STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI_ORDER_BGR": { + "name": "STBI_ORDER_BGR", + "value": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 7712, + "line": 895, "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit(char const *filename)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI__SCAN_load": { + "name": "STBI__SCAN_load", + "value": "0", + "source_location": { "filename": "stb/stb_image.h", - "line": 7722, + "line": 1590, "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_file(FILE *f)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI__SCAN_type": { + "name": "STBI__SCAN_type", + "value": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 7734, + "line": 1590, "column": 1, - "source_line": "STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI__SCAN_header": { + "name": "STBI__SCAN_header", + "value": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 7741, + "line": 1590, "column": 1, - "source_line": "STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI__F_none": { + "name": "STBI__F_none", + "value": "0", + "source_location": { "filename": "stb/stb_image.h", - "line": 7748, + "line": 4638, "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBI__F_sub": { + "name": "STBI__F_sub", + "value": "1", + "source_location": { "filename": "stb/stb_image.h", - "line": 7755, + "line": 4638, "column": 1, - "source_line": "STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIDEF" + "source_line": "enum {" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__uint16'.", - "severity": "error", - "location": { + "STBI__F_up": { + "name": "STBI__F_up", + "value": "2", + "source_location": { "filename": "stb/stb_image.h", - "line": 648, + "line": 4638, "column": 1, - "source_line": "typedef uint16_t stbi__uint16;" - }, - "unit_kind": "typedef", - "unit_name": "stbi__uint16" + "source_line": "enum {" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__int16'.", - "severity": "error", - "location": { + "STBI__F_avg": { + "name": "STBI__F_avg", + "value": "3", + "source_location": { "filename": "stb/stb_image.h", - "line": 649, + "line": 4638, "column": 1, - "source_line": "typedef int16_t stbi__int16;" - }, - "unit_kind": "typedef", - "unit_name": "stbi__int16" + "source_line": "enum {" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__uint32'.", - "severity": "error", - "location": { + "STBI__F_paeth": { + "name": "STBI__F_paeth", + "value": "4", + "source_location": { "filename": "stb/stb_image.h", - "line": 650, + "line": 4638, "column": 1, - "source_line": "typedef uint32_t stbi__uint32;" - }, - "unit_kind": "typedef", - "unit_name": "stbi__uint32" + "source_line": "enum {" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbi__int32'.", - "severity": "error", - "location": { + "STBI__F_avg_first": { + "name": "STBI__F_avg_first", + "value": null, + "source_location": { "filename": "stb/stb_image.h", - "line": 651, + "line": 4638, "column": 1, - "source_line": "typedef int32_t stbi__int32;" - }, - "unit_kind": "typedef", - "unit_name": "stbi__int32" - }, + "source_line": "enum {" + } + } + }, + "include_graph": { + "stb/stb_image.h": [] + }, + "system_includes": { + "stb/stb_image.h": [] + }, + "unresolved_includes": { + "stb/stb_image.h": [] + }, + "header_source_pairs": { + "stb/stb_image.h": [] + }, + "diagnostics": [ { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'stbi__idct_simd'.", + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stbi_load_from_file_16'.", "severity": "error", "location": { "filename": "stb/stb_image.h", - "line": 2711, + "line": 1389, "column": 1, - "source_line": "static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])" + "source_line": "extern stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)" }, "unit_kind": "function", - "unit_name": "stbi__idct_simd" + "unit_name": "stbi_load_from_file_16" } ] } diff --git a/tests/parser/c/fixtures/stb/stb_image_resize2.json b/tests/parser/c/fixtures/stb/stb_image_resize2.json index 361628c59..6a0fb2b97 100644 --- a/tests/parser/c/fixtures/stb/stb_image_resize2.json +++ b/tests/parser/c/fixtures/stb/stb_image_resize2.json @@ -3,23 +3,37 @@ "stb/stb_image_resize2.h": { "filename": "stb/stb_image_resize2.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_image_resize2.h" + ], "functions": [ { - "name": "stbir_simd_memcpy", + "name": "stbir_resize_uint8_srgb", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "dest", + "name": "input_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * dest", + "source_text": "const unsigned char *input_pixels", "components": [ { "model": "CPointer", @@ -27,16 +41,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * dest", + "source_text": "const unsigned char *input_pixels", "components": [ { "model": "CPointer", @@ -44,9 +60,11 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -54,146 +72,56 @@ "callback_policy": null }, { - "name": "src", + "name": "input_w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] + "source_text": "int input_w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] + "source_text": "int input_w" }, "source_location": null, "callback_policy": null }, { - "name": "bytes", + "name": "input_h", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "size_t bytes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int input_h" }, "declared_type": { - "reference": "size_t" + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2592, - "column": 1, - "source_line": "static void stbir_simd_memcpy( void * dest, void const * src, size_t bytes )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2592, - "column": 1, - "source_line": "static void stbir_simd_memcpy( void * dest, void const * src, size_t bytes )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2680, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir_overlapping_memcpy", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "dest", + "name": "input_stride_in_bytes", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int input_stride_in_bytes" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int input_stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "src", + "name": "output_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void const * src", + "source_text": "unsigned char *output_pixels", "components": [ { "model": "CPointer", @@ -201,18 +129,16 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void const * src", + "source_text": "unsigned char *output_pixels", "components": [ { "model": "CPointer", @@ -220,11 +146,9 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -232,184 +156,365 @@ "callback_policy": null }, { - "name": "bytes", + "name": "output_w", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "size_t bytes", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int output_w" }, "declared_type": { - "reference": "size_t" + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2685, - "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2685, - "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2714, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__filter_trapezoid", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "x", + "name": "output_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_h" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "output_stride_in_bytes", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int output_stride_in_bytes" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int output_stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "pixel_type", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "model": "CTypedef", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2890, - "column": 1, - "source_line": "static float stbir__filter_trapezoid(float x, float scale, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2890, - "column": 1, - "source_line": "static float stbir__filter_trapezoid(float x, float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2909, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__support_trapezoid", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" + "source_text": "stbir_pixel_layout", + "name": "stbir_pixel_layout", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBIR_1CHANNEL", + "value": "1", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_2CHANNEL", + "value": "2", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RGB", + "value": "3", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_BGR", + "value": "0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_4CHANNEL", + "value": "5", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RGBA", + "value": "4", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_BGRA", + "value": "6", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ARGB", + "value": "7", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ABGR", + "value": "8", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RA", + "value": "9", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_AR", + "value": "10", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RGBA_PM", + "value": "11", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_BGRA_PM", + "value": "12", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ARGB_PM", + "value": "13", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ABGR_PM", + "value": "14", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RA_PM", + "value": "15", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_AR_PM", + "value": "16", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RGBA_NO_AW", + "value": "11", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_BGRA_NO_AW", + "value": "12", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ARGB_NO_AW", + "value": "13", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_ABGR_NO_AW", + "value": "14", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_RA_NO_AW", + "value": "15", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_AR_NO_AW", + "value": "16", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + } + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 435, + "column": 1, + "source_line": "typedef enum" + }, + "declaration_locations": [] }, "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" + "reference": "stbir_pixel_layout" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 472, + "column": 1, + "source_line": "extern unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 472, + "column": 1, + "source_line": "extern unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_resize_uint8_linear", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ { - "name": "user_data", + "name": "input_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const unsigned char *input_pixels", "components": [ { "model": "CPointer", @@ -417,16 +522,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const unsigned char *input_pixels", "components": [ { "model": "CPointer", @@ -434,87 +541,68 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2911, - "column": 1, - "source_line": "static float stbir__support_trapezoid(float scale, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2911, - "column": 1, - "source_line": "static float stbir__support_trapezoid(float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2915, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__filter_triangle", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "x", + "name": "input_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int input_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int input_w" }, "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "input_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_h" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "unsigned char *output_pixels", "components": [ { "model": "CPointer", @@ -522,16 +610,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "unsigned char *output_pixels", "components": [ { "model": "CPointer", @@ -539,192 +627,120 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2917, - "column": 1, - "source_line": "static float stbir__filter_triangle(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2917, - "column": 1, - "source_line": "static float stbir__filter_triangle(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2928, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__filter_point", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "x", + "name": "output_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_w" }, "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "output_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int output_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int output_h" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "output_stride_in_bytes", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_type", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2930, + "line": 476, "column": 1, - "source_line": "static float stbir__filter_point(float x, float s, void * user_data)" + "source_line": "extern unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, "start": { "filename": "stb/stb_image_resize2.h", - "line": 2930, - "column": 1, - "source_line": "static float stbir__filter_point(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2937, + "line": 476, "column": 1, - "source_line": "}" + "source_line": "extern unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, + "end": null, "declaration_locations": [] }, { - "name": "stbir__filter_cubic", + "name": "stbir_resize_float_linear", "result_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", + "source_text": "float", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float s" + "source_text": "" }, - "declared_type": { + { "model": "CFloat", "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "float" + } + ] + }, + "parameters": [ { - "name": "user_data", + "name": "input_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const float *input_pixels", "components": [ { "model": "CPointer", @@ -732,16 +748,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const float *input_pixels", "components": [ { "model": "CPointer", @@ -749,87 +767,68 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2939, - "column": 1, - "source_line": "static float stbir__filter_cubic(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2939, - "column": 1, - "source_line": "static float stbir__filter_cubic(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2952, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__filter_catmullrom", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "x", + "name": "input_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int input_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int input_w" }, "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "input_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_h" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "float *output_pixels", "components": [ { "model": "CPointer", @@ -837,16 +836,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "float *output_pixels", "components": [ { "model": "CPointer", @@ -854,177 +853,120 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2954, - "column": 1, - "source_line": "static float stbir__filter_catmullrom(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2954, - "column": 1, - "source_line": "static float stbir__filter_catmullrom(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2967, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__filter_mitchell", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "x", + "name": "output_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int output_w" }, "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "output_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int output_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int output_h" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "output_stride_in_bytes", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_type", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2969, + "line": 480, "column": 1, - "source_line": "static float stbir__filter_mitchell(float x, float s, void * user_data)" + "source_line": "extern float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, "start": { "filename": "stb/stb_image_resize2.h", - "line": 2969, - "column": 1, - "source_line": "static float stbir__filter_mitchell(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2982, + "line": 480, "column": 1, - "source_line": "}" + "source_line": "extern float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, + "end": null, "declaration_locations": [] }, { - "name": "stbir__support_zeropoint5", + "name": "stbir_resize", "result_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CFloat", + "source_text": "void", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float s" + "source_text": "" }, - "declared_type": { - "model": "CFloat", + { + "model": "CVoid", "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "user_data", + "name": "input_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const void *input_pixels", "components": [ { "model": "CPointer", @@ -1033,15 +975,17 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "const void *input_pixels", "components": [ { "model": "CPointer", @@ -1050,161 +994,67 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2984, - "column": 1, - "source_line": "static float stbir__support_zeropoint5(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2984, - "column": 1, - "source_line": "static float stbir__support_zeropoint5(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2989, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__support_one", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "s", + "name": "input_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_w" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "input_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int input_h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int input_h" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2991, - "column": 1, - "source_line": "static float stbir__support_one(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2991, - "column": 1, - "source_line": "static float stbir__support_one(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2996, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__support_two", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "s", + "name": "input_stride_in_bytes", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_stride_in_bytes" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float s" + "source_text": "int input_stride_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "output_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "void *output_pixels", "components": [ { "model": "CPointer", @@ -1221,7 +1071,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "void *output_pixels", "components": [ { "model": "CPointer", @@ -1237,220 +1087,388 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2998, - "column": 1, - "source_line": "static float stbir__support_two(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2998, - "column": 1, - "source_line": "static float stbir__support_two(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3003, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_filter_pixel_width", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "support", + "name": "output_w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__support_callback", - "name": "stbir__support_callback", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef float stbir__support_callback( float scale, void * user_data )", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameter_types": [ - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 569, - "column": 1, - "source_line": "typedef float stbir__support_callback( float scale, void * user_data );" - }, - "declaration_locations": [] - } - ] + "source_text": "int output_w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] + "source_text": "int output_w" }, "source_location": null, "callback_policy": null }, { - "name": "scale", + "name": "output_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int output_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float scale" + "source_text": "int output_h" }, "source_location": null, "callback_policy": null }, { - "name": "user_data", + "name": "output_stride_in_bytes", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_type", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_datatype", + "name": "stbir_datatype", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBIR_TYPE_UINT8", + "value": "0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_TYPE_UINT8_SRGB", + "value": "1", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_TYPE_UINT8_SRGB_ALPHA", + "value": "2", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_TYPE_UINT16", + "value": "3", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_TYPE_FLOAT", + "value": "4", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_TYPE_HALF_FLOAT", + "value": "5", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + } + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 515, + "column": 1, + "source_line": "typedef enum" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "edge", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_edge", + "name": "stbir_edge", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBIR_EDGE_CLAMP", + "value": "0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_EDGE_REFLECT", + "value": "1", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_EDGE_WRAP", + "value": "2", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_EDGE_ZERO", + "value": "3", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + } + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 495, + "column": 1, + "source_line": "typedef enum" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "filter", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_filter", + "name": "stbir_filter", + "type": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBIR_FILTER_DEFAULT", + "value": "0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_BOX", + "value": "1", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_TRIANGLE", + "value": "2", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_CUBICBSPLINE", + "value": "3", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_CATMULLROM", + "value": "4", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_MITCHELL", + "value": "5", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_POINT_SAMPLE", + "value": "6", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + { + "name": "STBIR_FILTER_OTHER", + "value": "7", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + } + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 503, + "column": 1, + "source_line": "typedef enum" + }, + "declaration_locations": [] + }, + "declared_type": { + "reference": "stbir_filter" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 3007, + "line": 526, "column": 1, - "source_line": "static int stbir__get_filter_pixel_width(stbir__support_callback * support, float scale, void * user_data)" + "source_line": "extern void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, "start": { "filename": "stb/stb_image_resize2.h", - "line": 3007, - "column": 1, - "source_line": "static int stbir__get_filter_pixel_width(stbir__support_callback * support, float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3015, + "line": 526, "column": 1, - "source_line": "}" + "source_line": "extern void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, + "end": null, "declaration_locations": [] }, { - "name": "stbir__get_coefficient_width", + "name": "stbir_resize_init", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "samp", + "name": "resize", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbir__sampler * samp", + "source_text": "STBIR_RESIZE * resize", "components": [ { "model": "CPointer", @@ -1460,20 +1478,20 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbir__sampler", - "name": "stbir__sampler", + "source_text": "STBIR_RESIZE", + "name": "STBIR_RESIZE", "type": { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": null, + "name": "STBIR_RESIZE", "members": [ { - "name": "contributors", + "name": "user_data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbir__contributors * contributors", + "source_text": "void * user_data", "components": [ { "model": "CPointer", @@ -1481,71 +1499,9 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stbir__contributors", - "name": "stbir__contributors", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 912, - "column": 3, - "source_line": " int n0; // First contributing pixel" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 913, - "column": 3, - "source_line": " int n1; // Last contributing pixel" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:910:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 910, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 910, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "void" } ] }, @@ -1554,19 +1510,19 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 943, + "line": 576, "column": 3, - "source_line": " stbir__contributors * contributors;" + "source_line": " void * user_data;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "coefficients", + "name": "input_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * coefficients", + "source_text": "void const * input_pixels", "components": [ { "model": "CPointer", @@ -1574,9 +1530,11 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -1585,426 +1543,133 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 944, + "line": 577, "column": 3, - "source_line": " float* coefficients;" + "source_line": " void const * input_pixels;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_contributors", + "name": "input_w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbir__contributors * gather_prescatter_contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] + "source_text": "int input_w" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 945, + "line": 578, "column": 3, - "source_line": " stbir__contributors * gather_prescatter_contributors;" + "source_line": " int input_w, input_h;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_coefficients", + "name": "input_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float * gather_prescatter_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int input_h" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 946, + "line": 578, "column": 3, - "source_line": " float * gather_prescatter_coefficients;" + "source_line": " int input_w, input_h;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "scale_info", + "name": "input_s0", "type": { - "model": "CTypedef", + "model": "CDouble", "qualifiers": [], - "source_text": "stbir__scale_info", - "name": "stbir__scale_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbir__scale_info", - "members": [ - { - "name": "input_full_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_size" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 932, - "column": 3, - "source_line": " int input_full_size;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_sub_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_sub_size" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 933, - "column": 3, - "source_line": " int output_sub_size;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 934, - "column": 3, - "source_line": " float scale;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "inv_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float inv_scale" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 935, - "column": 3, - "source_line": " float inv_scale;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pixel_shift", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float pixel_shift" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 936, - "column": 3, - "source_line": " float pixel_shift; // starting shift in output pixel space (in pixels)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scale_is_rational", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scale_is_rational" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 937, - "column": 3, - "source_line": " int scale_is_rational;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scale_numerator", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint32", - "name": "stbir_uint32", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "typedef unsigned int stbir_uint32" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 395, - "column": 1, - "source_line": "typedef unsigned int stbir_uint32;" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 938, - "column": 3, - "source_line": " stbir_uint32 scale_numerator, scale_denominator;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scale_denominator", - "type": { - "reference": "stbir_uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 938, - "column": 3, - "source_line": " stbir_uint32 scale_numerator, scale_denominator;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 930, - "column": 1, - "source_line": "typedef struct stbir__scale_info" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 930, - "column": 1, - "source_line": "typedef struct stbir__scale_info" - }, - "declaration_locations": [] + "source_text": "double input_s0" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 947, + "line": 579, "column": 3, - "source_line": " stbir__scale_info scale_info;" + "source_line": " double input_s0, input_t0, input_s1, input_t1;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "support", + "name": "input_t0", "type": { - "model": "CFloat", + "model": "CDouble", "qualifiers": [], - "source_text": "float support" + "source_text": "double input_t0" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 948, + "line": 579, "column": 3, - "source_line": " float support;" + "source_line": " double input_s0, input_t0, input_s1, input_t1;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "filter_enum", + "name": "input_s1", "type": { - "model": "CTypedef", + "model": "CDouble", "qualifiers": [], - "source_text": "stbir_filter", - "name": "stbir_filter", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBIR_FILTER_DEFAULT", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_BOX", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_TRIANGLE", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_CUBICBSPLINE", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_CATMULLROM", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_MITCHELL", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_POINT_SAMPLE", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_FILTER_OTHER", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image_resize2.h:503:1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - }, - "declaration_locations": [] + "source_text": "double input_s1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 579, + "column": 3, + "source_line": " double input_s0, input_t0, input_s1, input_t1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "input_t1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double input_t1" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 949, + "line": 579, "column": 3, - "source_line": " stbir_filter filter_enum;" + "source_line": " double input_s0, input_t0, input_s1, input_t1;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "filter_kernel", + "name": "input_cb", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbir__kernel_callback * filter_kernel", + "source_text": "stbir_input_callback * input_cb", "components": [ { "model": "CPointer", @@ -2014,32 +1679,87 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbir__kernel_callback", - "name": "stbir__kernel_callback", + "source_text": "stbir_input_callback", + "name": "stbir_input_callback", "type": { "model": "CFunctionType", "qualifiers": [], - "source_text": "typedef float stbir__kernel_callback( float x, float scale, void * user_data )", + "source_text": "typedef void const * stbir_input_callback( void * optional_output, void const * input_ptr, int num_pixels, int x, int y, void * context )", "result_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float" + "source_text": "const void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "parameter_types": [ { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x" + "source_text": "void * optional_output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float scale" + "source_text": "void const * input_ptr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_pixels" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user_data", + "source_text": "void * context", "components": [ { "model": "CPointer", @@ -2059,9 +1779,9 @@ }, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 568, + "line": 562, "column": 1, - "source_line": "typedef float stbir__kernel_callback( float x, float scale, void * user_data ); // centered at zero" + "source_line": "typedef void const * stbir_input_callback( void * optional_output, void const * input_ptr, int num_pixels, int x, int y, void * context );" }, "declaration_locations": [] } @@ -2072,19 +1792,19 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 950, + "line": 580, "column": 3, - "source_line": " stbir__kernel_callback * filter_kernel;" + "source_line": " stbir_input_callback * input_cb;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "filter_support", + "name": "output_pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbir__support_callback * filter_support", + "source_text": "void * output_pixels", "components": [ { "model": "CPointer", @@ -2092,7 +1812,9 @@ "source_text": "" }, { - "reference": "stbir__support_callback" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -2101,62737 +1823,6361 @@ "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 951, - "column": 3, - "source_line": " stbir__support_callback * filter_support;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "edge", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_edge", - "name": "stbir_edge", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBIR_EDGE_CLAMP", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_EDGE_REFLECT", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_EDGE_WRAP", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_EDGE_ZERO", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image_resize2.h:495:1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 952, + "line": 581, "column": 3, - "source_line": " stbir_edge edge;" + "source_line": " void * output_pixels;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "coefficient_width", + "name": "output_w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int coefficient_width" + "source_text": "int output_w" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 953, + "line": 582, "column": 3, - "source_line": " int coefficient_width;" + "source_line": " int output_w, output_h;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "filter_pixel_width", + "name": "output_h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int filter_pixel_width" + "source_text": "int output_h" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 954, + "line": 582, "column": 3, - "source_line": " int filter_pixel_width;" + "source_line": " int output_w, output_h;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "filter_pixel_margin", + "name": "output_subx", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int filter_pixel_margin" + "source_text": "int output_subx" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 955, + "line": 583, "column": 3, - "source_line": " int filter_pixel_margin;" + "source_line": " int output_subx, output_suby, output_subw, output_subh;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "num_contributors", + "name": "output_suby", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_contributors" + "source_text": "int output_suby" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 956, + "line": 583, "column": 3, - "source_line": " int num_contributors;" + "source_line": " int output_subx, output_suby, output_subw, output_subh;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "contributors_size", + "name": "output_subw", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int contributors_size" + "source_text": "int output_subw" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 957, + "line": 583, "column": 3, - "source_line": " int contributors_size;" + "source_line": " int output_subx, output_suby, output_subw, output_subh;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "coefficients_size", + "name": "output_subh", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int coefficients_size" + "source_text": "int output_subh" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 958, + "line": 583, "column": 3, - "source_line": " int coefficients_size;" + "source_line": " int output_subx, output_suby, output_subw, output_subh;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "extent_info", + "name": "output_cb", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbir__filter_extent_info", - "name": "stbir__filter_extent_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "lowest", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lowest" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 918, - "column": 3, - "source_line": " int lowest; // First sample index for whole filter" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "highest", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int highest" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 919, - "column": 3, - "source_line": " int highest; // Last sample index for whole filter" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "widest", - "type": { - "model": "CInt", + "source_text": "stbir_output_callback * output_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_output_callback", + "name": "stbir_output_callback", + "type": { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "typedef void stbir_output_callback( void const * output_ptr, int num_pixels, int y, void * context )", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "int widest" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 920, - "column": 3, - "source_line": " int widest; // widest single set of samples for an output" + "source_text": "void" }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:916:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 916, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 916, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 959, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void const * output_ptr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_pixels" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 565, + "column": 1, + "source_line": "typedef void stbir_output_callback( void const * output_ptr, int num_pixels, int y, void * context );" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 584, "column": 3, - "source_line": " stbir__filter_extent_info extent_info;" + "source_line": " stbir_output_callback * output_cb;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "is_gather", + "name": "input_stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int is_gather" + "source_text": "int input_stride_in_bytes" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 960, + "line": 585, "column": 3, - "source_line": " int is_gather; // 0 = scatter, 1 = gather with scale >= 1, 2 = gather with scale < 1" + "source_line": " int input_stride_in_bytes;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_num_contributors", + "name": "output_stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int gather_prescatter_num_contributors" + "source_text": "int output_stride_in_bytes" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 961, + "line": 586, "column": 3, - "source_line": " int gather_prescatter_num_contributors;" + "source_line": " int output_stride_in_bytes;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_coefficient_width", + "name": "splits", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int gather_prescatter_coefficient_width" + "source_text": "int splits" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 962, + "line": 587, "column": 3, - "source_line": " int gather_prescatter_coefficient_width;" + "source_line": " int splits;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_contributors_size", + "name": "fast_alpha", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int gather_prescatter_contributors_size" + "source_text": "int fast_alpha" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 963, + "line": 588, "column": 3, - "source_line": " int gather_prescatter_contributors_size;" + "source_line": " int fast_alpha;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "gather_prescatter_coefficients_size", + "name": "needs_rebuild", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int gather_prescatter_coefficients_size" + "source_text": "int needs_rebuild" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 964, + "line": 589, "column": 3, - "source_line": " int gather_prescatter_coefficients_size;" + "source_line": " int needs_rebuild;" }, "callback_policy": null, "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:941:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 941, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 941, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3019, - "column": 1, - "source_line": "static int stbir__get_coefficient_width(stbir__sampler * samp, int is_gather, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3019, - "column": 1, - "source_line": "static int stbir__get_coefficient_width(stbir__sampler * samp, int is_gather, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3036, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_contributors", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3038, - "column": 1, - "source_line": "static int stbir__get_contributors(stbir__sampler * samp, int is_gather)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3038, - "column": 1, - "source_line": "static int stbir__get_contributors(stbir__sampler * samp, int is_gather)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3044, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__edge_zero_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3046, - "column": 1, - "source_line": "static int stbir__edge_zero_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3046, - "column": 1, - "source_line": "static int stbir__edge_zero_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3051, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__edge_clamp_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3053, - "column": 1, - "source_line": "static int stbir__edge_clamp_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3053, - "column": 1, - "source_line": "static int stbir__edge_clamp_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3062, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__edge_reflect_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3064, - "column": 1, - "source_line": "static int stbir__edge_reflect_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3064, - "column": 1, - "source_line": "static int stbir__edge_reflect_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__edge_wrap_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3086, - "column": 1, - "source_line": "static int stbir__edge_wrap_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3086, - "column": 1, - "source_line": "static int stbir__edge_wrap_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3099, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_extents", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline_extents", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__extents * scanline_extents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__extents", - "name": "stbir__extents", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "conservative", - "type": { - "reference": "stbir__contributors" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 969, - "column": 3, - "source_line": " stbir__contributors conservative;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "edge_sizes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int edge_sizes[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 970, - "column": 3, - "source_line": " int edge_sizes[2]; // this can be less than filter_pixel_margin, if the filter and scaling falls off" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "spans", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__span spans[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__span", - "name": "stbir__span", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 925, - "column": 3, - "source_line": " int n0; // First pixel of decode buffer to write to" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 926, - "column": 3, - "source_line": " int n1; // Last pixel of decode that will be written to" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pixel_offset_for_input", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pixel_offset_for_input" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 927, - "column": 3, - "source_line": " int pixel_offset_for_input; // Pixel offset into input_scanline" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:923:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 923, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 923, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 971, - "column": 3, - "source_line": " stbir__span spans[2]; // can be two spans, if doing input subrect with clamp mode WRAP" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:967:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 967, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 967, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__extents * scanline_extents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__extents" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3121, - "column": 1, - "source_line": "static void stbir__get_extents( stbir__sampler * samp, stbir__extents * scanline_extents )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3121, - "column": 1, - "source_line": "static void stbir__get_extents( stbir__sampler * samp, stbir__extents * scanline_extents )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3291, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__calculate_in_pixel_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "first_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "last_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_pixel_center", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_pixel_center" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_pixel_center" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_filter_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inv_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float inv_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float inv_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_shift", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3293, - "column": 1, - "source_line": "static void stbir__calculate_in_pixel_range( int * first_pixel, int * last_pixel, float out_pixel_center, float out_filter_radius, float inv_scale, float out_shift, int input_size, stbir_edge edge )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3293, - "column": 1, - "source_line": "static void stbir__calculate_in_pixel_range( int * first_pixel, int * last_pixel, float out_pixel_center, float out_filter_radius, float inv_scale, float out_shift, int input_size, stbir_edge edge )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3316, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__calculate_coefficients_for_gather_upsample", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_filter_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3318, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_upsample( float out_filter_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float* coefficient_group, int coefficient_width, stbir_edge edge, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3318, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_upsample( float out_filter_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float* coefficient_group, int coefficient_width, stbir_edge edge, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3378, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__insert_coeff", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "contribs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coeffs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_pixel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_coeff", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float new_coeff" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float new_coeff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3380, - "column": 1, - "source_line": "static void stbir__insert_coeff( stbir__contributors * contribs, float * coeffs, int new_pixel, float new_coeff, int max_width )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3380, - "column": 1, - "source_line": "static void stbir__insert_coeff( stbir__contributors * contribs, float * coeffs, int new_pixel, float new_coeff, int max_width )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3420, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__calculate_out_pixel_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "first_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "last_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixel_center", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixel_center" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixel_center" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixels_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_shift", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_size" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3422, - "column": 1, - "source_line": "static void stbir__calculate_out_pixel_range( int * first_pixel, int * last_pixel, float in_pixel_center, float in_pixels_radius, float scale, float out_shift, int out_size )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3422, - "column": 1, - "source_line": "static void stbir__calculate_out_pixel_range( int * first_pixel, int * last_pixel, float in_pixel_center, float in_pixels_radius, float scale, float out_shift, int out_size )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3437, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__calculate_coefficients_for_gather_downsample", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixels_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3439, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_downsample( int start, int end, float in_pixels_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int coefficient_width, int num_contributors, stbir__contributors * contributors, float * coefficient_group, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3439, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_downsample( int start, int end, float in_pixels_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int coefficient_width, int num_contributors, stbir__contributors * contributors, float * coefficient_group, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3515, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__cleanup_gathered_coefficients", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__filter_extent_info * filter_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__filter_extent_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__filter_extent_info * filter_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__filter_extent_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3523, - "column": 1, - "source_line": "static void stbir__cleanup_gathered_coefficients( stbir_edge edge, stbir__filter_extent_info* filter_info, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float * coefficient_group, int coefficient_width )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3523, - "column": 1, - "source_line": "static void stbir__cleanup_gathered_coefficients( stbir_edge edge, stbir__filter_extent_info* filter_info, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float * coefficient_group, int coefficient_width )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3692, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__pack_coefficients", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficents", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "widest", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int widest" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int widest" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "row0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "row1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3696, - "column": 1, - "source_line": "static int stbir__pack_coefficients( int num_contributors, stbir__contributors* contributors, float * coefficents, int coefficient_width, int widest, int row0, int row1 ) " - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3696, - "column": 1, - "source_line": "static int stbir__pack_coefficients( int num_contributors, stbir__contributors* contributors, float * coefficents, int coefficient_width, int widest, int row0, int row1 ) " - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3929, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__fancy_alpha_weight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4138, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_4ch( float * out_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4138, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_4ch( float * out_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4232, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__fancy_alpha_weight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4234, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_2ch( float * out_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4234, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_2ch( float * out_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4302, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__fancy_alpha_unweight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4304, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4304, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4351, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__fancy_alpha_unweight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4354, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4354, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4370, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__simple_alpha_weight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4372, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_4ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4372, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_4ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4426, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__simple_alpha_weight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4428, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_2ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4428, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_2ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4461, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__simple_alpha_unweight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4463, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4463, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4494, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__simple_alpha_unweight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4496, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4496, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4507, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__simple_flip_3ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4511, - "column": 1, - "source_line": "static void stbir__simple_flip_3ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4511, - "column": 1, - "source_line": "static void stbir__simple_flip_3ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4606, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_ring_buffer_entry", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__info", - "name": "stbir__info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbir__info", - "members": [ - { - "name": "profile", - "type": { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "named", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "total", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 total", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "build", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 build", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alloc", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 alloc", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 horizontal", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 vertical", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cleanup", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 cleanup", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pivot", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 pivot", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 14, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:1015:5", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 5, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1015, - "column": 5, - "source_line": " struct { stbir_uint64 total, build, alloc, horizontal, vertical, cleanup, pivot; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "array", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint64 array[7]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "7", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1016, - "column": 5, - "source_line": " stbir_uint64 array[7];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "union@stb/stb_image_resize2.h:1013:3", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1013, - "column": 3, - "source_line": " union" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1013, - "column": 3, - "source_line": " union" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "current_zone_excluded_ptr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint64 * current_zone_excluded_ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64", - "name": "stbir_uint64", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "typedef uint64_t stbir_uint64", - "name": "uint64_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 402, - "column": 1, - "source_line": "typedef uint64_t stbir_uint64;" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1018, - "column": 3, - "source_line": " stbir_uint64 * current_zone_excluded_ptr;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal", - "type": { - "reference": "stbir__sampler" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1020, - "column": 3, - "source_line": " stbir__sampler horizontal;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical", - "type": { - "reference": "stbir__sampler" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1021, - "column": 3, - "source_line": " stbir__sampler vertical;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * input_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1023, - "column": 3, - "source_line": " void const * input_data;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * output_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1024, - "column": 3, - "source_line": " void * output_data;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_stride_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_bytes" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1026, - "column": 3, - "source_line": " int input_stride_bytes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_stride_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_bytes" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1027, - "column": 3, - "source_line": " int output_stride_bytes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer_length_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ring_buffer_length_bytes" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1028, - "column": 3, - "source_line": " int ring_buffer_length_bytes; // The length of an individual entry in the ring buffer. The total number of ring buffers is stbir__get_filter_pixel_width(filter)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer_num_entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ring_buffer_num_entries" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1029, - "column": 3, - "source_line": " int ring_buffer_num_entries; // Total number of entries in the ring buffer." - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_type", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_datatype", - "name": "stbir_datatype", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBIR_TYPE_UINT8", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_TYPE_UINT8_SRGB", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_TYPE_UINT8_SRGB_ALPHA", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_TYPE_UINT16", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_TYPE_FLOAT", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_TYPE_HALF_FLOAT", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image_resize2.h:515:1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1031, - "column": 3, - "source_line": " stbir_datatype input_type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_type", - "type": { - "reference": "stbir_datatype" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1032, - "column": 3, - "source_line": " stbir_datatype output_type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "in_pixels_cb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_input_callback * in_pixels_cb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_input_callback", - "name": "stbir_input_callback", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void const * stbir_input_callback( void * optional_output, void const * input_ptr, int num_pixels, int x, int y, void * context )", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * optional_output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * input_ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_pixels" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 562, - "column": 1, - "source_line": "typedef void const * stbir_input_callback( void * optional_output, void const * input_ptr, int num_pixels, int x, int y, void * context );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1034, - "column": 3, - "source_line": " stbir_input_callback * in_pixels_cb;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1035, - "column": 3, - "source_line": " void * user_data;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "out_pixels_cb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_output_callback * out_pixels_cb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_output_callback", - "name": "stbir_output_callback", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir_output_callback( void const * output_ptr, int num_pixels, int y, void * context )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * output_ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_pixels" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 565, - "column": 1, - "source_line": "typedef void stbir_output_callback( void const * output_ptr, int num_pixels, int y, void * context );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1036, - "column": 3, - "source_line": " stbir_output_callback * out_pixels_cb;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scanline_extents", - "type": { - "reference": "stbir__extents" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1038, - "column": 3, - "source_line": " stbir__extents scanline_extents;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alloced_mem", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * alloced_mem", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1040, - "column": 3, - "source_line": " void * alloced_mem;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__per_split_info", - "name": "stbir__per_split_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "profile", - "type": { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "named", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "total", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 total", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "looping", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 looping", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 vertical", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 horizontal", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "decode", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 decode", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "encode", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 encode", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alpha", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 alpha", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "unalpha", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64 unalpha", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 14, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:979:5", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 5, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 979, - "column": 5, - "source_line": " struct { stbir_uint64 total, looping, vertical, horizontal, decode, encode, alpha, unalpha; } named;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "array", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint64 array[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint64", - "name": "stbir_uint64", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 980, - "column": 5, - "source_line": " stbir_uint64 array[8];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "union@stb/stb_image_resize2.h:977:3", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 977, - "column": 3, - "source_line": " union" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 977, - "column": 3, - "source_line": " union" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "current_zone_excluded_ptr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint64 * current_zone_excluded_ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint64" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 982, - "column": 3, - "source_line": " stbir_uint64 * current_zone_excluded_ptr;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 984, - "column": 3, - "source_line": " float* decode_buffer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer_first_scanline", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ring_buffer_first_scanline" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 986, - "column": 3, - "source_line": " int ring_buffer_first_scanline;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer_last_scanline", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ring_buffer_last_scanline" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 987, - "column": 3, - "source_line": " int ring_buffer_last_scanline;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer_begin_index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ring_buffer_begin_index" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 988, - "column": 3, - "source_line": " int ring_buffer_begin_index; // first_scanline is at this index in the ring buffer" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_output_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_output_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 989, - "column": 3, - "source_line": " int start_output_y, end_output_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "end_output_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end_output_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 989, - "column": 3, - "source_line": " int start_output_y, end_output_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_input_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_input_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 990, - "column": 3, - "source_line": " int start_input_y, end_input_y; // used in scatter only" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "end_input_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end_input_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 990, - "column": 3, - "source_line": " int start_input_y, end_input_y; // used in scatter only" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float ** ring_buffers", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 993, - "column": 5, - "source_line": " float** ring_buffers; // one pointer for each ring buffer" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ring_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * ring_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 995, - "column": 5, - "source_line": " float* ring_buffer; // one big buffer that we index into" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * vertical_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 998, - "column": 3, - "source_line": " float* vertical_buffer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "no_cache_straddle", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char no_cache_straddle[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1000, - "column": 3, - "source_line": " char no_cache_straddle[64];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_resize2.h:974:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 974, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 974, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1041, - "column": 3, - "source_line": " stbir__per_split_info * split_info; // by default 1, but there will be N of these allocated based on the thread init you did" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "decode_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__decode_pixels_func * decode_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__decode_pixels_func", - "name": "stbir__decode_pixels_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef float * stbir__decode_pixels_func( float * decode, int width_times_channels, void const * input )", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1003, - "column": 1, - "source_line": "typedef float * stbir__decode_pixels_func( float * decode, int width_times_channels, void const * input );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1043, - "column": 3, - "source_line": " stbir__decode_pixels_func * decode_pixels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alpha_weight", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__alpha_weight_func * alpha_weight", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__alpha_weight_func", - "name": "stbir__alpha_weight_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir__alpha_weight_func( float * decode_buffer, int width_times_channels )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1004, - "column": 1, - "source_line": "typedef void stbir__alpha_weight_func( float * decode_buffer, int width_times_channels );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1044, - "column": 3, - "source_line": " stbir__alpha_weight_func * alpha_weight;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal_gather_channels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__horizontal_gather_channels_func * horizontal_gather_channels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__horizontal_gather_channels_func", - "name": "stbir__horizontal_gather_channels_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir__horizontal_gather_channels_func( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer,\n stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * output_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int output_sub_size" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors const * horizontal_contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * horizontal_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1005, - "column": 1, - "source_line": "typedef void stbir__horizontal_gather_channels_func( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer," - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1045, - "column": 3, - "source_line": " stbir__horizontal_gather_channels_func * horizontal_gather_channels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alpha_unweight", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__alpha_unweight_func * alpha_unweight", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__alpha_unweight_func", - "name": "stbir__alpha_unweight_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir__alpha_unweight_func(float * encode_buffer, int width_times_channels )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1007, - "column": 1, - "source_line": "typedef void stbir__alpha_unweight_func(float * encode_buffer, int width_times_channels );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1046, - "column": 3, - "source_line": " stbir__alpha_unweight_func * alpha_unweight;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "encode_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__encode_pixels_func * encode_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__encode_pixels_func", - "name": "stbir__encode_pixels_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir__encode_pixels_func( void * output, int width_times_channels, float const * encode )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * encode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1008, - "column": 1, - "source_line": "typedef void stbir__encode_pixels_func( void * output, int width_times_channels, float const * encode );" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1047, - "column": 3, - "source_line": " stbir__encode_pixels_func * encode_pixels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alloc_ring_buffer_num_entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alloc_ring_buffer_num_entries" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1049, - "column": 3, - "source_line": " int alloc_ring_buffer_num_entries; // Number of entries in the ring buffer that will be allocated" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1050, - "column": 3, - "source_line": " int splits; // count of splits" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_pixel_layout_internal", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_internal_pixel_layout", - "name": "stbir_internal_pixel_layout", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBIRI_1CHANNEL", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_2CHANNEL", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_RGB", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_BGR", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_4CHANNEL", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_RGBA", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_BGRA", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_ARGB", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_ABGR", - "value": "8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_RA", - "value": "9", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_AR", - "value": "10", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_RGBA_PM", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_BGRA_PM", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_ARGB_PM", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_ABGR_PM", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_RA_PM", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIRI_AR_PM", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image_resize2.h:861:1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1052, - "column": 3, - "source_line": " stbir_internal_pixel_layout input_pixel_layout_internal;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_pixel_layout_internal", - "type": { - "reference": "stbir_internal_pixel_layout" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1053, - "column": 3, - "source_line": " stbir_internal_pixel_layout output_pixel_layout_internal;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_color_and_type", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_color_and_type" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1055, - "column": 3, - "source_line": " int input_color_and_type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "offset_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1056, - "column": 3, - "source_line": " int offset_x, offset_y; // offset within output_data" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "offset_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1056, - "column": 3, - "source_line": " int offset_x, offset_y; // offset within output_data" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_first", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_first" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1057, - "column": 3, - "source_line": " int vertical_first;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1058, - "column": 3, - "source_line": " int channels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "effective_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int effective_channels" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1059, - "column": 3, - "source_line": " int effective_channels; // same as channels, except on RGBA/ARGB (7), or XA/AX (3)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alloced_total", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t alloced_total", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1060, - "column": 3, - "source_line": " size_t alloced_total;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1010, - "column": 1, - "source_line": "struct stbir__info" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 572, - "column": 1, - "source_line": "typedef struct stbir__info stbir__info;" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6218, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_entry(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int index )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6218, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_entry(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int index )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6227, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_ring_buffer_scanline", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "get_scanline", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int get_scanline" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int get_scanline" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6230, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_scanline(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int get_scanline)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6230, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_scanline(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int get_scanline)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6234, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__resample_vertical_gather", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contrib_n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contrib_n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_coefficients", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6248, - "column": 1, - "source_line": "static void stbir__resample_vertical_gather(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n, int contrib_n0, int contrib_n1, float const * vertical_coefficients )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6248, - "column": 1, - "source_line": "static void stbir__resample_vertical_gather(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n, int contrib_n0, int contrib_n1, float const * vertical_coefficients )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__decode_and_resample_for_vertical_gather_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6289, - "column": 1, - "source_line": "static void stbir__decode_and_resample_for_vertical_gather_loop(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6289, - "column": 1, - "source_line": "static void stbir__decode_and_resample_for_vertical_gather_loop(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6308, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_gather_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6310, - "column": 1, - "source_line": "static void stbir__vertical_gather_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6310, - "column": 1, - "source_line": "static void stbir__vertical_gather_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6369, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__encode_first_scanline_from_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6374, - "column": 1, - "source_line": "static void stbir__encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6374, - "column": 1, - "source_line": "static void stbir__encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6389, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__horizontal_resample_and_encode_first_scanline_from_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6391, - "column": 1, - "source_line": "static void stbir__horizontal_resample_and_encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6391, - "column": 1, - "source_line": "static void stbir__horizontal_resample_and_encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6410, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__resample_vertical_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_coefficients", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_buffer_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6412, - "column": 1, - "source_line": "static void stbir__resample_vertical_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n0, int n1, float const * vertical_coefficients, float const * vertical_buffer, float const * vertical_buffer_end )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6412, - "column": 1, - "source_line": "static void stbir__resample_vertical_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n0, int n1, float const * vertical_coefficients, float const * vertical_buffer, float const * vertical_buffer_end )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6440, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_scatter_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6444, - "column": 1, - "source_line": "static void stbir__vertical_scatter_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6444, - "column": 1, - "source_line": "static void stbir__vertical_scatter_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6567, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__set_sampler", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter", - "type": { - "reference": "stbir_filter" - }, - "declared_type": { - "reference": "stbir_filter" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "support", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "always_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int always_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int always_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6573, - "column": 1, - "source_line": "static void stbir__set_sampler(stbir__sampler * samp, stbir_filter filter, stbir__kernel_callback * kernel, stbir__support_callback * support, stbir_edge edge, stbir__scale_info * scale_info, int always_gather, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6573, - "column": 1, - "source_line": "static void stbir__set_sampler(stbir__sampler * samp, stbir_filter filter, stbir__kernel_callback * kernel, stbir__support_callback * support, stbir_edge edge, stbir__scale_info * scale_info, int always_gather, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6653, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_conservative_extents", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "range", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * range", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * range", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6655, - "column": 1, - "source_line": "static void stbir__get_conservative_extents( stbir__sampler * samp, stbir__contributors * range, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6655, - "column": 1, - "source_line": "static void stbir__get_conservative_extents( stbir__sampler * samp, stbir__contributors * range, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6745, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_split_info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_pixel_margin", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_pixel_margin" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_pixel_margin" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_full_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contribs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6747, - "column": 1, - "source_line": "static void stbir__get_split_info( stbir__per_split_info* split_info, int splits, int output_height, int vertical_pixel_margin, int input_full_height, int is_gather, stbir__contributors * contribs )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6747, - "column": 1, - "source_line": "static void stbir__get_split_info( stbir__per_split_info* split_info, int splits, int output_height, int vertical_pixel_margin, int input_full_height, int is_gather, stbir__contributors * contribs )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6815, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__free_internal_mem", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6817, - "column": 1, - "source_line": "static void stbir__free_internal_mem( stbir__info *info )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6817, - "column": 1, - "source_line": "static void stbir__free_internal_mem( stbir__info *info )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6866, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__get_max_split", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6868, - "column": 1, - "source_line": "static int stbir__get_max_split( int splits, int height )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6868, - "column": 1, - "source_line": "static int stbir__get_max_split( int splits, int height )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6881, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__should_do_vertical_first", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "weights_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBIR_RESIZE_CLASSIFICATIONS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_filter_pixel_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_filter_pixel_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_filter_pixel_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float horizontal_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float horizontal_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_output_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_output_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_output_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_filter_pixel_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_filter_pixel_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_filter_pixel_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float vertical_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float vertical_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_output_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_output_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_output_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR__V_FIRST_INFO * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBIR__V_FIRST_INFO", - "name": "STBIR__V_FIRST_INFO", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "STBIR__V_FIRST_INFO", - "members": [ - { - "name": "v_cost", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double v_cost" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6949, - "column": 3, - "source_line": " double v_cost, h_cost;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "h_cost", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double h_cost" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6949, - "column": 3, - "source_line": " double v_cost, h_cost;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "control_v_first", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int control_v_first" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6950, - "column": 3, - "source_line": " int control_v_first; // 0 = no control, 1 = force hori, 2 = force vert" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "v_first", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_first" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6951, - "column": 3, - "source_line": " int v_first;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "v_resize_classification", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_resize_classification" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6952, - "column": 3, - "source_line": " int v_resize_classification;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6953, - "column": 3, - "source_line": " int is_gather;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6947, - "column": 1, - "source_line": "typedef struct STBIR__V_FIRST_INFO" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6947, - "column": 1, - "source_line": "typedef struct STBIR__V_FIRST_INFO" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR__V_FIRST_INFO * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR__V_FIRST_INFO" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6985, - "column": 1, - "source_line": "static int stbir__should_do_vertical_first( float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4], int horizontal_filter_pixel_width, float horizontal_scale, int horizontal_output_size, int vertical_filter_pixel_width, float vertical_scale, int vertical_output_size, int is_gather, STBIR__V_FIRST_INFO * info )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6985, - "column": 1, - "source_line": "static int stbir__should_do_vertical_first( float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4], int horizontal_filter_pixel_width, float horizontal_scale, int horizontal_output_size, int vertical_filter_pixel_width, float vertical_scale, int vertical_output_size, int is_gather, STBIR__V_FIRST_INFO * info )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7031, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__perform_resize", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7380, - "column": 1, - "source_line": "static int stbir__perform_resize( stbir__info const * info, int split_start, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7380, - "column": 1, - "source_line": "static int stbir__perform_resize( stbir__info const * info, int split_start, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7394, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__update_info_from_resize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBIR_RESIZE", - "name": "STBIR_RESIZE", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "STBIR_RESIZE", - "members": [ - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 576, - "column": 3, - "source_line": " void * user_data;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * input_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 577, - "column": 3, - "source_line": " void const * input_pixels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 578, - "column": 3, - "source_line": " int input_w, input_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 578, - "column": 3, - "source_line": " int input_w, input_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_s0", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 579, - "column": 3, - "source_line": " double input_s0, input_t0, input_s1, input_t1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_t0", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_t0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 579, - "column": 3, - "source_line": " double input_s0, input_t0, input_s1, input_t1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_s1", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 579, - "column": 3, - "source_line": " double input_s0, input_t0, input_s1, input_t1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_t1", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_t1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 579, - "column": 3, - "source_line": " double input_s0, input_t0, input_s1, input_t1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_cb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_input_callback * input_cb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_input_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 580, - "column": 3, - "source_line": " stbir_input_callback * input_cb;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * output_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 581, - "column": 3, - "source_line": " void * output_pixels;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 582, - "column": 3, - "source_line": " int output_w, output_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 582, - "column": 3, - "source_line": " int output_w, output_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_subx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_subx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 583, - "column": 3, - "source_line": " int output_subx, output_suby, output_subw, output_subh;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_suby", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_suby" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 583, - "column": 3, - "source_line": " int output_subx, output_suby, output_subw, output_subh;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_subw", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_subw" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 583, - "column": 3, - "source_line": " int output_subx, output_suby, output_subw, output_subh;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_subh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_subh" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 583, - "column": 3, - "source_line": " int output_subx, output_suby, output_subw, output_subh;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_cb", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_output_callback * output_cb", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_output_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 584, - "column": 3, - "source_line": " stbir_output_callback * output_cb;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_in_bytes" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 585, - "column": 3, - "source_line": " int input_stride_in_bytes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_in_bytes" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 586, - "column": 3, - "source_line": " int output_stride_in_bytes;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 587, - "column": 3, - "source_line": " int splits;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fast_alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int fast_alpha" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 588, - "column": 3, - "source_line": " int fast_alpha;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "needs_rebuild", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int needs_rebuild" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 589, - "column": 3, - "source_line": " int needs_rebuild;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "called_alloc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int called_alloc" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 590, - "column": 3, - "source_line": " int called_alloc;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_pixel_layout_public", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_pixel_layout", - "name": "stbir_pixel_layout", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBIR_1CHANNEL", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_2CHANNEL", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RGB", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_BGR", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_4CHANNEL", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RGBA", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_BGRA", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ARGB", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ABGR", - "value": "8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RA", - "value": "9", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_AR", - "value": "10", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RGBA_PM", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_BGRA_PM", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ARGB_PM", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ABGR_PM", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RA_PM", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_AR_PM", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RGBA_NO_AW", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_BGRA_NO_AW", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ARGB_NO_AW", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_ABGR_NO_AW", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_RA_NO_AW", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - { - "name": "STBIR_AR_NO_AW", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - } - ], - "anonymous_id": "enum@stb/stb_image_resize2.h:435:1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 591, - "column": 3, - "source_line": " stbir_pixel_layout input_pixel_layout_public;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_pixel_layout_public", - "type": { - "reference": "stbir_pixel_layout" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 592, - "column": 3, - "source_line": " stbir_pixel_layout output_pixel_layout_public;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "input_data_type", - "type": { - "reference": "stbir_datatype" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 593, - "column": 3, - "source_line": " stbir_datatype input_data_type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "output_data_type", - "type": { - "reference": "stbir_datatype" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 594, - "column": 3, - "source_line": " stbir_datatype output_data_type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal_filter", - "type": { - "reference": "stbir_filter" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 595, - "column": 3, - "source_line": " stbir_filter horizontal_filter, vertical_filter;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_filter", - "type": { - "reference": "stbir_filter" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 595, - "column": 3, - "source_line": " stbir_filter horizontal_filter, vertical_filter;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal_edge", - "type": { - "reference": "stbir_edge" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 596, - "column": 3, - "source_line": " stbir_edge horizontal_edge, vertical_edge;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_edge", - "type": { - "reference": "stbir_edge" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 596, - "column": 3, - "source_line": " stbir_edge horizontal_edge, vertical_edge;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal_filter_kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * horizontal_filter_kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 597, - "column": 3, - "source_line": " stbir__kernel_callback * horizontal_filter_kernel; stbir__support_callback * horizontal_filter_support;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "horizontal_filter_support", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * horizontal_filter_support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 597, - "column": 54, - "source_line": " stbir__kernel_callback * horizontal_filter_kernel; stbir__support_callback * horizontal_filter_support;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_filter_kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * vertical_filter_kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 598, - "column": 3, - "source_line": " stbir__kernel_callback * vertical_filter_kernel; stbir__support_callback * vertical_filter_support;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "vertical_filter_support", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * vertical_filter_support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 598, - "column": 52, - "source_line": " stbir__kernel_callback * vertical_filter_kernel; stbir__support_callback * vertical_filter_support;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "samplers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info * samplers", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 599, - "column": 3, - "source_line": " stbir__info * samplers;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 574, - "column": 1, - "source_line": "typedef struct STBIR_RESIZE // use the stbir_resize_init and stbir_override functions to set these values for future compatibility" - } - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 574, - "column": 1, - "source_line": "typedef struct STBIR_RESIZE // use the stbir_resize_init and stbir_override functions to set these values for future compatibility" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7396, - "column": 1, - "source_line": "static void stbir__update_info_from_resize( stbir__info * info, STBIR_RESIZE * resize )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7396, - "column": 1, - "source_line": "static void stbir__update_info_from_resize( stbir__info * info, STBIR_RESIZE * resize )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7543, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__clip", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "outx", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "outsubw", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outsubw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outsubw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "outw", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outw" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outw" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "u0", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u0", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u0", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "u1", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7545, - "column": 1, - "source_line": "static void stbir__clip( int * outx, int * outsubw, int outw, double * u0, double * u1 )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7545, - "column": 1, - "source_line": "static void stbir__clip( int * outx, int * outsubw, int outw, double * u0, double * u1 )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7568, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__double_to_rational", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double f" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double f" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit", - "type": { - "reference": "stbir_uint32" - }, - "declared_type": { - "reference": "stbir_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *numer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *numer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "denom", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *denom", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *denom", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit_denom", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit_denom" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit_denom" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7571, - "column": 1, - "source_line": "static int stbir__double_to_rational(double f, stbir_uint32 limit, stbir_uint32 *numer, stbir_uint32 *denom, int limit_denom ) // limit_denom (1) or limit numer (0)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7571, - "column": 1, - "source_line": "static int stbir__double_to_rational(double f, stbir_uint32 limit, stbir_uint32 *numer, stbir_uint32 *denom, int limit_denom ) // limit_denom (1) or limit numer (0)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7646, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__calculate_region_transform", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_full_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_full_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_full_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_offset", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * output_offset", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * output_offset", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_sub_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_sub_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_sub_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_full_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_s0", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s0" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_s1", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s1" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7648, - "column": 1, - "source_line": "static int stbir__calculate_region_transform( stbir__scale_info * scale_info, int output_full_range, int * output_offset, int output_sub_range, int input_full_range, double input_s0, double input_s1 )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7648, - "column": 1, - "source_line": "static int stbir__calculate_region_transform( stbir__scale_info * scale_info, int output_full_range, int * output_offset, int output_sub_range, int input_full_range, double input_s0, double input_s1 )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7695, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__init_and_set_layout", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pixel_layout", - "type": { - "reference": "stbir_pixel_layout" - }, - "declared_type": { - "reference": "stbir_pixel_layout" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_type", - "type": { - "reference": "stbir_datatype" - }, - "declared_type": { - "reference": "stbir_datatype" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7698, - "column": 1, - "source_line": "static void stbir__init_and_set_layout( STBIR_RESIZE * resize, stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7698, - "column": 1, - "source_line": "static void stbir__init_and_set_layout( STBIR_RESIZE * resize, stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7718, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir__perform_build", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7876, - "column": 1, - "source_line": "static int stbir__perform_build( STBIR_RESIZE * resize, int splits )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7876, - "column": 1, - "source_line": "static int stbir__perform_build( STBIR_RESIZE * resize, int splits )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7947, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbir_quick_resize_helper", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "input_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *input_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *input_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *output_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *output_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pixel_layout", - "type": { - "reference": "stbir_pixel_layout" - }, - "declared_type": { - "reference": "stbir_pixel_layout" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_type", - "type": { - "reference": "stbir_datatype" - }, - "declared_type": { - "reference": "stbir_datatype" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter", - "type": { - "reference": "stbir_filter" - }, - "declared_type": { - "reference": "stbir_filter" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8044, - "column": 1, - "source_line": "static void * stbir_quick_resize_helper( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 8044, - "column": 1, - "source_line": "static void * stbir_quick_resize_helper( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 8116, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct STBIR_RESIZE" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "STBIR_PROFILE_INFO", - "members": [ - { - "name": "total_clocks", - "type": { - "reference": "stbir_uint64" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 755, - "column": 3, - "source_line": " stbir_uint64 total_clocks;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "clocks", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint64 clocks[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_uint64" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 759, - "column": 3, - "source_line": " stbir_uint64 clocks[ 8 ];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "descriptions", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const ** descriptions", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 760, - "column": 3, - "source_line": " char const ** descriptions;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "count", - "type": { - "reference": "stbir_uint32" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 763, - "column": 3, - "source_line": " stbir_uint32 count;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 753, - "column": 1, - "source_line": "typedef struct STBIR_PROFILE_INFO" - } - }, - { - "reference": "struct@stb/stb_image_resize2.h:910:1" - }, - { - "reference": "struct@stb/stb_image_resize2.h:916:1" - }, - { - "reference": "struct@stb/stb_image_resize2.h:923:1" - }, - { - "reference": "struct stbir__scale_info" - }, - { - "reference": "struct@stb/stb_image_resize2.h:941:1" - }, - { - "reference": "struct@stb/stb_image_resize2.h:967:1" - }, - { - "reference": "struct@stb/stb_image_resize2.h:974:1" - }, - { - "reference": "struct stbir__info" - }, - { - "reference": "struct STBIR__V_FIRST_INFO" - } - ], - "unions": [ - { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "u", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int u" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1116, - "column": 3, - "source_line": " unsigned int u;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "f", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1117, - "column": 3, - "source_line": " float f;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "union@stb/stb_image_resize2.h:1114:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1114, - "column": 1, - "source_line": "typedef union" - } - }, - { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": "stbir__FP16", - "members": [ - { - "name": "u", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short u" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2228, - "column": 5, - "source_line": " unsigned short u;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2226, - "column": 3, - "source_line": " typedef union stbir__FP16" - } - }, - { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": "stbir__simdi_u32", - "members": [ - { - "name": "m128i_u32", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 m128i_u32[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_uint32" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2559, - "column": 3, - "source_line": " stbir_uint32 m128i_u32[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "m128i_i32", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int m128i_i32[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2560, - "column": 3, - "source_line": " int m128i_i32[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "m128i_i128", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__simdi m128i_i128", - "name": "stbir__simdi", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2561, - "column": 3, - "source_line": " stbir__simdi m128i_i128;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2557, - "column": 1, - "source_line": "typedef union stbir__simdi_u32" - } - } - ], - "enums": [ - { - "reference": "enum@stb/stb_image_resize2.h:435:1" - }, - { - "reference": "enum@stb/stb_image_resize2.h:495:1" - }, - { - "reference": "enum@stb/stb_image_resize2.h:503:1" - }, - { - "reference": "enum@stb/stb_image_resize2.h:515:1" - }, - { - "reference": "enum@stb/stb_image_resize2.h:861:1" - } - ], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint8", - "name": "stbir_uint8", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "typedef unsigned char stbir_uint8" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 393, - "column": 1, - "source_line": "typedef unsigned char stbir_uint8;" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir_uint16", - "name": "stbir_uint16", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "typedef unsigned short stbir_uint16" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 394, - "column": 1, - "source_line": "typedef unsigned short stbir_uint16;" - }, - "declaration_locations": [] - }, - { - "reference": "stbir_uint32" - }, - { - "reference": "stbir_uint64" - }, - { - "reference": "stbir_pixel_layout" - }, - { - "reference": "stbir_edge" - }, - { - "reference": "stbir_filter" - }, - { - "reference": "stbir_datatype" - }, - { - "reference": "stbir_input_callback" - }, - { - "reference": "stbir_output_callback" - }, - { - "reference": "stbir__kernel_callback" - }, - { - "reference": "stbir__support_callback" - }, - { - "reference": "stbir__info" - }, - { - "reference": "STBIR_RESIZE" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBIR_PROFILE_INFO", - "name": "STBIR_PROFILE_INFO", - "type": { - "reference": "struct STBIR_PROFILE_INFO" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 753, - "column": 1, - "source_line": "typedef struct STBIR_PROFILE_INFO" - }, - "declaration_locations": [] - }, - { - "reference": "stbir_internal_pixel_layout" - }, - { - "reference": "stbir__contributors" - }, - { - "reference": "stbir__filter_extent_info" - }, - { - "reference": "stbir__span" - }, - { - "reference": "stbir__scale_info" - }, - { - "reference": "stbir__sampler" - }, - { - "reference": "stbir__extents" - }, - { - "reference": "stbir__per_split_info" - }, - { - "reference": "stbir__decode_pixels_func" - }, - { - "reference": "stbir__alpha_weight_func" - }, - { - "reference": "stbir__horizontal_gather_channels_func" - }, - { - "reference": "stbir__alpha_unweight_func" - }, - { - "reference": "stbir__encode_pixels_func" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__FP32", - "name": "stbir__FP32", - "type": { - "reference": "union@stb/stb_image_resize2.h:1114:1" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1114, - "column": 1, - "source_line": "typedef union" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__FP16", - "name": "stbir__FP16", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "typedef __int16 stbir__FP16", - "name": "__int16", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2219, - "column": 3, - "source_line": " typedef __int16 stbir__FP16;" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__simdi_u32", - "name": "stbir__simdi_u32", - "type": { - "reference": "union stbir__simdi_u32" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2557, - "column": 1, - "source_line": "typedef union stbir__simdi_u32" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__edge_wrap_func", - "name": "stbir__edge_wrap_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef int stbir__edge_wrap_func( int n, int max )", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameter_types": [ - { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3101, - "column": 1, - "source_line": "typedef int stbir__edge_wrap_func( int n, int max );" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBIR_VERTICAL_GATHERFUNC", - "name": "STBIR_VERTICAL_GATHERFUNC", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void STBIR_VERTICAL_GATHERFUNC( float * output, float const * coeffs, float const ** inputs, float const * input0_end )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const ** inputs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * input0_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6159, - "column": 1, - "source_line": "typedef void STBIR_VERTICAL_GATHERFUNC( float * output, float const * coeffs, float const ** inputs, float const * input0_end );" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBIR_VERTICAL_SCATTERFUNC", - "name": "STBIR_VERTICAL_SCATTERFUNC", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void STBIR_VERTICAL_SCATTERFUNC( float ** outputs, float const * coeffs, float const * input, float const * input_end )", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float ** outputs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * input", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * input_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6171, - "column": 1, - "source_line": "typedef void STBIR_VERTICAL_SCATTERFUNC( float ** outputs, float const * coeffs, float const * input, float const * input_end );" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbir__handle_scanline_for_scatter_func", - "name": "stbir__handle_scanline_for_scatter_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbir__handle_scanline_for_scatter_func(stbir__info const * stbir_info, stbir__per_split_info* split_info)", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6442, - "column": 1, - "source_line": "typedef void stbir__handle_scanline_for_scatter_func(stbir__info const * stbir_info, stbir__per_split_info* split_info);" - }, - "declaration_locations": [] - }, - { - "reference": "STBIR__V_FIRST_INFO" - } - ], - "variables": [ - { - "name": "stbir__type_size", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbir__type_size[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1,1,1,2,4,2 \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 904, - "column": 1, - "source_line": "static unsigned char stbir__type_size[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__srgb_uchar_to_linear_float", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbir__srgb_uchar_to_linear_float[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0.000000f, 0.000304f, 0.000607f, 0.000911f, 0.001214f, 0.001518f, 0.001821f, 0.002125f, 0.002428f, 0.002732f, 0.003035f,\n 0.003347f, 0.003677f, 0.004025f, 0.004391f, 0.004777f, 0.005182f, 0.005605f, 0.006049f, 0.006512f, 0.006995f, 0.007499f,\n 0.008023f, 0.008568f, 0.009134f, 0.009721f, 0.010330f, 0.010960f, 0.011612f, 0.012286f, 0.012983f, 0.013702f, 0.014444f,\n 0.015209f, 0.015996f, 0.016807f, 0.017642f, 0.018500f, 0.019382f, 0.020289f, 0.021219f, 0.022174f, 0.023153f, 0.024158f,\n 0.025187f, 0.026241f, 0.027321f, 0.028426f, 0.029557f, 0.030713f, 0.031896f, 0.033105f, 0.034340f, 0.035601f, 0.036889f,\n 0.038204f, 0.039546f, 0.040915f, 0.042311f, 0.043735f, 0.045186f, 0.046665f, 0.048172f, 0.049707f, 0.051269f, 0.052861f,\n 0.054480f, 0.056128f, 0.057805f, 0.059511f, 0.061246f, 0.063010f, 0.064803f, 0.066626f, 0.068478f, 0.070360f, 0.072272f,\n 0.074214f, 0.076185f, 0.078187f, 0.080220f, 0.082283f, 0.084376f, 0.086500f, 0.088656f, 0.090842f, 0.093059f, 0.095307f,\n 0.097587f, 0.099899f, 0.102242f, 0.104616f, 0.107023f, 0.109462f, 0.111932f, 0.114435f, 0.116971f, 0.119538f, 0.122139f,\n 0.124772f, 0.127438f, 0.130136f, 0.132868f, 0.135633f, 0.138432f, 0.141263f, 0.144128f, 0.147027f, 0.149960f, 0.152926f,\n 0.155926f, 0.158961f, 0.162029f, 0.165132f, 0.168269f, 0.171441f, 0.174647f, 0.177888f, 0.181164f, 0.184475f, 0.187821f,\n 0.191202f, 0.194618f, 0.198069f, 0.201556f, 0.205079f, 0.208637f, 0.212231f, 0.215861f, 0.219526f, 0.223228f, 0.226966f,\n 0.230740f, 0.234551f, 0.238398f, 0.242281f, 0.246201f, 0.250158f, 0.254152f, 0.258183f, 0.262251f, 0.266356f, 0.270498f,\n 0.274677f, 0.278894f, 0.283149f, 0.287441f, 0.291771f, 0.296138f, 0.300544f, 0.304987f, 0.309469f, 0.313989f, 0.318547f,\n 0.323143f, 0.327778f, 0.332452f, 0.337164f, 0.341914f, 0.346704f, 0.351533f, 0.356400f, 0.361307f, 0.366253f, 0.371238f,\n 0.376262f, 0.381326f, 0.386430f, 0.391573f, 0.396755f, 0.401978f, 0.407240f, 0.412543f, 0.417885f, 0.423268f, 0.428691f,\n 0.434154f, 0.439657f, 0.445201f, 0.450786f, 0.456411f, 0.462077f, 0.467784f, 0.473532f, 0.479320f, 0.485150f, 0.491021f,\n 0.496933f, 0.502887f, 0.508881f, 0.514918f, 0.520996f, 0.527115f, 0.533276f, 0.539480f, 0.545725f, 0.552011f, 0.558340f,\n 0.564712f, 0.571125f, 0.577581f, 0.584078f, 0.590619f, 0.597202f, 0.603827f, 0.610496f, 0.617207f, 0.623960f, 0.630757f,\n 0.637597f, 0.644480f, 0.651406f, 0.658375f, 0.665387f, 0.672443f, 0.679543f, 0.686685f, 0.693872f, 0.701102f, 0.708376f,\n 0.715694f, 0.723055f, 0.730461f, 0.737911f, 0.745404f, 0.752942f, 0.760525f, 0.768151f, 0.775822f, 0.783538f, 0.791298f,\n 0.799103f, 0.806952f, 0.814847f, 0.822786f, 0.830770f, 0.838799f, 0.846873f, 0.854993f, 0.863157f, 0.871367f, 0.879622f,\n 0.887923f, 0.896269f, 0.904661f, 0.913099f, 0.921582f, 0.930111f, 0.938686f, 0.947307f, 0.955974f, 0.964686f, 0.973445f,\n 0.982251f, 0.991102f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1087, - "column": 1, - "source_line": "static float stbir__srgb_uchar_to_linear_float[256] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fp32_to_srgb8_tab4", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbir_uint32 fp32_to_srgb8_tab4[104]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "104", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_uint32" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0x0073000d, 0x007a000d, 0x0080000d, 0x0087000d, 0x008d000d, 0x0094000d, 0x009a000d, 0x00a1000d,\n 0x00a7001a, 0x00b4001a, 0x00c1001a, 0x00ce001a, 0x00da001a, 0x00e7001a, 0x00f4001a, 0x0101001a,\n 0x010e0033, 0x01280033, 0x01410033, 0x015b0033, 0x01750033, 0x018f0033, 0x01a80033, 0x01c20033,\n 0x01dc0067, 0x020f0067, 0x02430067, 0x02760067, 0x02aa0067, 0x02dd0067, 0x03110067, 0x03440067,\n 0x037800ce, 0x03df00ce, 0x044600ce, 0x04ad00ce, 0x051400ce, 0x057b00c5, 0x05dd00bc, 0x063b00b5,\n 0x06970158, 0x07420142, 0x07e30130, 0x087b0120, 0x090b0112, 0x09940106, 0x0a1700fc, 0x0a9500f2,\n 0x0b0f01cb, 0x0bf401ae, 0x0ccb0195, 0x0d950180, 0x0e56016e, 0x0f0d015e, 0x0fbc0150, 0x10630143,\n 0x11070264, 0x1238023e, 0x1357021d, 0x14660201, 0x156601e9, 0x165a01d3, 0x174401c0, 0x182401af,\n 0x18fe0331, 0x1a9602fe, 0x1c1502d2, 0x1d7e02ad, 0x1ed4028d, 0x201a0270, 0x21520256, 0x227d0240,\n 0x239f0443, 0x25c003fe, 0x27bf03c4, 0x29a10392, 0x2b6a0367, 0x2d1d0341, 0x2ebe031f, 0x304d0300,\n 0x31d105b0, 0x34a80555, 0x37520507, 0x39d504c5, 0x3c37048b, 0x3e7c0458, 0x40a8042a, 0x42bd0401,\n 0x44c20798, 0x488e071e, 0x4c1c06b6, 0x4f76065d, 0x52a50610, 0x55ac05cc, 0x5892058f, 0x5b590559,\n 0x5e0c0a23, 0x631c0980, 0x67db08f6, 0x6c55087f, 0x70940818, 0x74a007bd, 0x787d076c, 0x7c330723,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1122, - "column": 1, - "source_line": "static const stbir_uint32 fp32_to_srgb8_tab4[104] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir_00001111", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static __m256i stbir_00001111", - "name": "__m256i", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 0, 0, 0, 0 ), STBIR__CONST_4d_32i( 1, 1, 1, 1 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1625, - "column": 5, - "source_line": " static __m256i stbir_00001111 = { STBIR__CONST_4d_32i( 0, 0, 0, 0 ), STBIR__CONST_4d_32i( 1, 1, 1, 1 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir_22223333", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static __m256i stbir_22223333", - "name": "__m256i", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 2, 2, 2, 2 ), STBIR__CONST_4d_32i( 3, 3, 3, 3 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1628, - "column": 5, - "source_line": " static __m256i stbir_22223333 = { STBIR__CONST_4d_32i( 2, 2, 2, 2 ), STBIR__CONST_4d_32i( 3, 3, 3, 3 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir_00112233", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static __m256i stbir_00112233", - "name": "__m256i", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 0, 0, 1, 1 ), STBIR__CONST_4d_32i( 2, 2, 3, 3 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1635, - "column": 5, - "source_line": " static __m256i stbir_00112233 = { STBIR__CONST_4d_32i( 0, 0, 1, 1 ), STBIR__CONST_4d_32i( 2, 2, 3, 3 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir_load6", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "static __m256i stbir_load6", - "name": "__m256i", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4_32i( 0x80000000 ), STBIR__CONST_4d_32i( 0x80000000, 0x80000000, 0, 0 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1639, - "column": 5, - "source_line": " static __m256i stbir_load6 = { STBIR__CONST_4_32i( 0x80000000 ), STBIR__CONST_4d_32i( 0x80000000, 0x80000000, 0, 0 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "STBIR_mask", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int STBIR_mask[9]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,0,0,-1,-1,-1,0,0,0 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2564, - "column": 1, - "source_line": "static const int STBIR_mask[9] = { 0,0,0,-1,-1,-1,0,0,0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__edge_wrap_slow", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__edge_wrap_func * stbir__edge_wrap_slow[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__edge_wrap_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__edge_clamp_full, \n stbir__edge_reflect_full, \n stbir__edge_wrap_full, \n stbir__edge_zero_full, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3102, - "column": 1, - "source_line": "static stbir__edge_wrap_func * stbir__edge_wrap_slow[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_gathers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_GATHERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_gather_with_1_coeffs,stbir__vertical_gather_with_2_coeffs,stbir__vertical_gather_with_3_coeffs,stbir__vertical_gather_with_4_coeffs,stbir__vertical_gather_with_5_coeffs,stbir__vertical_gather_with_6_coeffs,stbir__vertical_gather_with_7_coeffs,stbir__vertical_gather_with_8_coeffs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6161, - "column": 1, - "source_line": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_gathers_continues", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers_continues[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_GATHERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_gather_with_1_coeffs_cont,stbir__vertical_gather_with_2_coeffs_cont,stbir__vertical_gather_with_3_coeffs_cont,stbir__vertical_gather_with_4_coeffs_cont,stbir__vertical_gather_with_5_coeffs_cont,stbir__vertical_gather_with_6_coeffs_cont,stbir__vertical_gather_with_7_coeffs_cont,stbir__vertical_gather_with_8_coeffs_cont\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6166, - "column": 1, - "source_line": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers_continues[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_scatter_sets", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_sets[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_SCATTERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_scatter_with_1_coeffs,stbir__vertical_scatter_with_2_coeffs,stbir__vertical_scatter_with_3_coeffs,stbir__vertical_scatter_with_4_coeffs,stbir__vertical_scatter_with_5_coeffs,stbir__vertical_scatter_with_6_coeffs,stbir__vertical_scatter_with_7_coeffs,stbir__vertical_scatter_with_8_coeffs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6173, - "column": 1, - "source_line": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_sets[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__vertical_scatter_blends", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_blends[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_SCATTERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_scatter_with_1_coeffs_cont,stbir__vertical_scatter_with_2_coeffs_cont,stbir__vertical_scatter_with_3_coeffs_cont,stbir__vertical_scatter_with_4_coeffs_cont,stbir__vertical_scatter_with_5_coeffs_cont,stbir__vertical_scatter_with_6_coeffs_cont,stbir__vertical_scatter_with_7_coeffs_cont,stbir__vertical_scatter_with_8_coeffs_cont\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6178, - "column": 1, - "source_line": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_blends[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__builtin_kernels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__kernel_callback * stbir__builtin_kernels[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, stbir__filter_trapezoid, stbir__filter_triangle, stbir__filter_cubic, stbir__filter_catmullrom, stbir__filter_mitchell, stbir__filter_point }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6570, - "column": 1, - "source_line": "static stbir__kernel_callback * stbir__builtin_kernels[] = { 0, stbir__filter_trapezoid, stbir__filter_triangle, stbir__filter_cubic, stbir__filter_catmullrom, stbir__filter_mitchell, stbir__filter_point };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__builtin_supports", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__support_callback * stbir__builtin_supports[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, stbir__support_trapezoid, stbir__support_one, stbir__support_two, stbir__support_two, stbir__support_two, stbir__support_zeropoint5 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6571, - "column": 1, - "source_line": "static stbir__support_callback * stbir__builtin_supports[] = { 0, stbir__support_trapezoid, stbir__support_one, stbir__support_two, stbir__support_two, stbir__support_two, stbir__support_zeropoint5 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__horizontal_gather_n_coeffs_funcs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_n_coeffs_funcs[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__horizontal_gather_channels_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0, stbir__horizontal_gather_1_channels_with_n_coeffs_funcs, stbir__horizontal_gather_2_channels_with_n_coeffs_funcs, stbir__horizontal_gather_3_channels_with_n_coeffs_funcs, stbir__horizontal_gather_4_channels_with_n_coeffs_funcs, 0,0, stbir__horizontal_gather_7_channels_with_n_coeffs_funcs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6883, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_n_coeffs_funcs[8] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__horizontal_gather_channels_funcs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_channels_funcs[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__horizontal_gather_channels_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0, stbir__horizontal_gather_1_channels_funcs, stbir__horizontal_gather_2_channels_funcs, stbir__horizontal_gather_3_channels_funcs, stbir__horizontal_gather_4_channels_funcs, 0,0, stbir__horizontal_gather_7_channels_funcs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6888, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_channels_funcs[8] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__compute_weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbir__compute_weights[5][STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBIR_RESIZE_CLASSIFICATIONS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { 1.00000f, 1.00000f, 0.31250f, 1.00000f },\n { 0.56250f, 0.59375f, 0.00000f, 0.96875f },\n { 1.00000f, 0.06250f, 0.00000f, 1.00000f },\n { 0.00000f, 0.09375f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.31250f, 1.00000f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.03125f },\n }, {\n { 0.00000f, 0.84375f, 0.00000f, 0.03125f },\n { 0.09375f, 0.93750f, 0.00000f, 0.78125f },\n { 0.87500f, 0.21875f, 0.00000f, 0.96875f },\n { 0.09375f, 0.09375f, 1.00000f, 1.00000f },\n { 0.00000f, 0.84375f, 0.00000f, 0.03125f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.53125f },\n }, {\n { 0.00000f, 0.53125f, 0.00000f, 0.03125f },\n { 0.06250f, 0.96875f, 0.00000f, 0.53125f },\n { 0.87500f, 0.18750f, 0.00000f, 0.93750f },\n { 0.00000f, 0.09375f, 1.00000f, 1.00000f },\n { 0.00000f, 0.53125f, 0.00000f, 0.03125f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.56250f },\n }, {\n { 0.00000f, 0.50000f, 0.00000f, 0.71875f },\n { 0.06250f, 0.84375f, 0.00000f, 0.87500f },\n { 1.00000f, 0.50000f, 0.50000f, 0.96875f },\n { 1.00000f, 0.09375f, 0.31250f, 0.50000f },\n { 0.00000f, 0.50000f, 0.00000f, 0.71875f },\n { 1.00000f, 0.03125f, 0.03125f, 0.53125f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.03125f, 0.18750f },\n }, {\n { 0.00000f, 0.59375f, 0.00000f, 0.96875f },\n { 0.06250f, 0.81250f, 0.06250f, 0.59375f },\n { 0.75000f, 0.43750f, 0.12500f, 0.96875f },\n { 0.87500f, 0.06250f, 0.18750f, 0.43750f },\n { 0.00000f, 0.59375f, 0.00000f, 0.96875f },\n { 0.15625f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.03125f, 0.34375f },\n }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6896, - "column": 1, - "source_line": "static float stbir__compute_weights[5][STBIR_RESIZE_CLASSIFICATIONS][4]= // 5 = 0=1chan, 1=2chan, 2=3chan, 3=4chan, 4=7chan" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "STBIR__V_FIRST_INFO_BUFFER", - "type": { - "reference": "STBIR__V_FIRST_INFO" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{0}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6957, - "column": 1, - "source_line": "static STBIR__V_FIRST_INFO STBIR__V_FIRST_INFO_BUFFER = {0};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__pixel_channels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbir__pixel_channels[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1,2,3,3,4, \n 4,4,4,4,2,2, \n 4,4,4,4,2,2, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7034, - "column": 1, - "source_line": "static unsigned char stbir__pixel_channels[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbir__pixel_layout_convert_public_to_internal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir_internal_pixel_layout stbir__pixel_layout_convert_public_to_internal[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_internal_pixel_layout" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBIRI_BGR, STBIRI_1CHANNEL, STBIRI_2CHANNEL, STBIRI_RGB, STBIRI_RGBA,\n STBIRI_4CHANNEL, STBIRI_BGRA, STBIRI_ARGB, STBIRI_ABGR, STBIRI_RA, STBIRI_AR,\n STBIRI_RGBA_PM, STBIRI_BGRA_PM, STBIRI_ARGB_PM, STBIRI_ABGR_PM, STBIRI_RA_PM, STBIRI_AR_PM,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7042, - "column": 1, - "source_line": "static stbir_internal_pixel_layout stbir__pixel_layout_convert_public_to_internal[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STBIR_INCLUDE_STB_IMAGE_RESIZE2_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 389, - "column": 1, - "source_line": "#define STBIR_INCLUDE_STB_IMAGE_RESIZE2_H" - } - }, - { - "name": "STBIRDEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 407, - "column": 1, - "source_line": "#define STBIRDEF static" - } - }, - { - "name": "STBIRDEF", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 410, - "column": 1, - "source_line": "#define STBIRDEF extern \"C\"" - } - }, - { - "name": "STBIRDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 412, - "column": 1, - "source_line": "#define STBIRDEF extern" - } - }, - { - "name": "STBIR_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 787, - "column": 1, - "source_line": "#define STBIR_ASSERT(x) assert(x)" - } - }, - { - "name": "STBIR_MALLOC", - "value": "((void)(user_data), malloc(size))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 792, - "column": 1, - "source_line": "#define STBIR_MALLOC(size,user_data) ((void)(user_data), malloc(size))" - } - }, - { - "name": "STBIR_FREE", - "value": "((void)(user_data), free(ptr))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 793, - "column": 1, - "source_line": "#define STBIR_FREE(ptr,user_data) ((void)(user_data), free(ptr))" - } - }, - { - "name": "stbir__inline", - "value": "__forceinline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 799, - "column": 1, - "source_line": "#define stbir__inline __forceinline" - } - }, - { - "name": "stbir__inline", - "value": "__inline__", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 803, - "column": 1, - "source_line": "#define stbir__inline __inline__" - } - }, - { - "name": "STBIR__SEPARATE_ALLOCATIONS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 809, - "column": 7, - "source_line": " #define STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "name": "STBIR__SEPARATE_ALLOCATIONS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 819, - "column": 5, - "source_line": " #define STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "name": "STBIR__UNUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 838, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)(v)" - } - }, - { - "name": "STBIR__UNUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 840, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)sizeof(v)" - } - }, - { - "name": "STBIR__ARRAY_SIZE", - "value": "(sizeof((a))/sizeof((a)[0]))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 843, - "column": 1, - "source_line": "#define STBIR__ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0]))" - } - }, - { - "name": "STBIR_DEFAULT_FILTER_UPSAMPLE", - "value": "STBIR_FILTER_CATMULLROM", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 847, - "column": 1, - "source_line": "#define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_CATMULLROM" - } - }, - { - "name": "STBIR_DEFAULT_FILTER_DOWNSAMPLE", - "value": "STBIR_FILTER_MITCHELL", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 851, - "column": 1, - "source_line": "#define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_MITCHELL" - } - }, - { - "name": "STBIR__HEADER_FILENAME", - "value": "\"stb_image_resize2.h\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 856, - "column": 1, - "source_line": "#define STBIR__HEADER_FILENAME \"stb_image_resize2.h\"" - } - }, - { - "name": "STBIR_BGR", - "value": "bad_dont_use_in_implementation", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 885, - "column": 1, - "source_line": "#define STBIR_BGR bad_dont_use_in_implementation" - } - }, - { - "name": "STBIR_1CHANNEL", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 886, - "column": 1, - "source_line": "#define STBIR_1CHANNEL STBIR_BGR" - } - }, - { - "name": "STBIR_2CHANNEL", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 887, - "column": 1, - "source_line": "#define STBIR_2CHANNEL STBIR_BGR" - } - }, - { - "name": "STBIR_RGB", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 888, - "column": 1, - "source_line": "#define STBIR_RGB STBIR_BGR" - } - }, - { - "name": "STBIR_RGBA", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 889, - "column": 1, - "source_line": "#define STBIR_RGBA STBIR_BGR" - } - }, - { - "name": "STBIR_4CHANNEL", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 890, - "column": 1, - "source_line": "#define STBIR_4CHANNEL STBIR_BGR" - } - }, - { - "name": "STBIR_BGRA", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 891, - "column": 1, - "source_line": "#define STBIR_BGRA STBIR_BGR" - } - }, - { - "name": "STBIR_ARGB", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 892, - "column": 1, - "source_line": "#define STBIR_ARGB STBIR_BGR" - } - }, - { - "name": "STBIR_ABGR", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 893, - "column": 1, - "source_line": "#define STBIR_ABGR STBIR_BGR" - } - }, - { - "name": "STBIR_RA", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 894, - "column": 1, - "source_line": "#define STBIR_RA STBIR_BGR" - } - }, - { - "name": "STBIR_AR", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 895, - "column": 1, - "source_line": "#define STBIR_AR STBIR_BGR" - } - }, - { - "name": "STBIR_RGBA_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 896, - "column": 1, - "source_line": "#define STBIR_RGBA_PM STBIR_BGR" - } - }, - { - "name": "STBIR_BGRA_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 897, - "column": 1, - "source_line": "#define STBIR_BGRA_PM STBIR_BGR" - } - }, - { - "name": "STBIR_ARGB_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 898, - "column": 1, - "source_line": "#define STBIR_ARGB_PM STBIR_BGR" - } - }, - { - "name": "STBIR_ABGR_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 899, - "column": 1, - "source_line": "#define STBIR_ABGR_PM STBIR_BGR" - } - }, - { - "name": "STBIR_RA_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 900, - "column": 1, - "source_line": "#define STBIR_RA_PM STBIR_BGR" - } - }, - { - "name": "STBIR_AR_PM", - "value": "STBIR_BGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 901, - "column": 1, - "source_line": "#define STBIR_AR_PM STBIR_BGR" - } - }, - { - "name": "stbir__max_uint8_as_float", - "value": "255.0f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1064, - "column": 1, - "source_line": "#define stbir__max_uint8_as_float 255.0f" - } - }, - { - "name": "stbir__max_uint16_as_float", - "value": "65535.0f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1065, - "column": 1, - "source_line": "#define stbir__max_uint16_as_float 65535.0f" - } - }, - { - "name": "stbir__max_uint8_as_float_inverted", - "value": "3.9215689e-03f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1066, - "column": 1, - "source_line": "#define stbir__max_uint8_as_float_inverted 3.9215689e-03f // (1.0f/255.0f)" - } - }, - { - "name": "stbir__max_uint16_as_float_inverted", - "value": "1.5259022e-05f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1067, - "column": 1, - "source_line": "#define stbir__max_uint16_as_float_inverted 1.5259022e-05f // (1.0f/65535.0f)" - } - }, - { - "name": "stbir__small_float", - "value": "((float)1 / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1068, - "column": 1, - "source_line": "#define stbir__small_float ((float)1 / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20))" - } - }, - { - "name": "STBIR_CLAMP", - "value": "for(;;) { if ( (x) < (xmin) ) (x) = (xmin); if ( (x) > (xmax) ) (x) = (xmax); break; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1071, - "column": 1, - "source_line": "#define STBIR_CLAMP(x, xmin, xmax) for(;;) { \\" - } - }, - { - "name": "STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1165, - "column": 1, - "source_line": "#define STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT 32 // when downsampling and <= 32 scanlines of buffering, use gather. gather used down to 1/8th scaling for 25% win." - } - }, - { - "name": "STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1169, - "column": 1, - "source_line": "#define STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS 4 // when threading, what is the minimum number of scanlines for a split?" - } - }, - { - "name": "STBIR_INPUT_CALLBACK_PADDING", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1172, - "column": 1, - "source_line": "#define STBIR_INPUT_CALLBACK_PADDING 3" - } - }, - { - "name": "STBIR_SSE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1177, - "column": 1, - "source_line": "#define STBIR_SSE" - } - }, - { - "name": "STBIR_NO_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1184, - "column": 3, - "source_line": " #define STBIR_NO_SIMD" - } - }, - { - "name": "STBIR_SSE2", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1189, - "column": 5, - "source_line": " #define STBIR_SSE2" - } - }, - { - "name": "STBIR_AVX", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1194, - "column": 9, - "source_line": " #define STBIR_AVX" - } - }, - { - "name": "STBIR_AVX2", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1201, - "column": 9, - "source_line": " #define STBIR_AVX2" - } - }, - { - "name": "STBIR_FP16C", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1205, - "column": 11, - "source_line": " #define STBIR_FP16C" - } - }, - { - "name": "STBIR_FP16C", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1212, - "column": 7, - "source_line": " #define STBIR_FP16C" - } - }, - { - "name": "STBIR_NEON", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1219, - "column": 1, - "source_line": "#define STBIR_NEON" - } - }, - { - "name": "STBIR_USE_FMA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1225, - "column": 1, - "source_line": "#undef STBIR_USE_FMA // no FMA for 32-bit arm on MSVC" - } - }, - { - "name": "STBIR_WASM", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1231, - "column": 1, - "source_line": "#define STBIR_WASM" - } - }, - { - "name": "STBIR_STREAMOUT_PTR", - "value": "star __restrict", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1237, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict" - } - }, - { - "name": "STBIR_NO_UNROLL", - "value": "__assume(ptr)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1238, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __assume(ptr) // this oddly keeps msvc from unrolling a loop" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": "__pragma(loop( no_vector ))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1240, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START __pragma(loop( no_vector )) " - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1242, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START " - } - }, - { - "name": "STBIR_STREAMOUT_PTR", - "value": "star __restrict__", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1245, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - } - }, - { - "name": "STBIR_NO_UNROLL", - "value": "__asm__ (\"\"::\"r\"(ptr))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1246, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr)) " - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": "_Pragma(\"clang loop unroll(disable)\") _Pragma(\"clang loop vectorize(disable)\")", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1248, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START _Pragma(\"clang loop unroll(disable)\") _Pragma(\"clang loop vectorize(disable)\")" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1250, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_STREAMOUT_PTR", - "value": "star __restrict__", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1253, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - } - }, - { - "name": "STBIR_NO_UNROLL", - "value": "__asm__ (\"\"::\"r\"(ptr))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1254, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr))" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": "_Pragma(\"GCC unroll 0\") _Pragma(\"GCC novector\")", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1256, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START _Pragma(\"GCC unroll 0\") _Pragma(\"GCC novector\")" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1258, - "column": 5, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START_INF_FOR", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1260, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START_INF_FOR" - } - }, - { - "name": "STBIR_STREAMOUT_PTR", - "value": "star", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1262, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star" - } - }, - { - "name": "STBIR_NO_UNROLL", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1263, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr )" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1264, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_NO_UNROLL_LOOP_START_INF_FOR", - "value": "STBIR_NO_UNROLL_LOOP_START", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1268, - "column": 1, - "source_line": "#define STBIR_NO_UNROLL_LOOP_START_INF_FOR STBIR_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_SSE2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1276, - "column": 1, - "source_line": "#undef STBIR_SSE2" - } - }, - { - "name": "STBIR_AVX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1280, - "column": 1, - "source_line": "#undef STBIR_AVX" - } - }, - { - "name": "STBIR_NEON", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1284, - "column": 1, - "source_line": "#undef STBIR_NEON" - } - }, - { - "name": "STBIR_AVX2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1288, - "column": 1, - "source_line": "#undef STBIR_AVX2" - } - }, - { - "name": "STBIR_FP16C", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1292, - "column": 1, - "source_line": "#undef STBIR_FP16C" - } - }, - { - "name": "STBIR_WASM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1296, - "column": 1, - "source_line": "#undef STBIR_WASM" - } - }, - { - "name": "STBIR_SIMD", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1300, - "column": 1, - "source_line": "#undef STBIR_SIMD" - } - }, - { - "name": "stbir__simdf", - "value": "__m128", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1308, - "column": 3, - "source_line": " #define stbir__simdf __m128" - } - }, - { - "name": "stbir__simdi", - "value": "__m128i", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1309, - "column": 3, - "source_line": " #define stbir__simdi __m128i" - } - }, - { - "name": "stbir_simdi_castf", - "value": "_mm_castps_si128(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1311, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) _mm_castps_si128(reg)" - } - }, - { - "name": "stbir_simdf_casti", - "value": "_mm_castsi128_ps(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1312, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) _mm_castsi128_ps(reg)" - } - }, - { - "name": "stbir__simdf_load", - "value": "(reg) = _mm_loadu_ps( (float const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1314, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = _mm_loadu_ps( (float const*)(ptr) )" - } - }, - { - "name": "stbir__simdi_load", - "value": "(reg) = _mm_loadu_si128 ( (stbir__simdi const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1315, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = _mm_loadu_si128 ( (stbir__simdi const*)(ptr) )" - } - }, - { - "name": "stbir__simdf_load1", - "value": "(out) = _mm_load_ss( (float const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1316, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdi_load1", - "value": "(out) = _mm_castps_si128( _mm_load_ss( (float const*)(ptr) ))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1317, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = _mm_castps_si128( _mm_load_ss( (float const*)(ptr) ))" - } - }, - { - "name": "stbir__simdf_load1z", - "value": "(out) = _mm_load_ss( (float const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1318, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_frep4", - "value": "_mm_set_ps1( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1319, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) _mm_set_ps1( fvar )" - } - }, - { - "name": "stbir__simdf_load1frep4", - "value": "(out) = _mm_set_ps1( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1320, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = _mm_set_ps1( fvar )" - } - }, - { - "name": "stbir__simdf_load2", - "value": "(out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1321, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdf_load2z", - "value": "(out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1322, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_load2hmerge", - "value": "(out) = _mm_castpd_ps(_mm_loadh_pd( _mm_castps_pd(reg), (double*)(ptr) ))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1323, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = _mm_castpd_ps(_mm_loadh_pd( _mm_castps_pd(reg), (double*)(ptr) ))" - } - }, - { - "name": "stbir__simdf_zeroP", - "value": "_mm_setzero_ps()", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1325, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() _mm_setzero_ps()" - } - }, - { - "name": "stbir__simdf_zero", - "value": "(reg) = _mm_setzero_ps()", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1326, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = _mm_setzero_ps()" - } - }, - { - "name": "stbir__simdf_store", - "value": "_mm_storeu_ps( (float*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1328, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) _mm_storeu_ps( (float*)(ptr), reg )" - } - }, - { - "name": "stbir__simdf_store1", - "value": "_mm_store_ss( (float*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1329, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), reg )" - } - }, - { - "name": "stbir__simdf_store2", - "value": "_mm_storel_epi64( (__m128i*)(ptr), _mm_castps_si128(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1330, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), _mm_castps_si128(reg) )" - } - }, - { - "name": "stbir__simdf_store2h", - "value": "_mm_storeh_pd( (double*)(ptr), _mm_castps_pd(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1331, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) _mm_storeh_pd( (double*)(ptr), _mm_castps_pd(reg) )" - } - }, - { - "name": "stbir__simdi_store", - "value": "_mm_storeu_si128( (__m128i*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1333, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) _mm_storeu_si128( (__m128i*)(ptr), reg )" - } - }, - { - "name": "stbir__simdi_store1", - "value": "_mm_store_ss( (float*)(ptr), _mm_castsi128_ps(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1334, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), _mm_castsi128_ps(reg) )" - } - }, - { - "name": "stbir__simdi_store2", - "value": "_mm_storel_epi64( (__m128i*)(ptr), (reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1335, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), (reg) )" - } - }, - { - "name": "stbir__prefetch", - "value": "_mm_prefetch((char*)(ptr), _MM_HINT_T0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1337, - "column": 3, - "source_line": " #define stbir__prefetch( ptr ) _mm_prefetch((char*)(ptr), _MM_HINT_T0 )" - } - }, - { - "name": "stbir__simdi_expand_u8_to_u32", - "value": "{ stbir__simdi zero = _mm_setzero_si128(); out2 = _mm_unpacklo_epi8( ireg, zero ); out3 = _mm_unpackhi_epi8( ireg, zero ); out0 = _mm_unpacklo_epi16( out2, zero ); out1 = _mm_unpackhi_epi16( out2, zero ); out2 = _mm_unpacklo_epi16( out3, zero ); out3 = _mm_unpackhi_epi16( out3, zero ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1339, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u8_to_1u32", - "value": "{ stbir__simdi zero = _mm_setzero_si128(); out = _mm_unpacklo_epi8( ireg, zero ); out = _mm_unpacklo_epi16( out, zero ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1350, - "column": 1, - "source_line": "#define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u16_to_u32", - "value": "{ stbir__simdi zero = _mm_setzero_si128(); out0 = _mm_unpacklo_epi16( ireg, zero ); out1 = _mm_unpackhi_epi16( ireg, zero ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1357, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - } - }, - { - "name": "stbir__simdf_convert_float_to_i32", - "value": "(i) = _mm_cvttps_epi32(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1364, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = _mm_cvttps_epi32(f)" - } - }, - { - "name": "stbir__simdf_convert_float_to_int", - "value": "_mm_cvtt_ss2si(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1365, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) _mm_cvtt_ss2si(f)" - } - }, - { - "name": "stbir__simdf_convert_float_to_uint8", - "value": "((unsigned char)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),_mm_setzero_ps()))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1366, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),_mm_setzero_ps()))))" - } - }, - { - "name": "stbir__simdf_convert_float_to_short", - "value": "((unsigned short)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps()))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1367, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps()))))" - } - }, - { - "name": "stbir__simdi_to_int", - "value": "_mm_cvtsi128_si32(i)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1369, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) _mm_cvtsi128_si32(i)" - } - }, - { - "name": "stbir__simdi_convert_i32_to_float", - "value": "(out) = _mm_cvtepi32_ps( ireg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1370, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = _mm_cvtepi32_ps( ireg )" - } - }, - { - "name": "stbir__simdf_add", - "value": "(out) = _mm_add_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1371, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = _mm_add_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult", - "value": "(out) = _mm_mul_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1372, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = _mm_mul_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult_mem", - "value": "(out) = _mm_mul_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1373, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = _mm_mul_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_mult1_mem", - "value": "(out) = _mm_mul_ss( reg, _mm_load_ss( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1374, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = _mm_mul_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add_mem", - "value": "(out) = _mm_add_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1375, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = _mm_add_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add1_mem", - "value": "(out) = _mm_add_ss( reg, _mm_load_ss( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1376, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = _mm_add_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_madd", - "value": "(out) = _mm_fmadd_ps( mul1, mul2, add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1380, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_fmadd_ps( mul1, mul2, add )" - } - }, - { - "name": "stbir__simdf_madd1", - "value": "(out) = _mm_fmadd_ss( mul1, mul2, add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1381, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_fmadd_ss( mul1, mul2, add )" - } - }, - { - "name": "stbir__simdf_madd_mem", - "value": "(out) = _mm_fmadd_ps( mul, _mm_loadu_ps( (float const*)(ptr) ), add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1382, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ps( mul, _mm_loadu_ps( (float const*)(ptr) ), add )" - } - }, - { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = _mm_fmadd_ss( mul, _mm_load_ss( (float const*)(ptr) ), add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1383, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ss( mul, _mm_load_ss( (float const*)(ptr) ), add )" - } - }, - { - "name": "stbir__simdf_madd", - "value": "(out) = _mm_add_ps( add, _mm_mul_ps( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1385, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_add_ps( add, _mm_mul_ps( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd1", - "value": "(out) = _mm_add_ss( add, _mm_mul_ss( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1386, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_add_ss( add, _mm_mul_ss( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd_mem", - "value": "(out) = _mm_add_ps( add, _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1387, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_add_ps( add, _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = _mm_add_ss( add, _mm_mul_ss( mul, _mm_load_ss( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1388, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_add_ss( add, _mm_mul_ss( mul, _mm_load_ss( (float const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_add1", - "value": "(out) = _mm_add_ss( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1391, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = _mm_add_ss( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult1", - "value": "(out) = _mm_mul_ss( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1392, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = _mm_mul_ss( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_and", - "value": "(out) = _mm_and_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1394, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = _mm_and_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_or", - "value": "(out) = _mm_or_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1395, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = _mm_or_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_min", - "value": "(out) = _mm_min_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1397, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = _mm_min_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max", - "value": "(out) = _mm_max_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1398, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = _mm_max_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_min1", - "value": "(out) = _mm_min_ss( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1399, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = _mm_min_ss( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max1", - "value": "(out) = _mm_max_ss( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1400, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = _mm_max_ss( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_0123ABCDto3ABx", - "value": "(out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (3<<0) + (0<<2) + (1<<4) + (2<<6) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1402, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (3<<0) + (0<<2) + (1<<4) + (2<<6) ) )" - } - }, - { - "name": "stbir__simdf_0123ABCDto23Ax", - "value": "(out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (2<<0) + (3<<2) + (0<<4) + (1<<6) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1403, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (2<<0) + (3<<2) + (0<<4) + (1<<6) ) )" - } - }, - { - "name": "stbir__simdf_aaa1", - "value": "(out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movehl_ps( ones, alp ) ), (1<<0) + (1<<2) + (1<<4) + (2<<6) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1407, - "column": 3, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movehl_ps( ones, alp ) ), (1<<0) + (1<<2) + (1<<4) + (2<<6) ) )" - } - }, - { - "name": "stbir__simdf_1aaa", - "value": "(out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movelh_ps( ones, alp ) ), (0<<0) + (2<<2) + (2<<4) + (2<<6) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1408, - "column": 3, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movelh_ps( ones, alp ) ), (0<<0) + (2<<2) + (2<<4) + (2<<6) ) )" - } - }, - { - "name": "stbir__simdf_a1a1", - "value": "(out) = _mm_or_ps( _mm_castsi128_ps( _mm_srli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_zeroones )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1409, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_srli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_zeroones )" - } - }, - { - "name": "stbir__simdf_1a1a", - "value": "(out) = _mm_or_ps( _mm_castsi128_ps( _mm_slli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_onezeros )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1410, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_slli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_onezeros )" - } - }, - { - "name": "stbir__simdf_swiz", - "value": "_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( reg ), (one<<0) + (two<<2) + (three<<4) + (four<<6) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1412, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) _mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( reg ), (one<<0) + (two<<2) + (three<<4) + (four<<6) ) )" - } - }, - { - "name": "stbir__simdi_and", - "value": "(out) = _mm_and_si128( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1414, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = _mm_and_si128( reg0, reg1 )" - } - }, - { - "name": "stbir__simdi_or", - "value": "(out) = _mm_or_si128( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1415, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = _mm_or_si128( reg0, reg1 )" - } - }, - { - "name": "stbir__simdi_16madd", - "value": "(out) = _mm_madd_epi16( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1416, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = _mm_madd_epi16( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_pack_to_8bytes", - "value": "{ stbir__simdf af,bf; stbir__simdi a,b; af = _mm_min_ps( aa, STBIR_max_uint8_as_float ); bf = _mm_min_ps( bb, STBIR_max_uint8_as_float ); af = _mm_max_ps( af, _mm_setzero_ps() ); bf = _mm_max_ps( bf, _mm_setzero_ps() ); a = _mm_cvttps_epi32( af ); b = _mm_cvttps_epi32( bf ); a = _mm_packs_epi32( a, b ); out = _mm_packus_epi16( a, a ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1418, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdf_load4_transposed", - "value": "stbir__simdf_load( o0, (ptr) ); stbir__simdf_load( o1, (ptr)+4 ); stbir__simdf_load( o2, (ptr)+8 ); stbir__simdf_load( o3, (ptr)+12 ); { __m128 tmp0, tmp1, tmp2, tmp3; tmp0 = _mm_unpacklo_ps(o0, o1); tmp2 = _mm_unpacklo_ps(o2, o3); tmp1 = _mm_unpackhi_ps(o0, o1); tmp3 = _mm_unpackhi_ps(o2, o3); o0 = _mm_movelh_ps(tmp0, tmp2); o1 = _mm_movehl_ps(tmp2, tmp0); o2 = _mm_movelh_ps(tmp1, tmp3); o3 = _mm_movehl_ps(tmp3, tmp1); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1432, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - } - }, - { - "name": "stbir__interleave_pack_and_store_16_u8", - "value": "r0 = _mm_packs_epi32( r0, r1 ); r2 = _mm_packs_epi32( r2, r3 ); r1 = _mm_unpacklo_epi16( r0, r2 ); r3 = _mm_unpackhi_epi16( r0, r2 ); r0 = _mm_unpacklo_epi16( r1, r3 ); r2 = _mm_unpackhi_epi16( r1, r3 ); r0 = _mm_packus_epi16( r0, r2 ); stbir__simdi_store( ptr, r0 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1449, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - } - }, - { - "name": "stbir__simdi_32shr", - "value": "out = _mm_srli_epi32( reg, imm )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1459, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = _mm_srli_epi32( reg, imm )" - } - }, - { - "name": "STBIR__CONST_32_TO_8", - "value": "(char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1463, - "column": 5, - "source_line": " #define STBIR__CONST_32_TO_8( v ) (char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)" - } - }, - { - "name": "STBIR__CONST_4_32i", - "value": "STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1464, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v )" - } - }, - { - "name": "STBIR__CONST_4d_32i", - "value": "STBIR__CONST_32_TO_8( v0 ), STBIR__CONST_32_TO_8( v1 ), STBIR__CONST_32_TO_8( v2 ), STBIR__CONST_32_TO_8( v3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1465, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) STBIR__CONST_32_TO_8( v0 ), STBIR__CONST_32_TO_8( v1 ), STBIR__CONST_32_TO_8( v2 ), STBIR__CONST_32_TO_8( v3 )" - } - }, - { - "name": "STBIR__CONST_4_32i", - "value": "(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1468, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) (long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))" - } - }, - { - "name": "STBIR__CONST_4d_32i", - "value": "(long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1469, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) (long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))" - } - }, - { - "name": "STBIR__SIMDF_CONST", - "value": "stbir__simdf var = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1472, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - } - }, - { - "name": "STBIR__SIMDI_CONST", - "value": "stbir__simdi var = { STBIR__CONST_4_32i(x) }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1473, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { STBIR__CONST_4_32i(x) }" - } - }, - { - "name": "STBIR__CONSTF", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1474, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - } - }, - { - "name": "STBIR__CONSTI", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1475, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - } - }, - { - "name": "stbir__simdf_pack_to_8words", - "value": "out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1479, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())))" - } - }, - { - "name": "stbir__simdf_pack_to_8words", - "value": "{ stbir__simdi tmp0,tmp1; tmp0 = _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())); tmp1 = _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())); tmp0 = _mm_sub_epi32( tmp0, stbir__s32_32768 ); tmp1 = _mm_sub_epi32( tmp1, stbir__s32_32768 ); out = _mm_packs_epi32( tmp0, tmp1 ); out = _mm_sub_epi16( out, stbir__s16_32768 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1484, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) \\" - } - }, - { - "name": "STBIR_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1497, - "column": 3, - "source_line": " #define STBIR_SIMD" - } - }, - { - "name": "STBIR_SIMD8", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1502, - "column": 5, - "source_line": " #define STBIR_SIMD8" - } - }, - { - "name": "stbir__simdf8", - "value": "__m256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1503, - "column": 5, - "source_line": " #define stbir__simdf8 __m256" - } - }, - { - "name": "stbir__simdi8", - "value": "__m256i", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1504, - "column": 5, - "source_line": " #define stbir__simdi8 __m256i" - } - }, - { - "name": "stbir__simdf8_load", - "value": "(out) = _mm256_loadu_ps( (float const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1505, - "column": 5, - "source_line": " #define stbir__simdf8_load( out, ptr ) (out) = _mm256_loadu_ps( (float const *)(ptr) )" - } - }, - { - "name": "stbir__simdi8_load", - "value": "(out) = _mm256_loadu_si256( (__m256i const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1506, - "column": 5, - "source_line": " #define stbir__simdi8_load( out, ptr ) (out) = _mm256_loadu_si256( (__m256i const *)(ptr) )" - } - }, - { - "name": "stbir__simdf8_mult", - "value": "(out) = _mm256_mul_ps( (a), (b) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1507, - "column": 5, - "source_line": " #define stbir__simdf8_mult( out, a, b ) (out) = _mm256_mul_ps( (a), (b) )" - } - }, - { - "name": "stbir__simdf8_store", - "value": "_mm256_storeu_ps( (float*)(ptr), out )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1508, - "column": 5, - "source_line": " #define stbir__simdf8_store( ptr, out ) _mm256_storeu_ps( (float*)(ptr), out )" - } - }, - { - "name": "stbir__simdi8_store", - "value": "_mm256_storeu_si256( (__m256i*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1509, - "column": 5, - "source_line": " #define stbir__simdi8_store( ptr, reg ) _mm256_storeu_si256( (__m256i*)(ptr), reg )" - } - }, - { - "name": "stbir__simdf8_frep8", - "value": "_mm256_set1_ps( fval )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1510, - "column": 5, - "source_line": " #define stbir__simdf8_frep8( fval ) _mm256_set1_ps( fval )" - } - }, - { - "name": "stbir__simdf8_min", - "value": "(out) = _mm256_min_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1512, - "column": 5, - "source_line": " #define stbir__simdf8_min( out, reg0, reg1 ) (out) = _mm256_min_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf8_max", - "value": "(out) = _mm256_max_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1513, - "column": 5, - "source_line": " #define stbir__simdf8_max( out, reg0, reg1 ) (out) = _mm256_max_ps( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf8_add4halves", - "value": "(out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1515, - "column": 5, - "source_line": " #define stbir__simdf8_add4halves( out, bot4, top8 ) (out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )" - } - }, - { - "name": "stbir__simdf8_mult_mem", - "value": "(out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1516, - "column": 5, - "source_line": " #define stbir__simdf8_mult_mem( out, reg, ptr ) (out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf8_add_mem", - "value": "(out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1517, - "column": 5, - "source_line": " #define stbir__simdf8_add_mem( out, reg, ptr ) (out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf8_add", - "value": "(out) = _mm256_add_ps( a, b )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1518, - "column": 5, - "source_line": " #define stbir__simdf8_add( out, a, b ) (out) = _mm256_add_ps( a, b )" - } - }, - { - "name": "stbir__simdf8_load1b", - "value": "(out) = _mm256_broadcast_ss( ptr )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1519, - "column": 5, - "source_line": " #define stbir__simdf8_load1b( out, ptr ) (out) = _mm256_broadcast_ss( ptr )" - } - }, - { - "name": "stbir__simdf_load1rep4", - "value": "(out) = _mm_broadcast_ss( ptr )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1520, - "column": 5, - "source_line": " #define stbir__simdf_load1rep4( out, ptr ) (out) = _mm_broadcast_ss( ptr ) // avx load instruction" - } - }, - { - "name": "stbir__simdi8_convert_i32_to_float", - "value": "(out) = _mm256_cvtepi32_ps( ireg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1522, - "column": 5, - "source_line": " #define stbir__simdi8_convert_i32_to_float(out, ireg) (out) = _mm256_cvtepi32_ps( ireg )" - } - }, - { - "name": "stbir__simdf8_convert_float_to_i32", - "value": "(i) = _mm256_cvttps_epi32(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1523, - "column": 5, - "source_line": " #define stbir__simdf8_convert_float_to_i32( i, f ) (i) = _mm256_cvttps_epi32(f)" - } - }, - { - "name": "stbir__simdf8_bot4s", - "value": "(out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1525, - "column": 5, - "source_line": " #define stbir__simdf8_bot4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )" - } - }, - { - "name": "stbir__simdf8_top4s", - "value": "(out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1526, - "column": 5, - "source_line": " #define stbir__simdf8_top4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )" - } - }, - { - "name": "stbir__simdf8_gettop4", - "value": "_mm256_extractf128_ps(reg,1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1528, - "column": 5, - "source_line": " #define stbir__simdf8_gettop4( reg ) _mm256_extractf128_ps(reg,1)" - } - }, - { - "name": "stbir__simdi8_expand_u8_to_u32", - "value": "{ stbir__simdi8 a, zero =_mm256_setzero_si256(); a = _mm256_permute4x64_epi64( _mm256_unpacklo_epi8( _mm256_permute4x64_epi64(_mm256_castsi128_si256(ireg),(0<<0)+(2<<2)+(1<<4)+(3<<6)), zero ),(0<<0)+(2<<2)+(1<<4)+(3<<6)); out0 = _mm256_unpacklo_epi16( a, zero ); out1 = _mm256_unpackhi_epi16( a, zero ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1532, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - } - }, - { - "name": "stbir__simdf8_pack_to_16bytes", - "value": "{ stbir__simdi8 t; stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint8_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint8_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); t = _mm256_permute4x64_epi64( _mm256_packs_epi32( a, b ), (0<<0)+(2<<2)+(1<<4)+(3<<6) ); out = _mm256_castsi256_si128( _mm256_permute4x64_epi64( _mm256_packus_epi16( t, t ), (0<<0)+(2<<2)+(1<<4)+(3<<6) ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1540, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdi8_expand_u16_to_u32", - "value": "out = _mm256_unpacklo_epi16( _mm256_permute4x64_epi64(_mm256_castsi128_si256(ireg),(0<<0)+(2<<2)+(1<<4)+(3<<6)), _mm256_setzero_si256() );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1555, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) out = _mm256_unpacklo_epi16( _mm256_permute4x64_epi64(_mm256_castsi128_si256(ireg),(0<<0)+(2<<2)+(1<<4)+(3<<6)), _mm256_setzero_si256() );" - } - }, - { - "name": "stbir__simdf8_pack_to_16words", - "value": "{ stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint16_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint16_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); (out) = _mm256_permute4x64_epi64( _mm256_packus_epi32(a, b), (0<<0)+(2<<2)+(1<<4)+(3<<6) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1557, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdi8_expand_u8_to_u32", - "value": "{ stbir__simdi a,zero = _mm_setzero_si128(); a = _mm_unpacklo_epi8( ireg, zero ); out0 = _mm256_setr_m128i( _mm_unpacklo_epi16( a, zero ), _mm_unpackhi_epi16( a, zero ) ); a = _mm_unpackhi_epi8( ireg, zero ); out1 = _mm256_setr_m128i( _mm_unpacklo_epi16( a, zero ), _mm_unpackhi_epi16( a, zero ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1572, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - } - }, - { - "name": "stbir__simdf8_pack_to_16bytes", - "value": "{ stbir__simdi t; stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint8_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint8_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); out = _mm_packs_epi32( _mm256_castsi256_si128(a), _mm256_extractf128_si256( a, 1 ) ); out = _mm_packus_epi16( out, out ); t = _mm_packs_epi32( _mm256_castsi256_si128(b), _mm256_extractf128_si256( b, 1 ) ); t = _mm_packus_epi16( t, t ); out = _mm_castps_si128( _mm_shuffle_ps( _mm_castsi128_ps(out), _mm_castsi128_ps(t), (0<<0)+(1<<2)+(0<<4)+(1<<6) ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1581, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdi8_expand_u16_to_u32", - "value": "{ stbir__simdi a,b,zero = _mm_setzero_si128(); a = _mm_unpacklo_epi16( ireg, zero ); b = _mm_unpackhi_epi16( ireg, zero ); out = _mm256_insertf128_si256( _mm256_castsi128_si256( a ), b, 1 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1599, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) \\" - } - }, - { - "name": "stbir__simdf8_pack_to_16words", - "value": "{ stbir__simdi t0,t1; stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint16_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint16_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); t0 = _mm_packus_epi32( _mm256_castsi256_si128(a), _mm256_extractf128_si256( a, 1 ) ); t1 = _mm_packus_epi32( _mm256_castsi256_si128(b), _mm256_extractf128_si256( b, 1 ) ); out = _mm256_setr_m128i( t0, t1 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1607, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdf8_0123to00001111", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_00001111 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1626, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00001111( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00001111 )" - } - }, - { - "name": "stbir__simdf8_0123to22223333", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_22223333 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1629, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22223333( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_22223333 )" - } - }, - { - "name": "stbir__simdf8_0123to2222", - "value": "(out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1631, - "column": 5, - "source_line": " #define stbir__simdf8_0123to2222( out, in ) (out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )" - } - }, - { - "name": "stbir__simdf8_load4b", - "value": "(out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1633, - "column": 5, - "source_line": " #define stbir__simdf8_load4b( out, ptr ) (out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )" - } - }, - { - "name": "stbir__simdf8_0123to00112233", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_00112233 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1636, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00112233( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00112233 )" - } - }, - { - "name": "stbir__simdf8_add4", - "value": "(out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1637, - "column": 5, - "source_line": " #define stbir__simdf8_add4( out, a8, b ) (out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )" - } - }, - { - "name": "stbir__simdf8_load6z", - "value": "(out) = _mm256_maskload_ps( ptr, stbir_load6 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1640, - "column": 5, - "source_line": " #define stbir__simdf8_load6z( out, ptr ) (out) = _mm256_maskload_ps( ptr, stbir_load6 )" - } - }, - { - "name": "stbir__simdf8_0123to00000000", - "value": "(out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1642, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00000000( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to11111111", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1643, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11111111( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to22222222", - "value": "(out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1644, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22222222( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to33333333", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1645, - "column": 5, - "source_line": " #define stbir__simdf8_0123to33333333( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to21032103", - "value": "(out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1646, - "column": 5, - "source_line": " #define stbir__simdf8_0123to21032103( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to32103210", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1647, - "column": 5, - "source_line": " #define stbir__simdf8_0123to32103210( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to12301230", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1648, - "column": 5, - "source_line": " #define stbir__simdf8_0123to12301230( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to10321032", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1649, - "column": 5, - "source_line": " #define stbir__simdf8_0123to10321032( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to30123012", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1650, - "column": 5, - "source_line": " #define stbir__simdf8_0123to30123012( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to11331133", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1652, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11331133( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )" - } - }, - { - "name": "stbir__simdf8_0123to00220022", - "value": "(out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1653, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00220022( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )" - } - }, - { - "name": "stbir__simdf8_aaa1", - "value": "(out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1655, - "column": 5, - "source_line": " #define stbir__simdf8_aaa1( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )" - } - }, - { - "name": "stbir__simdf8_1aaa", - "value": "(out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1656, - "column": 5, - "source_line": " #define stbir__simdf8_1aaa( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )" - } - }, - { - "name": "stbir__simdf8_a1a1", - "value": "(out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1657, - "column": 5, - "source_line": " #define stbir__simdf8_a1a1( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - } - }, - { - "name": "stbir__simdf8_1a1a", - "value": "(out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1658, - "column": 5, - "source_line": " #define stbir__simdf8_1a1a( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - } - }, - { - "name": "stbir__simdf8_zero", - "value": "(reg) = _mm256_setzero_ps()", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1660, - "column": 5, - "source_line": " #define stbir__simdf8_zero( reg ) (reg) = _mm256_setzero_ps()" - } - }, - { - "name": "stbir__simdf8_madd", - "value": "(out) = _mm256_fmadd_ps( mul1, mul2, add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1663, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_fmadd_ps( mul1, mul2, add )" - } - }, - { - "name": "stbir__simdf8_madd_mem", - "value": "(out) = _mm256_fmadd_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ), add )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1664, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_fmadd_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ), add )" - } - }, - { - "name": "stbir__simdf8_madd", - "value": "(out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1667, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf8_madd_mem", - "value": "(out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1668, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf8_madd_mem4", - "value": "(out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1669, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem4( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )" - } - }, - { - "name": "stbir__if_simdf8_cast_to_simdf4", - "value": "_mm256_castps256_ps128( val )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1671, - "column": 5, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) _mm256_castps256_ps128( val )" - } - }, - { - "name": "STBIR_FLOORF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1676, - "column": 3, - "source_line": " #undef STBIR_FLOORF" - } - }, - { - "name": "STBIR_FLOORF", - "value": "stbir_simd_floorf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1678, - "column": 3, - "source_line": " #define STBIR_FLOORF stbir_simd_floorf" - } - }, - { - "name": "STBIR_CEILF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1693, - "column": 3, - "source_line": " #undef STBIR_CEILF" - } - }, - { - "name": "STBIR_CEILF", - "value": "stbir_simd_ceilf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1695, - "column": 3, - "source_line": " #define STBIR_CEILF stbir_simd_ceilf" - } - }, - { - "name": "stbir__simdf", - "value": "float32x4_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1713, - "column": 3, - "source_line": " #define stbir__simdf float32x4_t" - } - }, - { - "name": "stbir__simdi", - "value": "uint32x4_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1714, - "column": 3, - "source_line": " #define stbir__simdi uint32x4_t" - } - }, - { - "name": "stbir_simdi_castf", - "value": "vreinterpretq_u32_f32(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1716, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) vreinterpretq_u32_f32(reg)" - } - }, - { - "name": "stbir_simdf_casti", - "value": "vreinterpretq_f32_u32(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1717, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) vreinterpretq_f32_u32(reg)" - } - }, - { - "name": "stbir__simdf_load", - "value": "(reg) = vld1q_f32( (float const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1719, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = vld1q_f32( (float const*)(ptr) )" - } - }, - { - "name": "stbir__simdi_load", - "value": "(reg) = vld1q_u32( (uint32_t const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1720, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = vld1q_u32( (uint32_t const*)(ptr) )" - } - }, - { - "name": "stbir__simdf_load1", - "value": "(out) = vld1q_dup_f32( (float const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1721, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = vld1q_dup_f32( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdi_load1", - "value": "(out) = vld1q_dup_u32( (uint32_t const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1722, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = vld1q_dup_u32( (uint32_t const*)(ptr) )" - } - }, - { - "name": "stbir__simdf_load1z", - "value": "(out) = vld1q_lane_f32( (float const*)(ptr), vdupq_n_f32(0), 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1723, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = vld1q_lane_f32( (float const*)(ptr), vdupq_n_f32(0), 0 ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_frep4", - "value": "vdupq_n_f32( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1724, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) vdupq_n_f32( fvar )" - } - }, - { - "name": "stbir__simdf_load1frep4", - "value": "(out) = vdupq_n_f32( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1725, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = vdupq_n_f32( fvar )" - } - }, - { - "name": "stbir__simdf_load2", - "value": "(out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1726, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdf_load2z", - "value": "(out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1727, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_load2hmerge", - "value": "(out) = vcombine_f32( vget_low_f32(reg), vld1_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1728, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = vcombine_f32( vget_low_f32(reg), vld1_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_zeroP", - "value": "vdupq_n_f32(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1730, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() vdupq_n_f32(0)" - } - }, - { - "name": "stbir__simdf_zero", - "value": "(reg) = vdupq_n_f32(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1731, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = vdupq_n_f32(0)" - } - }, - { - "name": "stbir__simdf_store", - "value": "vst1q_f32( (float*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1733, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) vst1q_f32( (float*)(ptr), reg )" - } - }, - { - "name": "stbir__simdf_store1", - "value": "vst1q_lane_f32( (float*)(ptr), reg, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1734, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) vst1q_lane_f32( (float*)(ptr), reg, 0)" - } - }, - { - "name": "stbir__simdf_store2", - "value": "vst1_f32( (float*)(ptr), vget_low_f32(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1735, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) vst1_f32( (float*)(ptr), vget_low_f32(reg) )" - } - }, - { - "name": "stbir__simdf_store2h", - "value": "vst1_f32( (float*)(ptr), vget_high_f32(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1736, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) vst1_f32( (float*)(ptr), vget_high_f32(reg) )" - } - }, - { - "name": "stbir__simdi_store", - "value": "vst1q_u32( (uint32_t*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1738, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) vst1q_u32( (uint32_t*)(ptr), reg )" - } - }, - { - "name": "stbir__simdi_store1", - "value": "vst1q_lane_u32( (uint32_t*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1739, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) vst1q_lane_u32( (uint32_t*)(ptr), reg, 0 )" - } - }, - { - "name": "stbir__simdi_store2", - "value": "vst1_u32( (uint32_t*)(ptr), vget_low_u32(reg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1740, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) vst1_u32( (uint32_t*)(ptr), vget_low_u32(reg) )" - } - }, - { - "name": "stbir__prefetch", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1742, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - } - }, - { - "name": "stbir__simdi_expand_u8_to_u32", - "value": "{ uint16x8_t l = vmovl_u8( vget_low_u8 ( vreinterpretq_u8_u32(ireg) ) ); uint16x8_t h = vmovl_u8( vget_high_u8( vreinterpretq_u8_u32(ireg) ) ); out0 = vmovl_u16( vget_low_u16 ( l ) ); out1 = vmovl_u16( vget_high_u16( l ) ); out2 = vmovl_u16( vget_low_u16 ( h ) ); out3 = vmovl_u16( vget_high_u16( h ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1744, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u8_to_1u32", - "value": "{ uint16x8_t tmp = vmovl_u8( vget_low_u8( vreinterpretq_u8_u32(ireg) ) ); out = vmovl_u16( vget_low_u16( tmp ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1754, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u16_to_u32", - "value": "{ uint16x8_t tmp = vreinterpretq_u16_u32(ireg); out0 = vmovl_u16( vget_low_u16 ( tmp ) ); out1 = vmovl_u16( vget_high_u16( tmp ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1760, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - } - }, - { - "name": "stbir__simdf_convert_float_to_i32", - "value": "(i) = vreinterpretq_u32_s32( vcvtq_s32_f32(f) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1767, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = vreinterpretq_u32_s32( vcvtq_s32_f32(f) )" - } - }, - { - "name": "stbir__simdf_convert_float_to_int", - "value": "vgetq_lane_s32(vcvtq_s32_f32(f), 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1768, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) vgetq_lane_s32(vcvtq_s32_f32(f), 0)" - } - }, - { - "name": "stbir__simdi_to_int", - "value": "(int)vgetq_lane_u32(i, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1769, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) (int)vgetq_lane_u32(i, 0)" - } - }, - { - "name": "stbir__simdf_convert_float_to_uint8", - "value": "((unsigned char)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),vdupq_n_f32(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1770, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),vdupq_n_f32(0))), 0))" - } - }, - { - "name": "stbir__simdf_convert_float_to_short", - "value": "((unsigned short)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),vdupq_n_f32(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1771, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),vdupq_n_f32(0))), 0))" - } - }, - { - "name": "stbir__simdi_convert_i32_to_float", - "value": "(out) = vcvtq_f32_s32( vreinterpretq_s32_u32(ireg) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1772, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = vcvtq_f32_s32( vreinterpretq_s32_u32(ireg) )" - } - }, - { - "name": "stbir__simdf_add", - "value": "(out) = vaddq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1773, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult", - "value": "(out) = vmulq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1774, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult_mem", - "value": "(out) = vmulq_f32( reg, vld1q_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1775, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_mult1_mem", - "value": "(out) = vmulq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1776, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add_mem", - "value": "(out) = vaddq_f32( reg, vld1q_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1777, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add1_mem", - "value": "(out) = vaddq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1778, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_madd", - "value": "(out) = vfmaq_f32( add, mul1, mul2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1781, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - } - }, - { - "name": "stbir__simdf_madd1", - "value": "(out) = vfmaq_f32( add, mul1, mul2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1782, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - } - }, - { - "name": "stbir__simdf_madd_mem", - "value": "(out) = vfmaq_f32( add, mul, vld1q_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1783, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = vfmaq_f32( add, mul, vld1q_dup_f32( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1784, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_dup_f32( (float const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_madd", - "value": "(out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1786, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd1", - "value": "(out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1787, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd_mem", - "value": "(out) = vaddq_f32( add, vmulq_f32( mul, vld1q_f32( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1788, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_f32( (float const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = vaddq_f32( add, vmulq_f32( mul, vld1q_dup_f32( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1789, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_dup_f32( (float const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_add1", - "value": "(out) = vaddq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1792, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult1", - "value": "(out) = vmulq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1793, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_and", - "value": "(out) = vreinterpretq_f32_u32( vandq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1795, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vandq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - } - }, - { - "name": "stbir__simdf_or", - "value": "(out) = vreinterpretq_f32_u32( vorrq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1796, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vorrq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - } - }, - { - "name": "stbir__simdf_min", - "value": "(out) = vminq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1798, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max", - "value": "(out) = vmaxq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1799, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_min1", - "value": "(out) = vminq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1800, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max1", - "value": "(out) = vmaxq_f32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1801, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_0123ABCDto3ABx", - "value": "(out) = vextq_f32( reg0, reg1, 3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1803, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 3 )" - } - }, - { - "name": "stbir__simdf_0123ABCDto23Ax", - "value": "(out) = vextq_f32( reg0, reg1, 2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1804, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 2 )" - } - }, - { - "name": "stbir__simdf_a1a1", - "value": "(out) = vzipq_f32(vuzpq_f32(alp, alp).val[1], ones).val[0]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1806, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones ) (out) = vzipq_f32(vuzpq_f32(alp, alp).val[1], ones).val[0]" - } - }, - { - "name": "stbir__simdf_1a1a", - "value": "(out) = vzipq_f32(ones, vuzpq_f32(alp, alp).val[0]).val[0]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1807, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones ) (out) = vzipq_f32(ones, vuzpq_f32(alp, alp).val[0]).val[0]" - } - }, - { - "name": "stbir__simdf_aaa1", - "value": "(out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3, ones, 3)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1811, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3, ones, 3)" - } - }, - { - "name": "stbir__simdf_1aaa", - "value": "(out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0, ones, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1812, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0, ones, 0)" - } - }, - { - "name": "stbir_make16", - "value": "vcombine_u8( vcreate_u8( (4*a+0) | ((4*a+1)<<8) | ((4*a+2)<<16) | ((4*a+3)<<24) | ((stbir_uint64)(4*b+0)<<32) | ((stbir_uint64)(4*b+1)<<40) | ((stbir_uint64)(4*b+2)<<48) | ((stbir_uint64)(4*b+3)<<56)), vcreate_u8( (4*c+0) | ((4*c+1)<<8) | ((4*c+2)<<16) | ((4*c+3)<<24) | ((stbir_uint64)(4*d+0)<<32) | ((stbir_uint64)(4*d+1)<<40) | ((stbir_uint64)(4*d+2)<<48) | ((stbir_uint64)(4*d+3)<<56) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1815, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) vcombine_u8( \\" - } - }, - { - "name": "stbir_make16", - "value": "(uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1827, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) (uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}" - } - }, - { - "name": "stbir_make16x2", - "value": "(uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1828, - "column": 7, - "source_line": " #define stbir_make16x2(a,b) (uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}" - } - }, - { - "name": "stbir__simdf_swiz", - "value": "vreinterpretq_f32_u8( vqtbl1q_u8( vreinterpretq_u8_f32(reg), stbir_make16(one, two, three, four) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1831, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vqtbl1q_u8( vreinterpretq_u8_f32(reg), stbir_make16(one, two, three, four) ) )" - } - }, - { - "name": "stbir__simdf_swiz2", - "value": "vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1832, - "column": 5, - "source_line": " #define stbir__simdf_swiz2( rega, regb, one, two, three, four ) vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )" - } - }, - { - "name": "stbir__simdi_16madd", - "value": "{ int16x8_t r0 = vreinterpretq_s16_u32(reg0); int16x8_t r1 = vreinterpretq_s16_u32(reg1); int32x4_t tmp0 = vmull_s16( vget_low_s16(r0), vget_low_s16(r1) ); int32x4_t tmp1 = vmull_s16( vget_high_s16(r0), vget_high_s16(r1) ); (out) = vreinterpretq_u32_s32( vpaddq_s32(tmp0, tmp1) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1834, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - } - }, - { - "name": "stbir__simdf_aaa1", - "value": "(out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1845, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3)" - } - }, - { - "name": "stbir__simdf_1aaa", - "value": "(out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1846, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0)" - } - }, - { - "name": "stbir_make8", - "value": "vcreate_u8( (4*a+0) | ((4*a+1)<<8) | ((4*a+2)<<16) | ((4*a+3)<<24) | ((stbir_uint64)(4*b+0)<<32) | ((stbir_uint64)(4*b+1)<<40) | ((stbir_uint64)(4*b+2)<<48) | ((stbir_uint64)(4*b+3)<<56) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1854, - "column": 7, - "source_line": " #define stbir_make8(a,b) vcreate_u8( \\" - } - }, - { - "name": "stbir_make8x2", - "value": "(uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1858, - "column": 7, - "source_line": " #define stbir_make8x2(reg) (uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }" - } - }, - { - "name": "stbir_make8", - "value": "(uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1859, - "column": 7, - "source_line": " #define stbir_make8(a,b) (uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}" - } - }, - { - "name": "stbir__simdf_swiz", - "value": "vreinterpretq_f32_u8( vcombine_u8( vtbl2_u8( stbir_make8x2( reg ), stbir_make8( one, two ) ), vtbl2_u8( stbir_make8x2( reg ), stbir_make8( three, four ) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1862, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vcombine_u8( \\" - } - }, - { - "name": "stbir__simdi_16madd", - "value": "{ int16x8_t r0 = vreinterpretq_s16_u32(reg0); int16x8_t r1 = vreinterpretq_s16_u32(reg1); int32x4_t tmp0 = vmull_s16( vget_low_s16(r0), vget_low_s16(r1) ); int32x4_t tmp1 = vmull_s16( vget_high_s16(r0), vget_high_s16(r1) ); int32x2_t out0 = vpadd_s32( vget_low_s32(tmp0), vget_high_s32(tmp0) ); int32x2_t out1 = vpadd_s32( vget_low_s32(tmp1), vget_high_s32(tmp1) ); (out) = vreinterpretq_u32_s32( vcombine_s32(out0, out1) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1866, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - } - }, - { - "name": "stbir__simdi_and", - "value": "(out) = vandq_u32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1879, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = vandq_u32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdi_or", - "value": "(out) = vorrq_u32( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1880, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = vorrq_u32( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_pack_to_8bytes", - "value": "{ float32x4_t af = vmaxq_f32( vminq_f32(aa,STBIR__CONSTF(STBIR_max_uint8_as_float) ), vdupq_n_f32(0) ); float32x4_t bf = vmaxq_f32( vminq_f32(bb,STBIR__CONSTF(STBIR_max_uint8_as_float) ), vdupq_n_f32(0) ); int16x4_t ai = vqmovn_s32( vcvtq_s32_f32( af ) ); int16x4_t bi = vqmovn_s32( vcvtq_s32_f32( bf ) ); uint8x8_t out8 = vqmovun_s16( vcombine_s16(ai, bi) ); out = vreinterpretq_u32_u8( vcombine_u8(out8, out8) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1882, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdf_pack_to_8words", - "value": "{ float32x4_t af = vmaxq_f32( vminq_f32(aa,STBIR__CONSTF(STBIR_max_uint16_as_float) ), vdupq_n_f32(0) ); float32x4_t bf = vmaxq_f32( vminq_f32(bb,STBIR__CONSTF(STBIR_max_uint16_as_float) ), vdupq_n_f32(0) ); int32x4_t ai = vcvtq_s32_f32( af ); int32x4_t bi = vcvtq_s32_f32( bf ); out = vreinterpretq_u32_u16( vcombine_u16(vqmovun_s32(ai), vqmovun_s32(bi)) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1892, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - } - }, - { - "name": "stbir__interleave_pack_and_store_16_u8", - "value": "{ int16x4x2_t tmp0 = vzip_s16( vqmovn_s32(vreinterpretq_s32_u32(r0)), vqmovn_s32(vreinterpretq_s32_u32(r2)) ); int16x4x2_t tmp1 = vzip_s16( vqmovn_s32(vreinterpretq_s32_u32(r1)), vqmovn_s32(vreinterpretq_s32_u32(r3)) ); uint8x8x2_t out = { { vqmovun_s16( vcombine_s16(tmp0.val[0], tmp0.val[1]) ), vqmovun_s16( vcombine_s16(tmp1.val[0], tmp1.val[1]) ), } }; vst2_u8(ptr, out); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1901, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - } - }, - { - "name": "stbir__simdf_load4_transposed", - "value": "{ float32x4x4_t tmp = vld4q_f32(ptr); o0 = tmp.val[0]; o1 = tmp.val[1]; o2 = tmp.val[2]; o3 = tmp.val[3]; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1913, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - } - }, - { - "name": "stbir__simdi_32shr", - "value": "out = vshrq_n_u32( reg, imm )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1922, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = vshrq_n_u32( reg, imm )" - } - }, - { - "name": "STBIR__SIMDF_CONST", - "value": "__declspec(align(8)) float var[] = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1925, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) __declspec(align(8)) float var[] = { x, x, x, x }" - } - }, - { - "name": "STBIR__SIMDI_CONST", - "value": "__declspec(align(8)) uint32_t var[] = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1926, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) __declspec(align(8)) uint32_t var[] = { x, x, x, x }" - } - }, - { - "name": "STBIR__CONSTF", - "value": "(*(const float32x4_t*)var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1927, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (*(const float32x4_t*)var)" - } - }, - { - "name": "STBIR__CONSTI", - "value": "(*(const uint32x4_t*)var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1928, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (*(const uint32x4_t*)var)" - } - }, - { - "name": "STBIR__SIMDF_CONST", - "value": "stbir__simdf var = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1930, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - } - }, - { - "name": "STBIR__SIMDI_CONST", - "value": "stbir__simdi var = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1931, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - } - }, - { - "name": "STBIR__CONSTF", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1932, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (var)" - } - }, - { - "name": "STBIR__CONSTI", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1933, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (var)" - } - }, - { - "name": "STBIR_FLOORF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1937, - "column": 3, - "source_line": " #undef STBIR_FLOORF" - } - }, - { - "name": "STBIR_FLOORF", - "value": "stbir_simd_floorf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1939, - "column": 3, - "source_line": " #define STBIR_FLOORF stbir_simd_floorf" - } - }, - { - "name": "STBIR_CEILF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1955, - "column": 3, - "source_line": " #undef STBIR_CEILF" - } - }, - { - "name": "STBIR_CEILF", - "value": "stbir_simd_ceilf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1957, - "column": 3, - "source_line": " #define STBIR_CEILF stbir_simd_ceilf" - } - }, - { - "name": "STBIR_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1972, - "column": 3, - "source_line": " #define STBIR_SIMD" - } - }, - { - "name": "stbir__simdf", - "value": "v128_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1978, - "column": 3, - "source_line": " #define stbir__simdf v128_t" - } - }, - { - "name": "stbir__simdi", - "value": "v128_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1979, - "column": 3, - "source_line": " #define stbir__simdi v128_t" - } - }, - { - "name": "stbir_simdi_castf", - "value": "(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1981, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) (reg)" - } - }, - { - "name": "stbir_simdf_casti", - "value": "(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1982, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) (reg)" - } - }, - { - "name": "stbir__simdf_load", - "value": "(reg) = wasm_v128_load( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1984, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - } - }, - { - "name": "stbir__simdi_load", - "value": "(reg) = wasm_v128_load( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1985, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - } - }, - { - "name": "stbir__simdf_load1", - "value": "(out) = wasm_v128_load32_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1986, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdi_load1", - "value": "(out) = wasm_v128_load32_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1987, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) )" - } - }, - { - "name": "stbir__simdf_load1z", - "value": "(out) = wasm_v128_load32_zero( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1988, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = wasm_v128_load32_zero( (void const*)(ptr) ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_frep4", - "value": "wasm_f32x4_splat( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1989, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) wasm_f32x4_splat( fvar )" - } - }, - { - "name": "stbir__simdf_load1frep4", - "value": "(out) = wasm_f32x4_splat( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1990, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = wasm_f32x4_splat( fvar )" - } - }, - { - "name": "stbir__simdf_load2", - "value": "(out) = wasm_v128_load64_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1991, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = wasm_v128_load64_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - { - "name": "stbir__simdf_load2z", - "value": "(out) = wasm_v128_load64_zero( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1992, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = wasm_v128_load64_zero( (void const*)(ptr) ) // top values must be zero" - } - }, - { - "name": "stbir__simdf_load2hmerge", - "value": "(out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1993, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )" - } - }, - { - "name": "stbir__simdf_zeroP", - "value": "wasm_f32x4_const_splat(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1995, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() wasm_f32x4_const_splat(0)" - } - }, - { - "name": "stbir__simdf_zero", - "value": "(reg) = wasm_f32x4_const_splat(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1996, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = wasm_f32x4_const_splat(0)" - } - }, - { - "name": "stbir__simdf_store", - "value": "wasm_v128_store( (void*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1998, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - } - }, - { - "name": "stbir__simdf_store1", - "value": "wasm_v128_store32_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1999, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - } - }, - { - "name": "stbir__simdf_store2", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2000, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - } - }, - { - "name": "stbir__simdf_store2h", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2001, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 1 )" - } - }, - { - "name": "stbir__simdi_store", - "value": "wasm_v128_store( (void*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2003, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - } - }, - { - "name": "stbir__simdi_store1", - "value": "wasm_v128_store32_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2004, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - } - }, - { - "name": "stbir__simdi_store2", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2005, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - } - }, - { - "name": "stbir__prefetch", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2007, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - } - }, - { - "name": "stbir__simdi_expand_u8_to_u32", - "value": "{ v128_t l = wasm_u16x8_extend_low_u8x16 ( ireg ); v128_t h = wasm_u16x8_extend_high_u8x16( ireg ); out0 = wasm_u32x4_extend_low_u16x8 ( l ); out1 = wasm_u32x4_extend_high_u16x8( l ); out2 = wasm_u32x4_extend_low_u16x8 ( h ); out3 = wasm_u32x4_extend_high_u16x8( h ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2009, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u8_to_1u32", - "value": "{ v128_t tmp = wasm_u16x8_extend_low_u8x16(ireg); out = wasm_u32x4_extend_low_u16x8(tmp); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2019, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - } - }, - { - "name": "stbir__simdi_expand_u16_to_u32", - "value": "{ out0 = wasm_u32x4_extend_low_u16x8 ( ireg ); out1 = wasm_u32x4_extend_high_u16x8( ireg ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2025, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - } - }, - { - "name": "stbir__simdf_convert_float_to_i32", - "value": "(i) = wasm_i32x4_trunc_sat_f32x4(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2031, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = wasm_i32x4_trunc_sat_f32x4(f)" - } - }, - { - "name": "stbir__simdf_convert_float_to_int", - "value": "wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2032, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)" - } - }, - { - "name": "stbir__simdi_to_int", - "value": "wasm_i32x4_extract_lane(i, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2033, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) wasm_i32x4_extract_lane(i, 0)" - } - }, - { - "name": "stbir__simdf_convert_float_to_uint8", - "value": "((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2034, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))" - } - }, - { - "name": "stbir__simdf_convert_float_to_short", - "value": "((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2035, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))" - } - }, - { - "name": "stbir__simdi_convert_i32_to_float", - "value": "(out) = wasm_f32x4_convert_i32x4(ireg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2036, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = wasm_f32x4_convert_i32x4(ireg)" - } - }, - { - "name": "stbir__simdf_add", - "value": "(out) = wasm_f32x4_add( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2037, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult", - "value": "(out) = wasm_f32x4_mul( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2038, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult_mem", - "value": "(out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2039, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_mult1_mem", - "value": "(out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2040, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add_mem", - "value": "(out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2041, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_add1_mem", - "value": "(out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2042, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - } - }, - { - "name": "stbir__simdf_madd", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2044, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd1", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2045, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - } - }, - { - "name": "stbir__simdf_madd_mem", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2046, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2047, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )" - } - }, - { - "name": "stbir__simdf_add1", - "value": "(out) = wasm_f32x4_add( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2049, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_mult1", - "value": "(out) = wasm_f32x4_mul( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2050, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_and", - "value": "(out) = wasm_v128_and( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2052, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_or", - "value": "(out) = wasm_v128_or( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2053, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_min", - "value": "(out) = wasm_f32x4_min( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2055, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max", - "value": "(out) = wasm_f32x4_max( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2056, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_min1", - "value": "(out) = wasm_f32x4_min( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2057, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_max1", - "value": "(out) = wasm_f32x4_max( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2058, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_0123ABCDto3ABx", - "value": "(out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2060, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )" - } - }, - { - "name": "stbir__simdf_0123ABCDto23Ax", - "value": "(out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2061, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )" - } - }, - { - "name": "stbir__simdf_aaa1", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2063, - "column": 3, - "source_line": " #define stbir__simdf_aaa1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)" - } - }, - { - "name": "stbir__simdf_1aaa", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2064, - "column": 3, - "source_line": " #define stbir__simdf_1aaa(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)" - } - }, - { - "name": "stbir__simdf_a1a1", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2065, - "column": 3, - "source_line": " #define stbir__simdf_a1a1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)" - } - }, - { - "name": "stbir__simdf_1a1a", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2066, - "column": 3, - "source_line": " #define stbir__simdf_1a1a(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)" - } - }, - { - "name": "stbir__simdf_swiz", - "value": "wasm_i32x4_shuffle(reg, reg, one, two, three, four)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2068, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) wasm_i32x4_shuffle(reg, reg, one, two, three, four)" - } - }, - { - "name": "stbir__simdi_and", - "value": "(out) = wasm_v128_and( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2070, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - } - }, - { - "name": "stbir__simdi_or", - "value": "(out) = wasm_v128_or( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2071, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - } - }, - { - "name": "stbir__simdi_16madd", - "value": "(out) = wasm_i32x4_dot_i16x8( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2072, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = wasm_i32x4_dot_i16x8( reg0, reg1 )" - } - }, - { - "name": "stbir__simdf_pack_to_8bytes", - "value": "{ v128_t af = wasm_f32x4_max( wasm_f32x4_min(aa, STBIR_max_uint8_as_float), wasm_f32x4_const_splat(0) ); v128_t bf = wasm_f32x4_max( wasm_f32x4_min(bb, STBIR_max_uint8_as_float), wasm_f32x4_const_splat(0) ); v128_t ai = wasm_i32x4_trunc_sat_f32x4( af ); v128_t bi = wasm_i32x4_trunc_sat_f32x4( bf ); v128_t out16 = wasm_i16x8_narrow_i32x4( ai, bi ); out = wasm_u8x16_narrow_i16x8( out16, out16 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2074, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - } - }, - { - "name": "stbir__simdf_pack_to_8words", - "value": "{ v128_t af = wasm_f32x4_max( wasm_f32x4_min(aa, STBIR_max_uint16_as_float), wasm_f32x4_const_splat(0)); v128_t bf = wasm_f32x4_max( wasm_f32x4_min(bb, STBIR_max_uint16_as_float), wasm_f32x4_const_splat(0)); v128_t ai = wasm_i32x4_trunc_sat_f32x4( af ); v128_t bi = wasm_i32x4_trunc_sat_f32x4( bf ); out = wasm_u16x8_narrow_i32x4( ai, bi ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2084, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - } - }, - { - "name": "stbir__interleave_pack_and_store_16_u8", - "value": "{ v128_t tmp0 = wasm_i16x8_narrow_i32x4(r0, r1); v128_t tmp1 = wasm_i16x8_narrow_i32x4(r2, r3); v128_t tmp = wasm_u8x16_narrow_i16x8(tmp0, tmp1); tmp = wasm_i8x16_shuffle(tmp, tmp, 0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15); wasm_v128_store( (void*)(ptr), tmp); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2093, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - } - }, - { - "name": "stbir__simdf_load4_transposed", - "value": "{ v128_t t0 = wasm_v128_load( ptr ); v128_t t1 = wasm_v128_load( ptr+4 ); v128_t t2 = wasm_v128_load( ptr+8 ); v128_t t3 = wasm_v128_load( ptr+12 ); v128_t s0 = wasm_i32x4_shuffle(t0, t1, 0, 4, 2, 6); v128_t s1 = wasm_i32x4_shuffle(t0, t1, 1, 5, 3, 7); v128_t s2 = wasm_i32x4_shuffle(t2, t3, 0, 4, 2, 6); v128_t s3 = wasm_i32x4_shuffle(t2, t3, 1, 5, 3, 7); o0 = wasm_i32x4_shuffle(s0, s2, 0, 1, 4, 5); o1 = wasm_i32x4_shuffle(s1, s3, 0, 1, 4, 5); o2 = wasm_i32x4_shuffle(s0, s2, 2, 3, 6, 7); o3 = wasm_i32x4_shuffle(s1, s3, 2, 3, 6, 7); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2102, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - } - }, - { - "name": "stbir__simdi_32shr", - "value": "out = wasm_u32x4_shr( reg, imm )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2118, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = wasm_u32x4_shr( reg, imm )" - } - }, - { - "name": "STBIR__SIMDF_CONST", - "value": "stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2121, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }" - } - }, - { - "name": "STBIR__SIMDI_CONST", - "value": "stbir__simdi var = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2122, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - } - }, - { - "name": "STBIR__CONSTF", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2123, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - } - }, - { - "name": "STBIR__CONSTI", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2124, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - } - }, - { - "name": "STBIR_FLOORF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2127, - "column": 3, - "source_line": " #undef STBIR_FLOORF" - } - }, - { - "name": "STBIR_FLOORF", - "value": "stbir_simd_floorf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2129, - "column": 3, - "source_line": " #define STBIR_FLOORF stbir_simd_floorf" - } - }, - { - "name": "STBIR_CEILF", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2136, - "column": 3, - "source_line": " #undef STBIR_CEILF" - } - }, - { - "name": "STBIR_CEILF", - "value": "stbir_simd_ceilf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2138, - "column": 3, - "source_line": " #define STBIR_CEILF stbir_simd_ceilf" - } - }, - { - "name": "STBIR_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2144, - "column": 3, - "source_line": " #define STBIR_SIMD" - } - }, - { - "name": "stbir__simdfX", - "value": "stbir__simdf8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2151, - "column": 3, - "source_line": " #define stbir__simdfX stbir__simdf8" - } - }, - { - "name": "stbir__simdiX", - "value": "stbir__simdi8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2152, - "column": 3, - "source_line": " #define stbir__simdiX stbir__simdi8" - } - }, - { - "name": "stbir__simdfX_load", - "value": "stbir__simdf8_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2153, - "column": 3, - "source_line": " #define stbir__simdfX_load stbir__simdf8_load" - } - }, - { - "name": "stbir__simdiX_load", - "value": "stbir__simdi8_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2154, - "column": 3, - "source_line": " #define stbir__simdiX_load stbir__simdi8_load" - } - }, - { - "name": "stbir__simdfX_mult", - "value": "stbir__simdf8_mult", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2155, - "column": 3, - "source_line": " #define stbir__simdfX_mult stbir__simdf8_mult" - } - }, - { - "name": "stbir__simdfX_add_mem", - "value": "stbir__simdf8_add_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2156, - "column": 3, - "source_line": " #define stbir__simdfX_add_mem stbir__simdf8_add_mem" - } - }, - { - "name": "stbir__simdfX_madd_mem", - "value": "stbir__simdf8_madd_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2157, - "column": 3, - "source_line": " #define stbir__simdfX_madd_mem stbir__simdf8_madd_mem" - } - }, - { - "name": "stbir__simdfX_store", - "value": "stbir__simdf8_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2158, - "column": 3, - "source_line": " #define stbir__simdfX_store stbir__simdf8_store" - } - }, - { - "name": "stbir__simdiX_store", - "value": "stbir__simdi8_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2159, - "column": 3, - "source_line": " #define stbir__simdiX_store stbir__simdi8_store" - } - }, - { - "name": "stbir__simdf_frepX", - "value": "stbir__simdf8_frep8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2160, - "column": 3, - "source_line": " #define stbir__simdf_frepX stbir__simdf8_frep8" - } - }, - { - "name": "stbir__simdfX_madd", - "value": "stbir__simdf8_madd", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2161, - "column": 3, - "source_line": " #define stbir__simdfX_madd stbir__simdf8_madd" - } - }, - { - "name": "stbir__simdfX_min", - "value": "stbir__simdf8_min", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2162, - "column": 3, - "source_line": " #define stbir__simdfX_min stbir__simdf8_min" - } - }, - { - "name": "stbir__simdfX_max", - "value": "stbir__simdf8_max", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2163, - "column": 3, - "source_line": " #define stbir__simdfX_max stbir__simdf8_max" - } - }, - { - "name": "stbir__simdfX_aaa1", - "value": "stbir__simdf8_aaa1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2164, - "column": 3, - "source_line": " #define stbir__simdfX_aaa1 stbir__simdf8_aaa1" - } - }, - { - "name": "stbir__simdfX_1aaa", - "value": "stbir__simdf8_1aaa", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2165, - "column": 3, - "source_line": " #define stbir__simdfX_1aaa stbir__simdf8_1aaa" - } - }, - { - "name": "stbir__simdfX_a1a1", - "value": "stbir__simdf8_a1a1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2166, - "column": 3, - "source_line": " #define stbir__simdfX_a1a1 stbir__simdf8_a1a1" - } - }, - { - "name": "stbir__simdfX_1a1a", - "value": "stbir__simdf8_1a1a", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2167, - "column": 3, - "source_line": " #define stbir__simdfX_1a1a stbir__simdf8_1a1a" - } - }, - { - "name": "stbir__simdfX_convert_float_to_i32", - "value": "stbir__simdf8_convert_float_to_i32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2168, - "column": 3, - "source_line": " #define stbir__simdfX_convert_float_to_i32 stbir__simdf8_convert_float_to_i32" - } - }, - { - "name": "stbir__simdfX_pack_to_words", - "value": "stbir__simdf8_pack_to_16words", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2169, - "column": 3, - "source_line": " #define stbir__simdfX_pack_to_words stbir__simdf8_pack_to_16words" - } - }, - { - "name": "stbir__simdfX_zero", - "value": "stbir__simdf8_zero", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2170, - "column": 3, - "source_line": " #define stbir__simdfX_zero stbir__simdf8_zero" - } - }, - { - "name": "STBIR_onesX", - "value": "STBIR_ones8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2171, - "column": 3, - "source_line": " #define STBIR_onesX STBIR_ones8" - } - }, - { - "name": "STBIR_max_uint8_as_floatX", - "value": "STBIR_max_uint8_as_float8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2172, - "column": 3, - "source_line": " #define STBIR_max_uint8_as_floatX STBIR_max_uint8_as_float8" - } - }, - { - "name": "STBIR_max_uint16_as_floatX", - "value": "STBIR_max_uint16_as_float8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2173, - "column": 3, - "source_line": " #define STBIR_max_uint16_as_floatX STBIR_max_uint16_as_float8" - } - }, - { - "name": "STBIR_simd_point5X", - "value": "STBIR_simd_point58", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2174, - "column": 3, - "source_line": " #define STBIR_simd_point5X STBIR_simd_point58" - } - }, - { - "name": "stbir__simdfX_float_count", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2175, - "column": 3, - "source_line": " #define stbir__simdfX_float_count 8" - } - }, - { - "name": "stbir__simdfX_0123to1230", - "value": "stbir__simdf8_0123to12301230", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2176, - "column": 3, - "source_line": " #define stbir__simdfX_0123to1230 stbir__simdf8_0123to12301230" - } - }, - { - "name": "stbir__simdfX_0123to2103", - "value": "stbir__simdf8_0123to21032103", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2177, - "column": 3, - "source_line": " #define stbir__simdfX_0123to2103 stbir__simdf8_0123to21032103" - } - }, - { - "name": "stbir__simdfX", - "value": "stbir__simdf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2185, - "column": 3, - "source_line": " #define stbir__simdfX stbir__simdf" - } - }, - { - "name": "stbir__simdiX", - "value": "stbir__simdi", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2186, - "column": 3, - "source_line": " #define stbir__simdiX stbir__simdi" - } - }, - { - "name": "stbir__simdfX_load", - "value": "stbir__simdf_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2187, - "column": 3, - "source_line": " #define stbir__simdfX_load stbir__simdf_load" - } - }, - { - "name": "stbir__simdiX_load", - "value": "stbir__simdi_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2188, - "column": 3, - "source_line": " #define stbir__simdiX_load stbir__simdi_load" - } - }, - { - "name": "stbir__simdfX_mult", - "value": "stbir__simdf_mult", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2189, - "column": 3, - "source_line": " #define stbir__simdfX_mult stbir__simdf_mult" - } - }, - { - "name": "stbir__simdfX_add_mem", - "value": "stbir__simdf_add_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2190, - "column": 3, - "source_line": " #define stbir__simdfX_add_mem stbir__simdf_add_mem" - } - }, - { - "name": "stbir__simdfX_madd_mem", - "value": "stbir__simdf_madd_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2191, - "column": 3, - "source_line": " #define stbir__simdfX_madd_mem stbir__simdf_madd_mem" - } - }, - { - "name": "stbir__simdfX_store", - "value": "stbir__simdf_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2192, - "column": 3, - "source_line": " #define stbir__simdfX_store stbir__simdf_store" - } - }, - { - "name": "stbir__simdiX_store", - "value": "stbir__simdi_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2193, - "column": 3, - "source_line": " #define stbir__simdiX_store stbir__simdi_store" - } - }, - { - "name": "stbir__simdf_frepX", - "value": "stbir__simdf_frep4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2194, - "column": 3, - "source_line": " #define stbir__simdf_frepX stbir__simdf_frep4" - } - }, - { - "name": "stbir__simdfX_madd", - "value": "stbir__simdf_madd", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2195, - "column": 3, - "source_line": " #define stbir__simdfX_madd stbir__simdf_madd" - } - }, - { - "name": "stbir__simdfX_min", - "value": "stbir__simdf_min", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2196, - "column": 3, - "source_line": " #define stbir__simdfX_min stbir__simdf_min" - } - }, - { - "name": "stbir__simdfX_max", - "value": "stbir__simdf_max", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2197, - "column": 3, - "source_line": " #define stbir__simdfX_max stbir__simdf_max" - } - }, - { - "name": "stbir__simdfX_aaa1", - "value": "stbir__simdf_aaa1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2198, - "column": 3, - "source_line": " #define stbir__simdfX_aaa1 stbir__simdf_aaa1" - } - }, - { - "name": "stbir__simdfX_1aaa", - "value": "stbir__simdf_1aaa", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2199, - "column": 3, - "source_line": " #define stbir__simdfX_1aaa stbir__simdf_1aaa" - } - }, - { - "name": "stbir__simdfX_a1a1", - "value": "stbir__simdf_a1a1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2200, - "column": 3, - "source_line": " #define stbir__simdfX_a1a1 stbir__simdf_a1a1" - } - }, - { - "name": "stbir__simdfX_1a1a", - "value": "stbir__simdf_1a1a", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2201, - "column": 3, - "source_line": " #define stbir__simdfX_1a1a stbir__simdf_1a1a" - } - }, - { - "name": "stbir__simdfX_convert_float_to_i32", - "value": "stbir__simdf_convert_float_to_i32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2202, - "column": 3, - "source_line": " #define stbir__simdfX_convert_float_to_i32 stbir__simdf_convert_float_to_i32" - } - }, - { - "name": "stbir__simdfX_pack_to_words", - "value": "stbir__simdf_pack_to_8words", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2203, - "column": 3, - "source_line": " #define stbir__simdfX_pack_to_words stbir__simdf_pack_to_8words" - } - }, - { - "name": "stbir__simdfX_zero", - "value": "stbir__simdf_zero", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2204, - "column": 3, - "source_line": " #define stbir__simdfX_zero stbir__simdf_zero" - } - }, - { - "name": "STBIR_onesX", - "value": "STBIR__CONSTF(STBIR_ones)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2205, - "column": 3, - "source_line": " #define STBIR_onesX STBIR__CONSTF(STBIR_ones)" - } - }, - { - "name": "STBIR_simd_point5X", - "value": "STBIR__CONSTF(STBIR_simd_point5)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2206, - "column": 3, - "source_line": " #define STBIR_simd_point5X STBIR__CONSTF(STBIR_simd_point5)" - } - }, - { - "name": "STBIR_max_uint8_as_floatX", - "value": "STBIR__CONSTF(STBIR_max_uint8_as_float)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2207, - "column": 3, - "source_line": " #define STBIR_max_uint8_as_floatX STBIR__CONSTF(STBIR_max_uint8_as_float)" - } - }, - { - "name": "STBIR_max_uint16_as_floatX", - "value": "STBIR__CONSTF(STBIR_max_uint16_as_float)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2208, - "column": 3, - "source_line": " #define STBIR_max_uint16_as_floatX STBIR__CONSTF(STBIR_max_uint16_as_float)" - } - }, - { - "name": "stbir__simdfX_float_count", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2209, - "column": 3, - "source_line": " #define stbir__simdfX_float_count 4" - } - }, - { - "name": "stbir__if_simdf8_cast_to_simdf4", - "value": "( val )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2210, - "column": 3, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) ( val )" - } - }, - { - "name": "stbir__simdfX_0123to1230", - "value": "stbir__simdf_0123to1230", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2211, - "column": 3, - "source_line": " #define stbir__simdfX_0123to1230 stbir__simdf_0123to1230" - } - }, - { - "name": "stbir__simdfX_0123to2103", - "value": "stbir__simdf_0123to2103", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2212, - "column": 3, - "source_line": " #define stbir__simdfX_0123to2103 stbir__simdf_0123to2103" - } - }, - { - "name": "stbir__simdf_0123to3333", - "value": "(out) = stbir__simdf_swiz( reg, 3,3,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2536, - "column": 1, - "source_line": "#define stbir__simdf_0123to3333( out, reg ) (out) = stbir__simdf_swiz( reg, 3,3,3,3 )" - } - }, - { - "name": "stbir__simdf_0123to2222", - "value": "(out) = stbir__simdf_swiz( reg, 2,2,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2537, - "column": 1, - "source_line": "#define stbir__simdf_0123to2222( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,2,2 )" - } - }, - { - "name": "stbir__simdf_0123to1111", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,1,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2538, - "column": 1, - "source_line": "#define stbir__simdf_0123to1111( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,1,1 )" - } - }, - { - "name": "stbir__simdf_0123to0000", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2539, - "column": 1, - "source_line": "#define stbir__simdf_0123to0000( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,0 )" - } - }, - { - "name": "stbir__simdf_0123to0003", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2540, - "column": 1, - "source_line": "#define stbir__simdf_0123to0003( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,3 )" - } - }, - { - "name": "stbir__simdf_0123to0001", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2541, - "column": 1, - "source_line": "#define stbir__simdf_0123to0001( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,1 )" - } - }, - { - "name": "stbir__simdf_0123to1122", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2542, - "column": 1, - "source_line": "#define stbir__simdf_0123to1122( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,2,2 )" - } - }, - { - "name": "stbir__simdf_0123to2333", - "value": "(out) = stbir__simdf_swiz( reg, 2,3,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2543, - "column": 1, - "source_line": "#define stbir__simdf_0123to2333( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,3,3 )" - } - }, - { - "name": "stbir__simdf_0123to0023", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,2,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2544, - "column": 1, - "source_line": "#define stbir__simdf_0123to0023( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,3 )" - } - }, - { - "name": "stbir__simdf_0123to1230", - "value": "(out) = stbir__simdf_swiz( reg, 1,2,3,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2545, - "column": 1, - "source_line": "#define stbir__simdf_0123to1230( out, reg ) (out) = stbir__simdf_swiz( reg, 1,2,3,0 )" - } - }, - { - "name": "stbir__simdf_0123to2103", - "value": "(out) = stbir__simdf_swiz( reg, 2,1,0,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2546, - "column": 1, - "source_line": "#define stbir__simdf_0123to2103( out, reg ) (out) = stbir__simdf_swiz( reg, 2,1,0,3 )" - } - }, - { - "name": "stbir__simdf_0123to3210", - "value": "(out) = stbir__simdf_swiz( reg, 3,2,1,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2547, - "column": 1, - "source_line": "#define stbir__simdf_0123to3210( out, reg ) (out) = stbir__simdf_swiz( reg, 3,2,1,0 )" - } - }, - { - "name": "stbir__simdf_0123to2301", - "value": "(out) = stbir__simdf_swiz( reg, 2,3,0,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2548, - "column": 1, - "source_line": "#define stbir__simdf_0123to2301( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,0,1 )" - } - }, - { - "name": "stbir__simdf_0123to3012", - "value": "(out) = stbir__simdf_swiz( reg, 3,0,1,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2549, - "column": 1, - "source_line": "#define stbir__simdf_0123to3012( out, reg ) (out) = stbir__simdf_swiz( reg, 3,0,1,2 )" - } - }, - { - "name": "stbir__simdf_0123to0011", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,1,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2550, - "column": 1, - "source_line": "#define stbir__simdf_0123to0011( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,1,1 )" - } - }, - { - "name": "stbir__simdf_0123to1100", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,0,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2551, - "column": 1, - "source_line": "#define stbir__simdf_0123to1100( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,0,0 )" - } - }, - { - "name": "stbir__simdf_0123to2233", - "value": "(out) = stbir__simdf_swiz( reg, 2,2,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2552, - "column": 1, - "source_line": "#define stbir__simdf_0123to2233( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,3,3 )" - } - }, - { - "name": "stbir__simdf_0123to1133", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2553, - "column": 1, - "source_line": "#define stbir__simdf_0123to1133( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,3,3 )" - } - }, - { - "name": "stbir__simdf_0123to0022", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2554, - "column": 1, - "source_line": "#define stbir__simdf_0123to0022( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,2 )" - } - }, - { - "name": "stbir__simdf_0123to1032", - "value": "(out) = stbir__simdf_swiz( reg, 1,0,3,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2555, - "column": 1, - "source_line": "#define stbir__simdf_0123to1032( out, reg ) (out) = stbir__simdf_swiz( reg, 1,0,3,2 )" - } - }, - { - "name": "STBIR_SIMD_STREAMOUT_PTR", - "value": "STBIR_STREAMOUT_PTR( star )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2581, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL", - "value": "STBIR_NO_UNROLL(ptr)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2582, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr) STBIR_NO_UNROLL(ptr)" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START", - "value": "STBIR_NO_UNROLL_LOOP_START", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2583, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START STBIR_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR", - "value": "STBIR_NO_UNROLL_LOOP_START_INF_FOR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2584, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR STBIR_NO_UNROLL_LOOP_START_INF_FOR" - } - }, - { - "name": "STBIR_MEMCPY", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2587, - "column": 1, - "source_line": "#undef STBIR_MEMCPY" - } - }, - { - "name": "STBIR_MEMCPY", - "value": "stbir_simd_memcpy", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2589, - "column": 1, - "source_line": "#define STBIR_MEMCPY stbir_simd_memcpy" - } - }, - { - "name": "STBIR_SIMD_STREAMOUT_PTR", - "value": "STBIR_STREAMOUT_PTR( star )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2719, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2720, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr)" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2721, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START" - } - }, - { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2722, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR" - } - }, - { - "name": "STBIR_PROFILE_FUNC", - "value": "__rdtsc()", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2736, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() __rdtsc()" - } - }, - { - "name": "STBIR_PROFILE_FUNC", - "value": "_ReadStatusReg(ARM64_CNTVCT)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2753, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() _ReadStatusReg(ARM64_CNTVCT)" - } - }, - { - "name": "STBIR_ONLY_PROFILE_GET_SPLIT_INFO", - "value": ",stbir__per_split_info * split_info", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2774, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_GET_SPLIT_INFO ,stbir__per_split_info * split_info" - } - }, - { - "name": "STBIR_ONLY_PROFILE_SET_SPLIT_INFO", - "value": ",split_info", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2775, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_SET_SPLIT_INFO ,split_info" - } - }, - { - "name": "STBIR_ONLY_PROFILE_BUILD_GET_INFO", - "value": ",stbir__info * profile_info", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2777, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_GET_INFO ,stbir__info * profile_info" - } - }, - { - "name": "STBIR_ONLY_PROFILE_BUILD_SET_INFO", - "value": ",profile_info", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2778, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_SET_INFO ,profile_info" - } - }, - { - "name": "STBIR_PROFILE_START_ll", - "value": "{ stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2781, - "column": 1, - "source_line": "#define STBIR_PROFILE_START_ll( info, wh ) { stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;" - } - }, - { - "name": "STBIR_PROFILE_END_ll", - "value": "wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2782, - "column": 1, - "source_line": "#define STBIR_PROFILE_END_ll( info, wh ) wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }" - } - }, - { - "name": "STBIR_PROFILE_FIRST_START_ll", - "value": "{ int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2783, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START_ll( info, wh ) { int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );" - } - }, - { - "name": "STBIR_PROFILE_CLEAR_EXTRAS_ll", - "value": "{ int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2784, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS_ll( info, num ) { int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }" - } - }, - { - "name": "STBIR_PROFILE_START", - "value": "STBIR_PROFILE_START_ll( split_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2787, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh ) STBIR_PROFILE_START_ll( split_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_END", - "value": "STBIR_PROFILE_END_ll( split_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2788, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh ) STBIR_PROFILE_END_ll( split_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_FIRST_START", - "value": "STBIR_PROFILE_FIRST_START_ll( split_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2789, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( split_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_CLEAR_EXTRAS", - "value": "STBIR_PROFILE_CLEAR_EXTRAS_ll( split_info, split_count )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2790, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS() STBIR_PROFILE_CLEAR_EXTRAS_ll( split_info, split_count )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_START", - "value": "STBIR_PROFILE_START_ll( profile_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2793, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh ) STBIR_PROFILE_START_ll( profile_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_END", - "value": "STBIR_PROFILE_END_ll( profile_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2794, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh ) STBIR_PROFILE_END_ll( profile_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_FIRST_START", - "value": "STBIR_PROFILE_FIRST_START_ll( profile_info, wh )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2795, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( profile_info, wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_CLEAR", - "value": "{ int i; for(i=0;iprofile.array);i++) info->profile.array[i]=0; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2796, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info ) { int i; for(i=0;iprofile.array);i++) info->profile.array[i]=0; }" - } - }, - { - "name": "STBIR_ONLY_PROFILE_GET_SPLIT_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2800, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_GET_SPLIT_INFO" - } - }, - { - "name": "STBIR_ONLY_PROFILE_SET_SPLIT_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2801, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_SET_SPLIT_INFO" - } - }, - { - "name": "STBIR_ONLY_PROFILE_BUILD_GET_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2803, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_GET_INFO" - } - }, - { - "name": "STBIR_ONLY_PROFILE_BUILD_SET_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2804, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_SET_INFO" - } - }, - { - "name": "STBIR_PROFILE_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2806, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh )" - } - }, - { - "name": "STBIR_PROFILE_END", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2807, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh )" - } - }, - { - "name": "STBIR_PROFILE_FIRST_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2808, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh )" - } - }, - { - "name": "STBIR_PROFILE_CLEAR_EXTRAS", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2809, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS( )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2811, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_END", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2812, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_FIRST_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2813, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh )" - } - }, - { - "name": "STBIR_PROFILE_BUILD_CLEAR", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2814, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info )" - } - }, - { - "name": "STBIR_CEILF", - "value": "((float)ceil((float)(x)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2821, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ((float)ceil((float)(x)))" - } - }, - { - "name": "STBIR_FLOORF", - "value": "((float)floor((float)(x)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2822, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) ((float)floor((float)(x)))" - } - }, - { - "name": "STBIR_CEILF", - "value": "ceilf(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2824, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ceilf(x)" - } - }, - { - "name": "STBIR_FLOORF", - "value": "floorf(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2825, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) floorf(x)" - } - }, - { - "name": "STBIR_MEMCPY", - "value": "memcpy( dest, src, len )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2832, - "column": 1, - "source_line": "#define STBIR_MEMCPY( dest, src, len ) memcpy( dest, src, len )" - } - }, - { - "name": "STBIR__MERGE_RUNS_PIXEL_THRESHOLD", - "value": "16", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3118, - "column": 1, - "source_line": "#define STBIR__MERGE_RUNS_PIXEL_THRESHOLD 16" - } - }, - { - "name": "STBIR_RENORM_TYPE", - "value": "float", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3518, - "column": 1, - "source_line": "#define STBIR_RENORM_TYPE float" - } - }, - { - "name": "STBIR_RENORM_TYPE", - "value": "double", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3520, - "column": 1, - "source_line": "#define STBIR_RENORM_TYPE double" - } - }, - { - "name": "STBIR_RENORM_TYPE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3694, - "column": 1, - "source_line": "#undef STBIR_RENORM_TYPE " - } - }, - { - "name": "STBIR_MOVE_1", - "value": "{ STBIR_NO_UNROLL(dest); ((stbir_uint32*)(dest))[0] = ((stbir_uint32*)(src))[0]; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3698, - "column": 3, - "source_line": " #define STBIR_MOVE_1( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint32*)(dest))[0] = ((stbir_uint32*)(src))[0]; }" - } - }, - { - "name": "STBIR_MOVE_2", - "value": "{ STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3699, - "column": 3, - "source_line": " #define STBIR_MOVE_2( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; }" - } - }, - { - "name": "STBIR_MOVE_4", - "value": "{ stbir__simdf t; STBIR_NO_UNROLL(dest); stbir__simdf_load( t, src ); stbir__simdf_store( dest, t ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3701, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { stbir__simdf t; STBIR_NO_UNROLL(dest); stbir__simdf_load( t, src ); stbir__simdf_store( dest, t ); }" - } - }, - { - "name": "STBIR_MOVE_4", - "value": "{ STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; ((stbir_uint64*)(dest))[1] = ((stbir_uint64*)(src))[1]; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3703, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; ((stbir_uint64*)(dest))[1] = ((stbir_uint64*)(src))[1]; }" - } - }, - { - "name": "STBIR_MOVE_1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3926, - "column": 3, - "source_line": " #undef STBIR_MOVE_1" - } - }, - { - "name": "STBIR_MOVE_2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3927, - "column": 3, - "source_line": " #undef STBIR_MOVE_2" - } - }, - { - "name": "STBIR_MOVE_4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3928, - "column": 3, - "source_line": " #undef STBIR_MOVE_4" - } - }, - { - "name": "stbir__coder_min_num", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4076, - "column": 1, - "source_line": "#define stbir__coder_min_num 1" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4077, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "stbir__decode_suffix", - "value": "BGRA", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4080, - "column": 1, - "source_line": "#define stbir__decode_suffix BGRA" - } - }, - { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4081, - "column": 1, - "source_line": "#define stbir__decode_swizzle" - } - }, - { - "name": "stbir__decode_order0", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4082, - "column": 1, - "source_line": "#define stbir__decode_order0 2" - } - }, - { - "name": "stbir__decode_order1", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4083, - "column": 1, - "source_line": "#define stbir__decode_order1 1" - } - }, - { - "name": "stbir__decode_order2", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4084, - "column": 1, - "source_line": "#define stbir__decode_order2 0" - } - }, - { - "name": "stbir__decode_order3", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4085, - "column": 1, - "source_line": "#define stbir__decode_order3 3" - } - }, - { - "name": "stbir__encode_order0", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4086, - "column": 1, - "source_line": "#define stbir__encode_order0 2" - } - }, - { - "name": "stbir__encode_order1", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4087, - "column": 1, - "source_line": "#define stbir__encode_order1 1" - } - }, - { - "name": "stbir__encode_order2", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4088, - "column": 1, - "source_line": "#define stbir__encode_order2 0" - } - }, - { - "name": "stbir__encode_order3", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4089, - "column": 1, - "source_line": "#define stbir__encode_order3 3" - } - }, - { - "name": "stbir__coder_min_num", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4090, - "column": 1, - "source_line": "#define stbir__coder_min_num 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4091, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "stbir__decode_suffix", - "value": "ARGB", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4094, - "column": 1, - "source_line": "#define stbir__decode_suffix ARGB" - } - }, - { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4095, - "column": 1, - "source_line": "#define stbir__decode_swizzle" - } - }, - { - "name": "stbir__decode_order0", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4096, - "column": 1, - "source_line": "#define stbir__decode_order0 1" - } - }, - { - "name": "stbir__decode_order1", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4097, - "column": 1, - "source_line": "#define stbir__decode_order1 2" - } - }, - { - "name": "stbir__decode_order2", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4098, - "column": 1, - "source_line": "#define stbir__decode_order2 3" - } - }, - { - "name": "stbir__decode_order3", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4099, - "column": 1, - "source_line": "#define stbir__decode_order3 0" - } - }, - { - "name": "stbir__encode_order0", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4100, - "column": 1, - "source_line": "#define stbir__encode_order0 3" - } - }, - { - "name": "stbir__encode_order1", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4101, - "column": 1, - "source_line": "#define stbir__encode_order1 0" - } - }, - { - "name": "stbir__encode_order2", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4102, - "column": 1, - "source_line": "#define stbir__encode_order2 1" - } - }, - { - "name": "stbir__encode_order3", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4103, - "column": 1, - "source_line": "#define stbir__encode_order3 2" - } - }, - { - "name": "stbir__coder_min_num", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4104, - "column": 1, - "source_line": "#define stbir__coder_min_num 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4105, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "stbir__decode_suffix", - "value": "ABGR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4108, - "column": 1, - "source_line": "#define stbir__decode_suffix ABGR" - } - }, - { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4109, - "column": 1, - "source_line": "#define stbir__decode_swizzle" - } - }, - { - "name": "stbir__decode_order0", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4110, - "column": 1, - "source_line": "#define stbir__decode_order0 3" - } - }, - { - "name": "stbir__decode_order1", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4111, - "column": 1, - "source_line": "#define stbir__decode_order1 2" - } - }, - { - "name": "stbir__decode_order2", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4112, - "column": 1, - "source_line": "#define stbir__decode_order2 1" - } - }, - { - "name": "stbir__decode_order3", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4113, - "column": 1, - "source_line": "#define stbir__decode_order3 0" - } - }, - { - "name": "stbir__encode_order0", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4114, - "column": 1, - "source_line": "#define stbir__encode_order0 3" - } - }, - { - "name": "stbir__encode_order1", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4115, - "column": 1, - "source_line": "#define stbir__encode_order1 2" - } - }, - { - "name": "stbir__encode_order2", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4116, - "column": 1, - "source_line": "#define stbir__encode_order2 1" - } - }, - { - "name": "stbir__encode_order3", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4117, - "column": 1, - "source_line": "#define stbir__encode_order3 0" - } - }, - { - "name": "stbir__coder_min_num", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4118, - "column": 1, - "source_line": "#define stbir__coder_min_num 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4119, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "stbir__decode_suffix", - "value": "AR", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4122, - "column": 1, - "source_line": "#define stbir__decode_suffix AR" - } - }, - { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4123, - "column": 1, - "source_line": "#define stbir__decode_swizzle" - } - }, - { - "name": "stbir__decode_order0", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4124, - "column": 1, - "source_line": "#define stbir__decode_order0 1" - } - }, - { - "name": "stbir__decode_order1", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4125, - "column": 1, - "source_line": "#define stbir__decode_order1 0" - } - }, - { - "name": "stbir__decode_order2", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4126, - "column": 1, - "source_line": "#define stbir__decode_order2 3" - } - }, - { - "name": "stbir__decode_order3", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4127, - "column": 1, - "source_line": "#define stbir__decode_order3 2" - } - }, - { - "name": "stbir__encode_order0", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4128, - "column": 1, - "source_line": "#define stbir__encode_order0 1" - } - }, - { - "name": "stbir__encode_order1", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4129, - "column": 1, - "source_line": "#define stbir__encode_order1 0" - } - }, - { - "name": "stbir__encode_order2", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4130, - "column": 1, - "source_line": "#define stbir__encode_order2 3" - } - }, - { - "name": "stbir__encode_order3", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4131, - "column": 1, - "source_line": "#define stbir__encode_order3 2" - } - }, - { - "name": "stbir__coder_min_num", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4132, - "column": 1, - "source_line": "#define stbir__coder_min_num 2" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4133, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "stbir__simdf tot,c; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1( c, hc ); stbir__simdf_mult1_mem( tot, c, decode );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4710, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__simdf tot,c,d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2z( c, hc ); stbir__simdf_load2( d, decode ); stbir__simdf_mult( tot, c, d ); stbir__simdf_0123to1230( c, tot ); stbir__simdf_add1( tot, tot, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4716, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__simdf tot,c,t; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( c, hc ); stbir__simdf_mult_mem( tot, c, decode ); stbir__simdf_0123to1230( c, tot ); stbir__simdf_0123to2301( t, tot ); stbir__simdf_add1( tot, tot, c ); stbir__simdf_add1( tot, tot, t );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4725, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__simdf_store1( output, tot ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 1;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4735, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf tot,c; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( c, hc ); stbir__simdf_mult_mem( tot, c, decode );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4741, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( c, hc + (ofs) ); stbir__simdf_madd_mem( tot, tot, c, decode+(ofs) );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4747, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "{ stbir__simdf d; stbir__simdf_load1z( c, hc + (ofs) ); stbir__simdf_load1( d, decode + (ofs) ); stbir__simdf_madd( tot, tot, d, c ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4752, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "{ stbir__simdf d; stbir__simdf_load2z( c, hc+(ofs) ); stbir__simdf_load2( d, decode+(ofs) ); stbir__simdf_madd( tot, tot, d, c ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4758, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_setup", - "value": "stbir__simdf mask; stbir__simdf_load( mask, STBIR_mask + 3 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4764, - "column": 1, - "source_line": "#define stbir__3_coeff_setup() \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "stbir__simdf_load( c, hc+(ofs) ); stbir__simdf_and( c, c, mask ); stbir__simdf_madd_mem( tot, tot, c, decode+(ofs) );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4768, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf_0123to2301( c, tot ); stbir__simdf_add( tot, tot, c ); stbir__simdf_0123to1230( c, tot ); stbir__simdf_add1( tot, tot, c ); stbir__simdf_store1( output, tot ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 1;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4773, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "float tot; tot = decode[0]*hc[0];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4785, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "float tot; tot = decode[0] * hc[0]; tot += decode[1] * hc[1];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4789, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "float tot; tot = decode[0] * hc[0]; tot += decode[1] * hc[1]; tot += decode[2] * hc[2];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4794, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "output[0] = tot; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 1;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4800, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "float tot0,tot1,tot2,tot3; tot0 = decode[0] * hc[0]; tot1 = decode[1] * hc[1]; tot2 = decode[2] * hc[2]; tot3 = decode[3] * hc[3];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4806, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "tot0 += decode[0+(ofs)] * hc[0+(ofs)]; tot1 += decode[1+(ofs)] * hc[1+(ofs)]; tot2 += decode[2+(ofs)] * hc[2+(ofs)]; tot3 += decode[3+(ofs)] * hc[3+(ofs)];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4813, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "tot0 += decode[0+(ofs)] * hc[0+(ofs)];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4819, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "tot0 += decode[0+(ofs)] * hc[0+(ofs)]; tot1 += decode[1+(ofs)] * hc[1+(ofs)];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4822, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "tot0 += decode[0+(ofs)] * hc[0+(ofs)]; tot1 += decode[1+(ofs)] * hc[1+(ofs)]; tot2 += decode[2+(ofs)] * hc[2+(ofs)];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4826, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "output[0] = (tot0+tot2)+(tot1+tot3); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 1;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4831, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4839, - "column": 1, - "source_line": "#define STBIR__horizontal_channels 1" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4840, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "stbir__simdf tot,c,d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1z( c, hc ); stbir__simdf_0123to0011( c, c ); stbir__simdf_load2( d, decode ); stbir__simdf_mult( tot, d, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4849, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__simdf tot,c; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( c, hc ); stbir__simdf_0123to0011( c, c ); stbir__simdf_mult_mem( tot, c, decode );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4857, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__simdf tot,c,cs,d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_mult_mem( tot, c, decode ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_load2z( d, decode+4 ); stbir__simdf_madd( tot, tot, d, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4864, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__simdf_0123to2301( c, tot ); stbir__simdf_add( tot, tot, c ); stbir__simdf_store2( output, tot ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 2;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4874, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf8 tot0,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc ); stbir__simdf8_0123to00112233( c, cs ); stbir__simdf8_mult_mem( tot0, c, decode );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4884, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00112233( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*2 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4891, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "{ stbir__simdf t,d; stbir__simdf_load1z( t, hc + (ofs) ); stbir__simdf_load2( d, decode + (ofs) * 2 ); stbir__simdf_0123to0011( t, t ); stbir__simdf_mult( t, t, d ); stbir__simdf8_add4( tot0, tot0, t ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4897, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "{ stbir__simdf t; stbir__simdf_load2( t, hc + (ofs) ); stbir__simdf_0123to0011( t, t ); stbir__simdf_mult_mem( t, t, decode+(ofs)*2 ); stbir__simdf8_add4( tot0, tot0, t ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4905, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "{ stbir__simdf8 d; stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00112233( c, cs ); stbir__simdf8_load6z( d, decode+(ofs)*2 ); stbir__simdf8_madd( tot0, tot0, c, d ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4912, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "{ stbir__simdf t,d; stbir__simdf8_add4halves( t, stbir__if_simdf8_cast_to_simdf4(tot0), tot0 ); stbir__simdf_0123to2301( d, t ); stbir__simdf_add( t, t, d ); stbir__simdf_store2( output, t ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 2; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4919, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf tot0,tot1,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_0123to2233( c, cs ); stbir__simdf_mult_mem( tot1, c, decode+4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4931, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*2 ); stbir__simdf_0123to2233( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*2+4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4940, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "{ stbir__simdf d; stbir__simdf_load1z( cs, hc + (ofs) ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_load2( d, decode + (ofs) * 2 ); stbir__simdf_madd( tot0, tot0, d, c ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4948, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "stbir__simdf_load2( cs, hc + (ofs) ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*2 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4955, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "{ stbir__simdf d; stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0011( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*2 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_load2z( d, decode + (ofs) * 2 + 4 ); stbir__simdf_madd( tot1, tot1, d, c ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4960, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf_add( tot0, tot0, tot1 ); stbir__simdf_0123to2301( c, tot0 ); stbir__simdf_add( tot0, tot0, c ); stbir__simdf_store2( output, tot0 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 2;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4969, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "float tota,totb,c; c = hc[0]; tota = decode[0]*c; totb = decode[1]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4982, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "float tota,totb,c; c = hc[0]; tota = decode[0]*c; totb = decode[1]*c; c = hc[1]; tota += decode[2]*c; totb += decode[3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4988, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "float tota,totb,c; c = hc[0]; tota = decode[0]*c; totb = decode[1]*c; c = hc[2]; tota += decode[4]*c; totb += decode[5]*c; c = hc[1]; tota += decode[2]*c; totb += decode[3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4998, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "output[0] = tota; output[1] = totb; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 2;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5010, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "float tota0,tota1,tota2,tota3,totb0,totb1,totb2,totb3,c; c = hc[0]; tota0 = decode[0]*c; totb0 = decode[1]*c; c = hc[1]; tota1 = decode[2]*c; totb1 = decode[3]*c; c = hc[2]; tota2 = decode[4]*c; totb2 = decode[5]*c; c = hc[3]; tota3 = decode[6]*c; totb3 = decode[7]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5017, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*2]*c; totb0 += decode[1+(ofs)*2]*c; c = hc[1+(ofs)]; tota1 += decode[2+(ofs)*2]*c; totb1 += decode[3+(ofs)*2]*c; c = hc[2+(ofs)]; tota2 += decode[4+(ofs)*2]*c; totb2 += decode[5+(ofs)*2]*c; c = hc[3+(ofs)]; tota3 += decode[6+(ofs)*2]*c; totb3 += decode[7+(ofs)*2]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5032, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*2] * c; totb0 += decode[1+(ofs)*2] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5046, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*2] * c; totb0 += decode[1+(ofs)*2] * c; c = hc[1+(ofs)]; tota1 += decode[2+(ofs)*2] * c; totb1 += decode[3+(ofs)*2] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5051, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*2] * c; totb0 += decode[1+(ofs)*2] * c; c = hc[1+(ofs)]; tota1 += decode[2+(ofs)*2] * c; totb1 += decode[3+(ofs)*2] * c; c = hc[2+(ofs)]; tota2 += decode[4+(ofs)*2] * c; totb2 += decode[5+(ofs)*2] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5059, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "output[0] = (tota0+tota2)+(tota1+tota3); output[1] = (totb0+totb2)+(totb1+totb3); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 2;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5070, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5079, - "column": 1, - "source_line": "#define STBIR__horizontal_channels 2" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5080, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "stbir__simdf tot,c,d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1z( c, hc ); stbir__simdf_0123to0001( c, c ); stbir__simdf_load( d, decode ); stbir__simdf_mult( tot, d, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5089, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__simdf tot,c,cs,d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_load( d, decode ); stbir__simdf_mult( tot, d, c ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_load( d, decode+3 ); stbir__simdf_madd( tot, tot, d, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5097, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__simdf tot,c,d,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_load( d, decode ); stbir__simdf_mult( tot, d, c ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_load( d, decode+3 ); stbir__simdf_madd( tot, tot, d, c ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_load( d, decode+6 ); stbir__simdf_madd( tot, tot, d, c );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5108, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__simdf_store2( output, tot ); stbir__simdf_0123to2301( tot, tot ); stbir__simdf_store1( output+2, tot ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 3;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5122, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf8 tot0,tot1,c,cs; stbir__simdf t; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_mult_mem( tot0, c, decode - 1 ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_mult_mem( tot1, c, decode+6 - 1 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5133, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*3 - 1 ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+(ofs)*3 + 6 - 1 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5142, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1rep4( t, hc + (ofs) ); stbir__simdf8_madd_mem4( tot0, tot0, t, decode+(ofs)*3 - 1 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5150, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) - 2 ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*3 - 1 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5155, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*3 - 1 ); stbir__simdf8_0123to2222( t, cs ); stbir__simdf8_madd_mem4( tot1, tot1, t, decode+(ofs)*3 + 6 - 1 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5161, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf8_add( tot0, tot0, tot1 ); stbir__simdf_0123to1230( t, stbir__if_simdf8_cast_to_simdf4( tot0 ) ); stbir__simdf8_add4halves( t, t, tot0 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 3; if ( output < output_end ) { stbir__simdf_store( output-3, t ); continue; } { stbir__simdf tt; stbir__simdf_0123to2301( tt, t ); stbir__simdf_store2( output-3, t ); stbir__simdf_store1( output+2-3, tt ); } break;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5169, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf tot0,tot1,tot2,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0001( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_0123to1122( c, cs ); stbir__simdf_mult_mem( tot1, c, decode+4 ); stbir__simdf_0123to2333( c, cs ); stbir__simdf_mult_mem( tot2, c, decode+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5189, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0001( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*3 ); stbir__simdf_0123to1122( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*3+4 ); stbir__simdf_0123to2333( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+(ofs)*3+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5200, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1z( c, hc + (ofs) ); stbir__simdf_0123to0001( c, c ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*3 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5210, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "{ stbir__simdf d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2z( cs, hc + (ofs) ); stbir__simdf_0123to0001( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*3 ); stbir__simdf_0123to1122( c, cs ); stbir__simdf_load2z( d, decode+(ofs)*3+4 ); stbir__simdf_madd( tot1, tot1, c, d ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5216, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "{ stbir__simdf d; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0001( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*3 ); stbir__simdf_0123to1122( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*3+4 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_load1z( d, decode+(ofs)*3+8 ); stbir__simdf_madd( tot2, tot2, c, d ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5226, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf_0123ABCDto3ABx( c, tot0, tot1 ); stbir__simdf_0123ABCDto23Ax( cs, tot1, tot2 ); stbir__simdf_0123to1230( tot2, tot2 ); stbir__simdf_add( tot0, tot0, cs ); stbir__simdf_add( c, c, tot2 ); stbir__simdf_add( tot0, tot0, c ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 3; if ( output < output_end ) { stbir__simdf_store( output-3, tot0 ); continue; } stbir__simdf_0123to2301( tot1, tot0 ); stbir__simdf_store2( output-3, tot0 ); stbir__simdf_store1( output+2-3, tot1 ); break;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5238, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "float tot0, tot1, tot2, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5262, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "float tot0, tot1, tot2, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c; c = hc[1]; tot0 += decode[3]*c; tot1 += decode[4]*c; tot2 += decode[5]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5269, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "float tot0, tot1, tot2, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c; c = hc[1]; tot0 += decode[3]*c; tot1 += decode[4]*c; tot2 += decode[5]*c; c = hc[2]; tot0 += decode[6]*c; tot1 += decode[7]*c; tot2 += decode[8]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5280, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "output[0] = tot0; output[1] = tot1; output[2] = tot2; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 3;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5295, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "float tota0,tota1,tota2,totb0,totb1,totb2,totc0,totc1,totc2,totd0,totd1,totd2,c; c = hc[0]; tota0 = decode[0]*c; tota1 = decode[1]*c; tota2 = decode[2]*c; c = hc[1]; totb0 = decode[3]*c; totb1 = decode[4]*c; totb2 = decode[5]*c; c = hc[2]; totc0 = decode[6]*c; totc1 = decode[7]*c; totc2 = decode[8]*c; c = hc[3]; totd0 = decode[9]*c; totd1 = decode[10]*c; totd2 = decode[11]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5303, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*3]*c; tota1 += decode[1+(ofs)*3]*c; tota2 += decode[2+(ofs)*3]*c; c = hc[1+(ofs)]; totb0 += decode[3+(ofs)*3]*c; totb1 += decode[4+(ofs)*3]*c; totb2 += decode[5+(ofs)*3]*c; c = hc[2+(ofs)]; totc0 += decode[6+(ofs)*3]*c; totc1 += decode[7+(ofs)*3]*c; totc2 += decode[8+(ofs)*3]*c; c = hc[3+(ofs)]; totd0 += decode[9+(ofs)*3]*c; totd1 += decode[10+(ofs)*3]*c; totd2 += decode[11+(ofs)*3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5322, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*3]*c; tota1 += decode[1+(ofs)*3]*c; tota2 += decode[2+(ofs)*3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5340, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*3]*c; tota1 += decode[1+(ofs)*3]*c; tota2 += decode[2+(ofs)*3]*c; c = hc[1+(ofs)]; totb0 += decode[3+(ofs)*3]*c; totb1 += decode[4+(ofs)*3]*c; totb2 += decode[5+(ofs)*3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5346, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "c = hc[0+(ofs)]; tota0 += decode[0+(ofs)*3]*c; tota1 += decode[1+(ofs)*3]*c; tota2 += decode[2+(ofs)*3]*c; c = hc[1+(ofs)]; totb0 += decode[3+(ofs)*3]*c; totb1 += decode[4+(ofs)*3]*c; totb2 += decode[5+(ofs)*3]*c; c = hc[2+(ofs)]; totc0 += decode[6+(ofs)*3]*c; totc1 += decode[7+(ofs)*3]*c; totc2 += decode[8+(ofs)*3]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5356, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "output[0] = (tota0+totc0)+(totb0+totd0); output[1] = (tota1+totc1)+(totb1+totd1); output[2] = (tota2+totc2)+(totb2+totd2); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 3;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5370, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5380, - "column": 1, - "source_line": "#define STBIR__horizontal_channels 3" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5381, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "stbir__simdf tot,c; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1( c, hc ); stbir__simdf_0123to0000( c, c ); stbir__simdf_mult_mem( tot, c, decode );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5389, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__simdf tot,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot, c, decode ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot, tot, c, decode+4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5396, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__simdf tot,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot, c, decode ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot, tot, c, decode+4 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot, tot, c, decode+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5405, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__simdf_store( output, tot ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 4;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5416, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf8 tot0,c,cs; stbir__simdf t; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_mult_mem( tot0, c, decode ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5424, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*4 ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*4+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5433, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1rep4( t, hc + (ofs) ); stbir__simdf8_madd_mem4( tot0, tot0, t, decode+(ofs)*4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5441, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) - 2 ); stbir__simdf8_0123to22223333( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5446, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00001111( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*4 ); stbir__simdf8_0123to2222( t, cs ); stbir__simdf8_madd_mem4( tot0, tot0, t, decode+(ofs)*4+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5452, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf8_add4halves( t, stbir__if_simdf8_cast_to_simdf4(tot0), tot0 ); stbir__simdf_store( output, t ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 4;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5460, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf tot0,tot1,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_mult_mem( tot1, c, decode+4 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+8 ); stbir__simdf_0123to3333( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+12 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5469, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*4+4 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4+8 ); stbir__simdf_0123to3333( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*4+12 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5482, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1( c, hc + (ofs) ); stbir__simdf_0123to0000( c, c ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5494, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*4+4 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5500, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*4+4 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*4+8 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5508, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf_add( tot0, tot0, tot1 ); stbir__simdf_store( output, tot0 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 4;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5518, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "float p0,p1,p2,p3,c; STBIR_SIMD_NO_UNROLL(decode); c = hc[0]; p0 = decode[0] * c; p1 = decode[1] * c; p2 = decode[2] * c; p3 = decode[3] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5529, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "float p0,p1,p2,p3,c; STBIR_SIMD_NO_UNROLL(decode); c = hc[0]; p0 = decode[0] * c; p1 = decode[1] * c; p2 = decode[2] * c; p3 = decode[3] * c; c = hc[1]; p0 += decode[4] * c; p1 += decode[5] * c; p2 += decode[6] * c; p3 += decode[7] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5538, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "float p0,p1,p2,p3,c; STBIR_SIMD_NO_UNROLL(decode); c = hc[0]; p0 = decode[0] * c; p1 = decode[1] * c; p2 = decode[2] * c; p3 = decode[3] * c; c = hc[1]; p0 += decode[4] * c; p1 += decode[5] * c; p2 += decode[6] * c; p3 += decode[7] * c; c = hc[2]; p0 += decode[8] * c; p1 += decode[9] * c; p2 += decode[10] * c; p3 += decode[11] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5552, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "output[0] = p0; output[1] = p1; output[2] = p2; output[3] = p3; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 4;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5571, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "float x0,x1,x2,x3,y0,y1,y2,y3,c; STBIR_SIMD_NO_UNROLL(decode); c = hc[0]; x0 = decode[0] * c; x1 = decode[1] * c; x2 = decode[2] * c; x3 = decode[3] * c; c = hc[1]; y0 = decode[4] * c; y1 = decode[5] * c; y2 = decode[6] * c; y3 = decode[7] * c; c = hc[2]; x0 += decode[8] * c; x1 += decode[9] * c; x2 += decode[10] * c; x3 += decode[11] * c; c = hc[3]; y0 += decode[12] * c; y1 += decode[13] * c; y2 += decode[14] * c; y3 += decode[15] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5580, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*4] * c; x1 += decode[1+(ofs)*4] * c; x2 += decode[2+(ofs)*4] * c; x3 += decode[3+(ofs)*4] * c; c = hc[1+(ofs)]; y0 += decode[4+(ofs)*4] * c; y1 += decode[5+(ofs)*4] * c; y2 += decode[6+(ofs)*4] * c; y3 += decode[7+(ofs)*4] * c; c = hc[2+(ofs)]; x0 += decode[8+(ofs)*4] * c; x1 += decode[9+(ofs)*4] * c; x2 += decode[10+(ofs)*4] * c; x3 += decode[11+(ofs)*4] * c; c = hc[3+(ofs)]; y0 += decode[12+(ofs)*4] * c; y1 += decode[13+(ofs)*4] * c; y2 += decode[14+(ofs)*4] * c; y3 += decode[15+(ofs)*4] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5604, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*4] * c; x1 += decode[1+(ofs)*4] * c; x2 += decode[2+(ofs)*4] * c; x3 += decode[3+(ofs)*4] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5627, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*4] * c; x1 += decode[1+(ofs)*4] * c; x2 += decode[2+(ofs)*4] * c; x3 += decode[3+(ofs)*4] * c; c = hc[1+(ofs)]; y0 += decode[4+(ofs)*4] * c; y1 += decode[5+(ofs)*4] * c; y2 += decode[6+(ofs)*4] * c; y3 += decode[7+(ofs)*4] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5635, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*4] * c; x1 += decode[1+(ofs)*4] * c; x2 += decode[2+(ofs)*4] * c; x3 += decode[3+(ofs)*4] * c; c = hc[1+(ofs)]; y0 += decode[4+(ofs)*4] * c; y1 += decode[5+(ofs)*4] * c; y2 += decode[6+(ofs)*4] * c; y3 += decode[7+(ofs)*4] * c; c = hc[2+(ofs)]; x0 += decode[8+(ofs)*4] * c; x1 += decode[9+(ofs)*4] * c; x2 += decode[10+(ofs)*4] * c; x3 += decode[11+(ofs)*4] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5648, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "output[0] = x0 + y0; output[1] = x1 + y1; output[2] = x2 + y2; output[3] = x3 + y3; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 4;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5666, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5677, - "column": 1, - "source_line": "#define STBIR__horizontal_channels 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5678, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "stbir__simdf tot0,tot1,c; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1( c, hc ); stbir__simdf_0123to0000( c, c ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_mult_mem( tot1, c, decode+3 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5688, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__simdf tot0,tot1,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_mult_mem( tot1, c, decode+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+7 ); stbir__simdf_madd_mem( tot1, tot1, c,decode+10 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5696, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__simdf tot0,tot1,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_mult_mem( tot1, c, decode+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+7 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+10 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+14 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+17 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5707, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__simdf_store( output+3, tot1 ); stbir__simdf_store( output, tot0 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 7;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5721, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf8 tot0,tot1,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc ); stbir__simdf8_0123to00000000( c, cs ); stbir__simdf8_mult_mem( tot0, c, decode ); stbir__simdf8_0123to11111111( c, cs ); stbir__simdf8_mult_mem( tot1, c, decode+7 ); stbir__simdf8_0123to22222222( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+14 ); stbir__simdf8_0123to33333333( c, cs ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+21 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5730, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00000000( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf8_0123to11111111( c, cs ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+(ofs)*7+7 ); stbir__simdf8_0123to22222222( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7+14 ); stbir__simdf8_0123to33333333( c, cs ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+(ofs)*7+21 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5743, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load1b( c, hc + (ofs) ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5755, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load1b( c, hc + (ofs) ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf8_load1b( c, hc + (ofs)+1 ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+(ofs)*7+7 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5760, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf8_load4b( cs, hc + (ofs) ); stbir__simdf8_0123to00000000( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf8_0123to11111111( c, cs ); stbir__simdf8_madd_mem( tot1, tot1, c, decode+(ofs)*7+7 ); stbir__simdf8_0123to22222222( c, cs ); stbir__simdf8_madd_mem( tot0, tot0, c, decode+(ofs)*7+14 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5767, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf8_add( tot0, tot0, tot1 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 7; if ( output < output_end ) { stbir__simdf8_store( output-7, tot0 ); continue; } stbir__simdf_store( output-7+3, stbir__simdf_swiz(stbir__simdf8_gettop4(tot0),0,0,1,2) ); stbir__simdf_store( output-7, stbir__if_simdf8_cast_to_simdf4(tot0) ); break;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5777, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__simdf tot0,tot1,tot2,tot3,c,cs; STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_mult_mem( tot0, c, decode ); stbir__simdf_mult_mem( tot1, c, decode+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_mult_mem( tot2, c, decode+7 ); stbir__simdf_mult_mem( tot3, c, decode+10 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+14 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+17 ); stbir__simdf_0123to3333( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+21 ); stbir__simdf_madd_mem( tot3, tot3, c, decode+24 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5793, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+(ofs)*7+7 ); stbir__simdf_madd_mem( tot3, tot3, c, decode+(ofs)*7+10 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7+14 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+17 ); stbir__simdf_0123to3333( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+(ofs)*7+21 ); stbir__simdf_madd_mem( tot3, tot3, c, decode+(ofs)*7+24 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5810, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load1( c, hc + (ofs) ); stbir__simdf_0123to0000( c, c ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+3 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5826, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load2( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+(ofs)*7+7 ); stbir__simdf_madd_mem( tot3, tot3, c, decode+(ofs)*7+10 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5833, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); stbir__simdf_load( cs, hc + (ofs) ); stbir__simdf_0123to0000( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+3 ); stbir__simdf_0123to1111( c, cs ); stbir__simdf_madd_mem( tot2, tot2, c, decode+(ofs)*7+7 ); stbir__simdf_madd_mem( tot3, tot3, c, decode+(ofs)*7+10 ); stbir__simdf_0123to2222( c, cs ); stbir__simdf_madd_mem( tot0, tot0, c, decode+(ofs)*7+14 ); stbir__simdf_madd_mem( tot1, tot1, c, decode+(ofs)*7+17 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5843, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "stbir__simdf_add( tot0, tot0, tot2 ); stbir__simdf_add( tot1, tot1, tot3 ); stbir__simdf_store( output+3, tot1 ); stbir__simdf_store( output, tot0 ); horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 7;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5856, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "stbir__1_coeff_only", - "value": "float tot0, tot1, tot2, tot3, tot4, tot5, tot6, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c; tot3 = decode[3]*c; tot4 = decode[4]*c; tot5 = decode[5]*c; tot6 = decode[6]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5869, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "float tot0, tot1, tot2, tot3, tot4, tot5, tot6, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c; tot3 = decode[3]*c; tot4 = decode[4]*c; tot5 = decode[5]*c; tot6 = decode[6]*c; c = hc[1]; tot0 += decode[7]*c; tot1 += decode[8]*c; tot2 += decode[9]*c; tot3 += decode[10]*c; tot4 += decode[11]*c; tot5 += decode[12]*c; tot6 += decode[13]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5880, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "float tot0, tot1, tot2, tot3, tot4, tot5, tot6, c; c = hc[0]; tot0 = decode[0]*c; tot1 = decode[1]*c; tot2 = decode[2]*c; tot3 = decode[3]*c; tot4 = decode[4]*c; tot5 = decode[5]*c; tot6 = decode[6]*c; c = hc[1]; tot0 += decode[7]*c; tot1 += decode[8]*c; tot2 += decode[9]*c; tot3 += decode[10]*c; tot4 += decode[11]*c; tot5 += decode[12]*c; tot6 += decode[13]*c; c = hc[2]; tot0 += decode[14]*c; tot1 += decode[15]*c; tot2 += decode[16]*c; tot3 += decode[17]*c; tot4 += decode[18]*c; tot5 += decode[19]*c; tot6 += decode[20]*c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5899, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "output[0] = tot0; output[1] = tot1; output[2] = tot2; output[3] = tot3; output[4] = tot4; output[5] = tot5; output[6] = tot6; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 7;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5926, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "float x0,x1,x2,x3,x4,x5,x6,y0,y1,y2,y3,y4,y5,y6,c; STBIR_SIMD_NO_UNROLL(decode); c = hc[0]; x0 = decode[0] * c; x1 = decode[1] * c; x2 = decode[2] * c; x3 = decode[3] * c; x4 = decode[4] * c; x5 = decode[5] * c; x6 = decode[6] * c; c = hc[1]; y0 = decode[7] * c; y1 = decode[8] * c; y2 = decode[9] * c; y3 = decode[10] * c; y4 = decode[11] * c; y5 = decode[12] * c; y6 = decode[13] * c; c = hc[2]; x0 += decode[14] * c; x1 += decode[15] * c; x2 += decode[16] * c; x3 += decode[17] * c; x4 += decode[18] * c; x5 += decode[19] * c; x6 += decode[20] * c; c = hc[3]; y0 += decode[21] * c; y1 += decode[22] * c; y2 += decode[23] * c; y3 += decode[24] * c; y4 += decode[25] * c; y5 += decode[26] * c; y6 += decode[27] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5938, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*7] * c; x1 += decode[1+(ofs)*7] * c; x2 += decode[2+(ofs)*7] * c; x3 += decode[3+(ofs)*7] * c; x4 += decode[4+(ofs)*7] * c; x5 += decode[5+(ofs)*7] * c; x6 += decode[6+(ofs)*7] * c; c = hc[1+(ofs)]; y0 += decode[7+(ofs)*7] * c; y1 += decode[8+(ofs)*7] * c; y2 += decode[9+(ofs)*7] * c; y3 += decode[10+(ofs)*7] * c; y4 += decode[11+(ofs)*7] * c; y5 += decode[12+(ofs)*7] * c; y6 += decode[13+(ofs)*7] * c; c = hc[2+(ofs)]; x0 += decode[14+(ofs)*7] * c; x1 += decode[15+(ofs)*7] * c; x2 += decode[16+(ofs)*7] * c; x3 += decode[17+(ofs)*7] * c; x4 += decode[18+(ofs)*7] * c; x5 += decode[19+(ofs)*7] * c; x6 += decode[20+(ofs)*7] * c; c = hc[3+(ofs)]; y0 += decode[21+(ofs)*7] * c; y1 += decode[22+(ofs)*7] * c; y2 += decode[23+(ofs)*7] * c; y3 += decode[24+(ofs)*7] * c; y4 += decode[25+(ofs)*7] * c; y5 += decode[26+(ofs)*7] * c; y6 += decode[27+(ofs)*7] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5974, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*7] * c; x1 += decode[1+(ofs)*7] * c; x2 += decode[2+(ofs)*7] * c; x3 += decode[3+(ofs)*7] * c; x4 += decode[4+(ofs)*7] * c; x5 += decode[5+(ofs)*7] * c; x6 += decode[6+(ofs)*7] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6009, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*7] * c; x1 += decode[1+(ofs)*7] * c; x2 += decode[2+(ofs)*7] * c; x3 += decode[3+(ofs)*7] * c; x4 += decode[4+(ofs)*7] * c; x5 += decode[5+(ofs)*7] * c; x6 += decode[6+(ofs)*7] * c; c = hc[1+(ofs)]; y0 += decode[7+(ofs)*7] * c; y1 += decode[8+(ofs)*7] * c; y2 += decode[9+(ofs)*7] * c; y3 += decode[10+(ofs)*7] * c; y4 += decode[11+(ofs)*7] * c; y5 += decode[12+(ofs)*7] * c; y6 += decode[13+(ofs)*7] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6020, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "STBIR_SIMD_NO_UNROLL(decode); c = hc[0+(ofs)]; x0 += decode[0+(ofs)*7] * c; x1 += decode[1+(ofs)*7] * c; x2 += decode[2+(ofs)*7] * c; x3 += decode[3+(ofs)*7] * c; x4 += decode[4+(ofs)*7] * c; x5 += decode[5+(ofs)*7] * c; x6 += decode[6+(ofs)*7] * c; c = hc[1+(ofs)]; y0 += decode[7+(ofs)*7] * c; y1 += decode[8+(ofs)*7] * c; y2 += decode[9+(ofs)*7] * c; y3 += decode[10+(ofs)*7] * c; y4 += decode[11+(ofs)*7] * c; y5 += decode[12+(ofs)*7] * c; y6 += decode[13+(ofs)*7] * c; c = hc[2+(ofs)]; x0 += decode[14+(ofs)*7] * c; x1 += decode[15+(ofs)*7] * c; x2 += decode[16+(ofs)*7] * c; x3 += decode[17+(ofs)*7] * c; x4 += decode[18+(ofs)*7] * c; x5 += decode[19+(ofs)*7] * c; x6 += decode[20+(ofs)*7] * c;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6039, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__store_output", - "value": "output[0] = x0 + y0; output[1] = x1 + y1; output[2] = x2 + y2; output[3] = x3 + y3; output[4] = x4 + y4; output[5] = x5 + y5; output[6] = x6 + y6; horizontal_coefficients += coefficient_width; ++horizontal_contributors; output += 7;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6066, - "column": 1, - "source_line": "#define stbir__store_output() \\" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": "7", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6080, - "column": 1, - "source_line": "#define STBIR__horizontal_channels 7" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6081, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6087, - "column": 1, - "source_line": "#define STBIR__vertical_channels 1" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6088, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6091, - "column": 1, - "source_line": "#define STBIR__vertical_channels 1" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6092, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6093, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6096, - "column": 1, - "source_line": "#define STBIR__vertical_channels 2" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6097, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6100, - "column": 1, - "source_line": "#define STBIR__vertical_channels 2" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6101, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6102, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6105, - "column": 1, - "source_line": "#define STBIR__vertical_channels 3" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6106, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6109, - "column": 1, - "source_line": "#define STBIR__vertical_channels 3" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6110, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6111, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6114, - "column": 1, - "source_line": "#define STBIR__vertical_channels 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6115, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6118, - "column": 1, - "source_line": "#define STBIR__vertical_channels 4" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6119, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6120, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "5", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6123, - "column": 1, - "source_line": "#define STBIR__vertical_channels 5" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6124, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "5", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6127, - "column": 1, - "source_line": "#define STBIR__vertical_channels 5" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6128, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6129, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6132, - "column": 1, - "source_line": "#define STBIR__vertical_channels 6" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6133, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "6", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6136, - "column": 1, - "source_line": "#define STBIR__vertical_channels 6" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6137, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6138, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "7", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6141, - "column": 1, - "source_line": "#define STBIR__vertical_channels 7" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6142, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "7", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6145, - "column": 1, - "source_line": "#define STBIR__vertical_channels 7" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6146, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6147, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6150, - "column": 1, - "source_line": "#define STBIR__vertical_channels 8" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6151, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6154, - "column": 1, - "source_line": "#define STBIR__vertical_channels 8" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6155, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6156, - "column": 1, - "source_line": "#define STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR__FLOAT_EMPTY_MARKER", - "value": "3.0e+38F", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6371, - "column": 1, - "source_line": "#define STBIR__FLOAT_EMPTY_MARKER 3.0e+38F" - } - }, - { - "name": "STBIR__FLOAT_BUFFER_IS_EMPTY", - "value": "((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6372, - "column": 1, - "source_line": "#define STBIR__FLOAT_BUFFER_IS_EMPTY(ptr) ((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)" - } - }, - { - "name": "STBIR__FREE_AND_CLEAR", - "value": "{ if ( ptr ) { void * p = (ptr); (ptr) = 0; STBIR_FREE( p, info->user_data); } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6819, - "column": 3, - "source_line": " #define STBIR__FREE_AND_CLEAR( ptr ) { if ( ptr ) { void * p = (ptr); (ptr) = 0; STBIR_FREE( p, info->user_data); } }" - } - }, - { - "name": "STBIR__FREE_AND_CLEAR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6865, - "column": 3, - "source_line": " #undef STBIR__FREE_AND_CLEAR" - } - }, - { - "name": "STBIR_RESIZE_CLASSIFICATIONS", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6894, - "column": 1, - "source_line": "#define STBIR_RESIZE_CLASSIFICATIONS 8" - } - }, - { - "name": "STBIR__V_FIRST_INFO_POINTER", - "value": "&STBIR__V_FIRST_INFO_BUFFER", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6958, - "column": 1, - "source_line": "#define STBIR__V_FIRST_INFO_POINTER &STBIR__V_FIRST_INFO_BUFFER" - } - }, - { - "name": "STBIR__V_FIRST_INFO_POINTER", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6960, - "column": 1, - "source_line": "#define STBIR__V_FIRST_INFO_POINTER 0" - } - }, - { - "name": "STBIR__NEXT_PTR", - "value": "if ( alloced ) { void * p = STBIR_MALLOC( size, user_data); if ( p == 0 ) { stbir__free_internal_mem( info ); return 0; } (ptr) = (ntype*)p; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7143, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) if ( alloced ) { void * p = STBIR_MALLOC( size, user_data); if ( p == 0 ) { stbir__free_internal_mem( info ); return 0; } (ptr) = (ntype*)p; }" - } - }, - { - "name": "STBIR__NEXT_PTR", - "value": "advance_mem = (void*) ( ( ((size_t)advance_mem) + 15 ) & ~15 ); if ( alloced ) ptr = (ntype*)advance_mem; advance_mem = (char*)(((size_t)advance_mem) + (size));", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7145, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) advance_mem = (void*) ( ( ((size_t)advance_mem) + 15 ) & ~15 ); if ( alloced ) ptr = (ntype*)advance_mem; advance_mem = (char*)(((size_t)advance_mem) + (size));" - } - }, - { - "name": "STBIR__NEXT_PTR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7364, - "column": 5, - "source_line": " #undef STBIR__NEXT_PTR" - } - }, - { - "name": "STBIR_RETURN_ERROR_AND_ASSERT", - "value": "STBIR_ASSERT( !(exp) ); if (exp) return 0;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7891, - "column": 3, - "source_line": " #define STBIR_RETURN_ERROR_AND_ASSERT( exp ) STBIR_ASSERT( !(exp) ); if (exp) return 0;" - } - }, - { - "name": "STBIR_RETURN_ERROR_AND_ASSERT", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7894, - "column": 3, - "source_line": " #undef STBIR_RETURN_ERROR_AND_ASSERT" - } - }, - { - "name": "STBIR_BGR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8226, - "column": 1, - "source_line": "#undef STBIR_BGR" - } - }, - { - "name": "STBIR_1CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8227, - "column": 1, - "source_line": "#undef STBIR_1CHANNEL" - } - }, - { - "name": "STBIR_2CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8228, - "column": 1, - "source_line": "#undef STBIR_2CHANNEL" - } - }, - { - "name": "STBIR_RGB", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8229, - "column": 1, - "source_line": "#undef STBIR_RGB" - } - }, - { - "name": "STBIR_RGBA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8230, - "column": 1, - "source_line": "#undef STBIR_RGBA" - } - }, - { - "name": "STBIR_4CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8231, - "column": 1, - "source_line": "#undef STBIR_4CHANNEL" - } - }, - { - "name": "STBIR_BGRA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8232, - "column": 1, - "source_line": "#undef STBIR_BGRA" - } - }, - { - "name": "STBIR_ARGB", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8233, - "column": 1, - "source_line": "#undef STBIR_ARGB" - } - }, - { - "name": "STBIR_ABGR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8234, - "column": 1, - "source_line": "#undef STBIR_ABGR" - } - }, - { - "name": "STBIR_RA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8235, - "column": 1, - "source_line": "#undef STBIR_RA" - } - }, - { - "name": "STBIR_AR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8236, - "column": 1, - "source_line": "#undef STBIR_AR" - } - }, - { - "name": "STBIR_RGBA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8237, - "column": 1, - "source_line": "#undef STBIR_RGBA_PM" - } - }, - { - "name": "STBIR_BGRA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8238, - "column": 1, - "source_line": "#undef STBIR_BGRA_PM" - } - }, - { - "name": "STBIR_ARGB_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8239, - "column": 1, - "source_line": "#undef STBIR_ARGB_PM" - } - }, - { - "name": "STBIR_ABGR_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8240, - "column": 1, - "source_line": "#undef STBIR_ABGR_PM" - } - }, - { - "name": "STBIR_RA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8241, - "column": 1, - "source_line": "#undef STBIR_RA_PM" - } - }, - { - "name": "STBIR_AR_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8242, - "column": 1, - "source_line": "#undef STBIR_AR_PM" - } - }, - { - "name": "STBIR_strs_join2", - "value": "start##mid##end", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8253, - "column": 1, - "source_line": "#define STBIR_strs_join2( start, mid, end ) start##mid##end" - } - }, - { - "name": "STBIR_strs_join1", - "value": "STBIR_strs_join2( start, mid, end )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8254, - "column": 1, - "source_line": "#define STBIR_strs_join1( start, mid, end ) STBIR_strs_join2( start, mid, end )" - } - }, - { - "name": "STBIR_strs_join24", - "value": "start##mid1##mid2##end", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8256, - "column": 1, - "source_line": "#define STBIR_strs_join24( start, mid1, mid2, end ) start##mid1##mid2##end" - } - }, - { - "name": "STBIR_strs_join14", - "value": "STBIR_strs_join24( start, mid1, mid2, end )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8257, - "column": 1, - "source_line": "#define STBIR_strs_join14( start, mid1, mid2, end ) STBIR_strs_join24( start, mid1, mid2, end )" - } - }, - { - "name": "STBIR__CODER_NAME", - "value": "STBIR_strs_join1( name, _, stbir__decode_suffix )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8262, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) STBIR_strs_join1( name, _, stbir__decode_suffix )" - } - }, - { - "name": "STBIR__CODER_NAME", - "value": "name", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8264, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) name" - } - }, - { - "name": "stbir__decode_simdf8_flip", - "value": "STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3),stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8268, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3),stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - } - }, - { - "name": "stbir__decode_simdf4_flip", - "value": "STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8269, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - } - }, - { - "name": "stbir__encode_simdf8_unflip", - "value": "STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3),stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8270, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3),stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - } - }, - { - "name": "stbir__encode_simdf4_unflip", - "value": "STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8271, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - } - }, - { - "name": "stbir__decode_order0", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8273, - "column": 1, - "source_line": "#define stbir__decode_order0 0" - } - }, - { - "name": "stbir__decode_order1", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8274, - "column": 1, - "source_line": "#define stbir__decode_order1 1" - } - }, - { - "name": "stbir__decode_order2", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8275, - "column": 1, - "source_line": "#define stbir__decode_order2 2" - } - }, - { - "name": "stbir__decode_order3", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8276, - "column": 1, - "source_line": "#define stbir__decode_order3 3" - } - }, - { - "name": "stbir__encode_order0", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8277, - "column": 1, - "source_line": "#define stbir__encode_order0 0" - } - }, - { - "name": "stbir__encode_order1", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8278, - "column": 1, - "source_line": "#define stbir__encode_order1 1" - } - }, - { - "name": "stbir__encode_order2", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8279, - "column": 1, - "source_line": "#define stbir__encode_order2 2" - } - }, - { - "name": "stbir__encode_order3", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8280, - "column": 1, - "source_line": "#define stbir__encode_order3 3" - } - }, - { - "name": "stbir__decode_simdf8_flip", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8281, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg)" - } - }, - { - "name": "stbir__decode_simdf4_flip", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8282, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg)" - } - }, - { - "name": "stbir__encode_simdf8_unflip", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8283, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg)" - } - }, - { - "name": "stbir__encode_simdf4_unflip", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8284, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg)" - } - }, - { - "name": "stbir__encode_simdfX_unflip", - "value": "stbir__encode_simdf8_unflip", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8288, - "column": 1, - "source_line": "#define stbir__encode_simdfX_unflip stbir__encode_simdf8_unflip" - } - }, - { - "name": "stbir__encode_simdfX_unflip", - "value": "stbir__encode_simdf4_unflip", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8290, - "column": 1, - "source_line": "#define stbir__encode_simdfX_unflip stbir__encode_simdf4_unflip" - } - }, - { - "name": "stbir__min_max_shift20", - "value": "stbir__simdf_max( f, f, stbir_simdf_casti(STBIR__CONSTI( STBIR_almost_zero )) ); stbir__simdf_min( f, f, stbir_simdf_casti(STBIR__CONSTI( STBIR_almost_one )) ); stbir__simdi_32shr( i, stbir_simdi_castf( f ), 20 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8747, - "column": 1, - "source_line": "#define stbir__min_max_shift20( i, f ) \\" - } - }, - { - "name": "stbir__scale_and_convert", - "value": "stbir__simdf_madd( f, STBIR__CONSTF( STBIR_simd_point5 ), STBIR__CONSTF( STBIR_max_uint8_as_float ), f ); stbir__simdf_max( f, f, stbir__simdf_zeroP() ); stbir__simdf_min( f, f, STBIR__CONSTF( STBIR_max_uint8_as_float ) ); stbir__simdf_convert_float_to_i32( i, f );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8752, - "column": 1, - "source_line": "#define stbir__scale_and_convert( i, f ) \\" - } - }, - { - "name": "stbir__linear_to_srgb_finish", - "value": "{ stbir__simdi temp; stbir__simdi_32shr( temp, stbir_simdi_castf( f ), 12 ) ; stbir__simdi_and( temp, temp, STBIR__CONSTI(STBIR_mantissa_mask) ); stbir__simdi_or( temp, temp, STBIR__CONSTI(STBIR_topscale) ); stbir__simdi_16madd( i, i, temp ); stbir__simdi_32shr( i, i, 16 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8758, - "column": 1, - "source_line": "#define stbir__linear_to_srgb_finish( i, f ) \\" - } - }, - { - "name": "stbir__simdi_table_lookup2", - "value": "{ stbir__simdi_u32 temp0,temp1; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8768, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup2( v0,v1, table ) \\" - } - }, - { - "name": "stbir__simdi_table_lookup3", - "value": "{ stbir__simdi_u32 temp0,temp1,temp2; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp2.m128i_i128 = v2; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; temp2.m128i_u32[0] = table[temp2.m128i_i32[0]]; temp2.m128i_u32[1] = table[temp2.m128i_i32[1]]; temp2.m128i_u32[2] = table[temp2.m128i_i32[2]]; temp2.m128i_u32[3] = table[temp2.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; v2 = temp2.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8779, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup3( v0,v1,v2, table ) \\" - } - }, - { - "name": "stbir__simdi_table_lookup4", - "value": "{ stbir__simdi_u32 temp0,temp1,temp2,temp3; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp2.m128i_i128 = v2; temp3.m128i_i128 = v3; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; temp2.m128i_u32[0] = table[temp2.m128i_i32[0]]; temp2.m128i_u32[1] = table[temp2.m128i_i32[1]]; temp2.m128i_u32[2] = table[temp2.m128i_i32[2]]; temp2.m128i_u32[3] = table[temp2.m128i_i32[3]]; temp3.m128i_u32[0] = table[temp3.m128i_i32[0]]; temp3.m128i_u32[1] = table[temp3.m128i_i32[1]]; temp3.m128i_u32[2] = table[temp3.m128i_i32[2]]; temp3.m128i_u32[3] = table[temp3.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; v2 = temp2.m128i_i128; v3 = temp3.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8793, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup4( v0,v1,v2,v3, table ) \\" - } - }, - { - "name": "stbir_scalar_hi_clamp", - "value": "if ( v > STBIR_FLOAT_HIGH_CLAMP ) v = STBIR_FLOAT_HIGH_CLAMP;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9750, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v ) if ( v > STBIR_FLOAT_HIGH_CLAMP ) v = STBIR_FLOAT_HIGH_CLAMP;" - } - }, - { - "name": "stbir_scalar_hi_clamp", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9752, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v )" - } - }, - { - "name": "stbir_scalar_lo_clamp", - "value": "if ( v < STBIR_FLOAT_LOW_CLAMP ) v = STBIR_FLOAT_LOW_CLAMP;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9755, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v ) if ( v < STBIR_FLOAT_LOW_CLAMP ) v = STBIR_FLOAT_LOW_CLAMP;" - } - }, - { - "name": "stbir_scalar_lo_clamp", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9757, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v )" - } - }, - { - "name": "stbir__decode_suffix", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9872, - "column": 1, - "source_line": "#undef stbir__decode_suffix" - } - }, - { - "name": "stbir__decode_simdf8_flip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9873, - "column": 1, - "source_line": "#undef stbir__decode_simdf8_flip" - } - }, - { - "name": "stbir__decode_simdf4_flip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9874, - "column": 1, - "source_line": "#undef stbir__decode_simdf4_flip" - } - }, - { - "name": "stbir__decode_order0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9875, - "column": 1, - "source_line": "#undef stbir__decode_order0" - } - }, - { - "name": "stbir__decode_order1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9876, - "column": 1, - "source_line": "#undef stbir__decode_order1" - } - }, - { - "name": "stbir__decode_order2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9877, - "column": 1, - "source_line": "#undef stbir__decode_order2" - } - }, - { - "name": "stbir__decode_order3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9878, - "column": 1, - "source_line": "#undef stbir__decode_order3" - } - }, - { - "name": "stbir__encode_order0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9879, - "column": 1, - "source_line": "#undef stbir__encode_order0" - } - }, - { - "name": "stbir__encode_order1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9880, - "column": 1, - "source_line": "#undef stbir__encode_order1" - } - }, - { - "name": "stbir__encode_order2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9881, - "column": 1, - "source_line": "#undef stbir__encode_order2" - } - }, - { - "name": "stbir__encode_order3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9882, - "column": 1, - "source_line": "#undef stbir__encode_order3" - } - }, - { - "name": "stbir__encode_simdf8_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9883, - "column": 1, - "source_line": "#undef stbir__encode_simdf8_unflip" - } - }, - { - "name": "stbir__encode_simdf4_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9884, - "column": 1, - "source_line": "#undef stbir__encode_simdf4_unflip" - } - }, - { - "name": "stbir__encode_simdfX_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9885, - "column": 1, - "source_line": "#undef stbir__encode_simdfX_unflip" - } - }, - { - "name": "STBIR__CODER_NAME", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9886, - "column": 1, - "source_line": "#undef STBIR__CODER_NAME" - } - }, - { - "name": "stbir__coder_min_num", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9887, - "column": 1, - "source_line": "#undef stbir__coder_min_num" - } - }, - { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9888, - "column": 1, - "source_line": "#undef stbir__decode_swizzle" - } - }, - { - "name": "stbir_scalar_hi_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9889, - "column": 1, - "source_line": "#undef stbir_scalar_hi_clamp" - } - }, - { - "name": "stbir_scalar_lo_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9890, - "column": 1, - "source_line": "#undef stbir_scalar_lo_clamp" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9891, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "name": "STBIR_chans", - "value": "STBIR_strs_join14(start,STBIR__vertical_channels,end,_cont)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9896, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join14(start,STBIR__vertical_channels,end,_cont)" - } - }, - { - "name": "STBIR_chans", - "value": "STBIR_strs_join1(start,STBIR__vertical_channels,end)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9898, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__vertical_channels,end)" - } - }, - { - "name": "stbIF0", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9902, - "column": 1, - "source_line": "#define stbIF0( code ) code" - } - }, - { - "name": "stbIF0", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9904, - "column": 1, - "source_line": "#define stbIF0( code )" - } - }, - { - "name": "stbIF1", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9907, - "column": 1, - "source_line": "#define stbIF1( code ) code" - } - }, - { - "name": "stbIF1", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9909, - "column": 1, - "source_line": "#define stbIF1( code )" - } - }, - { - "name": "stbIF2", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9912, - "column": 1, - "source_line": "#define stbIF2( code ) code" - } - }, - { - "name": "stbIF2", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9914, - "column": 1, - "source_line": "#define stbIF2( code )" - } - }, - { - "name": "stbIF3", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9917, - "column": 1, - "source_line": "#define stbIF3( code ) code" - } - }, - { - "name": "stbIF3", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9919, - "column": 1, - "source_line": "#define stbIF3( code )" - } - }, - { - "name": "stbIF4", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9922, - "column": 1, - "source_line": "#define stbIF4( code ) code" - } - }, - { - "name": "stbIF4", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9924, - "column": 1, - "source_line": "#define stbIF4( code )" - } - }, - { - "name": "stbIF5", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9927, - "column": 1, - "source_line": "#define stbIF5( code ) code" - } - }, - { - "name": "stbIF5", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9929, - "column": 1, - "source_line": "#define stbIF5( code )" - } - }, - { - "name": "stbIF6", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9932, - "column": 1, - "source_line": "#define stbIF6( code ) code" - } - }, - { - "name": "stbIF6", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9934, - "column": 1, - "source_line": "#define stbIF6( code )" - } - }, - { - "name": "stbIF7", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9937, - "column": 1, - "source_line": "#define stbIF7( code ) code" - } - }, - { - "name": "stbIF7", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9939, - "column": 1, - "source_line": "#define stbIF7( code )" - } - }, - { - "name": "stbIF0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10262, - "column": 1, - "source_line": "#undef stbIF0" - } - }, - { - "name": "stbIF1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10263, - "column": 1, - "source_line": "#undef stbIF1" - } - }, - { - "name": "stbIF2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10264, - "column": 1, - "source_line": "#undef stbIF2" - } - }, - { - "name": "stbIF3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10265, - "column": 1, - "source_line": "#undef stbIF3" - } - }, - { - "name": "stbIF4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10266, - "column": 1, - "source_line": "#undef stbIF4" - } - }, - { - "name": "stbIF5", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10267, - "column": 1, - "source_line": "#undef stbIF5" - } - }, - { - "name": "stbIF6", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10268, - "column": 1, - "source_line": "#undef stbIF6" - } - }, - { - "name": "stbIF7", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10269, - "column": 1, - "source_line": "#undef stbIF7" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10270, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "name": "STBIR__vertical_channels", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10271, - "column": 1, - "source_line": "#undef STBIR__vertical_channels" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10272, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "STBIR_strs_join24", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10273, - "column": 1, - "source_line": "#undef STBIR_strs_join24" - } - }, - { - "name": "STBIR_strs_join14", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10274, - "column": 1, - "source_line": "#undef STBIR_strs_join14" - } - }, - { - "name": "STBIR_chans", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10275, - "column": 1, - "source_line": "#undef STBIR_chans" - } - }, - { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10277, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "name": "STBIR_chans", - "value": "STBIR_strs_join1(start,STBIR__horizontal_channels,end)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10282, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__horizontal_channels,end)" - } - }, - { - "name": "stbir__2_coeff_only", - "value": "stbir__1_coeff_only(); stbir__1_coeff_remnant(1);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10285, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": "stbir__1_coeff_remnant(ofs); stbir__1_coeff_remnant((ofs)+1);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10291, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_only", - "value": "stbir__2_coeff_only(); stbir__1_coeff_remnant(2);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10297, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": "stbir__2_coeff_remnant(ofs); stbir__1_coeff_remnant((ofs)+2);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10303, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - } - }, - { - "name": "stbir__3_coeff_setup", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10309, - "column": 1, - "source_line": "#define stbir__3_coeff_setup()" - } - }, - { - "name": "stbir__4_coeff_start", - "value": "stbir__2_coeff_only(); stbir__2_coeff_remnant(2);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10313, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": "stbir__2_coeff_remnant(ofs); stbir__2_coeff_remnant((ofs)+2);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10319, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - } - }, - { - "name": "stbir__store_output_tiny", - "value": "stbir__store_output", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10325, - "column": 1, - "source_line": "#define stbir__store_output_tiny stbir__store_output" - } - }, - { - "name": "STBIR__horizontal_channels", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10617, - "column": 1, - "source_line": "#undef STBIR__horizontal_channels" - } - }, - { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10618, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - { - "name": "stbir__1_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10619, - "column": 1, - "source_line": "#undef stbir__1_coeff_only" - } - }, - { - "name": "stbir__1_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10620, - "column": 1, - "source_line": "#undef stbir__1_coeff_remnant" - } - }, - { - "name": "stbir__2_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10621, - "column": 1, - "source_line": "#undef stbir__2_coeff_only" - } - }, - { - "name": "stbir__2_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10622, - "column": 1, - "source_line": "#undef stbir__2_coeff_remnant" - } - }, - { - "name": "stbir__3_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10623, - "column": 1, - "source_line": "#undef stbir__3_coeff_only" - } - }, - { - "name": "stbir__3_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10624, - "column": 1, - "source_line": "#undef stbir__3_coeff_remnant" - } - }, - { - "name": "stbir__3_coeff_setup", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10625, - "column": 1, - "source_line": "#undef stbir__3_coeff_setup" - } - }, - { - "name": "stbir__4_coeff_start", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10626, - "column": 1, - "source_line": "#undef stbir__4_coeff_start" - } - }, - { - "name": "stbir__4_coeff_continue_from_4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10627, - "column": 1, - "source_line": "#undef stbir__4_coeff_continue_from_4" - } - }, - { - "name": "stbir__store_output", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10628, - "column": 1, - "source_line": "#undef stbir__store_output" - } - }, - { - "name": "stbir__store_output_tiny", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10629, - "column": 1, - "source_line": "#undef stbir__store_output_tiny" - } - }, - { - "name": "STBIR_chans", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10630, - "column": 1, - "source_line": "#undef STBIR_chans" - } - }, - { - "name": "STBIR_strs_join2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10634, - "column": 1, - "source_line": "#undef STBIR_strs_join2" - } - }, - { - "name": "STBIR_strs_join1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10635, - "column": 1, - "source_line": "#undef STBIR_strs_join1" - } - } - ], - "includes": [ - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 391, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 398, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 786, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 791, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "emmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1306, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "immintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1379, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "smmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1478, - "column": 5, - "source_line": " #include " - } - }, - { - "target": "immintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1501, - "column": 5, - "source_line": " #include " - } - }, - { - "target": "arm_neon.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1711, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "wasm_simd128.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1976, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "immintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2299, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2819, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2831, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "if", - "argument": "!defined(STB_IMAGE_RESIZE_DO_HORIZONTALS) && !defined(STB_IMAGE_RESIZE_DO_VERTICALS) && !defined(STB_IMAGE_RESIZE_DO_CODERS)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 386, - "column": 1, - "source_line": "#if !defined(STB_IMAGE_RESIZE_DO_HORIZONTALS) && !defined(STB_IMAGE_RESIZE_DO_VERTICALS) && !defined(STB_IMAGE_RESIZE_DO_CODERS) // for internal re-includes" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_INCLUDE_STB_IMAGE_RESIZE2_H", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 388, - "column": 1, - "source_line": "#ifndef STBIR_INCLUDE_STB_IMAGE_RESIZE2_H" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 392, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 397, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 403, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIRDEF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 405, - "column": 1, - "source_line": "#ifndef STBIRDEF" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_STATIC", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 406, - "column": 1, - "source_line": "#ifdef STB_IMAGE_RESIZE_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 408, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 409, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 411, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 413, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 414, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 415, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 751, - "column": 1, - "source_line": "#ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 777, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 781, - "column": 1, - "source_line": "#endif // STBIR_INCLUDE_STB_IMAGE_RESIZE2_H" - } - }, - { - "directive": "if", - "argument": "defined(STB_IMAGE_RESIZE_IMPLEMENTATION) || defined(STB_IMAGE_RESIZE2_IMPLEMENTATION)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 783, - "column": 1, - "source_line": "#if defined(STB_IMAGE_RESIZE_IMPLEMENTATION) || defined(STB_IMAGE_RESIZE2_IMPLEMENTATION)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_ASSERT", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 785, - "column": 1, - "source_line": "#ifndef STBIR_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 788, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_MALLOC", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 790, - "column": 1, - "source_line": "#ifndef STBIR_MALLOC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 795, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 797, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 801, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "if", - "argument": "defined(__has_feature)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 806, - "column": 1, - "source_line": "#if defined(__has_feature)" - } - }, - { - "directive": "if", - "argument": "__has_feature(address_sanitizer) || __has_feature(memory_sanitizer)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 807, - "column": 3, - "source_line": " #if __has_feature(address_sanitizer) || __has_feature(memory_sanitizer)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 808, - "column": 5, - "source_line": " #ifndef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 810, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 811, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 812, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 814, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__SANITIZE_ADDRESS__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 817, - "column": 1, - "source_line": "#if defined(__SANITIZE_ADDRESS__)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 818, - "column": 3, - "source_line": " #ifndef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 820, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 821, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_DONT_CHANGE_FP_CONTRACT", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 825, - "column": 1, - "source_line": "#ifndef STBIR_DONT_CHANGE_FP_CONTRACT // override in case you don't want this behavior" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 826, - "column": 1, - "source_line": "#if defined(_MSC_VER) && !defined(__clang__)" - } - }, - { - "directive": "if", - "argument": "_MSC_VER > 1200", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 827, - "column": 1, - "source_line": "#if _MSC_VER > 1200" - } - }, - { - "directive": "pragma", - "argument": "fp_contract(off)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 828, - "column": 1, - "source_line": "#pragma fp_contract(off)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 829, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "elif", - "argument": "defined(__GNUC__) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 830, - "column": 1, - "source_line": "#elif defined(__GNUC__) && !defined(__clang__)" - } - }, - { - "directive": "pragma", - "argument": "GCC optimize(\"fp-contract=off\")", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 831, - "column": 1, - "source_line": "#pragma GCC optimize(\"fp-contract=off\")" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 832, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "pragma", - "argument": "STDC FP_CONTRACT OFF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 833, - "column": 1, - "source_line": "#pragma STDC FP_CONTRACT OFF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 834, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 835, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 837, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 839, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 841, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_DEFAULT_FILTER_UPSAMPLE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 846, - "column": 1, - "source_line": "#ifndef STBIR_DEFAULT_FILTER_UPSAMPLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 848, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_DEFAULT_FILTER_DOWNSAMPLE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 850, - "column": 1, - "source_line": "#ifndef STBIR_DEFAULT_FILTER_DOWNSAMPLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 852, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR__HEADER_FILENAME", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 855, - "column": 1, - "source_line": "#ifndef STBIR__HEADER_FILENAME" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 857, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 976, - "column": 1, - "source_line": "#ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 983, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 992, - "column": 3, - "source_line": " #ifdef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 994, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 996, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1012, - "column": 1, - "source_line": "#ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1019, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1164, - "column": 1, - "source_line": "#ifndef STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1166, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1168, - "column": 1, - "source_line": "#ifndef STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1170, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_M_IX86_FP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1174, - "column": 1, - "source_line": "#ifdef _M_IX86_FP" - } - }, - { - "directive": "if", - "argument": "( _M_IX86_FP >= 1 )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1175, - "column": 1, - "source_line": "#if ( _M_IX86_FP >= 1 )" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_SSE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1176, - "column": 1, - "source_line": "#ifndef STBIR_SSE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1178, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1179, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1180, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__TINYC__", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1182, - "column": 1, - "source_line": "#ifdef __TINYC__" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1185, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_x86_64) || defined( __x86_64__ ) || defined( _M_X64 ) || defined(__x86_64) || defined(_M_AMD64) || defined(__SSE2__) || defined(STBIR_SSE) || defined(STBIR_SSE2)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1187, - "column": 1, - "source_line": "#if defined(_x86_64) || defined( __x86_64__ ) || defined( _M_X64 ) || defined(__x86_64) || defined(_M_AMD64) || defined(__SSE2__) || defined(STBIR_SSE) || defined(STBIR_SSE2)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_SSE2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1188, - "column": 3, - "source_line": " #ifndef STBIR_SSE2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1190, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(__AVX__) || defined(STBIR_AVX2)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1191, - "column": 3, - "source_line": " #if defined(__AVX__) || defined(STBIR_AVX2)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_AVX", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1192, - "column": 5, - "source_line": " #ifndef STBIR_AVX" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_NO_AVX", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1193, - "column": 7, - "source_line": " #ifndef STBIR_NO_AVX" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1195, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1196, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1197, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(__AVX2__) || defined(STBIR_AVX2)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1198, - "column": 3, - "source_line": " #if defined(__AVX2__) || defined(STBIR_AVX2)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_NO_AVX2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1199, - "column": 5, - "source_line": " #ifndef STBIR_NO_AVX2" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_AVX2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1200, - "column": 7, - "source_line": " #ifndef STBIR_AVX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1202, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1203, - "column": 7, - "source_line": " #if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_FP16C", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1204, - "column": 9, - "source_line": " #ifndef STBIR_FP16C // FP16C instructions are on all AVX2 cpus, so we can autoselect it here on microsoft - clang needs -mf16c" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1206, - "column": 9, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1207, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1208, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1209, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "__F16C__", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1210, - "column": 3, - "source_line": " #ifdef __F16C__" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_FP16C", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1211, - "column": 5, - "source_line": " #ifndef STBIR_FP16C // turn on FP16C instructions if the define is set (for clang and gcc)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1213, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1214, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1215, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || ((__ARM_NEON_FP & 4) != 0) || defined(__ARM_NEON__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1217, - "column": 1, - "source_line": "#if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || ((__ARM_NEON_FP & 4) != 0) || defined(__ARM_NEON__)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_NEON", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1218, - "column": 1, - "source_line": "#ifndef STBIR_NEON" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1220, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1221, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_M_ARM) || defined(__arm__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1223, - "column": 1, - "source_line": "#if defined(_M_ARM) || defined(__arm__)" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_USE_FMA", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1224, - "column": 1, - "source_line": "#ifdef STBIR_USE_FMA" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1226, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1227, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__wasm__) && defined(__wasm_simd128__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1229, - "column": 1, - "source_line": "#if defined(__wasm__) && defined(__wasm_simd128__)" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_WASM", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1230, - "column": 1, - "source_line": "#ifndef STBIR_WASM" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1232, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1233, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1236, - "column": 1, - "source_line": "#if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "if", - "argument": "_MSC_VER >= 1900", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1239, - "column": 3, - "source_line": " #if _MSC_VER >= 1900" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1241, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1243, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "defined( __clang__ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1244, - "column": 1, - "source_line": "#elif defined( __clang__ )" - } - }, - { - "directive": "if", - "argument": "( __clang_major__ >= 4 ) || ( ( __clang_major__ >= 3 ) && ( __clang_minor__ >= 5 ) )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1247, - "column": 3, - "source_line": " #if ( __clang_major__ >= 4 ) || ( ( __clang_major__ >= 3 ) && ( __clang_minor__ >= 5 ) )" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1249, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1251, - "column": 3, - "source_line": " #endif " - } - }, - { - "directive": "elif", - "argument": "defined( __GNUC__ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1252, - "column": 1, - "source_line": "#elif defined( __GNUC__ )" - } - }, - { - "directive": "if", - "argument": "__GNUC__ >= 14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1255, - "column": 3, - "source_line": " #if __GNUC__ >= 14" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1257, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1259, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1261, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1265, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_NO_UNROLL_LOOP_START_INF_FOR", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1267, - "column": 1, - "source_line": "#ifndef STBIR_NO_UNROLL_LOOP_START_INF_FOR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1269, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_NO_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1271, - "column": 1, - "source_line": "#ifdef STBIR_NO_SIMD // force simd off for whatever reason" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SSE2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1275, - "column": 1, - "source_line": "#ifdef STBIR_SSE2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1277, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_AVX", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1279, - "column": 1, - "source_line": "#ifdef STBIR_AVX" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1281, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_NEON", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1283, - "column": 1, - "source_line": "#ifdef STBIR_NEON" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1285, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_AVX2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1287, - "column": 1, - "source_line": "#ifdef STBIR_AVX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1289, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FP16C", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1291, - "column": 1, - "source_line": "#ifdef STBIR_FP16C" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1293, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_WASM", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1295, - "column": 1, - "source_line": "#ifdef STBIR_WASM" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1297, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1299, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1301, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1303, - "column": 1, - "source_line": "#else // STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SSE2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1305, - "column": 1, - "source_line": "#ifdef STBIR_SSE2" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_USE_FMA", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1378, - "column": 3, - "source_line": " #ifdef STBIR_USE_FMA // not on by default to maintain bit identical simd to non-simd" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1384, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1389, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1461, - "column": 3, - "source_line": " #if defined(_MSC_VER) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1466, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1470, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBIR_AVX) || defined(__SSE4_1__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1477, - "column": 3, - "source_line": " #if defined(STBIR_AVX) || defined(__SSE4_1__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1480, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1495, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_AVX", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1500, - "column": 3, - "source_line": " #ifdef STBIR_AVX" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_AVX2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1530, - "column": 5, - "source_line": " #ifdef STBIR_AVX2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1570, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1623, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_USE_FMA", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1662, - "column": 5, - "source_line": " #ifdef STBIR_USE_FMA // not on by default to maintain bit identical simd to non-simd" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1666, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1670, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1673, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOORF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1675, - "column": 3, - "source_line": " #ifdef STBIR_FLOORF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1677, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBIR_AVX) || defined(__SSE4_1__) || defined(STBIR_SSE41)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1681, - "column": 5, - "source_line": " #if defined(STBIR_AVX) || defined(__SSE4_1__) || defined(STBIR_SSE41)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1684, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1689, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_CEILF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1692, - "column": 3, - "source_line": " #ifdef STBIR_CEILF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1694, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBIR_AVX) || defined(__SSE4_1__) || defined(STBIR_SSE41)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1698, - "column": 5, - "source_line": " #if defined(STBIR_AVX) || defined(__SSE4_1__) || defined(STBIR_SSE41)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1701, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1706, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_NEON)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1709, - "column": 1, - "source_line": "#elif defined(STBIR_NEON)" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_USE_FMA", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1780, - "column": 3, - "source_line": " #ifdef STBIR_USE_FMA // not on by default to maintain bit identical simd to non-simd (and also x64 no madd to arm madd)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1785, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1790, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1809, - "column": 3, - "source_line": " #if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1814, - "column": 5, - "source_line": " #if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1826, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1829, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1843, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1848, - "column": 5, - "source_line": " #if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1857, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1860, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1877, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1924, - "column": 3, - "source_line": " #if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1929, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1934, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOORF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1936, - "column": 3, - "source_line": " #ifdef STBIR_FLOORF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1938, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1942, - "column": 5, - "source_line": " #if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1944, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1951, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_CEILF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1954, - "column": 3, - "source_line": " #ifdef STBIR_CEILF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1956, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1960, - "column": 5, - "source_line": " #if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ )" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1962, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1969, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_WASM)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1974, - "column": 1, - "source_line": "#elif defined(STBIR_WASM)" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOORF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2126, - "column": 3, - "source_line": " #ifdef STBIR_FLOORF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2128, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_CEILF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2135, - "column": 3, - "source_line": " #ifdef STBIR_CEILF" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2137, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2146, - "column": 1, - "source_line": "#endif // SSE2/NEON/WASM" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2148, - "column": 1, - "source_line": "#endif // NO SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2150, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2184, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2213, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBIR_NEON) && !defined(_M_ARM) && !defined(__arm__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2216, - "column": 1, - "source_line": "#if defined(STBIR_NEON) && !defined(_M_ARM) && !defined(__arm__)" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2218, - "column": 3, - "source_line": " #if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2220, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2222, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2224, - "column": 1, - "source_line": "#else // no NEON, or 32-bit ARM for MSVC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2231, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "(!defined(STBIR_NEON) && !defined(STBIR_FP16C)) || (defined(STBIR_NEON) && defined(_M_ARM)) || (defined(STBIR_NEON) && defined(__arm__))", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2233, - "column": 1, - "source_line": "#if (!defined(STBIR_NEON) && !defined(STBIR_FP16C)) || (defined(STBIR_NEON) && defined(_M_ARM)) || (defined(STBIR_NEON) && defined(__arm__))" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2294, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBIR_FP16C)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2297, - "column": 1, - "source_line": "#if defined(STBIR_FP16C)" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_SSE2)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2323, - "column": 1, - "source_line": "#elif defined(STBIR_SSE2)" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_NEON) && defined(_MSC_VER) && defined(_M_ARM64) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2460, - "column": 1, - "source_line": "#elif defined(STBIR_NEON) && defined(_MSC_VER) && defined(_M_ARM64) && !defined(__clang__) // 64-bit ARM on MSVC (not clang)" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_NEON) && ( defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2488, - "column": 1, - "source_line": "#elif defined(STBIR_NEON) && ( defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) ) // 64-bit ARM" - } - }, - { - "directive": "elif", - "argument": "defined(STBIR_WASM) || (defined(STBIR_NEON) && (defined(_MSC_VER) || defined(_M_ARM) || defined(__arm__)))", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2514, - "column": 1, - "source_line": "#elif defined(STBIR_WASM) || (defined(STBIR_NEON) && (defined(_MSC_VER) || defined(_M_ARM) || defined(__arm__))) // WASM or 32-bit ARM on MSVC/clang" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2531, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2534, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_MEMCPY", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2586, - "column": 1, - "source_line": "#ifdef STBIR_MEMCPY" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2588, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2716, - "column": 1, - "source_line": "#else // no SSE2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2724, - "column": 1, - "source_line": "#endif // SSE2" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2727, - "column": 1, - "source_line": "#ifdef STBIR_PROFILE" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_PROFILE_FUNC", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2729, - "column": 1, - "source_line": "#ifndef STBIR_PROFILE_FUNC" - } - }, - { - "directive": "if", - "argument": "defined(_x86_64) || defined( __x86_64__ ) || defined( _M_X64 ) || defined(__x86_64) || defined(__SSE2__) || defined(STBIR_SSE) || defined( _M_IX86_FP ) || defined(__i386) || defined( __i386__ ) || defined( _M_IX86 ) || defined( _X86_ )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2731, - "column": 1, - "source_line": "#if defined(_x86_64) || defined( __x86_64__ ) || defined( _M_X64 ) || defined(__x86_64) || defined(__SSE2__) || defined(STBIR_SSE) || defined( _M_IX86_FP ) || defined(__i386) || defined( __i386__ ) || defined( _M_IX86 ) || defined( _X86_ )" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2733, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2738, - "column": 1, - "source_line": "#else // non msvc" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2747, - "column": 1, - "source_line": "#endif // msvc" - } - }, - { - "directive": "elif", - "argument": "defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || defined(__ARM_NEON__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2749, - "column": 1, - "source_line": "#elif defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || defined(__ARM_NEON__)" - } - }, - { - "directive": "if", - "argument": "defined( _MSC_VER ) && !defined(__clang__)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2751, - "column": 1, - "source_line": "#if defined( _MSC_VER ) && !defined(__clang__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2755, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2764, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2766, - "column": 1, - "source_line": "#else // x64, arm" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2770, - "column": 1, - "source_line": "#endif // x64, arm" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2772, - "column": 1, - "source_line": "#endif // STBIR_PROFILE_FUNC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2798, - "column": 1, - "source_line": "#else // no profile" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2816, - "column": 1, - "source_line": "#endif // stbir_profile" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_CEILF", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2818, - "column": 1, - "source_line": "#ifndef STBIR_CEILF" - } - }, - { - "directive": "if", - "argument": "_MSC_VER <= 1200", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2820, - "column": 1, - "source_line": "#if _MSC_VER <= 1200 // support VC6 for Sean" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2823, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2826, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2827, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_MEMCPY", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2829, - "column": 1, - "source_line": "#ifndef STBIR_MEMCPY" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2833, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2835, - "column": 1, - "source_line": "#ifndef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2888, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_RENORMALIZE_IN_FLOAT", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3517, - "column": 1, - "source_line": "#ifdef STBIR_RENORMALIZE_IN_FLOAT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3519, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3521, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3700, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3702, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3704, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4146, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4148, - "column": 3, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4173, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4194, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4197, - "column": 3, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4200, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4202, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4215, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4231, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4242, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4249, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4264, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4283, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4289, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4315, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4331, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4346, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4377, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4398, - "column": 5, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4401, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4403, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4414, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4425, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4433, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4451, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4472, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4483, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4491, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4516, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "stbir__simdf_swiz2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4517, - "column": 5, - "source_line": " #ifdef stbir__simdf_swiz2 // do we have two argument swizzles?" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4540, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4580, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4581, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4595, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4708, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4783, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4837, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4847, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4882, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4929, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4978, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4980, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5077, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5087, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5130, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5187, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5258, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5260, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5378, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5387, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5422, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5467, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5525, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5527, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5675, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5686, - "column": 1, - "source_line": "#ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5728, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5791, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5865, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 5867, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6078, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6222, - "column": 3, - "source_line": " #ifdef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6224, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6226, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6823, - "column": 3, - "source_line": " #ifndef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6825, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6837, - "column": 9, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6840, - "column": 9, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6844, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6847, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6862, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__V_FIRST_INFO_BUFFER", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6956, - "column": 1, - "source_line": "#ifdef STBIR__V_FIRST_INFO_BUFFER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6959, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6961, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined( STBIR__SEPARATE_ALLOCATIONS ) && defined(STBIR_SIMD8)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7106, - "column": 1, - "source_line": "#if defined( STBIR__SEPARATE_ALLOCATIONS ) && defined(STBIR_SIMD8)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7109, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7142, - "column": 1, - "source_line": "#ifdef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7144, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7146, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7223, - "column": 1, - "source_line": "#ifdef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7225, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7228, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7236, - "column": 11, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7239, - "column": 11, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7242, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7244, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR__SEPARATE_ALLOCATIONS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7260, - "column": 1, - "source_line": "#ifdef STBIR__SEPARATE_ALLOCATIONS" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7263, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7266, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7267, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7269, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7882, - "column": 3, - "source_line": " #ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7885, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7936, - "column": 5, - "source_line": " #ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7938, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_PROFILE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8159, - "column": 1, - "source_line": "#ifdef STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8224, - "column": 1, - "source_line": "#endif // STBIR_PROFILE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8244, - "column": 1, - "source_line": "#endif // STB_IMAGE_RESIZE_IMPLEMENTATION" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8246, - "column": 1, - "source_line": "#else // STB_IMAGE_RESIZE_HORIZONTALS&STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_DO_CODERS", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8259, - "column": 1, - "source_line": "#ifdef STB_IMAGE_RESIZE_DO_CODERS" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_suffix", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8261, - "column": 1, - "source_line": "#ifdef stbir__decode_suffix" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8263, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8265, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_swizzle", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8267, - "column": 1, - "source_line": "#ifdef stbir__decode_swizzle" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8272, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8285, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8287, - "column": 1, - "source_line": "#ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8289, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8291, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8299, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8307, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8321, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8343, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8355, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8358, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8372, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8375, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8381, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8383, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8384, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8386, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8390, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8400, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8415, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8418, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8421, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8435, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8452, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8455, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8462, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8464, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8465, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8467, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8471, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8473, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8476, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8489, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8492, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8499, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8501, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8502, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8504, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8508, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8509, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8518, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8526, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8538, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8556, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8568, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8571, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8585, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8588, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8594, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8596, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8597, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8599, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8603, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8612, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8627, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8630, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8633, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8647, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8664, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8666, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8669, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8682, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8684, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8687, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8694, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8696, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8697, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8699, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8703, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8713, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8725, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8728, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8734, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8736, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8737, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8739, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8743, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8815, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8855, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8858, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8874, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8877, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8883, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8885, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8886, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8888, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8892, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "( stbir__coder_min_num == 4 ) || ( ( stbir__coder_min_num == 1 ) && ( !defined(stbir__decode_swizzle) ) )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8895, - "column": 1, - "source_line": "#if ( stbir__coder_min_num == 4 ) || ( ( stbir__coder_min_num == 1 ) && ( !defined(stbir__decode_swizzle) ) )" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8920, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8960, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8980, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "( stbir__coder_min_num == 2 ) || ( ( stbir__coder_min_num == 1 ) && ( !defined(stbir__decode_swizzle) ) )", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8982, - "column": 1, - "source_line": "#if ( stbir__coder_min_num == 2 ) || ( ( stbir__coder_min_num == 1 ) && ( !defined(stbir__decode_swizzle) ) )" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9014, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9052, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9070, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9078, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9086, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9096, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9110, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9122, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9125, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9139, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9142, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9148, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9150, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9151, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9153, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9157, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9167, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9199, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9216, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9219, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9226, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9228, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9229, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9231, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9235, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9237, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9240, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9255, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9258, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9265, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9267, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9268, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9270, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9274, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9275, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9284, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9292, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9301, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9313, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9325, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9328, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9342, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9345, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9351, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9353, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9354, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9356, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9360, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9369, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9401, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9418, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9420, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9423, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9438, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9440, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9443, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9450, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9452, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9453, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9455, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9459, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9468, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_swizzle", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9479, - "column": 7, - "source_line": " #ifdef stbir__decode_swizzle" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9480, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9487, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9497, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9498, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9510, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9513, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9527, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9530, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9536, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9538, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9539, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9541, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9545, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9554, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_swizzle", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9563, - "column": 7, - "source_line": " #ifdef stbir__decode_swizzle" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9564, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9571, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9580, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9581, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9583, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9595, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9598, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9612, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9615, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9621, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9623, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9624, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9626, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9630, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_swizzle", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9635, - "column": 3, - "source_line": " #ifdef stbir__decode_swizzle" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9640, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "stbir__decode_swizzle", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9649, - "column": 7, - "source_line": " #ifdef stbir__decode_swizzle" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9650, - "column": 7, - "source_line": " #ifdef STBIR_SIMD8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9660, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9676, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9677, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9689, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9692, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9706, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9709, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9715, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9717, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9718, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9720, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9724, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9727, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9734, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "!defined( STBIR_FLOAT_HIGH_CLAMP ) && !defined(STBIR_FLOAT_LOW_CLAMP) && !defined(stbir__decode_swizzle)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9739, - "column": 3, - "source_line": " #if !defined( STBIR_FLOAT_HIGH_CLAMP ) && !defined(STBIR_FLOAT_LOW_CLAMP) && !defined(stbir__decode_swizzle)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9744, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_HIGH_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9749, - "column": 3, - "source_line": " #ifdef STBIR_FLOAT_HIGH_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9751, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9753, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_LOW_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9754, - "column": 3, - "source_line": " #ifdef STBIR_FLOAT_LOW_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9756, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9758, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9760, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_HIGH_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9762, - "column": 3, - "source_line": " #ifdef STBIR_FLOAT_HIGH_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9764, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_LOW_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9765, - "column": 3, - "source_line": " #ifdef STBIR_FLOAT_LOW_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9767, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_HIGH_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9780, - "column": 1, - "source_line": "#ifdef STBIR_FLOAT_HIGH_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9783, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_LOW_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9784, - "column": 1, - "source_line": "#ifdef STBIR_FLOAT_LOW_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9787, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9805, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_HIGH_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9813, - "column": 1, - "source_line": "#ifdef STBIR_FLOAT_HIGH_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9815, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_FLOAT_LOW_CLAMP", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9816, - "column": 1, - "source_line": "#ifdef STBIR_FLOAT_LOW_CLAMP" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9818, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9825, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9827, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num != 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9830, - "column": 3, - "source_line": " #if stbir__coder_min_num != 3 // doesn't divide cleanly by four" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9846, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9848, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num < 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9851, - "column": 3, - "source_line": " #if stbir__coder_min_num < 4" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9858, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9860, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "stbir__coder_min_num >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9861, - "column": 5, - "source_line": " #if stbir__coder_min_num >= 3" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9863, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9867, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9869, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "defined( STB_IMAGE_RESIZE_DO_VERTICALS)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9893, - "column": 1, - "source_line": "#elif defined( STB_IMAGE_RESIZE_DO_VERTICALS)" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9895, - "column": 1, - "source_line": "#ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9897, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9899, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9901, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9903, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9905, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9906, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9908, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9910, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9911, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 3" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9913, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9915, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9916, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 4" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9918, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9920, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9921, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 5" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9923, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9925, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9926, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 6" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9928, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9930, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9931, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 7" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9933, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9935, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBIR__vertical_channels >= 8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9936, - "column": 1, - "source_line": "#if STBIR__vertical_channels >= 8" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9938, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9940, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9953, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9971, - "column": 7, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9996, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10013, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10026, - "column": 7, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10035, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10044, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10050, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10059, - "column": 5, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10068, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10077, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10082, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10089, - "column": 5, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10098, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10107, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "( STBIR__vertical_channels == 1 ) && !defined(STB_IMAGE_RESIZE_VERTICAL_CONTINUE)", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10127, - "column": 1, - "source_line": "#if ( STBIR__vertical_channels == 1 ) && !defined(STB_IMAGE_RESIZE_VERTICAL_CONTINUE)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10134, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBIR_SIMD", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10136, - "column": 3, - "source_line": " #ifdef STBIR_SIMD" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10163, - "column": 7, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10167, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10170, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10198, - "column": 7, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10200, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10202, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10216, - "column": 3, - "source_line": " #else" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10222, - "column": 5, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10224, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10226, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10238, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10244, - "column": 5, - "source_line": " #ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10246, - "column": 5, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10248, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10276, - "column": 1, - "source_line": "#ifdef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10278, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10280, - "column": 1, - "source_line": "#else // !STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - { - "directive": "ifndef", - "argument": "stbir__2_coeff_only", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10284, - "column": 1, - "source_line": "#ifndef stbir__2_coeff_only" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10288, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__2_coeff_remnant", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10290, - "column": 1, - "source_line": "#ifndef stbir__2_coeff_remnant" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10294, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__3_coeff_only", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10296, - "column": 1, - "source_line": "#ifndef stbir__3_coeff_only" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10300, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__3_coeff_remnant", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10302, - "column": 1, - "source_line": "#ifndef stbir__3_coeff_remnant" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10306, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__3_coeff_setup", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10308, - "column": 1, - "source_line": "#ifndef stbir__3_coeff_setup" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10310, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__4_coeff_start", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10312, - "column": 1, - "source_line": "#ifndef stbir__4_coeff_start" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10316, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__4_coeff_continue_from_4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10318, - "column": 1, - "source_line": "#ifndef stbir__4_coeff_continue_from_4" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10322, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbir__store_output_tiny", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10324, - "column": 1, - "source_line": "#ifndef stbir__store_output_tiny" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10326, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10632, - "column": 1, - "source_line": "#endif // HORIZONALS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10637, - "column": 1, - "source_line": "#endif // STB_IMAGE_RESIZE_DO_HORIZONTALS/VERTICALS/CODERS" - } - } - ], - "macro_dependencies": [ - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 472, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 476, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 480, - "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n float *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 526, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n void *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_layout, stbir_datatype data_type,\n stbir_edge edge, stbir_filter filter )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 606, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," - }, - "source_text": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize,\n const void *input_pixels, int input_w, int input_h, int input_stride_in_bytes, \n void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, \n stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 615, - "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" - }, - "source_text": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 616, - "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ); // no callbacks by default" - }, - "source_text": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 617, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ); // pass back STBIR_RESIZE* by default" - }, - "source_text": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 618, - "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" - }, - "source_text": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 627, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ); // sets new buffer layouts" - }, - "source_text": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 628, - "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ); // CLAMP by default" - }, - "source_text": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 630, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ); // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" - }, - "source_text": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 631, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" - }, - "source_text": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 633, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets both sub-regions (full regions by default)" - }, - "source_text": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 634, - "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ); // sets input sub-region (full region by default)" - }, - "source_text": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 635, - "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets output sub-region (full region by default)" - }, - "source_text": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 641, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" - }, - "source_text": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 653, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize );" - }, - "source_text": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 656, - "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize );" - }, - "source_text": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 661, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize );" - }, - "source_text": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 676, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" - }, - "source_text": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 689, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" - }, - "source_text": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 767, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" - }, - "source_text": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 770, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" - }, - "source_text": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 773, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize, int split_start, int split_num );" - }, - "source_text": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize, int split_start, int split_num )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1077, - "column": 1, - "source_line": "static stbir__inline int stbir__min(int a, int b)" - }, - "source_text": "static stbir__inline int stbir__min(int a, int b)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1082, - "column": 1, - "source_line": "static stbir__inline int stbir__max(int a, int b)" - }, - "source_text": "static stbir__inline int stbir__max(int a, int b)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1138, - "column": 1, - "source_line": "static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)" - }, - "source_text": "static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)" - }, - { - "name": "stbir__simdf", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1405, - "column": 3, - "source_line": " static const stbir__simdf STBIR_zeroones = { 0.0f,1.0f,0.0f,1.0f };" - }, - "source_text": "static const stbir__simdf STBIR_zeroones = { 0.0f,1.0f,0.0f,1.0f }" - }, - { - "name": "stbir__simdf", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1406, - "column": 3, - "source_line": " static const stbir__simdf STBIR_onezeros = { 1.0f,0.0f,1.0f,0.0f };" - }, - "source_text": "static const stbir__simdf STBIR_onezeros = { 1.0f,0.0f,1.0f,0.0f }" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1481, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s32_32768, 32768);" - }, - "source_text": "static STBIR__SIMDI_CONST(stbir__s32_32768, 32768)" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1482, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768));" - }, - "source_text": "static STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768))" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1679, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x) // martins floorf" - }, - "source_text": "static stbir__inline float stbir_simd_floorf(float x)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1696, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x) // martins ceilf" - }, - "source_text": "static stbir__inline float stbir_simd_ceilf(float x)" - }, - { - "name": "stbir_make16x2", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1821, - "column": 7, - "source_line": " static stbir__inline uint8x16x2_t stbir_make16x2(float32x4_t rega,float32x4_t regb)" - }, - "source_text": "static stbir__inline uint8x16x2_t stbir_make16x2(float32x4_t rega,float32x4_t regb)" - }, - { - "name": "stbir_make8x2", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1849, - "column": 7, - "source_line": " static stbir__inline uint8x8x2_t stbir_make8x2(float32x4_t reg)" - }, - "source_text": "static stbir__inline uint8x8x2_t stbir_make8x2(float32x4_t reg)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1940, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "source_text": "static stbir__inline float stbir_simd_floorf(float x)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1958, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "source_text": "static stbir__inline float stbir_simd_ceilf(float x)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2130, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "source_text": "static stbir__inline float stbir_simd_floorf(float x)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2139, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "source_text": "static stbir__inline float stbir_simd_ceilf(float x)" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2178, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float_inverted8 = { stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted };" - }, - "source_text": "static const stbir__simdf8 STBIR_max_uint16_as_float_inverted8 = { stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted }" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2179, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float_inverted8 = { stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted };" - }, - "source_text": "static const stbir__simdf8 STBIR_max_uint8_as_float_inverted8 = { stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted }" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2180, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_ones8 = { 1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 };" - }, - "source_text": "static const stbir__simdf8 STBIR_ones8 = { 1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 }" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2181, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_simd_point58 = { 0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5 };" - }, - "source_text": "static const stbir__simdf8 STBIR_simd_point58 = { 0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5 }" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2182, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float8 = { stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float, stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float };" - }, - "source_text": "static const stbir__simdf8 STBIR_max_uint8_as_float8 = { stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float, stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float }" - }, - { - "name": "stbir__simdf8", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2183, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float8 = { stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float, stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float };" - }, - "source_text": "static const stbir__simdf8 STBIR_max_uint16_as_float8 = { stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float, stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float }" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2237, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "source_text": "static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2251, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half(float val)" - }, - "source_text": "static stbir__inline stbir__FP16 stbir__float_to_half(float val)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2301, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "source_text": "static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2306, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "source_text": "static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2311, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "source_text": "static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2316, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "source_text": "static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2326, - "column": 3, - "source_line": " stbir__inline static void stbir__half_to_float_SIMD(float * output, void const * input)" - }, - "source_text": "stbir__inline static void stbir__half_to_float_SIMD(float * output, void const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2380, - "column": 3, - "source_line": " stbir__inline static void stbir__float_to_half_SIMD(void * output, float const * input)" - }, - "source_text": "stbir__inline static void stbir__float_to_half_SIMD(void * output, float const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2462, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "source_text": "static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2470, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "source_text": "static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2478, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "source_text": "static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2483, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "source_text": "static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2490, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "source_text": "static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2497, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "source_text": "static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2504, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "source_text": "static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2509, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "source_text": "static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2516, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "source_text": "static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2523, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "source_text": "static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2566, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float, stbir__max_uint8_as_float);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float, stbir__max_uint8_as_float)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2567, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float, stbir__max_uint16_as_float);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float, stbir__max_uint16_as_float)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2568, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float_inverted, stbir__max_uint8_as_float_inverted);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float_inverted, stbir__max_uint8_as_float_inverted)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2569, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float_inverted, stbir__max_uint16_as_float_inverted);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float_inverted, stbir__max_uint16_as_float_inverted)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2571, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_simd_point5, 0.5f);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_simd_point5, 0.5f)" - }, - { - "name": "STBIR__SIMDF_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2572, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_ones, 1.0f);" - }, - "source_text": "static const STBIR__SIMDF_CONST(STBIR_ones, 1.0f)" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2573, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_zero, (127 - 13) << 23);" - }, - "source_text": "static const STBIR__SIMDI_CONST(STBIR_almost_zero, (127 - 13) << 23)" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2574, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_one, 0x3f7fffff);" - }, - "source_text": "static const STBIR__SIMDI_CONST(STBIR_almost_one, 0x3f7fffff)" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2575, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_mantissa_mask, 0xff);" - }, - "source_text": "static const STBIR__SIMDI_CONST(STBIR_mantissa_mask, 0xff)" - }, - { - "name": "STBIR__SIMDI_CONST", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2576, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_topscale, 0x02000000);" - }, - "source_text": "static const STBIR__SIMDI_CONST(STBIR_topscale, 0x02000000)" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2735, - "column": 3, - "source_line": " STBIRDEF stbir_uint64 __rdtsc();" - }, - "source_text": "STBIRDEF stbir_uint64 __rdtsc()" - }, - { - "name": "STBIR_PROFILE_FUNC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2740, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - "source_text": "static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - { - "name": "STBIR_PROFILE_FUNC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2757, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - "source_text": "static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - { - "name": "stbir__inline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3110, - "column": 1, - "source_line": "stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max)" - }, - "source_text": "stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max)" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7720, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," - }, - "source_text": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize,\n const void *input_pixels, int input_w, int input_h, int input_stride_in_bytes, \n void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, \n stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7739, - "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type ) // by default, datatype from resize_init" - }, - "source_text": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7747, - "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ) // no callbacks by default" - }, - "source_text": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7759, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ) // pass back STBIR_RESIZE* by default" - }, - "source_text": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7766, - "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes )" - }, - "source_text": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7777, - "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ) // CLAMP by default" - }, - "source_text": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7785, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ) // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" - }, - "source_text": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7793, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support )" - }, - "source_text": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7801, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ) // sets new pixel layouts" - }, - "source_text": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7810, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality ) // sets alpha speed" - }, - "source_text": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7817, - "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ) // sets input region (full region by default)" - }, - "source_text": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7835, - "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets input region (full region by default)" - }, - "source_text": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7850, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets both regions (full regions by default)" - }, - "source_text": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7949, - "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize )" - }, - "source_text": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7959, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int splits )" - }, - "source_text": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int splits )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7975, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize )" - }, - "source_text": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7980, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize )" - }, - "source_text": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8024, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count )" - }, - "source_text": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8120, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_layout )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8129, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_layout )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8139, - "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n float *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_layout )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8149, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "source_text": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes,\n void *output_pixels, int output_w, int output_h, int output_stride_in_bytes,\n stbir_pixel_layout pixel_layout, stbir_datatype data_type,\n stbir_edge edge, stbir_filter filter )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8161, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - "source_text": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8179, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize, int split_start, int split_count )" - }, - "source_text": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize, int split_start, int split_count )" - }, - { - "name": "STBIRDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8219, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - "source_text": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8293, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME( stbir__decode_uint8_linear_scaled )( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME( stbir__decode_uint8_linear_scaled )( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8395, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear_scaled )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear_scaled )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8512, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint8_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8607, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8706, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8810, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8897, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb4_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb4_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8915, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb4_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb4_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8984, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb2_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb2_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9009, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb2_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb2_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9072, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear_scaled)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear_scaled)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9162, - "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear_scaled)( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear_scaled)( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9278, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9364, - "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear)( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear)( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9462, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_half_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_half_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9549, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_half_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_half_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9633, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "source_text": "static float * STBIR__CODER_NAME(stbir__decode_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - { - "name": "STBIR__CODER_NAME", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9737, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "source_text": "static void STBIR__CODER_NAME( stbir__encode_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9942, - "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_scatter_with_,_coeffs)( float ** outputs, float const * vertical_coefficients, float const * input, float const * input_end )" - }, - "source_text": "static void STBIR_chans( stbir__vertical_scatter_with_,_coeffs)( float ** outputs, float const * vertical_coefficients, float const * input, float const * input_end )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10114, - "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_gather_with_,_coeffs)( float * outputp, float const * vertical_coefficients, float const ** inputs, float const * input0_end )" - }, - "source_text": "static void STBIR_chans( stbir__vertical_gather_with_,_coeffs)( float * outputp, float const * vertical_coefficients, float const ** inputs, float const * input0_end )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10328, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_1_coeff)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_1_coeff)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10341, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_2_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_2_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10354, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_3_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_3_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10367, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_4_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_4_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10380, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_5_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_5_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10394, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_6_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_6_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10408, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_7_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_7_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10424, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_8_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_8_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10438, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_9_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_9_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10453, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_10_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_10_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10468, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_11_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_11_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10484, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_12_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_12_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10499, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod0 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod0 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10521, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod1 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod1 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10544, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod2 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod2 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10568, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod3 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "source_text": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod3 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10593, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_funcs)[4]=" - }, - "source_text": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_funcs)[4]=\n{\n STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_mod0),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_mod1),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_mod2),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_mod3),\n}" - }, - { - "name": "STBIR_chans", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10601, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_funcs)[12]=" - }, - "source_text": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_funcs)[12]=\n{\n STBIR_chans(stbir__horizontal_gather_,_channels_with_1_coeff),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_2_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_3_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_4_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_5_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_6_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_7_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_8_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_9_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_10_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_11_coeffs),\n STBIR_chans(stbir__horizontal_gather_,_channels_with_12_coeffs),\n}" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 787, - "column": 1, - "source_line": "#define STBIR_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 792, - "column": 1, - "source_line": "#define STBIR_MALLOC(size,user_data) ((void)(user_data), malloc(size))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 793, - "column": 1, - "source_line": "#define STBIR_FREE(ptr,user_data) ((void)(user_data), free(ptr))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__UNUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 838, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__UNUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__UNUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 840, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__UNUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__ARRAY_SIZE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 843, - "column": 1, - "source_line": "#define STBIR__ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0]))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__ARRAY_SIZE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CLAMP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1071, - "column": 1, - "source_line": "#define STBIR_CLAMP(x, xmin, xmax) for(;;) { \\" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CLAMP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1237, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1238, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __assume(ptr) // this oddly keeps msvc from unrolling a loop" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1245, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1246, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr)) " - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1253, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1254, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1262, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1263, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1311, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) _mm_castps_si128(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1312, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) _mm_castsi128_ps(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1314, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = _mm_loadu_ps( (float const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1315, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = _mm_loadu_si128 ( (stbir__simdi const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1316, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1317, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = _mm_castps_si128( _mm_load_ss( (float const*)(ptr) ))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1318, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1319, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) _mm_set_ps1( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1320, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = _mm_set_ps1( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1321, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1322, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1323, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = _mm_castpd_ps(_mm_loadh_pd( _mm_castps_pd(reg), (double*)(ptr) ))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1325, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() _mm_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1326, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = _mm_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1328, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) _mm_storeu_ps( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1329, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1330, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), _mm_castps_si128(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1331, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) _mm_storeh_pd( (double*)(ptr), _mm_castps_pd(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1333, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) _mm_storeu_si128( (__m128i*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1334, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), _mm_castsi128_ps(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1335, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), (reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1337, - "column": 3, - "source_line": " #define stbir__prefetch( ptr ) _mm_prefetch((char*)(ptr), _MM_HINT_T0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1339, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1350, - "column": 1, - "source_line": "#define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1357, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1364, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = _mm_cvttps_epi32(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1365, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) _mm_cvtt_ss2si(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1366, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),_mm_setzero_ps()))))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1367, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps()))))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1369, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) _mm_cvtsi128_si32(i)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1370, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = _mm_cvtepi32_ps( ireg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1371, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = _mm_add_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1372, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = _mm_mul_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1373, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = _mm_mul_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1374, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = _mm_mul_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1375, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = _mm_add_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1376, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = _mm_add_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1380, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_fmadd_ps( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1381, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_fmadd_ss( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1382, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ps( mul, _mm_loadu_ps( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1383, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ss( mul, _mm_load_ss( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1385, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_add_ps( add, _mm_mul_ps( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1386, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_add_ss( add, _mm_mul_ss( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1387, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_add_ps( add, _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1388, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_add_ss( add, _mm_mul_ss( mul, _mm_load_ss( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1391, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = _mm_add_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1392, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = _mm_mul_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1394, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = _mm_and_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1395, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = _mm_or_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1397, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = _mm_min_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1398, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = _mm_max_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1399, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = _mm_min_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1400, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = _mm_max_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1402, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (3<<0) + (0<<2) + (1<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1403, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (2<<0) + (3<<2) + (0<<4) + (1<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1407, - "column": 3, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movehl_ps( ones, alp ) ), (1<<0) + (1<<2) + (1<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1408, - "column": 3, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movelh_ps( ones, alp ) ), (0<<0) + (2<<2) + (2<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1409, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_srli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_zeroones )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1410, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_slli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_onezeros )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1412, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) _mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( reg ), (one<<0) + (two<<2) + (three<<4) + (four<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1414, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = _mm_and_si128( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1415, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = _mm_or_si128( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1416, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = _mm_madd_epi16( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1418, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1432, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1449, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1459, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = _mm_srli_epi32( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_32_TO_8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1463, - "column": 5, - "source_line": " #define STBIR__CONST_32_TO_8( v ) (char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_32_TO_8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1464, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4d_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1465, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) STBIR__CONST_32_TO_8( v0 ), STBIR__CONST_32_TO_8( v1 ), STBIR__CONST_32_TO_8( v2 ), STBIR__CONST_32_TO_8( v3 )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4d_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1468, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) (long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4d_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1469, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) (long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4d_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1472, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1473, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { STBIR__CONST_4_32i(x) }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1474, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1475, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1479, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1484, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1505, - "column": 5, - "source_line": " #define stbir__simdf8_load( out, ptr ) (out) = _mm256_loadu_ps( (float const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1506, - "column": 5, - "source_line": " #define stbir__simdi8_load( out, ptr ) (out) = _mm256_loadu_si256( (__m256i const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1507, - "column": 5, - "source_line": " #define stbir__simdf8_mult( out, a, b ) (out) = _mm256_mul_ps( (a), (b) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1508, - "column": 5, - "source_line": " #define stbir__simdf8_store( ptr, out ) _mm256_storeu_ps( (float*)(ptr), out )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1509, - "column": 5, - "source_line": " #define stbir__simdi8_store( ptr, reg ) _mm256_storeu_si256( (__m256i*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_frep8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1510, - "column": 5, - "source_line": " #define stbir__simdf8_frep8( fval ) _mm256_set1_ps( fval )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_frep8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1512, - "column": 5, - "source_line": " #define stbir__simdf8_min( out, reg0, reg1 ) (out) = _mm256_min_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1513, - "column": 5, - "source_line": " #define stbir__simdf8_max( out, reg0, reg1 ) (out) = _mm256_max_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add4halves' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1515, - "column": 5, - "source_line": " #define stbir__simdf8_add4halves( out, bot4, top8 ) (out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add4halves" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1516, - "column": 5, - "source_line": " #define stbir__simdf8_mult_mem( out, reg, ptr ) (out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1517, - "column": 5, - "source_line": " #define stbir__simdf8_add_mem( out, reg, ptr ) (out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1518, - "column": 5, - "source_line": " #define stbir__simdf8_add( out, a, b ) (out) = _mm256_add_ps( a, b )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load1b' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1519, - "column": 5, - "source_line": " #define stbir__simdf8_load1b( out, ptr ) (out) = _mm256_broadcast_ss( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load1b" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1rep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1520, - "column": 5, - "source_line": " #define stbir__simdf_load1rep4( out, ptr ) (out) = _mm_broadcast_ss( ptr ) // avx load instruction" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1rep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1522, - "column": 5, - "source_line": " #define stbir__simdi8_convert_i32_to_float(out, ireg) (out) = _mm256_cvtepi32_ps( ireg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1523, - "column": 5, - "source_line": " #define stbir__simdf8_convert_float_to_i32( i, f ) (i) = _mm256_cvttps_epi32(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_bot4s' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1525, - "column": 5, - "source_line": " #define stbir__simdf8_bot4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_bot4s" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_top4s' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1526, - "column": 5, - "source_line": " #define stbir__simdf8_top4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_top4s" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_gettop4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1528, - "column": 5, - "source_line": " #define stbir__simdf8_gettop4( reg ) _mm256_extractf128_ps(reg,1)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_gettop4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1532, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1540, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1555, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) out = _mm256_unpacklo_epi16( _mm256_permute4x64_epi64(_mm256_castsi128_si256(ireg),(0<<0)+(2<<2)+(1<<4)+(3<<6)), _mm256_setzero_si256() );" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1557, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1572, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1581, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1599, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1607, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00001111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1626, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00001111( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00001111 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00001111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to22223333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1629, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22223333( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_22223333 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to22223333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to2222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1631, - "column": 5, - "source_line": " #define stbir__simdf8_0123to2222( out, in ) (out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to2222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load4b' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1633, - "column": 5, - "source_line": " #define stbir__simdf8_load4b( out, ptr ) (out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load4b" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00112233' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1636, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00112233( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00112233 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00112233" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1637, - "column": 5, - "source_line": " #define stbir__simdf8_add4( out, a8, b ) (out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load6z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1640, - "column": 5, - "source_line": " #define stbir__simdf8_load6z( out, ptr ) (out) = _mm256_maskload_ps( ptr, stbir_load6 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load6z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00000000' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1642, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00000000( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00000000" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to11111111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1643, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11111111( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to11111111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to22222222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1644, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22222222( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to22222222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to33333333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1645, - "column": 5, - "source_line": " #define stbir__simdf8_0123to33333333( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to33333333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to21032103' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1646, - "column": 5, - "source_line": " #define stbir__simdf8_0123to21032103( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to21032103" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to32103210' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1647, - "column": 5, - "source_line": " #define stbir__simdf8_0123to32103210( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to32103210" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to12301230' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1648, - "column": 5, - "source_line": " #define stbir__simdf8_0123to12301230( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to12301230" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to10321032' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1649, - "column": 5, - "source_line": " #define stbir__simdf8_0123to10321032( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to10321032" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to30123012' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1650, - "column": 5, - "source_line": " #define stbir__simdf8_0123to30123012( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to30123012" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to11331133' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1652, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11331133( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to11331133" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00220022' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1653, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00220022( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00220022" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1655, - "column": 5, - "source_line": " #define stbir__simdf8_aaa1( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1656, - "column": 5, - "source_line": " #define stbir__simdf8_1aaa( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1657, - "column": 5, - "source_line": " #define stbir__simdf8_a1a1( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1658, - "column": 5, - "source_line": " #define stbir__simdf8_1a1a( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1660, - "column": 5, - "source_line": " #define stbir__simdf8_zero( reg ) (reg) = _mm256_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1663, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_fmadd_ps( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1664, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_fmadd_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1667, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1668, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1669, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem4( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__if_simdf8_cast_to_simdf4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1671, - "column": 5, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) _mm256_castps256_ps128( val )" - }, - "unit_kind": "macro", - "unit_name": "stbir__if_simdf8_cast_to_simdf4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1716, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) vreinterpretq_u32_f32(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1717, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) vreinterpretq_f32_u32(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1719, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = vld1q_f32( (float const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1720, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = vld1q_u32( (uint32_t const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1721, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = vld1q_dup_f32( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1722, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = vld1q_dup_u32( (uint32_t const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1723, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = vld1q_lane_f32( (float const*)(ptr), vdupq_n_f32(0), 0 ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1724, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) vdupq_n_f32( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1725, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = vdupq_n_f32( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1726, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1727, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1728, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = vcombine_f32( vget_low_f32(reg), vld1_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1730, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() vdupq_n_f32(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1731, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = vdupq_n_f32(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1733, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) vst1q_f32( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1734, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) vst1q_lane_f32( (float*)(ptr), reg, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1735, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) vst1_f32( (float*)(ptr), vget_low_f32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1736, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) vst1_f32( (float*)(ptr), vget_high_f32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1738, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) vst1q_u32( (uint32_t*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1739, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) vst1q_lane_u32( (uint32_t*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1740, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) vst1_u32( (uint32_t*)(ptr), vget_low_u32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1742, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1744, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1754, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1760, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1767, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = vreinterpretq_u32_s32( vcvtq_s32_f32(f) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1768, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) vgetq_lane_s32(vcvtq_s32_f32(f), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1769, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) (int)vgetq_lane_u32(i, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1770, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),vdupq_n_f32(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1771, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),vdupq_n_f32(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1772, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = vcvtq_f32_s32( vreinterpretq_s32_u32(ireg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1773, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1774, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1775, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1776, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1777, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1778, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1781, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1782, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1783, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1784, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1786, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1787, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1788, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_f32( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1789, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_dup_f32( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1792, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1793, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1795, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vandq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1796, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vorrq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1798, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1799, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1800, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1801, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1803, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1804, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1806, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones ) (out) = vzipq_f32(vuzpq_f32(alp, alp).val[1], ones).val[0]" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1807, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones ) (out) = vzipq_f32(ones, vuzpq_f32(alp, alp).val[0]).val[0]" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1811, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3, ones, 3)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1812, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0, ones, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1815, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) vcombine_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1827, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) (uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16x2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1828, - "column": 7, - "source_line": " #define stbir_make16x2(a,b) (uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16x2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1831, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vqtbl1q_u8( vreinterpretq_u8_f32(reg), stbir_make16(one, two, three, four) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1832, - "column": 5, - "source_line": " #define stbir__simdf_swiz2( rega, regb, one, two, three, four ) vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1834, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1845, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1846, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1854, - "column": 7, - "source_line": " #define stbir_make8(a,b) vcreate_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8x2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1858, - "column": 7, - "source_line": " #define stbir_make8x2(reg) (uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8x2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1859, - "column": 7, - "source_line": " #define stbir_make8(a,b) (uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1862, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vcombine_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1866, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1879, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = vandq_u32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1880, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = vorrq_u32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1882, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1892, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1901, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1913, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1922, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = vshrq_n_u32( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1925, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) __declspec(align(8)) float var[] = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1926, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) __declspec(align(8)) uint32_t var[] = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1927, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (*(const float32x4_t*)var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1928, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (*(const uint32x4_t*)var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1930, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1931, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1932, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1933, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1981, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) (reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1982, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) (reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1984, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1985, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1986, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1987, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1988, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = wasm_v128_load32_zero( (void const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1989, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) wasm_f32x4_splat( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1990, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = wasm_f32x4_splat( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1991, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = wasm_v128_load64_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1992, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = wasm_v128_load64_zero( (void const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1993, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1995, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() wasm_f32x4_const_splat(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1996, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = wasm_f32x4_const_splat(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1998, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1999, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2000, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2001, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2003, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2004, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2005, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2007, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2009, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2019, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2025, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2031, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = wasm_i32x4_trunc_sat_f32x4(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2032, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2033, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) wasm_i32x4_extract_lane(i, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2034, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2035, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2036, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = wasm_f32x4_convert_i32x4(ireg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2037, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2038, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2039, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2040, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2041, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2042, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2044, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2045, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2046, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2047, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2049, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2050, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2052, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2053, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2055, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2056, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2057, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2058, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2060, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2061, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2063, - "column": 3, - "source_line": " #define stbir__simdf_aaa1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2064, - "column": 3, - "source_line": " #define stbir__simdf_1aaa(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2065, - "column": 3, - "source_line": " #define stbir__simdf_a1a1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2066, - "column": 3, - "source_line": " #define stbir__simdf_1a1a(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2068, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) wasm_i32x4_shuffle(reg, reg, one, two, three, four)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2070, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2071, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2072, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = wasm_i32x4_dot_i16x8( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2074, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2084, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2093, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2102, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2118, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = wasm_u32x4_shr( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2121, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2122, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2123, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2124, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__if_simdf8_cast_to_simdf4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2210, - "column": 3, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) ( val )" - }, - "unit_kind": "macro", - "unit_name": "stbir__if_simdf8_cast_to_simdf4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2536, - "column": 1, - "source_line": "#define stbir__simdf_0123to3333( out, reg ) (out) = stbir__simdf_swiz( reg, 3,3,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2537, - "column": 1, - "source_line": "#define stbir__simdf_0123to2222( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2538, - "column": 1, - "source_line": "#define stbir__simdf_0123to1111( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,1,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0000' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2539, - "column": 1, - "source_line": "#define stbir__simdf_0123to0000( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0000" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0003' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2540, - "column": 1, - "source_line": "#define stbir__simdf_0123to0003( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0003" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0001' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2541, - "column": 1, - "source_line": "#define stbir__simdf_0123to0001( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0001" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1122' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2542, - "column": 1, - "source_line": "#define stbir__simdf_0123to1122( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1122" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2543, - "column": 1, - "source_line": "#define stbir__simdf_0123to2333( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0023' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2544, - "column": 1, - "source_line": "#define stbir__simdf_0123to0023( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0023" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1230' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2545, - "column": 1, - "source_line": "#define stbir__simdf_0123to1230( out, reg ) (out) = stbir__simdf_swiz( reg, 1,2,3,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1230" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2103' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2546, - "column": 1, - "source_line": "#define stbir__simdf_0123to2103( out, reg ) (out) = stbir__simdf_swiz( reg, 2,1,0,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2103" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3210' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2547, - "column": 1, - "source_line": "#define stbir__simdf_0123to3210( out, reg ) (out) = stbir__simdf_swiz( reg, 3,2,1,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3210" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2301' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2548, - "column": 1, - "source_line": "#define stbir__simdf_0123to2301( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,0,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2301" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3012' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2549, - "column": 1, - "source_line": "#define stbir__simdf_0123to3012( out, reg ) (out) = stbir__simdf_swiz( reg, 3,0,1,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3012" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0011' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2550, - "column": 1, - "source_line": "#define stbir__simdf_0123to0011( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,1,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0011" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1100' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2551, - "column": 1, - "source_line": "#define stbir__simdf_0123to1100( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,0,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1100" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2233' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2552, - "column": 1, - "source_line": "#define stbir__simdf_0123to2233( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2233" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1133' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2553, - "column": 1, - "source_line": "#define stbir__simdf_0123to1133( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1133" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0022' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2554, - "column": 1, - "source_line": "#define stbir__simdf_0123to0022( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0022" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1032' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2555, - "column": 1, - "source_line": "#define stbir__simdf_0123to1032( out, reg ) (out) = stbir__simdf_swiz( reg, 1,0,3,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1032" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2581, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2582, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr) STBIR_NO_UNROLL(ptr)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2719, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2720, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FUNC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2736, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() __rdtsc()" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FUNC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2753, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() _ReadStatusReg(ARM64_CNTVCT)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2781, - "column": 1, - "source_line": "#define STBIR_PROFILE_START_ll( info, wh ) { stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2782, - "column": 1, - "source_line": "#define STBIR_PROFILE_END_ll( info, wh ) wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2783, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START_ll( info, wh ) { int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2784, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS_ll( info, num ) { int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2787, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh ) STBIR_PROFILE_START_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2788, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh ) STBIR_PROFILE_END_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2789, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2790, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS() STBIR_PROFILE_CLEAR_EXTRAS_ll( split_info, split_count )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2793, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh ) STBIR_PROFILE_START_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2794, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh ) STBIR_PROFILE_END_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2795, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2796, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info ) { int i; for(i=0;iprofile.array);i++) info->profile.array[i]=0; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2806, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2807, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2808, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2809, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS( )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2811, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2812, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2813, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2814, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CEILF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2821, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ((float)ceil((float)(x)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CEILF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FLOORF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2822, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) ((float)floor((float)(x)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FLOORF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CEILF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2824, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ceilf(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CEILF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FLOORF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2825, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) floorf(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FLOORF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MEMCPY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2832, - "column": 1, - "source_line": "#define STBIR_MEMCPY( dest, src, len ) memcpy( dest, src, len )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MEMCPY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3698, - "column": 3, - "source_line": " #define STBIR_MOVE_1( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint32*)(dest))[0] = ((stbir_uint32*)(src))[0]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3699, - "column": 3, - "source_line": " #define STBIR_MOVE_2( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3701, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { stbir__simdf t; STBIR_NO_UNROLL(dest); stbir__simdf_load( t, src ); stbir__simdf_store( dest, t ); }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3703, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; ((stbir_uint64*)(dest))[1] = ((stbir_uint64*)(src))[1]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4710, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4716, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4725, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4735, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4741, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4747, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4752, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4758, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_setup' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4764, - "column": 1, - "source_line": "#define stbir__3_coeff_setup() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_setup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4768, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4773, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4785, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4789, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4794, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4800, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4806, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4813, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4819, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4822, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4826, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4831, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4849, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4857, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4864, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4874, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4884, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4891, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4897, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4905, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4912, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4919, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4931, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4940, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4948, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4955, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4960, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4969, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4982, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4988, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4998, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5010, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5017, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5032, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5046, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5051, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5059, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5070, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5089, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5097, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5108, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5122, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5133, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5142, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5150, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5155, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5161, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5169, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5189, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5200, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5210, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5216, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5226, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5238, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5262, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5269, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5280, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5295, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5303, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5322, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5340, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5346, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5356, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5370, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5389, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5396, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5405, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5416, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5424, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5433, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5441, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5446, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5452, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5460, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5469, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5482, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5494, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5500, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5508, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5518, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5529, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5538, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5552, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5571, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5580, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5604, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5627, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5635, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5648, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5666, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5688, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5696, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5707, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5721, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5730, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5743, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5755, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5760, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5767, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5777, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5793, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5810, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5826, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5833, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5843, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5856, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5869, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5880, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5899, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5926, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5938, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5974, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6009, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6020, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6039, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6066, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__FLOAT_BUFFER_IS_EMPTY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6372, - "column": 1, - "source_line": "#define STBIR__FLOAT_BUFFER_IS_EMPTY(ptr) ((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__FLOAT_BUFFER_IS_EMPTY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__FREE_AND_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6819, - "column": 3, - "source_line": " #define STBIR__FREE_AND_CLEAR( ptr ) { if ( ptr ) { void * p = (ptr); (ptr) = 0; STBIR_FREE( p, info->user_data); } }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__FREE_AND_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__NEXT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7143, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) if ( alloced ) { void * p = STBIR_MALLOC( size, user_data); if ( p == 0 ) { stbir__free_internal_mem( info ); return 0; } (ptr) = (ntype*)p; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__NEXT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__NEXT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7145, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) advance_mem = (void*) ( ( ((size_t)advance_mem) + 15 ) & ~15 ); if ( alloced ) ptr = (ntype*)advance_mem; advance_mem = (char*)(((size_t)advance_mem) + (size));" - }, - "unit_kind": "macro", - "unit_name": "STBIR__NEXT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_RETURN_ERROR_AND_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7891, - "column": 3, - "source_line": " #define STBIR_RETURN_ERROR_AND_ASSERT( exp ) STBIR_ASSERT( !(exp) ); if (exp) return 0;" - }, - "unit_kind": "macro", - "unit_name": "STBIR_RETURN_ERROR_AND_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8253, - "column": 1, - "source_line": "#define STBIR_strs_join2( start, mid, end ) start##mid##end" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8254, - "column": 1, - "source_line": "#define STBIR_strs_join1( start, mid, end ) STBIR_strs_join2( start, mid, end )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join24' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8256, - "column": 1, - "source_line": "#define STBIR_strs_join24( start, mid1, mid2, end ) start##mid1##mid2##end" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join24" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join14' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8257, - "column": 1, - "source_line": "#define STBIR_strs_join14( start, mid1, mid2, end ) STBIR_strs_join24( start, mid1, mid2, end )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join14" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CODER_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8262, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) STBIR_strs_join1( name, _, stbir__decode_suffix )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CODER_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8264, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) name" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf8_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8268, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3),stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf8_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf4_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8269, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf4_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf8_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8270, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3),stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf8_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf4_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8271, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf4_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf8_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8281, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf8_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf4_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8282, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf4_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf8_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8283, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf8_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf4_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8284, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf4_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__min_max_shift20' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8747, - "column": 1, - "source_line": "#define stbir__min_max_shift20( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__min_max_shift20" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__scale_and_convert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8752, - "column": 1, - "source_line": "#define stbir__scale_and_convert( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__scale_and_convert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__linear_to_srgb_finish' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8758, - "column": 1, - "source_line": "#define stbir__linear_to_srgb_finish( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__linear_to_srgb_finish" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8768, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup2( v0,v1, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8779, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup3( v0,v1,v2, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8793, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup4( v0,v1,v2,v3, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_hi_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9750, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v ) if ( v > STBIR_FLOAT_HIGH_CLAMP ) v = STBIR_FLOAT_HIGH_CLAMP;" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_hi_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_hi_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9752, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v )" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_hi_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_lo_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9755, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v ) if ( v < STBIR_FLOAT_LOW_CLAMP ) v = STBIR_FLOAT_LOW_CLAMP;" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_lo_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_lo_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9757, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v )" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_lo_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9896, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join14(start,STBIR__vertical_channels,end,_cont)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9898, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__vertical_channels,end)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF0' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9902, - "column": 1, - "source_line": "#define stbIF0( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF0" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF0' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9904, - "column": 1, - "source_line": "#define stbIF0( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF0" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9907, - "column": 1, - "source_line": "#define stbIF1( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9909, - "column": 1, - "source_line": "#define stbIF1( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9912, - "column": 1, - "source_line": "#define stbIF2( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9914, - "column": 1, - "source_line": "#define stbIF2( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9917, - "column": 1, - "source_line": "#define stbIF3( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9919, - "column": 1, - "source_line": "#define stbIF3( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9922, - "column": 1, - "source_line": "#define stbIF4( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9924, - "column": 1, - "source_line": "#define stbIF4( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF5' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9927, - "column": 1, - "source_line": "#define stbIF5( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF5" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF5' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9929, - "column": 1, - "source_line": "#define stbIF5( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF5" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF6' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9932, - "column": 1, - "source_line": "#define stbIF6( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF6" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF6' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9934, - "column": 1, - "source_line": "#define stbIF6( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF6" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF7' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9937, - "column": 1, - "source_line": "#define stbIF7( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF7" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF7' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9939, - "column": 1, - "source_line": "#define stbIF7( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF7" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10282, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__horizontal_channels,end)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10285, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10291, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10297, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10303, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_setup' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10309, - "column": 1, - "source_line": "#define stbir__3_coeff_setup()" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_setup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10313, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10319, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'stbir_uint64'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 396, - "column": 1, - "source_line": "typedef unsigned __int64 stbir_uint64;" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 472, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 476, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 480, - "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 526, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 606, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 615, - "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 616, - "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ); // no callbacks by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 617, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ); // pass back STBIR_RESIZE* by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 618, - "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 627, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ); // sets new buffer layouts" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 628, - "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ); // CLAMP by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 630, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ); // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 631, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 633, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets both sub-regions (full regions by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 634, - "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ); // sets input sub-region (full region by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 635, - "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets output sub-region (full region by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 641, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 653, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 656, - "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 661, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 676, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 689, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 767, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 770, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 773, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize, int split_start, int split_num );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1077, - "column": 1, - "source_line": "static stbir__inline int stbir__min(int a, int b)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1082, - "column": 1, - "source_line": "static stbir__inline int stbir__max(int a, int b)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1138, - "column": 1, - "source_line": "static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1405, - "column": 3, - "source_line": " static const stbir__simdf STBIR_zeroones = { 0.0f,1.0f,0.0f,1.0f };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1406, - "column": 3, - "source_line": " static const stbir__simdf STBIR_onezeros = { 1.0f,0.0f,1.0f,0.0f };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1481, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s32_32768, 32768);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1482, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768));" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1679, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x) // martins floorf" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1696, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x) // martins ceilf" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbir_make16x2'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1821, - "column": 7, - "source_line": " static stbir__inline uint8x16x2_t stbir_make16x2(float32x4_t rega,float32x4_t regb)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir_make16x2" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbir_make8x2'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1849, - "column": 7, - "source_line": " static stbir__inline uint8x8x2_t stbir_make8x2(float32x4_t reg)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir_make8x2" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1940, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1958, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_UNSUPPORTED_DECLARATION", - "message": "Compiler-specific declaration attributes are not supported yet.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2120, - "column": 3, - "source_line": " typedef float stbir__f32x4 __attribute__((__vector_size__(16), __aligned__(16)));" - }, - "unit_kind": "attribute_declaration", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2130, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2139, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2178, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float_inverted8 = { stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2179, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float_inverted8 = { stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2180, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_ones8 = { 1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2181, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_simd_point58 = { 0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5 };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2182, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float8 = { stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float, stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2183, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float8 = { stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float, stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2237, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2251, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half(float val)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2301, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2306, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2311, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2316, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2326, - "column": 3, - "source_line": " stbir__inline static void stbir__half_to_float_SIMD(float * output, void const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2380, - "column": 3, - "source_line": " stbir__inline static void stbir__float_to_half_SIMD(void * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2462, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2470, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2478, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2483, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2490, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2497, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2504, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2509, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2516, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2523, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2566, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float, stbir__max_uint8_as_float);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2567, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float, stbir__max_uint16_as_float);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2568, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float_inverted, stbir__max_uint8_as_float_inverted);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2569, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float_inverted, stbir__max_uint16_as_float_inverted);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2571, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_simd_point5, 0.5f);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2572, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_ones, 1.0f);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2573, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_zero, (127 - 13) << 23);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2574, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_one, 0x3f7fffff);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2575, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_mantissa_mask, 0xff);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2576, - "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_topscale, 0x02000000);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2735, - "column": 3, - "source_line": " STBIRDEF stbir_uint64 __rdtsc();" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_PROFILE_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2740, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_PROFILE_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2757, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3110, - "column": 1, - "source_line": "stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_BUILD_GET_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3931, - "column": 1, - "source_line": "static void stbir__calculate_filters( stbir__sampler * samp, stbir__sampler * other_axis_for_pivot, void * user_data STBIR_ONLY_PROFILE_BUILD_GET_INFO )" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4610, - "column": 1, - "source_line": "static void stbir__decode_scanline(stbir__info const * stbir_info, int n, float * output_buffer STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6184, - "column": 1, - "source_line": "static void stbir__encode_scanline( stbir__info const * stbir_info, void *output_buffer_data, float * encode_buffer, int row STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6236, - "column": 1, - "source_line": "static void stbir__resample_horizontal_gather(stbir__info const * stbir_info, float* output_buffer, float const * input_buffer STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_BUILD_GET_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7048, - "column": 1, - "source_line": "static stbir__info * stbir__alloc_internal_mem_and_build_samplers( stbir__sampler * horizontal, stbir__sampler * vertical, stbir__contributors * conservative, stbir_pixel_layout input_pixel_layout_public, stbir_pixel_layout output_pixel_layout_public, int splits, int new_x, int new_y, int fast_alpha, void * user_data STBIR_ONLY_PROFILE_BUILD_GET_INFO )" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7720, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7739, - "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type ) // by default, datatype from resize_init" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7747, - "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ) // no callbacks by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7759, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ) // pass back STBIR_RESIZE* by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7766, - "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7777, - "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ) // CLAMP by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7785, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ) // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7793, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7801, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ) // sets new pixel layouts" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7810, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality ) // sets alpha speed" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7817, - "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ) // sets input region (full region by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7835, - "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets input region (full region by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7850, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets both regions (full regions by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7949, - "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7959, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int splits )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7975, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7980, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8024, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8120, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8129, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8139, - "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8149, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8161, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8179, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize, int split_start, int split_count )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8219, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8293, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME( stbir__decode_uint8_linear_scaled )( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8395, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear_scaled )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8512, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8607, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8706, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8810, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8897, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb4_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8915, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb4_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8984, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb2_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9009, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb2_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9072, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear_scaled)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9162, - "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear_scaled)( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9278, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9364, - "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear)( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9462, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_half_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9549, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_half_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9633, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9737, - "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9942, - "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_scatter_with_,_coeffs)( float ** outputs, float const * vertical_coefficients, float const * input, float const * input_end )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10114, - "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_gather_with_,_coeffs)( float * outputp, float const * vertical_coefficients, float const ** inputs, float const * input0_end )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10328, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_1_coeff)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10341, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_2_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10354, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_3_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10367, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_4_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10380, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_5_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10394, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_6_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10408, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_7_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10424, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_8_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10438, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_9_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10453, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_10_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10468, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_11_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10484, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_12_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10499, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod0 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10521, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod1 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10544, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod2 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10568, - "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod3 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10593, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_funcs)[4]=" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10601, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_funcs)[12]=" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint8'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 399, - "column": 1, - "source_line": "typedef uint8_t stbir_uint8;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint8" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 400, - "column": 1, - "source_line": "typedef uint16_t stbir_uint16;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint32'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 401, - "column": 1, - "source_line": "typedef uint32_t stbir_uint32;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint32" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir__FP16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2221, - "column": 3, - "source_line": " typedef float16_t stbir__FP16;" - }, - "unit_kind": "typedef", - "unit_name": "stbir__FP16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir__FP16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2226, - "column": 3, - "source_line": " typedef union stbir__FP16" - }, - "unit_kind": "typedef", - "unit_name": "stbir__FP16" - }, - { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'stbir_overlapping_memcpy'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2840, - "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "unit_kind": "function", - "unit_name": "stbir_overlapping_memcpy" - } - ] - } - }, - "functions": { - "stbir_simd_memcpy": { - "name": "stbir_simd_memcpy", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bytes", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2592, - "column": 1, - "source_line": "static void stbir_simd_memcpy( void * dest, void const * src, size_t bytes )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2592, - "column": 1, - "source_line": "static void stbir_simd_memcpy( void * dest, void const * src, size_t bytes )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2680, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir_overlapping_memcpy": { - "name": "stbir_overlapping_memcpy", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void const * src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bytes", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2685, - "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2685, - "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2714, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_trapezoid": { - "name": "stbir__filter_trapezoid", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2890, - "column": 1, - "source_line": "static float stbir__filter_trapezoid(float x, float scale, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2890, - "column": 1, - "source_line": "static float stbir__filter_trapezoid(float x, float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2909, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__support_trapezoid": { - "name": "stbir__support_trapezoid", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2911, - "column": 1, - "source_line": "static float stbir__support_trapezoid(float scale, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2911, - "column": 1, - "source_line": "static float stbir__support_trapezoid(float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2915, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_triangle": { - "name": "stbir__filter_triangle", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2917, - "column": 1, - "source_line": "static float stbir__filter_triangle(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2917, - "column": 1, - "source_line": "static float stbir__filter_triangle(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2928, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_point": { - "name": "stbir__filter_point", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2930, - "column": 1, - "source_line": "static float stbir__filter_point(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2930, - "column": 1, - "source_line": "static float stbir__filter_point(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2937, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_cubic": { - "name": "stbir__filter_cubic", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2939, - "column": 1, - "source_line": "static float stbir__filter_cubic(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2939, - "column": 1, - "source_line": "static float stbir__filter_cubic(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2952, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_catmullrom": { - "name": "stbir__filter_catmullrom", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2954, - "column": 1, - "source_line": "static float stbir__filter_catmullrom(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2954, - "column": 1, - "source_line": "static float stbir__filter_catmullrom(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2967, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__filter_mitchell": { - "name": "stbir__filter_mitchell", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2969, - "column": 1, - "source_line": "static float stbir__filter_mitchell(float x, float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2969, - "column": 1, - "source_line": "static float stbir__filter_mitchell(float x, float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2982, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__support_zeropoint5": { - "name": "stbir__support_zeropoint5", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2984, - "column": 1, - "source_line": "static float stbir__support_zeropoint5(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2984, - "column": 1, - "source_line": "static float stbir__support_zeropoint5(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2989, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__support_one": { - "name": "stbir__support_one", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2991, - "column": 1, - "source_line": "static float stbir__support_one(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2991, - "column": 1, - "source_line": "static float stbir__support_one(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 2996, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__support_two": { - "name": "stbir__support_two", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float s" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2998, - "column": 1, - "source_line": "static float stbir__support_two(float s, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 2998, - "column": 1, - "source_line": "static float stbir__support_two(float s, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3003, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_filter_pixel_width": { - "name": "stbir__get_filter_pixel_width", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "support", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3007, - "column": 1, - "source_line": "static int stbir__get_filter_pixel_width(stbir__support_callback * support, float scale, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3007, - "column": 1, - "source_line": "static int stbir__get_filter_pixel_width(stbir__support_callback * support, float scale, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3015, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_coefficient_width": { - "name": "stbir__get_coefficient_width", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3019, - "column": 1, - "source_line": "static int stbir__get_coefficient_width(stbir__sampler * samp, int is_gather, void * user_data)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3019, - "column": 1, - "source_line": "static int stbir__get_coefficient_width(stbir__sampler * samp, int is_gather, void * user_data)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3036, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_contributors": { - "name": "stbir__get_contributors", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3038, - "column": 1, - "source_line": "static int stbir__get_contributors(stbir__sampler * samp, int is_gather)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3038, - "column": 1, - "source_line": "static int stbir__get_contributors(stbir__sampler * samp, int is_gather)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3044, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__edge_zero_full": { - "name": "stbir__edge_zero_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3046, - "column": 1, - "source_line": "static int stbir__edge_zero_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3046, - "column": 1, - "source_line": "static int stbir__edge_zero_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3051, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__edge_clamp_full": { - "name": "stbir__edge_clamp_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3053, - "column": 1, - "source_line": "static int stbir__edge_clamp_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3053, - "column": 1, - "source_line": "static int stbir__edge_clamp_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3062, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__edge_reflect_full": { - "name": "stbir__edge_reflect_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3064, - "column": 1, - "source_line": "static int stbir__edge_reflect_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3064, - "column": 1, - "source_line": "static int stbir__edge_reflect_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__edge_wrap_full": { - "name": "stbir__edge_wrap_full", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3086, - "column": 1, - "source_line": "static int stbir__edge_wrap_full( int n, int max )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3086, - "column": 1, - "source_line": "static int stbir__edge_wrap_full( int n, int max )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3099, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_extents": { - "name": "stbir__get_extents", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline_extents", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__extents * scanline_extents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__extents" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__extents * scanline_extents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__extents" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3121, - "column": 1, - "source_line": "static void stbir__get_extents( stbir__sampler * samp, stbir__extents * scanline_extents )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3121, - "column": 1, - "source_line": "static void stbir__get_extents( stbir__sampler * samp, stbir__extents * scanline_extents )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3291, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__calculate_in_pixel_range": { - "name": "stbir__calculate_in_pixel_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "first_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "last_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_pixel_center", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_pixel_center" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_pixel_center" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_filter_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inv_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float inv_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float inv_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_shift", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3293, - "column": 1, - "source_line": "static void stbir__calculate_in_pixel_range( int * first_pixel, int * last_pixel, float out_pixel_center, float out_filter_radius, float inv_scale, float out_shift, int input_size, stbir_edge edge )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3293, - "column": 1, - "source_line": "static void stbir__calculate_in_pixel_range( int * first_pixel, int * last_pixel, float out_pixel_center, float out_filter_radius, float inv_scale, float out_shift, int input_size, stbir_edge edge )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3316, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__calculate_coefficients_for_gather_upsample": { - "name": "stbir__calculate_coefficients_for_gather_upsample", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_filter_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_filter_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3318, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_upsample( float out_filter_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float* coefficient_group, int coefficient_width, stbir_edge edge, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3318, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_upsample( float out_filter_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float* coefficient_group, int coefficient_width, stbir_edge edge, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3378, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__insert_coeff": { - "name": "stbir__insert_coeff", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "contribs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coeffs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coeffs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_pixel", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_pixel" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_pixel" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_coeff", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float new_coeff" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float new_coeff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3380, - "column": 1, - "source_line": "static void stbir__insert_coeff( stbir__contributors * contribs, float * coeffs, int new_pixel, float new_coeff, int max_width )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3380, - "column": 1, - "source_line": "static void stbir__insert_coeff( stbir__contributors * contribs, float * coeffs, int new_pixel, float new_coeff, int max_width )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3420, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__calculate_out_pixel_range": { - "name": "stbir__calculate_out_pixel_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "first_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * first_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "last_pixel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * last_pixel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixel_center", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixel_center" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixel_center" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixels_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_shift", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float out_shift" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int out_size" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3422, - "column": 1, - "source_line": "static void stbir__calculate_out_pixel_range( int * first_pixel, int * last_pixel, float in_pixel_center, float in_pixels_radius, float scale, float out_shift, int out_size )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3422, - "column": 1, - "source_line": "static void stbir__calculate_out_pixel_range( int * first_pixel, int * last_pixel, float in_pixel_center, float in_pixels_radius, float scale, float out_shift, int out_size )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3437, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__calculate_coefficients_for_gather_downsample": { - "name": "stbir__calculate_coefficients_for_gather_downsample", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "in_pixels_radius", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float in_pixels_radius" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3439, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_downsample( int start, int end, float in_pixels_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int coefficient_width, int num_contributors, stbir__contributors * contributors, float * coefficient_group, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3439, - "column": 1, - "source_line": "static void stbir__calculate_coefficients_for_gather_downsample( int start, int end, float in_pixels_radius, stbir__kernel_callback * kernel, stbir__scale_info * scale_info, int coefficient_width, int num_contributors, stbir__contributors * contributors, float * coefficient_group, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3515, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__cleanup_gathered_coefficients": { - "name": "stbir__cleanup_gathered_coefficients", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__filter_extent_info * filter_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__filter_extent_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__filter_extent_info * filter_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__filter_extent_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_group", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficient_group", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3523, - "column": 1, - "source_line": "static void stbir__cleanup_gathered_coefficients( stbir_edge edge, stbir__filter_extent_info* filter_info, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float * coefficient_group, int coefficient_width )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3523, - "column": 1, - "source_line": "static void stbir__cleanup_gathered_coefficients( stbir_edge edge, stbir__filter_extent_info* filter_info, stbir__scale_info * scale_info, int num_contributors, stbir__contributors* contributors, float * coefficient_group, int coefficient_width )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3692, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__pack_coefficients": { - "name": "stbir__pack_coefficients", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "num_contributors", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_contributors" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contributors", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contributors", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficents", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * coefficents", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "coefficient_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int coefficient_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "widest", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int widest" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int widest" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "row0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "row1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3696, - "column": 1, - "source_line": "static int stbir__pack_coefficients( int num_contributors, stbir__contributors* contributors, float * coefficents, int coefficient_width, int widest, int row0, int row1 ) " - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 3696, - "column": 1, - "source_line": "static int stbir__pack_coefficients( int num_contributors, stbir__contributors* contributors, float * coefficents, int coefficient_width, int widest, int row0, int row1 ) " - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 3929, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__fancy_alpha_weight_4ch": { - "name": "stbir__fancy_alpha_weight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4138, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_4ch( float * out_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4138, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_4ch( float * out_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4232, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__fancy_alpha_weight_2ch": { - "name": "stbir__fancy_alpha_weight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "out_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * out_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4234, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_2ch( float * out_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4234, - "column": 1, - "source_line": "static void stbir__fancy_alpha_weight_2ch( float * out_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4302, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__fancy_alpha_unweight_4ch": { - "name": "stbir__fancy_alpha_unweight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4304, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4304, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4351, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__fancy_alpha_unweight_2ch": { - "name": "stbir__fancy_alpha_unweight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4354, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4354, - "column": 1, - "source_line": "static void stbir__fancy_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4370, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__simple_alpha_weight_4ch": { - "name": "stbir__simple_alpha_weight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4372, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_4ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4372, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_4ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4426, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__simple_alpha_weight_2ch": { - "name": "stbir__simple_alpha_weight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4428, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_2ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4428, - "column": 1, - "source_line": "static void stbir__simple_alpha_weight_2ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4461, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__simple_alpha_unweight_4ch": { - "name": "stbir__simple_alpha_unweight_4ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4463, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4463, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_4ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4494, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__simple_alpha_unweight_2ch": { - "name": "stbir__simple_alpha_unweight_2ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "encode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * encode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4496, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4496, - "column": 1, - "source_line": "static void stbir__simple_alpha_unweight_2ch( float * encode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4507, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__simple_flip_3ch": { - "name": "stbir__simple_flip_3ch", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "decode_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float * decode_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width_times_channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width_times_channels" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 4511, - "column": 1, - "source_line": "static void stbir__simple_flip_3ch( float * decode_buffer, int width_times_channels )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 4511, - "column": 1, - "source_line": "static void stbir__simple_flip_3ch( float * decode_buffer, int width_times_channels )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 4606, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_ring_buffer_entry": { - "name": "stbir__get_ring_buffer_entry", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6218, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_entry(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int index )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6218, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_entry(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int index )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6227, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_ring_buffer_scanline": { - "name": "stbir__get_ring_buffer_scanline", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info const * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "get_scanline", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int get_scanline" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int get_scanline" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6230, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_scanline(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int get_scanline)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6230, - "column": 1, - "source_line": "static float* stbir__get_ring_buffer_scanline(stbir__info const * stbir_info, stbir__per_split_info const * split_info, int get_scanline)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6234, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__resample_vertical_gather": { - "name": "stbir__resample_vertical_gather", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contrib_n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contrib_n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int contrib_n1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_coefficients", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6248, - "column": 1, - "source_line": "static void stbir__resample_vertical_gather(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n, int contrib_n0, int contrib_n1, float const * vertical_coefficients )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6248, - "column": 1, - "source_line": "static void stbir__resample_vertical_gather(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n, int contrib_n0, int contrib_n1, float const * vertical_coefficients )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__decode_and_resample_for_vertical_gather_loop": { - "name": "stbir__decode_and_resample_for_vertical_gather_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6289, - "column": 1, - "source_line": "static void stbir__decode_and_resample_for_vertical_gather_loop(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6289, - "column": 1, - "source_line": "static void stbir__decode_and_resample_for_vertical_gather_loop(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6308, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__vertical_gather_loop": { - "name": "stbir__vertical_gather_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6310, - "column": 1, - "source_line": "static void stbir__vertical_gather_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6310, - "column": 1, - "source_line": "static void stbir__vertical_gather_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6369, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__encode_first_scanline_from_scatter": { - "name": "stbir__encode_first_scanline_from_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6374, - "column": 1, - "source_line": "static void stbir__encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6374, - "column": 1, - "source_line": "static void stbir__encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6389, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__horizontal_resample_and_encode_first_scanline_from_scatter": { - "name": "stbir__horizontal_resample_and_encode_first_scanline_from_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6391, - "column": 1, - "source_line": "static void stbir__horizontal_resample_and_encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6391, - "column": 1, - "source_line": "static void stbir__horizontal_resample_and_encode_first_scanline_from_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6410, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__resample_vertical_scatter": { - "name": "stbir__resample_vertical_scatter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_coefficients", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_coefficients", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_buffer_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float const * vertical_buffer_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [ - "const" - ], - "source_text": "const float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6412, - "column": 1, - "source_line": "static void stbir__resample_vertical_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n0, int n1, float const * vertical_coefficients, float const * vertical_buffer, float const * vertical_buffer_end )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6412, - "column": 1, - "source_line": "static void stbir__resample_vertical_scatter(stbir__info const * stbir_info, stbir__per_split_info* split_info, int n0, int n1, float const * vertical_coefficients, float const * vertical_buffer, float const * vertical_buffer_end )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6440, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__vertical_scatter_loop": { - "name": "stbir__vertical_scatter_loop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "stbir_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * stbir_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6444, - "column": 1, - "source_line": "static void stbir__vertical_scatter_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6444, - "column": 1, - "source_line": "static void stbir__vertical_scatter_loop( stbir__info const * stbir_info, stbir__per_split_info* split_info, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6567, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__set_sampler": { - "name": "stbir__set_sampler", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter", - "type": { - "reference": "stbir_filter" - }, - "declared_type": { - "reference": "stbir_filter" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "kernel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__kernel_callback * kernel", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "support", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__support_callback * support", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "always_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int always_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int always_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6573, - "column": 1, - "source_line": "static void stbir__set_sampler(stbir__sampler * samp, stbir_filter filter, stbir__kernel_callback * kernel, stbir__support_callback * support, stbir_edge edge, stbir__scale_info * scale_info, int always_gather, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6573, - "column": 1, - "source_line": "static void stbir__set_sampler(stbir__sampler * samp, stbir_filter filter, stbir__kernel_callback * kernel, stbir__support_callback * support, stbir_edge edge, stbir__scale_info * scale_info, int always_gather, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6653, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_conservative_extents": { - "name": "stbir__get_conservative_extents", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "samp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__sampler * samp", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__sampler" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "range", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * range", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * range", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user_data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user_data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6655, - "column": 1, - "source_line": "static void stbir__get_conservative_extents( stbir__sampler * samp, stbir__contributors * range, void * user_data )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6655, - "column": 1, - "source_line": "static void stbir__get_conservative_extents( stbir__sampler * samp, stbir__contributors * range, void * user_data )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6745, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_split_info": { - "name": "stbir__get_split_info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "split_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__per_split_info * split_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__per_split_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_pixel_margin", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_pixel_margin" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_pixel_margin" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_full_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contribs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__contributors * contribs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__contributors" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6747, - "column": 1, - "source_line": "static void stbir__get_split_info( stbir__per_split_info* split_info, int splits, int output_height, int vertical_pixel_margin, int input_full_height, int is_gather, stbir__contributors * contribs )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6747, - "column": 1, - "source_line": "static void stbir__get_split_info( stbir__per_split_info* split_info, int splits, int output_height, int vertical_pixel_margin, int input_full_height, int is_gather, stbir__contributors * contribs )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6815, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__free_internal_mem": { - "name": "stbir__free_internal_mem", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6817, - "column": 1, - "source_line": "static void stbir__free_internal_mem( stbir__info *info )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6817, - "column": 1, - "source_line": "static void stbir__free_internal_mem( stbir__info *info )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6866, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__get_max_split": { - "name": "stbir__get_max_split", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6868, - "column": 1, - "source_line": "static int stbir__get_max_split( int splits, int height )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6868, - "column": 1, - "source_line": "static int stbir__get_max_split( int splits, int height )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 6881, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__should_do_vertical_first": { - "name": "stbir__should_do_vertical_first", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "weights_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBIR_RESIZE_CLASSIFICATIONS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_filter_pixel_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_filter_pixel_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_filter_pixel_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float horizontal_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float horizontal_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "horizontal_output_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_output_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int horizontal_output_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_filter_pixel_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_filter_pixel_width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_filter_pixel_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float vertical_scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float vertical_scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertical_output_size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_output_size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vertical_output_size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_gather", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_gather" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR__V_FIRST_INFO * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR__V_FIRST_INFO" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR__V_FIRST_INFO * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR__V_FIRST_INFO" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6985, - "column": 1, - "source_line": "static int stbir__should_do_vertical_first( float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4], int horizontal_filter_pixel_width, float horizontal_scale, int horizontal_output_size, int vertical_filter_pixel_width, float vertical_scale, int vertical_output_size, int is_gather, STBIR__V_FIRST_INFO * info )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 6985, - "column": 1, - "source_line": "static int stbir__should_do_vertical_first( float weights_table[STBIR_RESIZE_CLASSIFICATIONS][4], int horizontal_filter_pixel_width, float horizontal_scale, int horizontal_output_size, int vertical_filter_pixel_width, float vertical_scale, int vertical_output_size, int is_gather, STBIR__V_FIRST_INFO * info )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7031, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__perform_resize": { - "name": "stbir__perform_resize", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info const * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "split_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int split_count" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7380, - "column": 1, - "source_line": "static int stbir__perform_resize( stbir__info const * info, int split_start, int split_count )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7380, - "column": 1, - "source_line": "static int stbir__perform_resize( stbir__info const * info, int split_start, int split_count )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7394, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__update_info_from_resize": { - "name": "stbir__update_info_from_resize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__info * info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7396, - "column": 1, - "source_line": "static void stbir__update_info_from_resize( stbir__info * info, STBIR_RESIZE * resize )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7396, - "column": 1, - "source_line": "static void stbir__update_info_from_resize( stbir__info * info, STBIR_RESIZE * resize )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7543, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__clip": { - "name": "stbir__clip", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "outx", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "outsubw", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outsubw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * outsubw", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "outw", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outw" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outw" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "u0", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u0", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u0", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "u1", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double * u1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7545, - "column": 1, - "source_line": "static void stbir__clip( int * outx, int * outsubw, int outw, double * u0, double * u1 )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7545, - "column": 1, - "source_line": "static void stbir__clip( int * outx, int * outsubw, int outw, double * u0, double * u1 )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7568, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__double_to_rational": { - "name": "stbir__double_to_rational", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double f" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double f" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit", - "type": { - "reference": "stbir_uint32" - }, - "declared_type": { - "reference": "stbir_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *numer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *numer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "denom", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *denom", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir_uint32 *denom", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir_uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit_denom", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit_denom" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit_denom" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7571, - "column": 1, - "source_line": "static int stbir__double_to_rational(double f, stbir_uint32 limit, stbir_uint32 *numer, stbir_uint32 *denom, int limit_denom ) // limit_denom (1) or limit numer (0)" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7571, - "column": 1, - "source_line": "static int stbir__double_to_rational(double f, stbir_uint32 limit, stbir_uint32 *numer, stbir_uint32 *denom, int limit_denom ) // limit_denom (1) or limit numer (0)" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7646, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__calculate_region_transform": { - "name": "stbir__calculate_region_transform", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "scale_info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbir__scale_info * scale_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__scale_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_full_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_full_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_full_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_offset", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * output_offset", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int * output_offset", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_sub_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_sub_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_sub_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_full_range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_full_range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_s0", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s0" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_s1", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s1" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double input_s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7648, - "column": 1, - "source_line": "static int stbir__calculate_region_transform( stbir__scale_info * scale_info, int output_full_range, int * output_offset, int output_sub_range, int input_full_range, double input_s0, double input_s1 )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7648, - "column": 1, - "source_line": "static int stbir__calculate_region_transform( stbir__scale_info * scale_info, int output_full_range, int * output_offset, int output_sub_range, int input_full_range, double input_s0, double input_s1 )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7695, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__init_and_set_layout": { - "name": "stbir__init_and_set_layout", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pixel_layout", - "type": { - "reference": "stbir_pixel_layout" - }, - "declared_type": { - "reference": "stbir_pixel_layout" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_type", - "type": { - "reference": "stbir_datatype" - }, - "declared_type": { - "reference": "stbir_datatype" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7698, - "column": 1, - "source_line": "static void stbir__init_and_set_layout( STBIR_RESIZE * resize, stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7698, - "column": 1, - "source_line": "static void stbir__init_and_set_layout( STBIR_RESIZE * resize, stbir_pixel_layout pixel_layout, stbir_datatype data_type )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7718, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir__perform_build": { - "name": "stbir__perform_build", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "resize", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STBIR_RESIZE * resize", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_RESIZE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "splits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int splits" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7876, - "column": 1, - "source_line": "static int stbir__perform_build( STBIR_RESIZE * resize, int splits )" - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 7876, - "column": 1, - "source_line": "static int stbir__perform_build( STBIR_RESIZE * resize, int splits )" - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 7947, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbir_quick_resize_helper": { - "name": "stbir_quick_resize_helper", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "input_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *input_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *input_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "input_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int input_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *output_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *output_pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int output_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pixel_layout", - "type": { - "reference": "stbir_pixel_layout" - }, - "declared_type": { - "reference": "stbir_pixel_layout" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_type", - "type": { - "reference": "stbir_datatype" - }, - "declared_type": { - "reference": "stbir_datatype" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "edge", - "type": { - "reference": "stbir_edge" - }, - "declared_type": { - "reference": "stbir_edge" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter", - "type": { - "reference": "stbir_filter" - }, - "declared_type": { - "reference": "stbir_filter" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8044, - "column": 1, - "source_line": "static void * stbir_quick_resize_helper( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "start": { - "filename": "stb/stb_image_resize2.h", - "line": 8044, - "column": 1, - "source_line": "static void * stbir_quick_resize_helper( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "end": { - "filename": "stb/stb_image_resize2.h", - "line": 8116, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "STBIR_RESIZE": { - "reference": "struct STBIR_RESIZE" - }, - "STBIR_PROFILE_INFO": { - "reference": "struct STBIR_PROFILE_INFO" - }, - "stbir__scale_info": { - "reference": "struct stbir__scale_info" - }, - "stbir__info": { - "reference": "struct stbir__info" - }, - "STBIR__V_FIRST_INFO": { - "reference": "struct STBIR__V_FIRST_INFO" - } - }, - "unions": { - "stbir__FP16": { - "reference": "union stbir__FP16" - }, - "stbir__simdi_u32": { - "reference": "union stbir__simdi_u32" - } - }, - "enums": {}, - "typedefs": { - "stbir_uint8": { - "reference": "stbir_uint8" - }, - "stbir_uint16": { - "reference": "stbir_uint16" - }, - "stbir_uint32": { - "reference": "stbir_uint32" - }, - "stbir_uint64": { - "reference": "stbir_uint64" - }, - "stbir_pixel_layout": { - "reference": "stbir_pixel_layout" - }, - "stbir_edge": { - "reference": "stbir_edge" - }, - "stbir_filter": { - "reference": "stbir_filter" - }, - "stbir_datatype": { - "reference": "stbir_datatype" - }, - "stbir_input_callback": { - "reference": "stbir_input_callback" - }, - "stbir_output_callback": { - "reference": "stbir_output_callback" - }, - "stbir__kernel_callback": { - "reference": "stbir__kernel_callback" - }, - "stbir__support_callback": { - "reference": "stbir__support_callback" - }, - "stbir__info": { - "reference": "stbir__info" - }, - "STBIR_RESIZE": { - "reference": "STBIR_RESIZE" - }, - "STBIR_PROFILE_INFO": { - "reference": "STBIR_PROFILE_INFO" - }, - "stbir_internal_pixel_layout": { - "reference": "stbir_internal_pixel_layout" - }, - "stbir__contributors": { - "reference": "stbir__contributors" - }, - "stbir__filter_extent_info": { - "reference": "stbir__filter_extent_info" - }, - "stbir__span": { - "reference": "stbir__span" - }, - "stbir__scale_info": { - "reference": "stbir__scale_info" - }, - "stbir__sampler": { - "reference": "stbir__sampler" - }, - "stbir__extents": { - "reference": "stbir__extents" - }, - "stbir__per_split_info": { - "reference": "stbir__per_split_info" - }, - "stbir__decode_pixels_func": { - "reference": "stbir__decode_pixels_func" - }, - "stbir__alpha_weight_func": { - "reference": "stbir__alpha_weight_func" - }, - "stbir__horizontal_gather_channels_func": { - "reference": "stbir__horizontal_gather_channels_func" - }, - "stbir__alpha_unweight_func": { - "reference": "stbir__alpha_unweight_func" - }, - "stbir__encode_pixels_func": { - "reference": "stbir__encode_pixels_func" - }, - "stbir__FP32": { - "reference": "stbir__FP32" - }, - "stbir__FP16": { - "reference": "stbir__FP16" - }, - "stbir__simdi_u32": { - "reference": "stbir__simdi_u32" - }, - "stbir__edge_wrap_func": { - "reference": "stbir__edge_wrap_func" - }, - "STBIR_VERTICAL_GATHERFUNC": { - "reference": "STBIR_VERTICAL_GATHERFUNC" - }, - "STBIR_VERTICAL_SCATTERFUNC": { - "reference": "STBIR_VERTICAL_SCATTERFUNC" - }, - "stbir__handle_scanline_for_scatter_func": { - "reference": "stbir__handle_scanline_for_scatter_func" - }, - "STBIR__V_FIRST_INFO": { - "reference": "STBIR__V_FIRST_INFO" - } - }, - "variables": { - "stbir__type_size": { - "name": "stbir__type_size", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbir__type_size[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1,1,1,2,4,2 \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 904, - "column": 1, - "source_line": "static unsigned char stbir__type_size[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__srgb_uchar_to_linear_float": { - "name": "stbir__srgb_uchar_to_linear_float", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbir__srgb_uchar_to_linear_float[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0.000000f, 0.000304f, 0.000607f, 0.000911f, 0.001214f, 0.001518f, 0.001821f, 0.002125f, 0.002428f, 0.002732f, 0.003035f,\n 0.003347f, 0.003677f, 0.004025f, 0.004391f, 0.004777f, 0.005182f, 0.005605f, 0.006049f, 0.006512f, 0.006995f, 0.007499f,\n 0.008023f, 0.008568f, 0.009134f, 0.009721f, 0.010330f, 0.010960f, 0.011612f, 0.012286f, 0.012983f, 0.013702f, 0.014444f,\n 0.015209f, 0.015996f, 0.016807f, 0.017642f, 0.018500f, 0.019382f, 0.020289f, 0.021219f, 0.022174f, 0.023153f, 0.024158f,\n 0.025187f, 0.026241f, 0.027321f, 0.028426f, 0.029557f, 0.030713f, 0.031896f, 0.033105f, 0.034340f, 0.035601f, 0.036889f,\n 0.038204f, 0.039546f, 0.040915f, 0.042311f, 0.043735f, 0.045186f, 0.046665f, 0.048172f, 0.049707f, 0.051269f, 0.052861f,\n 0.054480f, 0.056128f, 0.057805f, 0.059511f, 0.061246f, 0.063010f, 0.064803f, 0.066626f, 0.068478f, 0.070360f, 0.072272f,\n 0.074214f, 0.076185f, 0.078187f, 0.080220f, 0.082283f, 0.084376f, 0.086500f, 0.088656f, 0.090842f, 0.093059f, 0.095307f,\n 0.097587f, 0.099899f, 0.102242f, 0.104616f, 0.107023f, 0.109462f, 0.111932f, 0.114435f, 0.116971f, 0.119538f, 0.122139f,\n 0.124772f, 0.127438f, 0.130136f, 0.132868f, 0.135633f, 0.138432f, 0.141263f, 0.144128f, 0.147027f, 0.149960f, 0.152926f,\n 0.155926f, 0.158961f, 0.162029f, 0.165132f, 0.168269f, 0.171441f, 0.174647f, 0.177888f, 0.181164f, 0.184475f, 0.187821f,\n 0.191202f, 0.194618f, 0.198069f, 0.201556f, 0.205079f, 0.208637f, 0.212231f, 0.215861f, 0.219526f, 0.223228f, 0.226966f,\n 0.230740f, 0.234551f, 0.238398f, 0.242281f, 0.246201f, 0.250158f, 0.254152f, 0.258183f, 0.262251f, 0.266356f, 0.270498f,\n 0.274677f, 0.278894f, 0.283149f, 0.287441f, 0.291771f, 0.296138f, 0.300544f, 0.304987f, 0.309469f, 0.313989f, 0.318547f,\n 0.323143f, 0.327778f, 0.332452f, 0.337164f, 0.341914f, 0.346704f, 0.351533f, 0.356400f, 0.361307f, 0.366253f, 0.371238f,\n 0.376262f, 0.381326f, 0.386430f, 0.391573f, 0.396755f, 0.401978f, 0.407240f, 0.412543f, 0.417885f, 0.423268f, 0.428691f,\n 0.434154f, 0.439657f, 0.445201f, 0.450786f, 0.456411f, 0.462077f, 0.467784f, 0.473532f, 0.479320f, 0.485150f, 0.491021f,\n 0.496933f, 0.502887f, 0.508881f, 0.514918f, 0.520996f, 0.527115f, 0.533276f, 0.539480f, 0.545725f, 0.552011f, 0.558340f,\n 0.564712f, 0.571125f, 0.577581f, 0.584078f, 0.590619f, 0.597202f, 0.603827f, 0.610496f, 0.617207f, 0.623960f, 0.630757f,\n 0.637597f, 0.644480f, 0.651406f, 0.658375f, 0.665387f, 0.672443f, 0.679543f, 0.686685f, 0.693872f, 0.701102f, 0.708376f,\n 0.715694f, 0.723055f, 0.730461f, 0.737911f, 0.745404f, 0.752942f, 0.760525f, 0.768151f, 0.775822f, 0.783538f, 0.791298f,\n 0.799103f, 0.806952f, 0.814847f, 0.822786f, 0.830770f, 0.838799f, 0.846873f, 0.854993f, 0.863157f, 0.871367f, 0.879622f,\n 0.887923f, 0.896269f, 0.904661f, 0.913099f, 0.921582f, 0.930111f, 0.938686f, 0.947307f, 0.955974f, 0.964686f, 0.973445f,\n 0.982251f, 0.991102f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1087, - "column": 1, - "source_line": "static float stbir__srgb_uchar_to_linear_float[256] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "fp32_to_srgb8_tab4": { - "name": "fp32_to_srgb8_tab4", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const stbir_uint32 fp32_to_srgb8_tab4[104]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "104", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_uint32" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0x0073000d, 0x007a000d, 0x0080000d, 0x0087000d, 0x008d000d, 0x0094000d, 0x009a000d, 0x00a1000d,\n 0x00a7001a, 0x00b4001a, 0x00c1001a, 0x00ce001a, 0x00da001a, 0x00e7001a, 0x00f4001a, 0x0101001a,\n 0x010e0033, 0x01280033, 0x01410033, 0x015b0033, 0x01750033, 0x018f0033, 0x01a80033, 0x01c20033,\n 0x01dc0067, 0x020f0067, 0x02430067, 0x02760067, 0x02aa0067, 0x02dd0067, 0x03110067, 0x03440067,\n 0x037800ce, 0x03df00ce, 0x044600ce, 0x04ad00ce, 0x051400ce, 0x057b00c5, 0x05dd00bc, 0x063b00b5,\n 0x06970158, 0x07420142, 0x07e30130, 0x087b0120, 0x090b0112, 0x09940106, 0x0a1700fc, 0x0a9500f2,\n 0x0b0f01cb, 0x0bf401ae, 0x0ccb0195, 0x0d950180, 0x0e56016e, 0x0f0d015e, 0x0fbc0150, 0x10630143,\n 0x11070264, 0x1238023e, 0x1357021d, 0x14660201, 0x156601e9, 0x165a01d3, 0x174401c0, 0x182401af,\n 0x18fe0331, 0x1a9602fe, 0x1c1502d2, 0x1d7e02ad, 0x1ed4028d, 0x201a0270, 0x21520256, 0x227d0240,\n 0x239f0443, 0x25c003fe, 0x27bf03c4, 0x29a10392, 0x2b6a0367, 0x2d1d0341, 0x2ebe031f, 0x304d0300,\n 0x31d105b0, 0x34a80555, 0x37520507, 0x39d504c5, 0x3c37048b, 0x3e7c0458, 0x40a8042a, 0x42bd0401,\n 0x44c20798, 0x488e071e, 0x4c1c06b6, 0x4f76065d, 0x52a50610, 0x55ac05cc, 0x5892058f, 0x5b590559,\n 0x5e0c0a23, 0x631c0980, 0x67db08f6, 0x6c55087f, 0x70940818, 0x74a007bd, 0x787d076c, 0x7c330723,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1122, - "column": 1, - "source_line": "static const stbir_uint32 fp32_to_srgb8_tab4[104] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir_00001111": { - "name": "stbir_00001111", - "type": { - "reference": "__m256i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 0, 0, 0, 0 ), STBIR__CONST_4d_32i( 1, 1, 1, 1 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1625, - "column": 5, - "source_line": " static __m256i stbir_00001111 = { STBIR__CONST_4d_32i( 0, 0, 0, 0 ), STBIR__CONST_4d_32i( 1, 1, 1, 1 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir_22223333": { - "name": "stbir_22223333", - "type": { - "reference": "__m256i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 2, 2, 2, 2 ), STBIR__CONST_4d_32i( 3, 3, 3, 3 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1628, - "column": 5, - "source_line": " static __m256i stbir_22223333 = { STBIR__CONST_4d_32i( 2, 2, 2, 2 ), STBIR__CONST_4d_32i( 3, 3, 3, 3 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir_00112233": { - "name": "stbir_00112233", - "type": { - "reference": "__m256i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4d_32i( 0, 0, 1, 1 ), STBIR__CONST_4d_32i( 2, 2, 3, 3 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1635, - "column": 5, - "source_line": " static __m256i stbir_00112233 = { STBIR__CONST_4d_32i( 0, 0, 1, 1 ), STBIR__CONST_4d_32i( 2, 2, 3, 3 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir_load6": { - "name": "stbir_load6", - "type": { - "reference": "__m256i" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBIR__CONST_4_32i( 0x80000000 ), STBIR__CONST_4d_32i( 0x80000000, 0x80000000, 0, 0 ) }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1639, - "column": 5, - "source_line": " static __m256i stbir_load6 = { STBIR__CONST_4_32i( 0x80000000 ), STBIR__CONST_4d_32i( 0x80000000, 0x80000000, 0, 0 ) };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "STBIR_mask": { - "name": "STBIR_mask", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const int STBIR_mask[9]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,0,0,-1,-1,-1,0,0,0 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2564, - "column": 1, - "source_line": "static const int STBIR_mask[9] = { 0,0,0,-1,-1,-1,0,0,0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__edge_wrap_slow": { - "name": "stbir__edge_wrap_slow", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__edge_wrap_func * stbir__edge_wrap_slow[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__edge_wrap_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__edge_clamp_full, \n stbir__edge_reflect_full, \n stbir__edge_wrap_full, \n stbir__edge_zero_full, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3102, - "column": 1, - "source_line": "static stbir__edge_wrap_func * stbir__edge_wrap_slow[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__vertical_gathers": { - "name": "stbir__vertical_gathers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_GATHERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_gather_with_1_coeffs,stbir__vertical_gather_with_2_coeffs,stbir__vertical_gather_with_3_coeffs,stbir__vertical_gather_with_4_coeffs,stbir__vertical_gather_with_5_coeffs,stbir__vertical_gather_with_6_coeffs,stbir__vertical_gather_with_7_coeffs,stbir__vertical_gather_with_8_coeffs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6161, - "column": 1, - "source_line": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__vertical_gathers_continues": { - "name": "stbir__vertical_gathers_continues", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers_continues[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_GATHERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_gather_with_1_coeffs_cont,stbir__vertical_gather_with_2_coeffs_cont,stbir__vertical_gather_with_3_coeffs_cont,stbir__vertical_gather_with_4_coeffs_cont,stbir__vertical_gather_with_5_coeffs_cont,stbir__vertical_gather_with_6_coeffs_cont,stbir__vertical_gather_with_7_coeffs_cont,stbir__vertical_gather_with_8_coeffs_cont\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6166, - "column": 1, - "source_line": "static STBIR_VERTICAL_GATHERFUNC * stbir__vertical_gathers_continues[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__vertical_scatter_sets": { - "name": "stbir__vertical_scatter_sets", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_sets[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_SCATTERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_scatter_with_1_coeffs,stbir__vertical_scatter_with_2_coeffs,stbir__vertical_scatter_with_3_coeffs,stbir__vertical_scatter_with_4_coeffs,stbir__vertical_scatter_with_5_coeffs,stbir__vertical_scatter_with_6_coeffs,stbir__vertical_scatter_with_7_coeffs,stbir__vertical_scatter_with_8_coeffs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6173, - "column": 1, - "source_line": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_sets[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__vertical_scatter_blends": { - "name": "stbir__vertical_scatter_blends", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_blends[ 8 ]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STBIR_VERTICAL_SCATTERFUNC" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n stbir__vertical_scatter_with_1_coeffs_cont,stbir__vertical_scatter_with_2_coeffs_cont,stbir__vertical_scatter_with_3_coeffs_cont,stbir__vertical_scatter_with_4_coeffs_cont,stbir__vertical_scatter_with_5_coeffs_cont,stbir__vertical_scatter_with_6_coeffs_cont,stbir__vertical_scatter_with_7_coeffs_cont,stbir__vertical_scatter_with_8_coeffs_cont\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6178, - "column": 1, - "source_line": "static STBIR_VERTICAL_SCATTERFUNC * stbir__vertical_scatter_blends[ 8 ] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__builtin_kernels": { - "name": "stbir__builtin_kernels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__kernel_callback * stbir__builtin_kernels[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__kernel_callback" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, stbir__filter_trapezoid, stbir__filter_triangle, stbir__filter_cubic, stbir__filter_catmullrom, stbir__filter_mitchell, stbir__filter_point }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6570, - "column": 1, - "source_line": "static stbir__kernel_callback * stbir__builtin_kernels[] = { 0, stbir__filter_trapezoid, stbir__filter_triangle, stbir__filter_cubic, stbir__filter_catmullrom, stbir__filter_mitchell, stbir__filter_point };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__builtin_supports": { - "name": "stbir__builtin_supports", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__support_callback * stbir__builtin_supports[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__support_callback" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, stbir__support_trapezoid, stbir__support_one, stbir__support_two, stbir__support_two, stbir__support_two, stbir__support_zeropoint5 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6571, - "column": 1, - "source_line": "static stbir__support_callback * stbir__builtin_supports[] = { 0, stbir__support_trapezoid, stbir__support_one, stbir__support_two, stbir__support_two, stbir__support_two, stbir__support_zeropoint5 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__horizontal_gather_n_coeffs_funcs": { - "name": "stbir__horizontal_gather_n_coeffs_funcs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_n_coeffs_funcs[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__horizontal_gather_channels_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0, stbir__horizontal_gather_1_channels_with_n_coeffs_funcs, stbir__horizontal_gather_2_channels_with_n_coeffs_funcs, stbir__horizontal_gather_3_channels_with_n_coeffs_funcs, stbir__horizontal_gather_4_channels_with_n_coeffs_funcs, 0,0, stbir__horizontal_gather_7_channels_with_n_coeffs_funcs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6883, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_n_coeffs_funcs[8] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__horizontal_gather_channels_funcs": { - "name": "stbir__horizontal_gather_channels_funcs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_channels_funcs[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbir__horizontal_gather_channels_func" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0, stbir__horizontal_gather_1_channels_funcs, stbir__horizontal_gather_2_channels_funcs, stbir__horizontal_gather_3_channels_funcs, stbir__horizontal_gather_4_channels_funcs, 0,0, stbir__horizontal_gather_7_channels_funcs\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6888, - "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func ** stbir__horizontal_gather_channels_funcs[8] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__compute_weights": { - "name": "stbir__compute_weights", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbir__compute_weights[5][STBIR_RESIZE_CLASSIFICATIONS][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBIR_RESIZE_CLASSIFICATIONS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { 1.00000f, 1.00000f, 0.31250f, 1.00000f },\n { 0.56250f, 0.59375f, 0.00000f, 0.96875f },\n { 1.00000f, 0.06250f, 0.00000f, 1.00000f },\n { 0.00000f, 0.09375f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.31250f, 1.00000f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.03125f },\n }, {\n { 0.00000f, 0.84375f, 0.00000f, 0.03125f },\n { 0.09375f, 0.93750f, 0.00000f, 0.78125f },\n { 0.87500f, 0.21875f, 0.00000f, 0.96875f },\n { 0.09375f, 0.09375f, 1.00000f, 1.00000f },\n { 0.00000f, 0.84375f, 0.00000f, 0.03125f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.53125f },\n }, {\n { 0.00000f, 0.53125f, 0.00000f, 0.03125f },\n { 0.06250f, 0.96875f, 0.00000f, 0.53125f },\n { 0.87500f, 0.18750f, 0.00000f, 0.93750f },\n { 0.00000f, 0.09375f, 1.00000f, 1.00000f },\n { 0.00000f, 0.53125f, 0.00000f, 0.03125f },\n { 0.03125f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.00000f, 0.56250f },\n }, {\n { 0.00000f, 0.50000f, 0.00000f, 0.71875f },\n { 0.06250f, 0.84375f, 0.00000f, 0.87500f },\n { 1.00000f, 0.50000f, 0.50000f, 0.96875f },\n { 1.00000f, 0.09375f, 0.31250f, 0.50000f },\n { 0.00000f, 0.50000f, 0.00000f, 0.71875f },\n { 1.00000f, 0.03125f, 0.03125f, 0.53125f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.03125f, 0.18750f },\n }, {\n { 0.00000f, 0.59375f, 0.00000f, 0.96875f },\n { 0.06250f, 0.81250f, 0.06250f, 0.59375f },\n { 0.75000f, 0.43750f, 0.12500f, 0.96875f },\n { 0.87500f, 0.06250f, 0.18750f, 0.43750f },\n { 0.00000f, 0.59375f, 0.00000f, 0.96875f },\n { 0.15625f, 0.12500f, 1.00000f, 1.00000f },\n { 1.00000f, 1.00000f, 0.06250f, 1.00000f },\n { 0.00000f, 1.00000f, 0.03125f, 0.34375f },\n }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6896, - "column": 1, - "source_line": "static float stbir__compute_weights[5][STBIR_RESIZE_CLASSIFICATIONS][4]= // 5 = 0=1chan, 1=2chan, 2=3chan, 3=4chan, 4=7chan" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "STBIR__V_FIRST_INFO_BUFFER": { - "name": "STBIR__V_FIRST_INFO_BUFFER", - "type": { - "reference": "STBIR__V_FIRST_INFO" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{0}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6957, - "column": 1, - "source_line": "static STBIR__V_FIRST_INFO STBIR__V_FIRST_INFO_BUFFER = {0};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__pixel_channels": { - "name": "stbir__pixel_channels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbir__pixel_channels[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1,2,3,3,4, \n 4,4,4,4,2,2, \n 4,4,4,4,2,2, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7034, - "column": 1, - "source_line": "static unsigned char stbir__pixel_channels[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbir__pixel_layout_convert_public_to_internal": { - "name": "stbir__pixel_layout_convert_public_to_internal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbir_internal_pixel_layout stbir__pixel_layout_convert_public_to_internal[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbir_internal_pixel_layout" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBIRI_BGR, STBIRI_1CHANNEL, STBIRI_2CHANNEL, STBIRI_RGB, STBIRI_RGBA,\n STBIRI_4CHANNEL, STBIRI_BGRA, STBIRI_ARGB, STBIRI_ABGR, STBIRI_RA, STBIRI_AR,\n STBIRI_RGBA_PM, STBIRI_BGRA_PM, STBIRI_ARGB_PM, STBIRI_ABGR_PM, STBIRI_RA_PM, STBIRI_AR_PM,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7042, - "column": 1, - "source_line": "static stbir_internal_pixel_layout stbir__pixel_layout_convert_public_to_internal[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STBIR_INCLUDE_STB_IMAGE_RESIZE2_H": { - "name": "STBIR_INCLUDE_STB_IMAGE_RESIZE2_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 389, - "column": 1, - "source_line": "#define STBIR_INCLUDE_STB_IMAGE_RESIZE2_H" - } - }, - "STBIRDEF": { - "name": "STBIRDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 412, - "column": 1, - "source_line": "#define STBIRDEF extern" - } - }, - "STBIR_ASSERT": { - "name": "STBIR_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 787, - "column": 1, - "source_line": "#define STBIR_ASSERT(x) assert(x)" - } - }, - "STBIR_MALLOC": { - "name": "STBIR_MALLOC", - "value": "((void)(user_data), malloc(size))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 792, - "column": 1, - "source_line": "#define STBIR_MALLOC(size,user_data) ((void)(user_data), malloc(size))" - } - }, - "STBIR_FREE": { - "name": "STBIR_FREE", - "value": "((void)(user_data), free(ptr))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 793, - "column": 1, - "source_line": "#define STBIR_FREE(ptr,user_data) ((void)(user_data), free(ptr))" - } - }, - "stbir__inline": { - "name": "stbir__inline", - "value": "__inline__", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 803, - "column": 1, - "source_line": "#define stbir__inline __inline__" - } - }, - "STBIR__SEPARATE_ALLOCATIONS": { - "name": "STBIR__SEPARATE_ALLOCATIONS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 819, - "column": 5, - "source_line": " #define STBIR__SEPARATE_ALLOCATIONS" - } - }, - "STBIR__UNUSED": { - "name": "STBIR__UNUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 840, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)sizeof(v)" - } - }, - "STBIR__ARRAY_SIZE": { - "name": "STBIR__ARRAY_SIZE", - "value": "(sizeof((a))/sizeof((a)[0]))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 843, - "column": 1, - "source_line": "#define STBIR__ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0]))" - } - }, - "STBIR_DEFAULT_FILTER_UPSAMPLE": { - "name": "STBIR_DEFAULT_FILTER_UPSAMPLE", - "value": "STBIR_FILTER_CATMULLROM", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 847, - "column": 1, - "source_line": "#define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_CATMULLROM" - } - }, - "STBIR_DEFAULT_FILTER_DOWNSAMPLE": { - "name": "STBIR_DEFAULT_FILTER_DOWNSAMPLE", - "value": "STBIR_FILTER_MITCHELL", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 851, - "column": 1, - "source_line": "#define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_MITCHELL" - } - }, - "STBIR__HEADER_FILENAME": { - "name": "STBIR__HEADER_FILENAME", - "value": "\"stb_image_resize2.h\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 856, - "column": 1, - "source_line": "#define STBIR__HEADER_FILENAME \"stb_image_resize2.h\"" - } - }, - "STBIR_BGR": { - "name": "STBIR_BGR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8226, - "column": 1, - "source_line": "#undef STBIR_BGR" - } - }, - "STBIR_1CHANNEL": { - "name": "STBIR_1CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8227, - "column": 1, - "source_line": "#undef STBIR_1CHANNEL" - } - }, - "STBIR_2CHANNEL": { - "name": "STBIR_2CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8228, - "column": 1, - "source_line": "#undef STBIR_2CHANNEL" - } - }, - "STBIR_RGB": { - "name": "STBIR_RGB", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8229, - "column": 1, - "source_line": "#undef STBIR_RGB" - } - }, - "STBIR_RGBA": { - "name": "STBIR_RGBA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8230, - "column": 1, - "source_line": "#undef STBIR_RGBA" - } - }, - "STBIR_4CHANNEL": { - "name": "STBIR_4CHANNEL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8231, - "column": 1, - "source_line": "#undef STBIR_4CHANNEL" - } - }, - "STBIR_BGRA": { - "name": "STBIR_BGRA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8232, - "column": 1, - "source_line": "#undef STBIR_BGRA" - } - }, - "STBIR_ARGB": { - "name": "STBIR_ARGB", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8233, - "column": 1, - "source_line": "#undef STBIR_ARGB" - } - }, - "STBIR_ABGR": { - "name": "STBIR_ABGR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8234, - "column": 1, - "source_line": "#undef STBIR_ABGR" - } - }, - "STBIR_RA": { - "name": "STBIR_RA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8235, - "column": 1, - "source_line": "#undef STBIR_RA" - } - }, - "STBIR_AR": { - "name": "STBIR_AR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8236, - "column": 1, - "source_line": "#undef STBIR_AR" - } - }, - "STBIR_RGBA_PM": { - "name": "STBIR_RGBA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8237, - "column": 1, - "source_line": "#undef STBIR_RGBA_PM" - } - }, - "STBIR_BGRA_PM": { - "name": "STBIR_BGRA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8238, - "column": 1, - "source_line": "#undef STBIR_BGRA_PM" - } - }, - "STBIR_ARGB_PM": { - "name": "STBIR_ARGB_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8239, - "column": 1, - "source_line": "#undef STBIR_ARGB_PM" - } - }, - "STBIR_ABGR_PM": { - "name": "STBIR_ABGR_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8240, - "column": 1, - "source_line": "#undef STBIR_ABGR_PM" - } - }, - "STBIR_RA_PM": { - "name": "STBIR_RA_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8241, - "column": 1, - "source_line": "#undef STBIR_RA_PM" - } - }, - "STBIR_AR_PM": { - "name": "STBIR_AR_PM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8242, - "column": 1, - "source_line": "#undef STBIR_AR_PM" - } - }, - "stbir__max_uint8_as_float": { - "name": "stbir__max_uint8_as_float", - "value": "255.0f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1064, - "column": 1, - "source_line": "#define stbir__max_uint8_as_float 255.0f" - } - }, - "stbir__max_uint16_as_float": { - "name": "stbir__max_uint16_as_float", - "value": "65535.0f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1065, - "column": 1, - "source_line": "#define stbir__max_uint16_as_float 65535.0f" - } - }, - "stbir__max_uint8_as_float_inverted": { - "name": "stbir__max_uint8_as_float_inverted", - "value": "3.9215689e-03f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1066, - "column": 1, - "source_line": "#define stbir__max_uint8_as_float_inverted 3.9215689e-03f // (1.0f/255.0f)" - } - }, - "stbir__max_uint16_as_float_inverted": { - "name": "stbir__max_uint16_as_float_inverted", - "value": "1.5259022e-05f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1067, - "column": 1, - "source_line": "#define stbir__max_uint16_as_float_inverted 1.5259022e-05f // (1.0f/65535.0f)" - } - }, - "stbir__small_float": { - "name": "stbir__small_float", - "value": "((float)1 / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1068, - "column": 1, - "source_line": "#define stbir__small_float ((float)1 / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20))" - } - }, - "STBIR_CLAMP": { - "name": "STBIR_CLAMP", - "value": "for(;;) { if ( (x) < (xmin) ) (x) = (xmin); if ( (x) > (xmax) ) (x) = (xmax); break; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1071, - "column": 1, - "source_line": "#define STBIR_CLAMP(x, xmin, xmax) for(;;) { \\" - } - }, - "STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT": { - "name": "STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1165, - "column": 1, - "source_line": "#define STBIR_FORCE_GATHER_FILTER_SCANLINES_AMOUNT 32 // when downsampling and <= 32 scanlines of buffering, use gather. gather used down to 1/8th scaling for 25% win." - } - }, - "STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS": { - "name": "STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1169, - "column": 1, - "source_line": "#define STBIR_FORCE_MINIMUM_SCANLINES_FOR_SPLITS 4 // when threading, what is the minimum number of scanlines for a split?" - } - }, - "STBIR_INPUT_CALLBACK_PADDING": { - "name": "STBIR_INPUT_CALLBACK_PADDING", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1172, - "column": 1, - "source_line": "#define STBIR_INPUT_CALLBACK_PADDING 3" - } - }, - "STBIR_SSE": { - "name": "STBIR_SSE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1177, - "column": 1, - "source_line": "#define STBIR_SSE" - } - }, - "STBIR_NO_SIMD": { - "name": "STBIR_NO_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1184, - "column": 3, - "source_line": " #define STBIR_NO_SIMD" - } - }, - "STBIR_SSE2": { - "name": "STBIR_SSE2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1276, - "column": 1, - "source_line": "#undef STBIR_SSE2" - } - }, - "STBIR_AVX": { - "name": "STBIR_AVX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1280, - "column": 1, - "source_line": "#undef STBIR_AVX" - } - }, - "STBIR_AVX2": { - "name": "STBIR_AVX2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1288, - "column": 1, - "source_line": "#undef STBIR_AVX2" - } - }, - "STBIR_FP16C": { - "name": "STBIR_FP16C", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1292, - "column": 1, - "source_line": "#undef STBIR_FP16C" - } - }, - "STBIR_NEON": { - "name": "STBIR_NEON", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1284, - "column": 1, - "source_line": "#undef STBIR_NEON" - } - }, - "STBIR_USE_FMA": { - "name": "STBIR_USE_FMA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1225, - "column": 1, - "source_line": "#undef STBIR_USE_FMA // no FMA for 32-bit arm on MSVC" - } - }, - "STBIR_WASM": { - "name": "STBIR_WASM", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1296, - "column": 1, - "source_line": "#undef STBIR_WASM" - } - }, - "STBIR_STREAMOUT_PTR": { - "name": "STBIR_STREAMOUT_PTR", - "value": "star", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1262, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star" - } - }, - "STBIR_NO_UNROLL": { - "name": "STBIR_NO_UNROLL", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1263, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr )" - } - }, - "STBIR_NO_UNROLL_LOOP_START": { - "name": "STBIR_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1264, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL_LOOP_START" - } - }, - "STBIR_NO_UNROLL_LOOP_START_INF_FOR": { - "name": "STBIR_NO_UNROLL_LOOP_START_INF_FOR", - "value": "STBIR_NO_UNROLL_LOOP_START", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1268, - "column": 1, - "source_line": "#define STBIR_NO_UNROLL_LOOP_START_INF_FOR STBIR_NO_UNROLL_LOOP_START" - } - }, - "STBIR_SIMD": { - "name": "STBIR_SIMD", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2144, - "column": 3, - "source_line": " #define STBIR_SIMD" - } - }, - "stbir__simdf": { - "name": "stbir__simdf", - "value": "v128_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1978, - "column": 3, - "source_line": " #define stbir__simdf v128_t" - } - }, - "stbir__simdi": { - "name": "stbir__simdi", - "value": "v128_t", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1979, - "column": 3, - "source_line": " #define stbir__simdi v128_t" - } - }, - "stbir_simdi_castf": { - "name": "stbir_simdi_castf", - "value": "(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1981, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) (reg)" - } - }, - "stbir_simdf_casti": { - "name": "stbir_simdf_casti", - "value": "(reg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1982, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) (reg)" - } - }, - "stbir__simdf_load": { - "name": "stbir__simdf_load", - "value": "(reg) = wasm_v128_load( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1984, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - } - }, - "stbir__simdi_load": { - "name": "stbir__simdi_load", - "value": "(reg) = wasm_v128_load( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1985, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - } - }, - "stbir__simdf_load1": { - "name": "stbir__simdf_load1", - "value": "(out) = wasm_v128_load32_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1986, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - "stbir__simdi_load1": { - "name": "stbir__simdi_load1", - "value": "(out) = wasm_v128_load32_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1987, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) )" - } - }, - "stbir__simdf_load1z": { - "name": "stbir__simdf_load1z", - "value": "(out) = wasm_v128_load32_zero( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1988, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = wasm_v128_load32_zero( (void const*)(ptr) ) // top values must be zero" - } - }, - "stbir__simdf_frep4": { - "name": "stbir__simdf_frep4", - "value": "wasm_f32x4_splat( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1989, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) wasm_f32x4_splat( fvar )" - } - }, - "stbir__simdf_load1frep4": { - "name": "stbir__simdf_load1frep4", - "value": "(out) = wasm_f32x4_splat( fvar )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1990, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = wasm_f32x4_splat( fvar )" - } - }, - "stbir__simdf_load2": { - "name": "stbir__simdf_load2", - "value": "(out) = wasm_v128_load64_splat( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1991, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = wasm_v128_load64_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - } - }, - "stbir__simdf_load2z": { - "name": "stbir__simdf_load2z", - "value": "(out) = wasm_v128_load64_zero( (void const*)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1992, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = wasm_v128_load64_zero( (void const*)(ptr) ) // top values must be zero" - } - }, - "stbir__simdf_load2hmerge": { - "name": "stbir__simdf_load2hmerge", - "value": "(out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1993, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )" - } - }, - "stbir__simdf_zeroP": { - "name": "stbir__simdf_zeroP", - "value": "wasm_f32x4_const_splat(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1995, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() wasm_f32x4_const_splat(0)" - } - }, - "stbir__simdf_zero": { - "name": "stbir__simdf_zero", - "value": "(reg) = wasm_f32x4_const_splat(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1996, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = wasm_f32x4_const_splat(0)" - } - }, - "stbir__simdf_store": { - "name": "stbir__simdf_store", - "value": "wasm_v128_store( (void*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1998, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - } - }, - "stbir__simdf_store1": { - "name": "stbir__simdf_store1", - "value": "wasm_v128_store32_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1999, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - } - }, - "stbir__simdf_store2": { - "name": "stbir__simdf_store2", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2000, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - } - }, - "stbir__simdf_store2h": { - "name": "stbir__simdf_store2h", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2001, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 1 )" - } - }, - "stbir__simdi_store": { - "name": "stbir__simdi_store", - "value": "wasm_v128_store( (void*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2003, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - } - }, - "stbir__simdi_store1": { - "name": "stbir__simdi_store1", - "value": "wasm_v128_store32_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2004, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - } - }, - "stbir__simdi_store2": { - "name": "stbir__simdi_store2", - "value": "wasm_v128_store64_lane( (void*)(ptr), reg, 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2005, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - } - }, - "stbir__prefetch": { - "name": "stbir__prefetch", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2007, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - } - }, - "stbir__simdi_expand_u8_to_u32": { - "name": "stbir__simdi_expand_u8_to_u32", - "value": "{ v128_t l = wasm_u16x8_extend_low_u8x16 ( ireg ); v128_t h = wasm_u16x8_extend_high_u8x16( ireg ); out0 = wasm_u32x4_extend_low_u16x8 ( l ); out1 = wasm_u32x4_extend_high_u16x8( l ); out2 = wasm_u32x4_extend_low_u16x8 ( h ); out3 = wasm_u32x4_extend_high_u16x8( h ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2009, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - } - }, - "stbir__simdi_expand_u8_to_1u32": { - "name": "stbir__simdi_expand_u8_to_1u32", - "value": "{ v128_t tmp = wasm_u16x8_extend_low_u8x16(ireg); out = wasm_u32x4_extend_low_u16x8(tmp); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2019, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - } - }, - "stbir__simdi_expand_u16_to_u32": { - "name": "stbir__simdi_expand_u16_to_u32", - "value": "{ out0 = wasm_u32x4_extend_low_u16x8 ( ireg ); out1 = wasm_u32x4_extend_high_u16x8( ireg ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2025, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - } - }, - "stbir__simdf_convert_float_to_i32": { - "name": "stbir__simdf_convert_float_to_i32", - "value": "(i) = wasm_i32x4_trunc_sat_f32x4(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2031, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = wasm_i32x4_trunc_sat_f32x4(f)" - } - }, - "stbir__simdf_convert_float_to_int": { - "name": "stbir__simdf_convert_float_to_int", - "value": "wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2032, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)" - } - }, - "stbir__simdf_convert_float_to_uint8": { - "name": "stbir__simdf_convert_float_to_uint8", - "value": "((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2034, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))" - } - }, - "stbir__simdf_convert_float_to_short": { - "name": "stbir__simdf_convert_float_to_short", - "value": "((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2035, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))" - } - }, - "stbir__simdi_to_int": { - "name": "stbir__simdi_to_int", - "value": "wasm_i32x4_extract_lane(i, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2033, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) wasm_i32x4_extract_lane(i, 0)" - } - }, - "stbir__simdi_convert_i32_to_float": { - "name": "stbir__simdi_convert_i32_to_float", - "value": "(out) = wasm_f32x4_convert_i32x4(ireg)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2036, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = wasm_f32x4_convert_i32x4(ireg)" - } - }, - "stbir__simdf_add": { - "name": "stbir__simdf_add", - "value": "(out) = wasm_f32x4_add( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2037, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - } - }, - "stbir__simdf_mult": { - "name": "stbir__simdf_mult", - "value": "(out) = wasm_f32x4_mul( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2038, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - } - }, - "stbir__simdf_mult_mem": { - "name": "stbir__simdf_mult_mem", - "value": "(out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2039, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )" - } - }, - "stbir__simdf_mult1_mem": { - "name": "stbir__simdf_mult1_mem", - "value": "(out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2040, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - } - }, - "stbir__simdf_add_mem": { - "name": "stbir__simdf_add_mem", - "value": "(out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2041, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )" - } - }, - "stbir__simdf_add1_mem": { - "name": "stbir__simdf_add1_mem", - "value": "(out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2042, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - } - }, - "stbir__simdf_madd": { - "name": "stbir__simdf_madd", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2044, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - } - }, - "stbir__simdf_madd1": { - "name": "stbir__simdf_madd1", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2045, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - } - }, - "stbir__simdf_madd_mem": { - "name": "stbir__simdf_madd_mem", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2046, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )" - } - }, - "stbir__simdf_madd1_mem": { - "name": "stbir__simdf_madd1_mem", - "value": "(out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2047, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )" - } - }, - "stbir__simdf_add1": { - "name": "stbir__simdf_add1", - "value": "(out) = wasm_f32x4_add( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2049, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - } - }, - "stbir__simdf_mult1": { - "name": "stbir__simdf_mult1", - "value": "(out) = wasm_f32x4_mul( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2050, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - } - }, - "stbir__simdf_and": { - "name": "stbir__simdf_and", - "value": "(out) = wasm_v128_and( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2052, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - } - }, - "stbir__simdf_or": { - "name": "stbir__simdf_or", - "value": "(out) = wasm_v128_or( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2053, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - } - }, - "stbir__simdf_min": { - "name": "stbir__simdf_min", - "value": "(out) = wasm_f32x4_min( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2055, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - } - }, - "stbir__simdf_max": { - "name": "stbir__simdf_max", - "value": "(out) = wasm_f32x4_max( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2056, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - } - }, - "stbir__simdf_min1": { - "name": "stbir__simdf_min1", - "value": "(out) = wasm_f32x4_min( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2057, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - } - }, - "stbir__simdf_max1": { - "name": "stbir__simdf_max1", - "value": "(out) = wasm_f32x4_max( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2058, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - } - }, - "stbir__simdf_0123ABCDto3ABx": { - "name": "stbir__simdf_0123ABCDto3ABx", - "value": "(out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2060, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )" - } - }, - "stbir__simdf_0123ABCDto23Ax": { - "name": "stbir__simdf_0123ABCDto23Ax", - "value": "(out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2061, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )" - } - }, - "stbir__simdf_aaa1": { - "name": "stbir__simdf_aaa1", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2063, - "column": 3, - "source_line": " #define stbir__simdf_aaa1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)" - } - }, - "stbir__simdf_1aaa": { - "name": "stbir__simdf_1aaa", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2064, - "column": 3, - "source_line": " #define stbir__simdf_1aaa(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)" - } - }, - "stbir__simdf_a1a1": { - "name": "stbir__simdf_a1a1", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2065, - "column": 3, - "source_line": " #define stbir__simdf_a1a1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)" - } - }, - "stbir__simdf_1a1a": { - "name": "stbir__simdf_1a1a", - "value": "(out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2066, - "column": 3, - "source_line": " #define stbir__simdf_1a1a(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)" - } - }, - "stbir__simdf_swiz": { - "name": "stbir__simdf_swiz", - "value": "wasm_i32x4_shuffle(reg, reg, one, two, three, four)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2068, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) wasm_i32x4_shuffle(reg, reg, one, two, three, four)" - } - }, - "stbir__simdi_and": { - "name": "stbir__simdi_and", - "value": "(out) = wasm_v128_and( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2070, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - } - }, - "stbir__simdi_or": { - "name": "stbir__simdi_or", - "value": "(out) = wasm_v128_or( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2071, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - } - }, - "stbir__simdi_16madd": { - "name": "stbir__simdi_16madd", - "value": "(out) = wasm_i32x4_dot_i16x8( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2072, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = wasm_i32x4_dot_i16x8( reg0, reg1 )" - } - }, - "stbir__simdf_pack_to_8bytes": { - "name": "stbir__simdf_pack_to_8bytes", - "value": "{ v128_t af = wasm_f32x4_max( wasm_f32x4_min(aa, STBIR_max_uint8_as_float), wasm_f32x4_const_splat(0) ); v128_t bf = wasm_f32x4_max( wasm_f32x4_min(bb, STBIR_max_uint8_as_float), wasm_f32x4_const_splat(0) ); v128_t ai = wasm_i32x4_trunc_sat_f32x4( af ); v128_t bi = wasm_i32x4_trunc_sat_f32x4( bf ); v128_t out16 = wasm_i16x8_narrow_i32x4( ai, bi ); out = wasm_u8x16_narrow_i16x8( out16, out16 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2074, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - } - }, - "stbir__simdf_load4_transposed": { - "name": "stbir__simdf_load4_transposed", - "value": "{ v128_t t0 = wasm_v128_load( ptr ); v128_t t1 = wasm_v128_load( ptr+4 ); v128_t t2 = wasm_v128_load( ptr+8 ); v128_t t3 = wasm_v128_load( ptr+12 ); v128_t s0 = wasm_i32x4_shuffle(t0, t1, 0, 4, 2, 6); v128_t s1 = wasm_i32x4_shuffle(t0, t1, 1, 5, 3, 7); v128_t s2 = wasm_i32x4_shuffle(t2, t3, 0, 4, 2, 6); v128_t s3 = wasm_i32x4_shuffle(t2, t3, 1, 5, 3, 7); o0 = wasm_i32x4_shuffle(s0, s2, 0, 1, 4, 5); o1 = wasm_i32x4_shuffle(s1, s3, 0, 1, 4, 5); o2 = wasm_i32x4_shuffle(s0, s2, 2, 3, 6, 7); o3 = wasm_i32x4_shuffle(s1, s3, 2, 3, 6, 7); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2102, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - } - }, - "stbir__interleave_pack_and_store_16_u8": { - "name": "stbir__interleave_pack_and_store_16_u8", - "value": "{ v128_t tmp0 = wasm_i16x8_narrow_i32x4(r0, r1); v128_t tmp1 = wasm_i16x8_narrow_i32x4(r2, r3); v128_t tmp = wasm_u8x16_narrow_i16x8(tmp0, tmp1); tmp = wasm_i8x16_shuffle(tmp, tmp, 0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15); wasm_v128_store( (void*)(ptr), tmp); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2093, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - } - }, - "stbir__simdi_32shr": { - "name": "stbir__simdi_32shr", - "value": "out = wasm_u32x4_shr( reg, imm )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2118, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = wasm_u32x4_shr( reg, imm )" - } - }, - "STBIR__CONST_32_TO_8": { - "name": "STBIR__CONST_32_TO_8", - "value": "(char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1463, - "column": 5, - "source_line": " #define STBIR__CONST_32_TO_8( v ) (char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)" - } - }, - "STBIR__CONST_4_32i": { - "name": "STBIR__CONST_4_32i", - "value": "(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1468, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) (long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))" - } - }, - "STBIR__CONST_4d_32i": { - "name": "STBIR__CONST_4d_32i", - "value": "(long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1469, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) (long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))" - } - }, - "STBIR__SIMDF_CONST": { - "name": "STBIR__SIMDF_CONST", - "value": "stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2121, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }" - } - }, - "STBIR__SIMDI_CONST": { - "name": "STBIR__SIMDI_CONST", - "value": "stbir__simdi var = { x, x, x, x }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2122, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - } - }, - "STBIR__CONSTF": { - "name": "STBIR__CONSTF", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2123, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - } - }, - "STBIR__CONSTI": { - "name": "STBIR__CONSTI", - "value": "(var)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2124, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - } - }, - "stbir__simdf_pack_to_8words": { - "name": "stbir__simdf_pack_to_8words", - "value": "{ v128_t af = wasm_f32x4_max( wasm_f32x4_min(aa, STBIR_max_uint16_as_float), wasm_f32x4_const_splat(0)); v128_t bf = wasm_f32x4_max( wasm_f32x4_min(bb, STBIR_max_uint16_as_float), wasm_f32x4_const_splat(0)); v128_t ai = wasm_i32x4_trunc_sat_f32x4( af ); v128_t bi = wasm_i32x4_trunc_sat_f32x4( bf ); out = wasm_u16x8_narrow_i32x4( ai, bi ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2084, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - } - }, - "STBIR_SIMD8": { - "name": "STBIR_SIMD8", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1502, - "column": 5, - "source_line": " #define STBIR_SIMD8" - } - }, - "stbir__simdf8": { - "name": "stbir__simdf8", - "value": "__m256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1503, - "column": 5, - "source_line": " #define stbir__simdf8 __m256" - } - }, - "stbir__simdi8": { - "name": "stbir__simdi8", - "value": "__m256i", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1504, - "column": 5, - "source_line": " #define stbir__simdi8 __m256i" - } - }, - "stbir__simdf8_load": { - "name": "stbir__simdf8_load", - "value": "(out) = _mm256_loadu_ps( (float const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1505, - "column": 5, - "source_line": " #define stbir__simdf8_load( out, ptr ) (out) = _mm256_loadu_ps( (float const *)(ptr) )" - } - }, - "stbir__simdi8_load": { - "name": "stbir__simdi8_load", - "value": "(out) = _mm256_loadu_si256( (__m256i const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1506, - "column": 5, - "source_line": " #define stbir__simdi8_load( out, ptr ) (out) = _mm256_loadu_si256( (__m256i const *)(ptr) )" - } - }, - "stbir__simdf8_mult": { - "name": "stbir__simdf8_mult", - "value": "(out) = _mm256_mul_ps( (a), (b) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1507, - "column": 5, - "source_line": " #define stbir__simdf8_mult( out, a, b ) (out) = _mm256_mul_ps( (a), (b) )" - } - }, - "stbir__simdf8_store": { - "name": "stbir__simdf8_store", - "value": "_mm256_storeu_ps( (float*)(ptr), out )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1508, - "column": 5, - "source_line": " #define stbir__simdf8_store( ptr, out ) _mm256_storeu_ps( (float*)(ptr), out )" - } - }, - "stbir__simdi8_store": { - "name": "stbir__simdi8_store", - "value": "_mm256_storeu_si256( (__m256i*)(ptr), reg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1509, - "column": 5, - "source_line": " #define stbir__simdi8_store( ptr, reg ) _mm256_storeu_si256( (__m256i*)(ptr), reg )" - } - }, - "stbir__simdf8_frep8": { - "name": "stbir__simdf8_frep8", - "value": "_mm256_set1_ps( fval )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1510, - "column": 5, - "source_line": " #define stbir__simdf8_frep8( fval ) _mm256_set1_ps( fval )" - } - }, - "stbir__simdf8_min": { - "name": "stbir__simdf8_min", - "value": "(out) = _mm256_min_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1512, - "column": 5, - "source_line": " #define stbir__simdf8_min( out, reg0, reg1 ) (out) = _mm256_min_ps( reg0, reg1 )" - } - }, - "stbir__simdf8_max": { - "name": "stbir__simdf8_max", - "value": "(out) = _mm256_max_ps( reg0, reg1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1513, - "column": 5, - "source_line": " #define stbir__simdf8_max( out, reg0, reg1 ) (out) = _mm256_max_ps( reg0, reg1 )" - } - }, - "stbir__simdf8_add4halves": { - "name": "stbir__simdf8_add4halves", - "value": "(out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1515, - "column": 5, - "source_line": " #define stbir__simdf8_add4halves( out, bot4, top8 ) (out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )" - } - }, - "stbir__simdf8_mult_mem": { - "name": "stbir__simdf8_mult_mem", - "value": "(out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1516, - "column": 5, - "source_line": " #define stbir__simdf8_mult_mem( out, reg, ptr ) (out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - } - }, - "stbir__simdf8_add_mem": { - "name": "stbir__simdf8_add_mem", - "value": "(out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1517, - "column": 5, - "source_line": " #define stbir__simdf8_add_mem( out, reg, ptr ) (out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - } - }, - "stbir__simdf8_add": { - "name": "stbir__simdf8_add", - "value": "(out) = _mm256_add_ps( a, b )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1518, - "column": 5, - "source_line": " #define stbir__simdf8_add( out, a, b ) (out) = _mm256_add_ps( a, b )" - } - }, - "stbir__simdf8_load1b": { - "name": "stbir__simdf8_load1b", - "value": "(out) = _mm256_broadcast_ss( ptr )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1519, - "column": 5, - "source_line": " #define stbir__simdf8_load1b( out, ptr ) (out) = _mm256_broadcast_ss( ptr )" - } - }, - "stbir__simdf_load1rep4": { - "name": "stbir__simdf_load1rep4", - "value": "(out) = _mm_broadcast_ss( ptr )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1520, - "column": 5, - "source_line": " #define stbir__simdf_load1rep4( out, ptr ) (out) = _mm_broadcast_ss( ptr ) // avx load instruction" - } - }, - "stbir__simdi8_convert_i32_to_float": { - "name": "stbir__simdi8_convert_i32_to_float", - "value": "(out) = _mm256_cvtepi32_ps( ireg )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1522, - "column": 5, - "source_line": " #define stbir__simdi8_convert_i32_to_float(out, ireg) (out) = _mm256_cvtepi32_ps( ireg )" - } - }, - "stbir__simdf8_convert_float_to_i32": { - "name": "stbir__simdf8_convert_float_to_i32", - "value": "(i) = _mm256_cvttps_epi32(f)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1523, - "column": 5, - "source_line": " #define stbir__simdf8_convert_float_to_i32( i, f ) (i) = _mm256_cvttps_epi32(f)" - } - }, - "stbir__simdf8_bot4s": { - "name": "stbir__simdf8_bot4s", - "value": "(out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1525, - "column": 5, - "source_line": " #define stbir__simdf8_bot4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )" - } - }, - "stbir__simdf8_top4s": { - "name": "stbir__simdf8_top4s", - "value": "(out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1526, - "column": 5, - "source_line": " #define stbir__simdf8_top4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )" - } - }, - "stbir__simdf8_gettop4": { - "name": "stbir__simdf8_gettop4", - "value": "_mm256_extractf128_ps(reg,1)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1528, - "column": 5, - "source_line": " #define stbir__simdf8_gettop4( reg ) _mm256_extractf128_ps(reg,1)" - } - }, - "stbir__simdi8_expand_u8_to_u32": { - "name": "stbir__simdi8_expand_u8_to_u32", - "value": "{ stbir__simdi a,zero = _mm_setzero_si128(); a = _mm_unpacklo_epi8( ireg, zero ); out0 = _mm256_setr_m128i( _mm_unpacklo_epi16( a, zero ), _mm_unpackhi_epi16( a, zero ) ); a = _mm_unpackhi_epi8( ireg, zero ); out1 = _mm256_setr_m128i( _mm_unpacklo_epi16( a, zero ), _mm_unpackhi_epi16( a, zero ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1572, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - } - }, - "stbir__simdf8_pack_to_16bytes": { - "name": "stbir__simdf8_pack_to_16bytes", - "value": "{ stbir__simdi t; stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint8_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint8_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); out = _mm_packs_epi32( _mm256_castsi256_si128(a), _mm256_extractf128_si256( a, 1 ) ); out = _mm_packus_epi16( out, out ); t = _mm_packs_epi32( _mm256_castsi256_si128(b), _mm256_extractf128_si256( b, 1 ) ); t = _mm_packus_epi16( t, t ); out = _mm_castps_si128( _mm_shuffle_ps( _mm_castsi128_ps(out), _mm_castsi128_ps(t), (0<<0)+(1<<2)+(0<<4)+(1<<6) ) ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1581, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - } - }, - "stbir__simdi8_expand_u16_to_u32": { - "name": "stbir__simdi8_expand_u16_to_u32", - "value": "{ stbir__simdi a,b,zero = _mm_setzero_si128(); a = _mm_unpacklo_epi16( ireg, zero ); b = _mm_unpackhi_epi16( ireg, zero ); out = _mm256_insertf128_si256( _mm256_castsi128_si256( a ), b, 1 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1599, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) \\" - } - }, - "stbir__simdf8_pack_to_16words": { - "name": "stbir__simdf8_pack_to_16words", - "value": "{ stbir__simdi t0,t1; stbir__simdf8 af,bf; stbir__simdi8 a,b; af = _mm256_min_ps( aa, STBIR_max_uint16_as_floatX ); bf = _mm256_min_ps( bb, STBIR_max_uint16_as_floatX ); af = _mm256_max_ps( af, _mm256_setzero_ps() ); bf = _mm256_max_ps( bf, _mm256_setzero_ps() ); a = _mm256_cvttps_epi32( af ); b = _mm256_cvttps_epi32( bf ); t0 = _mm_packus_epi32( _mm256_castsi256_si128(a), _mm256_extractf128_si256( a, 1 ) ); t1 = _mm_packus_epi32( _mm256_castsi256_si128(b), _mm256_extractf128_si256( b, 1 ) ); out = _mm256_setr_m128i( t0, t1 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1607, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - } - }, - "stbir__simdf8_0123to00001111": { - "name": "stbir__simdf8_0123to00001111", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_00001111 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1626, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00001111( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00001111 )" - } - }, - "stbir__simdf8_0123to22223333": { - "name": "stbir__simdf8_0123to22223333", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_22223333 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1629, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22223333( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_22223333 )" - } - }, - "stbir__simdf8_0123to2222": { - "name": "stbir__simdf8_0123to2222", - "value": "(out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1631, - "column": 5, - "source_line": " #define stbir__simdf8_0123to2222( out, in ) (out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )" - } - }, - "stbir__simdf8_load4b": { - "name": "stbir__simdf8_load4b", - "value": "(out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1633, - "column": 5, - "source_line": " #define stbir__simdf8_load4b( out, ptr ) (out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )" - } - }, - "stbir__simdf8_0123to00112233": { - "name": "stbir__simdf8_0123to00112233", - "value": "(out) = _mm256_permutevar_ps ( in, stbir_00112233 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1636, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00112233( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00112233 )" - } - }, - "stbir__simdf8_add4": { - "name": "stbir__simdf8_add4", - "value": "(out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1637, - "column": 5, - "source_line": " #define stbir__simdf8_add4( out, a8, b ) (out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )" - } - }, - "stbir__simdf8_load6z": { - "name": "stbir__simdf8_load6z", - "value": "(out) = _mm256_maskload_ps( ptr, stbir_load6 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1640, - "column": 5, - "source_line": " #define stbir__simdf8_load6z( out, ptr ) (out) = _mm256_maskload_ps( ptr, stbir_load6 )" - } - }, - "stbir__simdf8_0123to00000000": { - "name": "stbir__simdf8_0123to00000000", - "value": "(out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1642, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00000000( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )" - } - }, - "stbir__simdf8_0123to11111111": { - "name": "stbir__simdf8_0123to11111111", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1643, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11111111( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )" - } - }, - "stbir__simdf8_0123to22222222": { - "name": "stbir__simdf8_0123to22222222", - "value": "(out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1644, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22222222( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )" - } - }, - "stbir__simdf8_0123to33333333": { - "name": "stbir__simdf8_0123to33333333", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1645, - "column": 5, - "source_line": " #define stbir__simdf8_0123to33333333( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )" - } - }, - "stbir__simdf8_0123to21032103": { - "name": "stbir__simdf8_0123to21032103", - "value": "(out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1646, - "column": 5, - "source_line": " #define stbir__simdf8_0123to21032103( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )" - } - }, - "stbir__simdf8_0123to32103210": { - "name": "stbir__simdf8_0123to32103210", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1647, - "column": 5, - "source_line": " #define stbir__simdf8_0123to32103210( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )" - } - }, - "stbir__simdf8_0123to12301230": { - "name": "stbir__simdf8_0123to12301230", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1648, - "column": 5, - "source_line": " #define stbir__simdf8_0123to12301230( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )" - } - }, - "stbir__simdf8_0123to10321032": { - "name": "stbir__simdf8_0123to10321032", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1649, - "column": 5, - "source_line": " #define stbir__simdf8_0123to10321032( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )" - } - }, - "stbir__simdf8_0123to30123012": { - "name": "stbir__simdf8_0123to30123012", - "value": "(out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1650, - "column": 5, - "source_line": " #define stbir__simdf8_0123to30123012( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )" - } - }, - "stbir__simdf8_0123to11331133": { - "name": "stbir__simdf8_0123to11331133", - "value": "(out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1652, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11331133( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )" - } - }, - "stbir__simdf8_0123to00220022": { - "name": "stbir__simdf8_0123to00220022", - "value": "(out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1653, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00220022( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )" - } - }, - "stbir__simdf8_aaa1": { - "name": "stbir__simdf8_aaa1", - "value": "(out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1655, - "column": 5, - "source_line": " #define stbir__simdf8_aaa1( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )" - } - }, - "stbir__simdf8_1aaa": { - "name": "stbir__simdf8_1aaa", - "value": "(out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1656, - "column": 5, - "source_line": " #define stbir__simdf8_1aaa( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )" - } - }, - "stbir__simdf8_a1a1": { - "name": "stbir__simdf8_a1a1", - "value": "(out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1657, - "column": 5, - "source_line": " #define stbir__simdf8_a1a1( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - } - }, - "stbir__simdf8_1a1a": { - "name": "stbir__simdf8_1a1a", - "value": "(out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1658, - "column": 5, - "source_line": " #define stbir__simdf8_1a1a( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - } - }, - "stbir__simdf8_zero": { - "name": "stbir__simdf8_zero", - "value": "(reg) = _mm256_setzero_ps()", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1660, - "column": 5, - "source_line": " #define stbir__simdf8_zero( reg ) (reg) = _mm256_setzero_ps()" - } - }, - "stbir__simdf8_madd": { - "name": "stbir__simdf8_madd", - "value": "(out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1667, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )" - } - }, - "stbir__simdf8_madd_mem": { - "name": "stbir__simdf8_madd_mem", - "value": "(out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1668, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )" - } - }, - "stbir__simdf8_madd_mem4": { - "name": "stbir__simdf8_madd_mem4", - "value": "(out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1669, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem4( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )" - } - }, - "stbir__if_simdf8_cast_to_simdf4": { - "name": "stbir__if_simdf8_cast_to_simdf4", - "value": "( val )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2210, - "column": 3, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) ( val )" - } - }, - "STBIR_FLOORF": { - "name": "STBIR_FLOORF", - "value": "floorf(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2825, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) floorf(x)" - } - }, - "STBIR_CEILF": { - "name": "STBIR_CEILF", - "value": "ceilf(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2824, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ceilf(x)" - } - }, - "stbir_make16": { - "name": "stbir_make16", - "value": "(uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1827, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) (uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}" - } - }, - "stbir_make16x2": { - "name": "stbir_make16x2", - "value": "(uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1828, - "column": 7, - "source_line": " #define stbir_make16x2(a,b) (uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}" - } - }, - "stbir__simdf_swiz2": { - "name": "stbir__simdf_swiz2", - "value": "vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1832, - "column": 5, - "source_line": " #define stbir__simdf_swiz2( rega, regb, one, two, three, four ) vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )" - } - }, - "stbir_make8": { - "name": "stbir_make8", - "value": "(uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1859, - "column": 7, - "source_line": " #define stbir_make8(a,b) (uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}" - } - }, - "stbir_make8x2": { - "name": "stbir_make8x2", - "value": "(uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1858, - "column": 7, - "source_line": " #define stbir_make8x2(reg) (uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }" - } - }, - "stbir__simdfX": { - "name": "stbir__simdfX", - "value": "stbir__simdf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2185, - "column": 3, - "source_line": " #define stbir__simdfX stbir__simdf" - } - }, - "stbir__simdiX": { - "name": "stbir__simdiX", - "value": "stbir__simdi", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2186, - "column": 3, - "source_line": " #define stbir__simdiX stbir__simdi" - } - }, - "stbir__simdfX_load": { - "name": "stbir__simdfX_load", - "value": "stbir__simdf_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2187, - "column": 3, - "source_line": " #define stbir__simdfX_load stbir__simdf_load" - } - }, - "stbir__simdiX_load": { - "name": "stbir__simdiX_load", - "value": "stbir__simdi_load", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2188, - "column": 3, - "source_line": " #define stbir__simdiX_load stbir__simdi_load" - } - }, - "stbir__simdfX_mult": { - "name": "stbir__simdfX_mult", - "value": "stbir__simdf_mult", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2189, - "column": 3, - "source_line": " #define stbir__simdfX_mult stbir__simdf_mult" - } - }, - "stbir__simdfX_add_mem": { - "name": "stbir__simdfX_add_mem", - "value": "stbir__simdf_add_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2190, - "column": 3, - "source_line": " #define stbir__simdfX_add_mem stbir__simdf_add_mem" - } - }, - "stbir__simdfX_madd_mem": { - "name": "stbir__simdfX_madd_mem", - "value": "stbir__simdf_madd_mem", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2191, - "column": 3, - "source_line": " #define stbir__simdfX_madd_mem stbir__simdf_madd_mem" - } - }, - "stbir__simdfX_store": { - "name": "stbir__simdfX_store", - "value": "stbir__simdf_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2192, - "column": 3, - "source_line": " #define stbir__simdfX_store stbir__simdf_store" - } - }, - "stbir__simdiX_store": { - "name": "stbir__simdiX_store", - "value": "stbir__simdi_store", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2193, - "column": 3, - "source_line": " #define stbir__simdiX_store stbir__simdi_store" - } - }, - "stbir__simdf_frepX": { - "name": "stbir__simdf_frepX", - "value": "stbir__simdf_frep4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2194, - "column": 3, - "source_line": " #define stbir__simdf_frepX stbir__simdf_frep4" - } - }, - "stbir__simdfX_madd": { - "name": "stbir__simdfX_madd", - "value": "stbir__simdf_madd", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2195, - "column": 3, - "source_line": " #define stbir__simdfX_madd stbir__simdf_madd" - } - }, - "stbir__simdfX_min": { - "name": "stbir__simdfX_min", - "value": "stbir__simdf_min", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2196, - "column": 3, - "source_line": " #define stbir__simdfX_min stbir__simdf_min" - } - }, - "stbir__simdfX_max": { - "name": "stbir__simdfX_max", - "value": "stbir__simdf_max", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2197, - "column": 3, - "source_line": " #define stbir__simdfX_max stbir__simdf_max" - } - }, - "stbir__simdfX_aaa1": { - "name": "stbir__simdfX_aaa1", - "value": "stbir__simdf_aaa1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2198, - "column": 3, - "source_line": " #define stbir__simdfX_aaa1 stbir__simdf_aaa1" - } - }, - "stbir__simdfX_1aaa": { - "name": "stbir__simdfX_1aaa", - "value": "stbir__simdf_1aaa", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2199, - "column": 3, - "source_line": " #define stbir__simdfX_1aaa stbir__simdf_1aaa" - } - }, - "stbir__simdfX_a1a1": { - "name": "stbir__simdfX_a1a1", - "value": "stbir__simdf_a1a1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2200, - "column": 3, - "source_line": " #define stbir__simdfX_a1a1 stbir__simdf_a1a1" - } - }, - "stbir__simdfX_1a1a": { - "name": "stbir__simdfX_1a1a", - "value": "stbir__simdf_1a1a", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2201, - "column": 3, - "source_line": " #define stbir__simdfX_1a1a stbir__simdf_1a1a" - } - }, - "stbir__simdfX_convert_float_to_i32": { - "name": "stbir__simdfX_convert_float_to_i32", - "value": "stbir__simdf_convert_float_to_i32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2202, - "column": 3, - "source_line": " #define stbir__simdfX_convert_float_to_i32 stbir__simdf_convert_float_to_i32" - } - }, - "stbir__simdfX_pack_to_words": { - "name": "stbir__simdfX_pack_to_words", - "value": "stbir__simdf_pack_to_8words", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2203, - "column": 3, - "source_line": " #define stbir__simdfX_pack_to_words stbir__simdf_pack_to_8words" - } - }, - "stbir__simdfX_zero": { - "name": "stbir__simdfX_zero", - "value": "stbir__simdf_zero", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2204, - "column": 3, - "source_line": " #define stbir__simdfX_zero stbir__simdf_zero" - } - }, - "STBIR_onesX": { - "name": "STBIR_onesX", - "value": "STBIR__CONSTF(STBIR_ones)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2205, - "column": 3, - "source_line": " #define STBIR_onesX STBIR__CONSTF(STBIR_ones)" - } - }, - "STBIR_max_uint8_as_floatX": { - "name": "STBIR_max_uint8_as_floatX", - "value": "STBIR__CONSTF(STBIR_max_uint8_as_float)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2207, - "column": 3, - "source_line": " #define STBIR_max_uint8_as_floatX STBIR__CONSTF(STBIR_max_uint8_as_float)" - } - }, - "STBIR_max_uint16_as_floatX": { - "name": "STBIR_max_uint16_as_floatX", - "value": "STBIR__CONSTF(STBIR_max_uint16_as_float)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2208, - "column": 3, - "source_line": " #define STBIR_max_uint16_as_floatX STBIR__CONSTF(STBIR_max_uint16_as_float)" - } - }, - "STBIR_simd_point5X": { - "name": "STBIR_simd_point5X", - "value": "STBIR__CONSTF(STBIR_simd_point5)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2206, - "column": 3, - "source_line": " #define STBIR_simd_point5X STBIR__CONSTF(STBIR_simd_point5)" - } - }, - "stbir__simdfX_float_count": { - "name": "stbir__simdfX_float_count", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2209, - "column": 3, - "source_line": " #define stbir__simdfX_float_count 4" - } - }, - "stbir__simdfX_0123to1230": { - "name": "stbir__simdfX_0123to1230", - "value": "stbir__simdf_0123to1230", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2211, - "column": 3, - "source_line": " #define stbir__simdfX_0123to1230 stbir__simdf_0123to1230" - } - }, - "stbir__simdfX_0123to2103": { - "name": "stbir__simdfX_0123to2103", - "value": "stbir__simdf_0123to2103", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2212, - "column": 3, - "source_line": " #define stbir__simdfX_0123to2103 stbir__simdf_0123to2103" - } - }, - "stbir__simdf_0123to3333": { - "name": "stbir__simdf_0123to3333", - "value": "(out) = stbir__simdf_swiz( reg, 3,3,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2536, - "column": 1, - "source_line": "#define stbir__simdf_0123to3333( out, reg ) (out) = stbir__simdf_swiz( reg, 3,3,3,3 )" - } - }, - "stbir__simdf_0123to2222": { - "name": "stbir__simdf_0123to2222", - "value": "(out) = stbir__simdf_swiz( reg, 2,2,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2537, - "column": 1, - "source_line": "#define stbir__simdf_0123to2222( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,2,2 )" - } - }, - "stbir__simdf_0123to1111": { - "name": "stbir__simdf_0123to1111", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,1,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2538, - "column": 1, - "source_line": "#define stbir__simdf_0123to1111( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,1,1 )" - } - }, - "stbir__simdf_0123to0000": { - "name": "stbir__simdf_0123to0000", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2539, - "column": 1, - "source_line": "#define stbir__simdf_0123to0000( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,0 )" - } - }, - "stbir__simdf_0123to0003": { - "name": "stbir__simdf_0123to0003", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2540, - "column": 1, - "source_line": "#define stbir__simdf_0123to0003( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,3 )" - } - }, - "stbir__simdf_0123to0001": { - "name": "stbir__simdf_0123to0001", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,0,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2541, - "column": 1, - "source_line": "#define stbir__simdf_0123to0001( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,1 )" - } - }, - "stbir__simdf_0123to1122": { - "name": "stbir__simdf_0123to1122", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2542, - "column": 1, - "source_line": "#define stbir__simdf_0123to1122( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,2,2 )" - } - }, - "stbir__simdf_0123to2333": { - "name": "stbir__simdf_0123to2333", - "value": "(out) = stbir__simdf_swiz( reg, 2,3,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2543, - "column": 1, - "source_line": "#define stbir__simdf_0123to2333( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,3,3 )" - } - }, - "stbir__simdf_0123to0023": { - "name": "stbir__simdf_0123to0023", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,2,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2544, - "column": 1, - "source_line": "#define stbir__simdf_0123to0023( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,3 )" - } - }, - "stbir__simdf_0123to1230": { - "name": "stbir__simdf_0123to1230", - "value": "(out) = stbir__simdf_swiz( reg, 1,2,3,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2545, - "column": 1, - "source_line": "#define stbir__simdf_0123to1230( out, reg ) (out) = stbir__simdf_swiz( reg, 1,2,3,0 )" - } - }, - "stbir__simdf_0123to2103": { - "name": "stbir__simdf_0123to2103", - "value": "(out) = stbir__simdf_swiz( reg, 2,1,0,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2546, - "column": 1, - "source_line": "#define stbir__simdf_0123to2103( out, reg ) (out) = stbir__simdf_swiz( reg, 2,1,0,3 )" - } - }, - "stbir__simdf_0123to3210": { - "name": "stbir__simdf_0123to3210", - "value": "(out) = stbir__simdf_swiz( reg, 3,2,1,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2547, - "column": 1, - "source_line": "#define stbir__simdf_0123to3210( out, reg ) (out) = stbir__simdf_swiz( reg, 3,2,1,0 )" - } - }, - "stbir__simdf_0123to2301": { - "name": "stbir__simdf_0123to2301", - "value": "(out) = stbir__simdf_swiz( reg, 2,3,0,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2548, - "column": 1, - "source_line": "#define stbir__simdf_0123to2301( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,0,1 )" - } - }, - "stbir__simdf_0123to3012": { - "name": "stbir__simdf_0123to3012", - "value": "(out) = stbir__simdf_swiz( reg, 3,0,1,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2549, - "column": 1, - "source_line": "#define stbir__simdf_0123to3012( out, reg ) (out) = stbir__simdf_swiz( reg, 3,0,1,2 )" - } - }, - "stbir__simdf_0123to0011": { - "name": "stbir__simdf_0123to0011", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,1,1 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2550, - "column": 1, - "source_line": "#define stbir__simdf_0123to0011( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,1,1 )" - } - }, - "stbir__simdf_0123to1100": { - "name": "stbir__simdf_0123to1100", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,0,0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2551, - "column": 1, - "source_line": "#define stbir__simdf_0123to1100( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,0,0 )" - } - }, - "stbir__simdf_0123to2233": { - "name": "stbir__simdf_0123to2233", - "value": "(out) = stbir__simdf_swiz( reg, 2,2,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2552, - "column": 1, - "source_line": "#define stbir__simdf_0123to2233( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,3,3 )" - } - }, - "stbir__simdf_0123to1133": { - "name": "stbir__simdf_0123to1133", - "value": "(out) = stbir__simdf_swiz( reg, 1,1,3,3 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2553, - "column": 1, - "source_line": "#define stbir__simdf_0123to1133( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,3,3 )" - } - }, - "stbir__simdf_0123to0022": { - "name": "stbir__simdf_0123to0022", - "value": "(out) = stbir__simdf_swiz( reg, 0,0,2,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2554, - "column": 1, - "source_line": "#define stbir__simdf_0123to0022( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,2 )" - } - }, - "stbir__simdf_0123to1032": { - "name": "stbir__simdf_0123to1032", - "value": "(out) = stbir__simdf_swiz( reg, 1,0,3,2 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2555, - "column": 1, - "source_line": "#define stbir__simdf_0123to1032( out, reg ) (out) = stbir__simdf_swiz( reg, 1,0,3,2 )" - } - }, - "STBIR_SIMD_STREAMOUT_PTR": { - "name": "STBIR_SIMD_STREAMOUT_PTR", - "value": "STBIR_STREAMOUT_PTR( star )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2719, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - } - }, - "STBIR_SIMD_NO_UNROLL": { - "name": "STBIR_SIMD_NO_UNROLL", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2720, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr)" - } - }, - "STBIR_SIMD_NO_UNROLL_LOOP_START": { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2721, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START" - } - }, - "STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR": { - "name": "STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2722, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL_LOOP_START_INF_FOR" - } - }, - "STBIR_MEMCPY": { - "name": "STBIR_MEMCPY", - "value": "memcpy( dest, src, len )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2832, - "column": 1, - "source_line": "#define STBIR_MEMCPY( dest, src, len ) memcpy( dest, src, len )" - } - }, - "STBIR_PROFILE_FUNC": { - "name": "STBIR_PROFILE_FUNC", - "value": "_ReadStatusReg(ARM64_CNTVCT)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2753, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() _ReadStatusReg(ARM64_CNTVCT)" - } - }, - "STBIR_ONLY_PROFILE_GET_SPLIT_INFO": { - "name": "STBIR_ONLY_PROFILE_GET_SPLIT_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2800, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_GET_SPLIT_INFO" - } - }, - "STBIR_ONLY_PROFILE_SET_SPLIT_INFO": { - "name": "STBIR_ONLY_PROFILE_SET_SPLIT_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2801, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_SET_SPLIT_INFO" - } - }, - "STBIR_ONLY_PROFILE_BUILD_GET_INFO": { - "name": "STBIR_ONLY_PROFILE_BUILD_GET_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2803, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_GET_INFO" - } - }, - "STBIR_ONLY_PROFILE_BUILD_SET_INFO": { - "name": "STBIR_ONLY_PROFILE_BUILD_SET_INFO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2804, - "column": 1, - "source_line": "#define STBIR_ONLY_PROFILE_BUILD_SET_INFO" - } - }, - "STBIR_PROFILE_START_ll": { - "name": "STBIR_PROFILE_START_ll", - "value": "{ stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2781, - "column": 1, - "source_line": "#define STBIR_PROFILE_START_ll( info, wh ) { stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;" - } - }, - "STBIR_PROFILE_END_ll": { - "name": "STBIR_PROFILE_END_ll", - "value": "wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2782, - "column": 1, - "source_line": "#define STBIR_PROFILE_END_ll( info, wh ) wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }" - } - }, - "STBIR_PROFILE_FIRST_START_ll": { - "name": "STBIR_PROFILE_FIRST_START_ll", - "value": "{ int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2783, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START_ll( info, wh ) { int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );" - } - }, - "STBIR_PROFILE_CLEAR_EXTRAS_ll": { - "name": "STBIR_PROFILE_CLEAR_EXTRAS_ll", - "value": "{ int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2784, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS_ll( info, num ) { int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }" - } - }, - "STBIR_PROFILE_START": { - "name": "STBIR_PROFILE_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2806, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh )" - } - }, - "STBIR_PROFILE_END": { - "name": "STBIR_PROFILE_END", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2807, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh )" - } - }, - "STBIR_PROFILE_FIRST_START": { - "name": "STBIR_PROFILE_FIRST_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2808, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh )" - } - }, - "STBIR_PROFILE_CLEAR_EXTRAS": { - "name": "STBIR_PROFILE_CLEAR_EXTRAS", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2809, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS( )" - } - }, - "STBIR_PROFILE_BUILD_START": { - "name": "STBIR_PROFILE_BUILD_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2811, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh )" - } - }, - "STBIR_PROFILE_BUILD_END": { - "name": "STBIR_PROFILE_BUILD_END", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2812, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh )" - } - }, - "STBIR_PROFILE_BUILD_FIRST_START": { - "name": "STBIR_PROFILE_BUILD_FIRST_START", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2813, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh )" - } - }, - "STBIR_PROFILE_BUILD_CLEAR": { - "name": "STBIR_PROFILE_BUILD_CLEAR", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2814, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info )" - } - }, - "STBIR__MERGE_RUNS_PIXEL_THRESHOLD": { - "name": "STBIR__MERGE_RUNS_PIXEL_THRESHOLD", - "value": "16", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3118, - "column": 1, - "source_line": "#define STBIR__MERGE_RUNS_PIXEL_THRESHOLD 16" - } - }, - "STBIR_RENORM_TYPE": { - "name": "STBIR_RENORM_TYPE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3694, - "column": 1, - "source_line": "#undef STBIR_RENORM_TYPE " - } - }, - "STBIR_MOVE_1": { - "name": "STBIR_MOVE_1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3926, - "column": 3, - "source_line": " #undef STBIR_MOVE_1" - } - }, - "STBIR_MOVE_2": { - "name": "STBIR_MOVE_2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3927, - "column": 3, - "source_line": " #undef STBIR_MOVE_2" - } - }, - "STBIR_MOVE_4": { - "name": "STBIR_MOVE_4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 3928, - "column": 3, - "source_line": " #undef STBIR_MOVE_4" - } - }, - "stbir__coder_min_num": { - "name": "stbir__coder_min_num", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9887, - "column": 1, - "source_line": "#undef stbir__coder_min_num" - } - }, - "STB_IMAGE_RESIZE_DO_CODERS": { - "name": "STB_IMAGE_RESIZE_DO_CODERS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9891, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_CODERS" - } - }, - "stbir__decode_suffix": { - "name": "stbir__decode_suffix", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9872, - "column": 1, - "source_line": "#undef stbir__decode_suffix" - } - }, - "stbir__decode_swizzle": { - "name": "stbir__decode_swizzle", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9888, - "column": 1, - "source_line": "#undef stbir__decode_swizzle" - } - }, - "stbir__decode_order0": { - "name": "stbir__decode_order0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9875, - "column": 1, - "source_line": "#undef stbir__decode_order0" - } - }, - "stbir__decode_order1": { - "name": "stbir__decode_order1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9876, - "column": 1, - "source_line": "#undef stbir__decode_order1" - } - }, - "stbir__decode_order2": { - "name": "stbir__decode_order2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9877, - "column": 1, - "source_line": "#undef stbir__decode_order2" - } - }, - "stbir__decode_order3": { - "name": "stbir__decode_order3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9878, - "column": 1, - "source_line": "#undef stbir__decode_order3" - } - }, - "stbir__encode_order0": { - "name": "stbir__encode_order0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9879, - "column": 1, - "source_line": "#undef stbir__encode_order0" - } - }, - "stbir__encode_order1": { - "name": "stbir__encode_order1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9880, - "column": 1, - "source_line": "#undef stbir__encode_order1" - } - }, - "stbir__encode_order2": { - "name": "stbir__encode_order2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9881, - "column": 1, - "source_line": "#undef stbir__encode_order2" - } - }, - "stbir__encode_order3": { - "name": "stbir__encode_order3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9882, - "column": 1, - "source_line": "#undef stbir__encode_order3" - } - }, - "stbir__1_coeff_only": { - "name": "stbir__1_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10619, - "column": 1, - "source_line": "#undef stbir__1_coeff_only" - } - }, - "stbir__2_coeff_only": { - "name": "stbir__2_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10621, - "column": 1, - "source_line": "#undef stbir__2_coeff_only" - } - }, - "stbir__3_coeff_only": { - "name": "stbir__3_coeff_only", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10623, - "column": 1, - "source_line": "#undef stbir__3_coeff_only" - } - }, - "stbir__store_output_tiny": { - "name": "stbir__store_output_tiny", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10629, - "column": 1, - "source_line": "#undef stbir__store_output_tiny" - } - }, - "stbir__4_coeff_start": { - "name": "stbir__4_coeff_start", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10626, - "column": 1, - "source_line": "#undef stbir__4_coeff_start" - } - }, - "stbir__4_coeff_continue_from_4": { - "name": "stbir__4_coeff_continue_from_4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10627, - "column": 1, - "source_line": "#undef stbir__4_coeff_continue_from_4" - } - }, - "stbir__1_coeff_remnant": { - "name": "stbir__1_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10620, - "column": 1, - "source_line": "#undef stbir__1_coeff_remnant" - } - }, - "stbir__2_coeff_remnant": { - "name": "stbir__2_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10622, - "column": 1, - "source_line": "#undef stbir__2_coeff_remnant" - } - }, - "stbir__3_coeff_setup": { - "name": "stbir__3_coeff_setup", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10625, - "column": 1, - "source_line": "#undef stbir__3_coeff_setup" - } - }, - "stbir__3_coeff_remnant": { - "name": "stbir__3_coeff_remnant", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10624, - "column": 1, - "source_line": "#undef stbir__3_coeff_remnant" - } - }, - "stbir__store_output": { - "name": "stbir__store_output", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10628, - "column": 1, - "source_line": "#undef stbir__store_output" - } - }, - "STBIR__horizontal_channels": { - "name": "STBIR__horizontal_channels", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10617, - "column": 1, - "source_line": "#undef STBIR__horizontal_channels" - } - }, - "STB_IMAGE_RESIZE_DO_HORIZONTALS": { - "name": "STB_IMAGE_RESIZE_DO_HORIZONTALS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10618, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_HORIZONTALS" - } - }, - "STBIR__vertical_channels": { - "name": "STBIR__vertical_channels", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10271, - "column": 1, - "source_line": "#undef STBIR__vertical_channels" - } - }, - "STB_IMAGE_RESIZE_DO_VERTICALS": { - "name": "STB_IMAGE_RESIZE_DO_VERTICALS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10270, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_DO_VERTICALS" - } - }, - "STB_IMAGE_RESIZE_VERTICAL_CONTINUE": { - "name": "STB_IMAGE_RESIZE_VERTICAL_CONTINUE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10277, - "column": 1, - "source_line": "#undef STB_IMAGE_RESIZE_VERTICAL_CONTINUE" - } - }, - "STBIR__FLOAT_EMPTY_MARKER": { - "name": "STBIR__FLOAT_EMPTY_MARKER", - "value": "3.0e+38F", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6371, - "column": 1, - "source_line": "#define STBIR__FLOAT_EMPTY_MARKER 3.0e+38F" - } - }, - "STBIR__FLOAT_BUFFER_IS_EMPTY": { - "name": "STBIR__FLOAT_BUFFER_IS_EMPTY", - "value": "((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6372, - "column": 1, - "source_line": "#define STBIR__FLOAT_BUFFER_IS_EMPTY(ptr) ((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)" - } - }, - "STBIR__FREE_AND_CLEAR": { - "name": "STBIR__FREE_AND_CLEAR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6865, - "column": 3, - "source_line": " #undef STBIR__FREE_AND_CLEAR" - } - }, - "STBIR_RESIZE_CLASSIFICATIONS": { - "name": "STBIR_RESIZE_CLASSIFICATIONS", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6894, - "column": 1, - "source_line": "#define STBIR_RESIZE_CLASSIFICATIONS 8" - } - }, - "STBIR__V_FIRST_INFO_POINTER": { - "name": "STBIR__V_FIRST_INFO_POINTER", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 6960, - "column": 1, - "source_line": "#define STBIR__V_FIRST_INFO_POINTER 0" - } - }, - "STBIR__NEXT_PTR": { - "name": "STBIR__NEXT_PTR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7364, - "column": 5, - "source_line": " #undef STBIR__NEXT_PTR" - } - }, - "STBIR_RETURN_ERROR_AND_ASSERT": { - "name": "STBIR_RETURN_ERROR_AND_ASSERT", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 7894, - "column": 3, - "source_line": " #undef STBIR_RETURN_ERROR_AND_ASSERT" - } - }, - "STBIR_strs_join2": { - "name": "STBIR_strs_join2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10634, - "column": 1, - "source_line": "#undef STBIR_strs_join2" - } - }, - "STBIR_strs_join1": { - "name": "STBIR_strs_join1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10635, - "column": 1, - "source_line": "#undef STBIR_strs_join1" - } - }, - "STBIR_strs_join24": { - "name": "STBIR_strs_join24", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10273, - "column": 1, - "source_line": "#undef STBIR_strs_join24" - } - }, - "STBIR_strs_join14": { - "name": "STBIR_strs_join14", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10274, - "column": 1, - "source_line": "#undef STBIR_strs_join14" - } - }, - "STBIR__CODER_NAME": { - "name": "STBIR__CODER_NAME", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9886, - "column": 1, - "source_line": "#undef STBIR__CODER_NAME" - } - }, - "stbir__decode_simdf8_flip": { - "name": "stbir__decode_simdf8_flip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9873, - "column": 1, - "source_line": "#undef stbir__decode_simdf8_flip" - } - }, - "stbir__decode_simdf4_flip": { - "name": "stbir__decode_simdf4_flip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9874, - "column": 1, - "source_line": "#undef stbir__decode_simdf4_flip" - } - }, - "stbir__encode_simdf8_unflip": { - "name": "stbir__encode_simdf8_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9883, - "column": 1, - "source_line": "#undef stbir__encode_simdf8_unflip" - } - }, - "stbir__encode_simdf4_unflip": { - "name": "stbir__encode_simdf4_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9884, - "column": 1, - "source_line": "#undef stbir__encode_simdf4_unflip" - } - }, - "stbir__encode_simdfX_unflip": { - "name": "stbir__encode_simdfX_unflip", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9885, - "column": 1, - "source_line": "#undef stbir__encode_simdfX_unflip" - } - }, - "stbir__min_max_shift20": { - "name": "stbir__min_max_shift20", - "value": "stbir__simdf_max( f, f, stbir_simdf_casti(STBIR__CONSTI( STBIR_almost_zero )) ); stbir__simdf_min( f, f, stbir_simdf_casti(STBIR__CONSTI( STBIR_almost_one )) ); stbir__simdi_32shr( i, stbir_simdi_castf( f ), 20 );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8747, - "column": 1, - "source_line": "#define stbir__min_max_shift20( i, f ) \\" - } - }, - "stbir__scale_and_convert": { - "name": "stbir__scale_and_convert", - "value": "stbir__simdf_madd( f, STBIR__CONSTF( STBIR_simd_point5 ), STBIR__CONSTF( STBIR_max_uint8_as_float ), f ); stbir__simdf_max( f, f, stbir__simdf_zeroP() ); stbir__simdf_min( f, f, STBIR__CONSTF( STBIR_max_uint8_as_float ) ); stbir__simdf_convert_float_to_i32( i, f );", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8752, - "column": 1, - "source_line": "#define stbir__scale_and_convert( i, f ) \\" - } - }, - "stbir__linear_to_srgb_finish": { - "name": "stbir__linear_to_srgb_finish", - "value": "{ stbir__simdi temp; stbir__simdi_32shr( temp, stbir_simdi_castf( f ), 12 ) ; stbir__simdi_and( temp, temp, STBIR__CONSTI(STBIR_mantissa_mask) ); stbir__simdi_or( temp, temp, STBIR__CONSTI(STBIR_topscale) ); stbir__simdi_16madd( i, i, temp ); stbir__simdi_32shr( i, i, 16 ); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8758, - "column": 1, - "source_line": "#define stbir__linear_to_srgb_finish( i, f ) \\" - } - }, - "stbir__simdi_table_lookup2": { - "name": "stbir__simdi_table_lookup2", - "value": "{ stbir__simdi_u32 temp0,temp1; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8768, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup2( v0,v1, table ) \\" - } - }, - "stbir__simdi_table_lookup3": { - "name": "stbir__simdi_table_lookup3", - "value": "{ stbir__simdi_u32 temp0,temp1,temp2; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp2.m128i_i128 = v2; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; temp2.m128i_u32[0] = table[temp2.m128i_i32[0]]; temp2.m128i_u32[1] = table[temp2.m128i_i32[1]]; temp2.m128i_u32[2] = table[temp2.m128i_i32[2]]; temp2.m128i_u32[3] = table[temp2.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; v2 = temp2.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8779, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup3( v0,v1,v2, table ) \\" - } - }, - "stbir__simdi_table_lookup4": { - "name": "stbir__simdi_table_lookup4", - "value": "{ stbir__simdi_u32 temp0,temp1,temp2,temp3; temp0.m128i_i128 = v0; temp1.m128i_i128 = v1; temp2.m128i_i128 = v2; temp3.m128i_i128 = v3; temp0.m128i_u32[0] = table[temp0.m128i_i32[0]]; temp0.m128i_u32[1] = table[temp0.m128i_i32[1]]; temp0.m128i_u32[2] = table[temp0.m128i_i32[2]]; temp0.m128i_u32[3] = table[temp0.m128i_i32[3]]; temp1.m128i_u32[0] = table[temp1.m128i_i32[0]]; temp1.m128i_u32[1] = table[temp1.m128i_i32[1]]; temp1.m128i_u32[2] = table[temp1.m128i_i32[2]]; temp1.m128i_u32[3] = table[temp1.m128i_i32[3]]; temp2.m128i_u32[0] = table[temp2.m128i_i32[0]]; temp2.m128i_u32[1] = table[temp2.m128i_i32[1]]; temp2.m128i_u32[2] = table[temp2.m128i_i32[2]]; temp2.m128i_u32[3] = table[temp2.m128i_i32[3]]; temp3.m128i_u32[0] = table[temp3.m128i_i32[0]]; temp3.m128i_u32[1] = table[temp3.m128i_i32[1]]; temp3.m128i_u32[2] = table[temp3.m128i_i32[2]]; temp3.m128i_u32[3] = table[temp3.m128i_i32[3]]; v0 = temp0.m128i_i128; v1 = temp1.m128i_i128; v2 = temp2.m128i_i128; v3 = temp3.m128i_i128; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 8793, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup4( v0,v1,v2,v3, table ) \\" - } - }, - "stbir_scalar_hi_clamp": { - "name": "stbir_scalar_hi_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9889, - "column": 1, - "source_line": "#undef stbir_scalar_hi_clamp" - } - }, - "stbir_scalar_lo_clamp": { - "name": "stbir_scalar_lo_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 9890, - "column": 1, - "source_line": "#undef stbir_scalar_lo_clamp" - } - }, - "STBIR_chans": { - "name": "STBIR_chans", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10630, - "column": 1, - "source_line": "#undef STBIR_chans" - } - }, - "stbIF0": { - "name": "stbIF0", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10262, - "column": 1, - "source_line": "#undef stbIF0" - } - }, - "stbIF1": { - "name": "stbIF1", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10263, - "column": 1, - "source_line": "#undef stbIF1" - } - }, - "stbIF2": { - "name": "stbIF2", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10264, - "column": 1, - "source_line": "#undef stbIF2" - } - }, - "stbIF3": { - "name": "stbIF3", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10265, - "column": 1, - "source_line": "#undef stbIF3" - } - }, - "stbIF4": { - "name": "stbIF4", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10266, - "column": 1, - "source_line": "#undef stbIF4" - } - }, - "stbIF5": { - "name": "stbIF5", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10267, - "column": 1, - "source_line": "#undef stbIF5" - } - }, - "stbIF6": { - "name": "stbIF6", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10268, - "column": 1, - "source_line": "#undef stbIF6" - } - }, - "stbIF7": { - "name": "stbIF7", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 10269, - "column": 1, - "source_line": "#undef stbIF7" - } - } - }, - "includes": { - "stb/stb_image_resize2.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 391, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_resize2.h:stdint.h": { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 398, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_resize2.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 786, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_resize2.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 791, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_resize2.h:emmintrin.h": { - "target": "emmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1306, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_image_resize2.h:immintrin.h": { - "target": "immintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2299, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_image_resize2.h:smmintrin.h": { - "target": "smmintrin.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1478, - "column": 5, - "source_line": " #include " - } - }, - "stb/stb_image_resize2.h:arm_neon.h": { - "target": "arm_neon.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1711, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_image_resize2.h:wasm_simd128.h": { - "target": "wasm_simd128.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 1976, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_image_resize2.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2819, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_resize2.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 2831, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_image_resize2.h": [ - "stbir_simd_memcpy", - "stbir_overlapping_memcpy", - "stbir__filter_trapezoid", - "stbir__support_trapezoid", - "stbir__filter_triangle", - "stbir__filter_point", - "stbir__filter_cubic", - "stbir__filter_catmullrom", - "stbir__filter_mitchell", - "stbir__support_zeropoint5", - "stbir__support_one", - "stbir__support_two", - "stbir__get_filter_pixel_width", - "stbir__get_coefficient_width", - "stbir__get_contributors", - "stbir__edge_zero_full", - "stbir__edge_clamp_full", - "stbir__edge_reflect_full", - "stbir__edge_wrap_full", - "stbir__get_extents", - "stbir__calculate_in_pixel_range", - "stbir__calculate_coefficients_for_gather_upsample", - "stbir__insert_coeff", - "stbir__calculate_out_pixel_range", - "stbir__calculate_coefficients_for_gather_downsample", - "stbir__cleanup_gathered_coefficients", - "stbir__pack_coefficients", - "stbir__fancy_alpha_weight_4ch", - "stbir__fancy_alpha_weight_2ch", - "stbir__fancy_alpha_unweight_4ch", - "stbir__fancy_alpha_unweight_2ch", - "stbir__simple_alpha_weight_4ch", - "stbir__simple_alpha_weight_2ch", - "stbir__simple_alpha_unweight_4ch", - "stbir__simple_alpha_unweight_2ch", - "stbir__simple_flip_3ch", - "stbir__get_ring_buffer_entry", - "stbir__get_ring_buffer_scanline", - "stbir__resample_vertical_gather", - "stbir__decode_and_resample_for_vertical_gather_loop", - "stbir__vertical_gather_loop", - "stbir__encode_first_scanline_from_scatter", - "stbir__horizontal_resample_and_encode_first_scanline_from_scatter", - "stbir__resample_vertical_scatter", - "stbir__vertical_scatter_loop", - "stbir__set_sampler", - "stbir__get_conservative_extents", - "stbir__get_split_info", - "stbir__free_internal_mem", - "stbir__get_max_split", - "stbir__should_do_vertical_first", - "stbir__perform_resize", - "stbir__update_info_from_resize", - "stbir__clip", - "stbir__double_to_rational", - "stbir__calculate_region_transform", - "stbir__init_and_set_layout", - "stbir__perform_build", - "stbir_quick_resize_helper" - ] - }, - "enum_constants": { - "STBIR_1CHANNEL": { - "name": "STBIR_1CHANNEL", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_2CHANNEL": { - "name": "STBIR_2CHANNEL", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RGB": { - "name": "STBIR_RGB", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_BGR": { - "name": "STBIR_BGR", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_4CHANNEL": { - "name": "STBIR_4CHANNEL", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RGBA": { - "name": "STBIR_RGBA", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_BGRA": { - "name": "STBIR_BGRA", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ARGB": { - "name": "STBIR_ARGB", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ABGR": { - "name": "STBIR_ABGR", - "value": "8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RA": { - "name": "STBIR_RA", - "value": "9", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_AR": { - "name": "STBIR_AR", - "value": "10", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RGBA_PM": { - "name": "STBIR_RGBA_PM", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_BGRA_PM": { - "name": "STBIR_BGRA_PM", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ARGB_PM": { - "name": "STBIR_ARGB_PM", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ABGR_PM": { - "name": "STBIR_ABGR_PM", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RA_PM": { - "name": "STBIR_RA_PM", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_AR_PM": { - "name": "STBIR_AR_PM", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RGBA_NO_AW": { - "name": "STBIR_RGBA_NO_AW", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_BGRA_NO_AW": { - "name": "STBIR_BGRA_NO_AW", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ARGB_NO_AW": { - "name": "STBIR_ARGB_NO_AW", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_ABGR_NO_AW": { - "name": "STBIR_ABGR_NO_AW", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_RA_NO_AW": { - "name": "STBIR_RA_NO_AW", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_AR_NO_AW": { - "name": "STBIR_AR_NO_AW", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 435, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_EDGE_CLAMP": { - "name": "STBIR_EDGE_CLAMP", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_EDGE_REFLECT": { - "name": "STBIR_EDGE_REFLECT", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_EDGE_WRAP": { - "name": "STBIR_EDGE_WRAP", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_EDGE_ZERO": { - "name": "STBIR_EDGE_ZERO", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 495, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_DEFAULT": { - "name": "STBIR_FILTER_DEFAULT", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_BOX": { - "name": "STBIR_FILTER_BOX", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_TRIANGLE": { - "name": "STBIR_FILTER_TRIANGLE", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_CUBICBSPLINE": { - "name": "STBIR_FILTER_CUBICBSPLINE", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_CATMULLROM": { - "name": "STBIR_FILTER_CATMULLROM", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_MITCHELL": { - "name": "STBIR_FILTER_MITCHELL", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_POINT_SAMPLE": { - "name": "STBIR_FILTER_POINT_SAMPLE", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_FILTER_OTHER": { - "name": "STBIR_FILTER_OTHER", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 503, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_UINT8": { - "name": "STBIR_TYPE_UINT8", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_UINT8_SRGB": { - "name": "STBIR_TYPE_UINT8_SRGB", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_UINT8_SRGB_ALPHA": { - "name": "STBIR_TYPE_UINT8_SRGB_ALPHA", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_UINT16": { - "name": "STBIR_TYPE_UINT16", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_FLOAT": { - "name": "STBIR_TYPE_FLOAT", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIR_TYPE_HALF_FLOAT": { - "name": "STBIR_TYPE_HALF_FLOAT", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 515, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_1CHANNEL": { - "name": "STBIRI_1CHANNEL", - "value": "0", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_2CHANNEL": { - "name": "STBIRI_2CHANNEL", - "value": "1", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_RGB": { - "name": "STBIRI_RGB", - "value": "2", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_BGR": { - "name": "STBIRI_BGR", - "value": "3", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_4CHANNEL": { - "name": "STBIRI_4CHANNEL", - "value": "4", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_RGBA": { - "name": "STBIRI_RGBA", - "value": "5", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_BGRA": { - "name": "STBIRI_BGRA", - "value": "6", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_ARGB": { - "name": "STBIRI_ARGB", - "value": "7", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_ABGR": { - "name": "STBIRI_ABGR", - "value": "8", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_RA": { - "name": "STBIRI_RA", - "value": "9", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_AR": { - "name": "STBIRI_AR", - "value": "10", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_RGBA_PM": { - "name": "STBIRI_RGBA_PM", - "value": "11", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_BGRA_PM": { - "name": "STBIRI_BGRA_PM", - "value": "12", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_ARGB_PM": { - "name": "STBIRI_ARGB_PM", - "value": "13", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_ABGR_PM": { - "name": "STBIRI_ABGR_PM", - "value": "14", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_RA_PM": { - "name": "STBIRI_RA_PM", - "value": "15", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - }, - "STBIRI_AR_PM": { - "name": "STBIRI_AR_PM", - "value": "16", - "source_location": { - "filename": "stb/stb_image_resize2.h", - "line": 861, - "column": 1, - "source_line": "typedef enum" - } - } - }, - "include_graph": { - "stb/stb_image_resize2.h": [] - }, - "system_includes": { - "stb/stb_image_resize2.h": [ - "arm_neon.h", - "assert.h", - "emmintrin.h", - "immintrin.h", - "math.h", - "smmintrin.h", - "stddef.h", - "stdint.h", - "stdlib.h", - "string.h", - "wasm_simd128.h" - ] - }, - "unresolved_includes": { - "stb/stb_image_resize2.h": [] - }, - "header_source_pairs": { - "stb/stb_image_resize2.h": [] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 787, - "column": 1, - "source_line": "#define STBIR_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 792, - "column": 1, - "source_line": "#define STBIR_MALLOC(size,user_data) ((void)(user_data), malloc(size))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 793, - "column": 1, - "source_line": "#define STBIR_FREE(ptr,user_data) ((void)(user_data), free(ptr))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__UNUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 838, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__UNUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__UNUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 840, - "column": 1, - "source_line": "#define STBIR__UNUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__UNUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__ARRAY_SIZE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 843, - "column": 1, - "source_line": "#define STBIR__ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0]))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__ARRAY_SIZE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CLAMP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1071, - "column": 1, - "source_line": "#define STBIR_CLAMP(x, xmin, xmax) for(;;) { \\" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CLAMP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1237, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1238, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __assume(ptr) // this oddly keeps msvc from unrolling a loop" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1245, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1246, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr)) " - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1253, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star __restrict__" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1254, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr ) __asm__ (\"\"::\"r\"(ptr))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1262, - "column": 3, - "source_line": " #define STBIR_STREAMOUT_PTR( star ) star" - }, - "unit_kind": "macro", - "unit_name": "STBIR_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1263, - "column": 3, - "source_line": " #define STBIR_NO_UNROLL( ptr )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1311, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) _mm_castps_si128(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1312, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) _mm_castsi128_ps(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1314, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = _mm_loadu_ps( (float const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1315, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = _mm_loadu_si128 ( (stbir__simdi const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1316, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1317, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = _mm_castps_si128( _mm_load_ss( (float const*)(ptr) ))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1318, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = _mm_load_ss( (float const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1319, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) _mm_set_ps1( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1320, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = _mm_set_ps1( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1321, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1322, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1323, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = _mm_castpd_ps(_mm_loadh_pd( _mm_castps_pd(reg), (double*)(ptr) ))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1325, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() _mm_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1326, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = _mm_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1328, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) _mm_storeu_ps( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1329, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1330, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), _mm_castps_si128(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1331, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) _mm_storeh_pd( (double*)(ptr), _mm_castps_pd(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1333, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) _mm_storeu_si128( (__m128i*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1334, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) _mm_store_ss( (float*)(ptr), _mm_castsi128_ps(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1335, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) _mm_storel_epi64( (__m128i*)(ptr), (reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1337, - "column": 3, - "source_line": " #define stbir__prefetch( ptr ) _mm_prefetch((char*)(ptr), _MM_HINT_T0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1339, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1350, - "column": 1, - "source_line": "#define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1357, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1364, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = _mm_cvttps_epi32(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1365, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) _mm_cvtt_ss2si(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1366, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),_mm_setzero_ps()))))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1367, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)_mm_cvtsi128_si32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps()))))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1369, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) _mm_cvtsi128_si32(i)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1370, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = _mm_cvtepi32_ps( ireg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1371, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = _mm_add_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1372, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = _mm_mul_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1373, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = _mm_mul_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1374, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = _mm_mul_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1375, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = _mm_add_ps( reg, _mm_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1376, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = _mm_add_ss( reg, _mm_load_ss( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1380, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_fmadd_ps( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1381, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_fmadd_ss( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1382, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ps( mul, _mm_loadu_ps( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1383, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_fmadd_ss( mul, _mm_load_ss( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1385, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_add_ps( add, _mm_mul_ps( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1386, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_add_ss( add, _mm_mul_ss( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1387, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = _mm_add_ps( add, _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1388, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = _mm_add_ss( add, _mm_mul_ss( mul, _mm_load_ss( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1391, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = _mm_add_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1392, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = _mm_mul_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1394, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = _mm_and_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1395, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = _mm_or_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1397, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = _mm_min_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1398, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = _mm_max_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1399, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = _mm_min_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1400, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = _mm_max_ss( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1402, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (3<<0) + (0<<2) + (1<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1403, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_shuffle_ps( reg1,reg0, (0<<0) + (1<<2) + (2<<4) + (3<<6) )), (2<<0) + (3<<2) + (0<<4) + (1<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1407, - "column": 3, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movehl_ps( ones, alp ) ), (1<<0) + (1<<2) + (1<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1408, - "column": 3, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out)=_mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( _mm_movelh_ps( ones, alp ) ), (0<<0) + (2<<2) + (2<<4) + (2<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1409, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_srli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_zeroones )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1410, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones) (out) = _mm_or_ps( _mm_castsi128_ps( _mm_slli_epi64( _mm_castps_si128(alp), 32 ) ), STBIR_onezeros )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1412, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) _mm_castsi128_ps( _mm_shuffle_epi32( _mm_castps_si128( reg ), (one<<0) + (two<<2) + (three<<4) + (four<<6) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1414, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = _mm_and_si128( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1415, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = _mm_or_si128( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1416, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = _mm_madd_epi16( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1418, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1432, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1449, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1459, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = _mm_srli_epi32( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_32_TO_8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1463, - "column": 5, - "source_line": " #define STBIR__CONST_32_TO_8( v ) (char)(unsigned char)((v)&255),(char)(unsigned char)(((v)>>8)&255),(char)(unsigned char)(((v)>>16)&255),(char)(unsigned char)(((v)>>24)&255)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_32_TO_8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1464, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v ), STBIR__CONST_32_TO_8( v )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4d_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1465, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) STBIR__CONST_32_TO_8( v0 ), STBIR__CONST_32_TO_8( v1 ), STBIR__CONST_32_TO_8( v2 ), STBIR__CONST_32_TO_8( v3 )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4d_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1468, - "column": 5, - "source_line": " #define STBIR__CONST_4_32i( v ) (long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v))),(long long)((((stbir_uint64)(stbir_uint32)(v))<<32)|((stbir_uint64)(stbir_uint32)(v)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONST_4d_32i' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1469, - "column": 5, - "source_line": " #define STBIR__CONST_4d_32i( v0, v1, v2, v3 ) (long long)((((stbir_uint64)(stbir_uint32)(v1))<<32)|((stbir_uint64)(stbir_uint32)(v0))),(long long)((((stbir_uint64)(stbir_uint32)(v3))<<32)|((stbir_uint64)(stbir_uint32)(v2)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONST_4d_32i" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1472, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1473, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { STBIR__CONST_4_32i(x) }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1474, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1475, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1479, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1484, - "column": 5, - "source_line": " #define stbir__simdf_pack_to_8words(out,reg0,reg1) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1505, - "column": 5, - "source_line": " #define stbir__simdf8_load( out, ptr ) (out) = _mm256_loadu_ps( (float const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1506, - "column": 5, - "source_line": " #define stbir__simdi8_load( out, ptr ) (out) = _mm256_loadu_si256( (__m256i const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1507, - "column": 5, - "source_line": " #define stbir__simdf8_mult( out, a, b ) (out) = _mm256_mul_ps( (a), (b) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1508, - "column": 5, - "source_line": " #define stbir__simdf8_store( ptr, out ) _mm256_storeu_ps( (float*)(ptr), out )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1509, - "column": 5, - "source_line": " #define stbir__simdi8_store( ptr, reg ) _mm256_storeu_si256( (__m256i*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_frep8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1510, - "column": 5, - "source_line": " #define stbir__simdf8_frep8( fval ) _mm256_set1_ps( fval )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_frep8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1512, - "column": 5, - "source_line": " #define stbir__simdf8_min( out, reg0, reg1 ) (out) = _mm256_min_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1513, - "column": 5, - "source_line": " #define stbir__simdf8_max( out, reg0, reg1 ) (out) = _mm256_max_ps( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add4halves' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1515, - "column": 5, - "source_line": " #define stbir__simdf8_add4halves( out, bot4, top8 ) (out) = _mm_add_ps( bot4, _mm256_extractf128_ps( top8, 1 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add4halves" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1516, - "column": 5, - "source_line": " #define stbir__simdf8_mult_mem( out, reg, ptr ) (out) = _mm256_mul_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1517, - "column": 5, - "source_line": " #define stbir__simdf8_add_mem( out, reg, ptr ) (out) = _mm256_add_ps( reg, _mm256_loadu_ps( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1518, - "column": 5, - "source_line": " #define stbir__simdf8_add( out, a, b ) (out) = _mm256_add_ps( a, b )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load1b' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1519, - "column": 5, - "source_line": " #define stbir__simdf8_load1b( out, ptr ) (out) = _mm256_broadcast_ss( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load1b" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1rep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1520, - "column": 5, - "source_line": " #define stbir__simdf_load1rep4( out, ptr ) (out) = _mm_broadcast_ss( ptr ) // avx load instruction" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1rep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1522, - "column": 5, - "source_line": " #define stbir__simdi8_convert_i32_to_float(out, ireg) (out) = _mm256_cvtepi32_ps( ireg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1523, - "column": 5, - "source_line": " #define stbir__simdf8_convert_float_to_i32( i, f ) (i) = _mm256_cvttps_epi32(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_bot4s' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1525, - "column": 5, - "source_line": " #define stbir__simdf8_bot4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (0<<0)+(2<<4) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_bot4s" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_top4s' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1526, - "column": 5, - "source_line": " #define stbir__simdf8_top4s( out, a, b ) (out) = _mm256_permute2f128_ps(a,b, (1<<0)+(3<<4) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_top4s" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_gettop4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1528, - "column": 5, - "source_line": " #define stbir__simdf8_gettop4( reg ) _mm256_extractf128_ps(reg,1)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_gettop4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1532, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1540, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1555, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) out = _mm256_unpacklo_epi16( _mm256_permute4x64_epi64(_mm256_castsi128_si256(ireg),(0<<0)+(2<<2)+(1<<4)+(3<<6)), _mm256_setzero_si256() );" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1557, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1572, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u8_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1581, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi8_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1599, - "column": 5, - "source_line": " #define stbir__simdi8_expand_u16_to_u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi8_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_pack_to_16words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1607, - "column": 5, - "source_line": " #define stbir__simdf8_pack_to_16words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_pack_to_16words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00001111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1626, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00001111( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00001111 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00001111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to22223333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1629, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22223333( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_22223333 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to22223333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to2222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1631, - "column": 5, - "source_line": " #define stbir__simdf8_0123to2222( out, in ) (out) = stbir__simdf_swiz(_mm256_castps256_ps128(in), 2,2,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to2222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load4b' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1633, - "column": 5, - "source_line": " #define stbir__simdf8_load4b( out, ptr ) (out) = _mm256_broadcast_ps( (__m128 const *)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load4b" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00112233' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1636, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00112233( out, in ) (out) = _mm256_permutevar_ps ( in, stbir_00112233 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00112233" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_add4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1637, - "column": 5, - "source_line": " #define stbir__simdf8_add4( out, a8, b ) (out) = _mm256_add_ps( a8, _mm256_castps128_ps256( b ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_add4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_load6z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1640, - "column": 5, - "source_line": " #define stbir__simdf8_load6z( out, ptr ) (out) = _mm256_maskload_ps( ptr, stbir_load6 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_load6z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00000000' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1642, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00000000( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(0<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00000000" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to11111111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1643, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11111111( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(1<<4)+(1<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to11111111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to22222222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1644, - "column": 5, - "source_line": " #define stbir__simdf8_0123to22222222( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(2<<2)+(2<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to22222222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to33333333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1645, - "column": 5, - "source_line": " #define stbir__simdf8_0123to33333333( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(3<<2)+(3<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to33333333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to21032103' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1646, - "column": 5, - "source_line": " #define stbir__simdf8_0123to21032103( out, in ) (out) = _mm256_shuffle_ps ( in, in, (2<<0)+(1<<2)+(0<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to21032103" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to32103210' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1647, - "column": 5, - "source_line": " #define stbir__simdf8_0123to32103210( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(2<<2)+(1<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to32103210" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to12301230' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1648, - "column": 5, - "source_line": " #define stbir__simdf8_0123to12301230( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to12301230" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to10321032' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1649, - "column": 5, - "source_line": " #define stbir__simdf8_0123to10321032( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(0<<2)+(3<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to10321032" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to30123012' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1650, - "column": 5, - "source_line": " #define stbir__simdf8_0123to30123012( out, in ) (out) = _mm256_shuffle_ps ( in, in, (3<<0)+(0<<2)+(1<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to30123012" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to11331133' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1652, - "column": 5, - "source_line": " #define stbir__simdf8_0123to11331133( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(1<<2)+(3<<4)+(3<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to11331133" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_0123to00220022' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1653, - "column": 5, - "source_line": " #define stbir__simdf8_0123to00220022( out, in ) (out) = _mm256_shuffle_ps ( in, in, (0<<0)+(0<<2)+(2<<4)+(2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_0123to00220022" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1655, - "column": 5, - "source_line": " #define stbir__simdf8_aaa1( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(1<<1)+(1<<2)+(0<<3)+(1<<4)+(1<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (3<<0) + (3<<2) + (3<<4) + (0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1656, - "column": 5, - "source_line": " #define stbir__simdf8_1aaa( out, alp, ones ) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(1<<2)+(1<<3)+(0<<4)+(1<<5)+(1<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (0<<4) + (0<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1657, - "column": 5, - "source_line": " #define stbir__simdf8_a1a1( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (1<<0)+(0<<1)+(1<<2)+(0<<3)+(1<<4)+(0<<5)+(1<<6)+(0<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1658, - "column": 5, - "source_line": " #define stbir__simdf8_1a1a( out, alp, ones) (out) = _mm256_blend_ps( alp, ones, (0<<0)+(1<<1)+(0<<2)+(1<<3)+(0<<4)+(1<<5)+(0<<6)+(1<<7)); (out)=_mm256_shuffle_ps( out,out, (1<<0) + (0<<2) + (3<<4) + (2<<6) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1660, - "column": 5, - "source_line": " #define stbir__simdf8_zero( reg ) (reg) = _mm256_setzero_ps()" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1663, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_fmadd_ps( mul1, mul2, add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1664, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_fmadd_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ), add )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1667, - "column": 5, - "source_line": " #define stbir__simdf8_madd( out, add, mul1, mul2 ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1668, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_ps( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf8_madd_mem4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1669, - "column": 5, - "source_line": " #define stbir__simdf8_madd_mem4( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_setr_m128( _mm_mul_ps( mul, _mm_loadu_ps( (float const*)(ptr) ) ), _mm_setzero_ps() ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf8_madd_mem4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__if_simdf8_cast_to_simdf4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1671, - "column": 5, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) _mm256_castps256_ps128( val )" - }, - "unit_kind": "macro", - "unit_name": "stbir__if_simdf8_cast_to_simdf4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1716, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) vreinterpretq_u32_f32(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1717, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) vreinterpretq_f32_u32(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1719, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = vld1q_f32( (float const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1720, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = vld1q_u32( (uint32_t const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1721, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = vld1q_dup_f32( (float const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1722, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = vld1q_dup_u32( (uint32_t const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1723, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = vld1q_lane_f32( (float const*)(ptr), vdupq_n_f32(0), 0 ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1724, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) vdupq_n_f32( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1725, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = vdupq_n_f32( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1726, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1727, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = vcombine_f32( vld1_f32( (float const*)(ptr) ), vcreate_f32(0) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1728, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = vcombine_f32( vget_low_f32(reg), vld1_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1730, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() vdupq_n_f32(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1731, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = vdupq_n_f32(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1733, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) vst1q_f32( (float*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1734, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) vst1q_lane_f32( (float*)(ptr), reg, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1735, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) vst1_f32( (float*)(ptr), vget_low_f32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1736, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) vst1_f32( (float*)(ptr), vget_high_f32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1738, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) vst1q_u32( (uint32_t*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1739, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) vst1q_lane_u32( (uint32_t*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1740, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) vst1_u32( (uint32_t*)(ptr), vget_low_u32(reg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1742, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1744, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1754, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1760, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1767, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = vreinterpretq_u32_s32( vcvtq_s32_f32(f) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1768, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) vgetq_lane_s32(vcvtq_s32_f32(f), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1769, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) (int)vgetq_lane_u32(i, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1770, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint8_as_float)),vdupq_n_f32(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1771, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)vgetq_lane_s32(vcvtq_s32_f32(vmaxq_f32(vminq_f32(f,STBIR__CONSTF(STBIR_max_uint16_as_float)),vdupq_n_f32(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1772, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = vcvtq_f32_s32( vreinterpretq_s32_u32(ireg) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1773, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1774, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1775, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1776, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = vmulq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1777, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1778, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = vaddq_f32( reg, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1781, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1782, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1783, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1784, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vfmaq_f32( add, mul, vld1q_dup_f32( (float const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1786, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1787, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = vaddq_f32( add, vmulq_f32( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1788, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_f32( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1789, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_dup_f32( (float const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1792, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = vaddq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1793, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = vmulq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1795, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vandq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1796, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = vreinterpretq_f32_u32( vorrq_u32( vreinterpretq_u32_f32(reg0), vreinterpretq_u32_f32(reg1) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1798, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1799, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1800, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = vminq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1801, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = vmaxq_f32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1803, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1804, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = vextq_f32( reg0, reg1, 2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1806, - "column": 3, - "source_line": " #define stbir__simdf_a1a1( out, alp, ones ) (out) = vzipq_f32(vuzpq_f32(alp, alp).val[1], ones).val[0]" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1807, - "column": 3, - "source_line": " #define stbir__simdf_1a1a( out, alp, ones ) (out) = vzipq_f32(ones, vuzpq_f32(alp, alp).val[0]).val[0]" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1811, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3, ones, 3)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1812, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vcopyq_laneq_f32(vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0, ones, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1815, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) vcombine_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1827, - "column": 7, - "source_line": " #define stbir_make16(a,b,c,d) (uint8x16_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3,4*c+0,4*c+1,4*c+2,4*c+3,4*d+0,4*d+1,4*d+2,4*d+3}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make16x2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1828, - "column": 7, - "source_line": " #define stbir_make16x2(a,b) (uint8x16x2_t){{vreinterpretq_u8_f32(a),vreinterpretq_u8_f32(b)}}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make16x2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1831, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vqtbl1q_u8( vreinterpretq_u8_f32(reg), stbir_make16(one, two, three, four) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1832, - "column": 5, - "source_line": " #define stbir__simdf_swiz2( rega, regb, one, two, three, four ) vreinterpretq_f32_u8( vqtbl2q_u8( stbir_make16x2(rega,regb), stbir_make16(one, two, three, four) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1834, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1845, - "column": 5, - "source_line": " #define stbir__simdf_aaa1( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 3)), 3)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1846, - "column": 5, - "source_line": " #define stbir__simdf_1aaa( out, alp, ones ) (out) = vsetq_lane_f32(1.0f, vdupq_n_f32(vgetq_lane_f32(alp, 0)), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1854, - "column": 7, - "source_line": " #define stbir_make8(a,b) vcreate_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8x2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1858, - "column": 7, - "source_line": " #define stbir_make8x2(reg) (uint8x8x2_t){ { vget_low_u8(vreinterpretq_u8_f32(reg)), vget_high_u8(vreinterpretq_u8_f32(reg)) } }" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8x2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_make8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1859, - "column": 7, - "source_line": " #define stbir_make8(a,b) (uint8x8_t){4*a+0,4*a+1,4*a+2,4*a+3,4*b+0,4*b+1,4*b+2,4*b+3}" - }, - "unit_kind": "macro", - "unit_name": "stbir_make8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1862, - "column": 5, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) vreinterpretq_f32_u8( vcombine_u8( \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1866, - "column": 5, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1879, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = vandq_u32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1880, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = vorrq_u32( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1882, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1892, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1901, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1913, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1922, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = vshrq_n_u32( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1925, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) __declspec(align(8)) float var[] = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1926, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) __declspec(align(8)) uint32_t var[] = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1927, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (*(const float32x4_t*)var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1928, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (*(const uint32x4_t*)var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1930, - "column": 5, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1931, - "column": 5, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1932, - "column": 5, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1933, - "column": 5, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdi_castf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1981, - "column": 3, - "source_line": " #define stbir_simdi_castf( reg ) (reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdi_castf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_simdf_casti' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1982, - "column": 3, - "source_line": " #define stbir_simdf_casti( reg ) (reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir_simdf_casti" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1984, - "column": 3, - "source_line": " #define stbir__simdf_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1985, - "column": 3, - "source_line": " #define stbir__simdi_load( reg, ptr ) (reg) = wasm_v128_load( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1986, - "column": 3, - "source_line": " #define stbir__simdf_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_load1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1987, - "column": 3, - "source_line": " #define stbir__simdi_load1( out, ptr ) (out) = wasm_v128_load32_splat( (void const*)(ptr) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_load1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1988, - "column": 3, - "source_line": " #define stbir__simdf_load1z( out, ptr ) (out) = wasm_v128_load32_zero( (void const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1989, - "column": 3, - "source_line": " #define stbir__simdf_frep4( fvar ) wasm_f32x4_splat( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load1frep4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1990, - "column": 3, - "source_line": " #define stbir__simdf_load1frep4( out, fvar ) (out) = wasm_f32x4_splat( fvar )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load1frep4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1991, - "column": 3, - "source_line": " #define stbir__simdf_load2( out, ptr ) (out) = wasm_v128_load64_splat( (void const*)(ptr) ) // top values can be random (not denormal or nan for perf)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2z' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1992, - "column": 3, - "source_line": " #define stbir__simdf_load2z( out, ptr ) (out) = wasm_v128_load64_zero( (void const*)(ptr) ) // top values must be zero" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2z" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load2hmerge' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1993, - "column": 3, - "source_line": " #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = wasm_v128_load64_lane( (void const*)(ptr), reg, 1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load2hmerge" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zeroP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1995, - "column": 3, - "source_line": " #define stbir__simdf_zeroP() wasm_f32x4_const_splat(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zeroP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_zero' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1996, - "column": 3, - "source_line": " #define stbir__simdf_zero( reg ) (reg) = wasm_f32x4_const_splat(0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_zero" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1998, - "column": 3, - "source_line": " #define stbir__simdf_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1999, - "column": 3, - "source_line": " #define stbir__simdf_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2000, - "column": 3, - "source_line": " #define stbir__simdf_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_store2h' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2001, - "column": 3, - "source_line": " #define stbir__simdf_store2h( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_store2h" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2003, - "column": 3, - "source_line": " #define stbir__simdi_store( ptr, reg ) wasm_v128_store( (void*)(ptr), reg )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2004, - "column": 3, - "source_line": " #define stbir__simdi_store1( ptr, reg ) wasm_v128_store32_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_store2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2005, - "column": 3, - "source_line": " #define stbir__simdi_store2( ptr, reg ) wasm_v128_store64_lane( (void*)(ptr), reg, 0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_store2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__prefetch' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2007, - "column": 3, - "source_line": " #define stbir__prefetch( ptr )" - }, - "unit_kind": "macro", - "unit_name": "stbir__prefetch" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2009, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_u32(out0,out1,out2,out3,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u8_to_1u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2019, - "column": 3, - "source_line": " #define stbir__simdi_expand_u8_to_1u32(out,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u8_to_1u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_expand_u16_to_u32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2025, - "column": 3, - "source_line": " #define stbir__simdi_expand_u16_to_u32(out0,out1,ireg) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_expand_u16_to_u32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_i32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2031, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_i32( i, f ) (i) = wasm_i32x4_trunc_sat_f32x4(f)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_i32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2032, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_int( f ) wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(f), 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_to_int' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2033, - "column": 3, - "source_line": " #define stbir__simdi_to_int( i ) wasm_i32x4_extract_lane(i, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_to_int" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_uint8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2034, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_uint8( f ) ((unsigned char)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint8_as_float),wasm_f32x4_const_splat(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_uint8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_convert_float_to_short' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2035, - "column": 3, - "source_line": " #define stbir__simdf_convert_float_to_short( f ) ((unsigned short)wasm_i32x4_extract_lane(wasm_i32x4_trunc_sat_f32x4(wasm_f32x4_max(wasm_f32x4_min(f,STBIR_max_uint16_as_float),wasm_f32x4_const_splat(0))), 0))" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_convert_float_to_short" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_convert_i32_to_float' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2036, - "column": 3, - "source_line": " #define stbir__simdi_convert_i32_to_float(out, ireg) (out) = wasm_f32x4_convert_i32x4(ireg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_convert_i32_to_float" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2037, - "column": 3, - "source_line": " #define stbir__simdf_add( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2038, - "column": 3, - "source_line": " #define stbir__simdf_mult( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2039, - "column": 3, - "source_line": " #define stbir__simdf_mult_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2040, - "column": 3, - "source_line": " #define stbir__simdf_mult1_mem( out, reg, ptr ) (out) = wasm_f32x4_mul( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2041, - "column": 3, - "source_line": " #define stbir__simdf_add_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2042, - "column": 3, - "source_line": " #define stbir__simdf_add1_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load32_splat( (void const*)(ptr) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2044, - "column": 3, - "source_line": " #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2045, - "column": 3, - "source_line": " #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul1, mul2 ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2046, - "column": 3, - "source_line": " #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load( (void const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_madd1_mem' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2047, - "column": 3, - "source_line": " #define stbir__simdf_madd1_mem( out, add, mul, ptr ) (out) = wasm_f32x4_add( add, wasm_f32x4_mul( mul, wasm_v128_load32_splat( (void const*)(ptr) ) ) )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_madd1_mem" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_add1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2049, - "column": 3, - "source_line": " #define stbir__simdf_add1( out, reg0, reg1 ) (out) = wasm_f32x4_add( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_add1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_mult1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2050, - "column": 3, - "source_line": " #define stbir__simdf_mult1( out, reg0, reg1 ) (out) = wasm_f32x4_mul( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_mult1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2052, - "column": 3, - "source_line": " #define stbir__simdf_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2053, - "column": 3, - "source_line": " #define stbir__simdf_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2055, - "column": 3, - "source_line": " #define stbir__simdf_min( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2056, - "column": 3, - "source_line": " #define stbir__simdf_max( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_min1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2057, - "column": 3, - "source_line": " #define stbir__simdf_min1( out, reg0, reg1 ) (out) = wasm_f32x4_min( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_min1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_max1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2058, - "column": 3, - "source_line": " #define stbir__simdf_max1( out, reg0, reg1 ) (out) = wasm_f32x4_max( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_max1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto3ABx' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2060, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto3ABx( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 3, 4, 5, -1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto3ABx" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123ABCDto23Ax' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2061, - "column": 3, - "source_line": " #define stbir__simdf_0123ABCDto23Ax( out, reg0, reg1 ) (out) = wasm_i32x4_shuffle( reg0, reg1, 2, 3, 4, -1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123ABCDto23Ax" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_aaa1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2063, - "column": 3, - "source_line": " #define stbir__simdf_aaa1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 3, 3, 3, 4)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_aaa1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1aaa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2064, - "column": 3, - "source_line": " #define stbir__simdf_1aaa(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 0, 0)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1aaa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_a1a1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2065, - "column": 3, - "source_line": " #define stbir__simdf_a1a1(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 1, 4, 3, 4)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_a1a1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_1a1a' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2066, - "column": 3, - "source_line": " #define stbir__simdf_1a1a(out,alp,ones) (out) = wasm_i32x4_shuffle(alp, ones, 4, 0, 4, 2)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_1a1a" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_swiz' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2068, - "column": 3, - "source_line": " #define stbir__simdf_swiz( reg, one, two, three, four ) wasm_i32x4_shuffle(reg, reg, one, two, three, four)" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_swiz" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_and' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2070, - "column": 3, - "source_line": " #define stbir__simdi_and( out, reg0, reg1 ) (out) = wasm_v128_and( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_and" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_or' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2071, - "column": 3, - "source_line": " #define stbir__simdi_or( out, reg0, reg1 ) (out) = wasm_v128_or( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_or" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_16madd' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2072, - "column": 3, - "source_line": " #define stbir__simdi_16madd( out, reg0, reg1 ) (out) = wasm_i32x4_dot_i16x8( reg0, reg1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_16madd" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8bytes' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2074, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8bytes(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8bytes" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_pack_to_8words' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2084, - "column": 3, - "source_line": " #define stbir__simdf_pack_to_8words(out,aa,bb) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_pack_to_8words" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__interleave_pack_and_store_16_u8' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2093, - "column": 3, - "source_line": " #define stbir__interleave_pack_and_store_16_u8( ptr, r0, r1, r2, r3 ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__interleave_pack_and_store_16_u8" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_load4_transposed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2102, - "column": 3, - "source_line": " #define stbir__simdf_load4_transposed( o0, o1, o2, o3, ptr ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_load4_transposed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_32shr' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2118, - "column": 3, - "source_line": " #define stbir__simdi_32shr( out, reg, imm ) out = wasm_u32x4_shr( reg, imm )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_32shr" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDF_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2121, - "column": 3, - "source_line": " #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__SIMDI_CONST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2122, - "column": 3, - "source_line": " #define STBIR__SIMDI_CONST(var, x) stbir__simdi var = { x, x, x, x }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2123, - "column": 3, - "source_line": " #define STBIR__CONSTF(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CONSTI' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2124, - "column": 3, - "source_line": " #define STBIR__CONSTI(var) (var)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CONSTI" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__if_simdf8_cast_to_simdf4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2210, - "column": 3, - "source_line": " #define stbir__if_simdf8_cast_to_simdf4( val ) ( val )" - }, - "unit_kind": "macro", - "unit_name": "stbir__if_simdf8_cast_to_simdf4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2536, - "column": 1, - "source_line": "#define stbir__simdf_0123to3333( out, reg ) (out) = stbir__simdf_swiz( reg, 3,3,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2222' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2537, - "column": 1, - "source_line": "#define stbir__simdf_0123to2222( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2222" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1111' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2538, - "column": 1, - "source_line": "#define stbir__simdf_0123to1111( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,1,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1111" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0000' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2539, - "column": 1, - "source_line": "#define stbir__simdf_0123to0000( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0000" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0003' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2540, - "column": 1, - "source_line": "#define stbir__simdf_0123to0003( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0003" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0001' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2541, - "column": 1, - "source_line": "#define stbir__simdf_0123to0001( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0001" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1122' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2542, - "column": 1, - "source_line": "#define stbir__simdf_0123to1122( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1122" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2333' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2543, - "column": 1, - "source_line": "#define stbir__simdf_0123to2333( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2333" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0023' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2544, - "column": 1, - "source_line": "#define stbir__simdf_0123to0023( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0023" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1230' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2545, - "column": 1, - "source_line": "#define stbir__simdf_0123to1230( out, reg ) (out) = stbir__simdf_swiz( reg, 1,2,3,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1230" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2103' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2546, - "column": 1, - "source_line": "#define stbir__simdf_0123to2103( out, reg ) (out) = stbir__simdf_swiz( reg, 2,1,0,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2103" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3210' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2547, - "column": 1, - "source_line": "#define stbir__simdf_0123to3210( out, reg ) (out) = stbir__simdf_swiz( reg, 3,2,1,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3210" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2301' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2548, - "column": 1, - "source_line": "#define stbir__simdf_0123to2301( out, reg ) (out) = stbir__simdf_swiz( reg, 2,3,0,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2301" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to3012' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2549, - "column": 1, - "source_line": "#define stbir__simdf_0123to3012( out, reg ) (out) = stbir__simdf_swiz( reg, 3,0,1,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to3012" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0011' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2550, - "column": 1, - "source_line": "#define stbir__simdf_0123to0011( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,1,1 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0011" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1100' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2551, - "column": 1, - "source_line": "#define stbir__simdf_0123to1100( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,0,0 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1100" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to2233' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2552, - "column": 1, - "source_line": "#define stbir__simdf_0123to2233( out, reg ) (out) = stbir__simdf_swiz( reg, 2,2,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to2233" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1133' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2553, - "column": 1, - "source_line": "#define stbir__simdf_0123to1133( out, reg ) (out) = stbir__simdf_swiz( reg, 1,1,3,3 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1133" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to0022' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2554, - "column": 1, - "source_line": "#define stbir__simdf_0123to0022( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,2,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to0022" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdf_0123to1032' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2555, - "column": 1, - "source_line": "#define stbir__simdf_0123to1032( out, reg ) (out) = stbir__simdf_swiz( reg, 1,0,3,2 )" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdf_0123to1032" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2581, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2582, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr) STBIR_NO_UNROLL(ptr)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_STREAMOUT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2719, - "column": 1, - "source_line": "#define STBIR_SIMD_STREAMOUT_PTR( star ) STBIR_STREAMOUT_PTR( star )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_STREAMOUT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_SIMD_NO_UNROLL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2720, - "column": 1, - "source_line": "#define STBIR_SIMD_NO_UNROLL(ptr)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_SIMD_NO_UNROLL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FUNC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2736, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() __rdtsc()" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FUNC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2753, - "column": 3, - "source_line": " #define STBIR_PROFILE_FUNC() _ReadStatusReg(ARM64_CNTVCT)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2781, - "column": 1, - "source_line": "#define STBIR_PROFILE_START_ll( info, wh ) { stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##save_parent_excluded_ptr = info->current_zone_excluded_ptr; stbir_uint64 wh##current_zone_excluded = 0; info->current_zone_excluded_ptr = &wh##current_zone_excluded;" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2782, - "column": 1, - "source_line": "#define STBIR_PROFILE_END_ll( info, wh ) wh##thiszonetime = STBIR_PROFILE_FUNC() - wh##thiszonetime; info->profile.named.wh += wh##thiszonetime - wh##current_zone_excluded; *wh##save_parent_excluded_ptr += wh##thiszonetime; info->current_zone_excluded_ptr = wh##save_parent_excluded_ptr; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2783, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START_ll( info, wh ) { int i; info->current_zone_excluded_ptr = &info->profile.named.total; for(i=0;iprofile.array);i++) info->profile.array[i]=0; } STBIR_PROFILE_START_ll( info, wh );" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS_ll' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2784, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS_ll( info, num ) { int extra; for(extra=1;extra<(num);extra++) { int i; for(i=0;iprofile.array);i++) (info)[extra].profile.array[i]=0; } }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS_ll" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2787, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh ) STBIR_PROFILE_START_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2788, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh ) STBIR_PROFILE_END_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2789, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( split_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2790, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS() STBIR_PROFILE_CLEAR_EXTRAS_ll( split_info, split_count )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2793, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh ) STBIR_PROFILE_START_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2794, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh ) STBIR_PROFILE_END_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2795, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh ) STBIR_PROFILE_FIRST_START_ll( profile_info, wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2796, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info ) { int i; for(i=0;iprofile.array);i++) info->profile.array[i]=0; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2806, - "column": 1, - "source_line": "#define STBIR_PROFILE_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2807, - "column": 1, - "source_line": "#define STBIR_PROFILE_END( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2808, - "column": 1, - "source_line": "#define STBIR_PROFILE_FIRST_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_CLEAR_EXTRAS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2809, - "column": 1, - "source_line": "#define STBIR_PROFILE_CLEAR_EXTRAS( )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_CLEAR_EXTRAS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2811, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_END' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2812, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_END( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_END" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_FIRST_START' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2813, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_FIRST_START( wh )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_FIRST_START" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_PROFILE_BUILD_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2814, - "column": 1, - "source_line": "#define STBIR_PROFILE_BUILD_CLEAR( info )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_PROFILE_BUILD_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CEILF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2821, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ((float)ceil((float)(x)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CEILF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FLOORF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2822, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) ((float)floor((float)(x)))" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FLOORF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_CEILF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2824, - "column": 1, - "source_line": "#define STBIR_CEILF(x) ceilf(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_CEILF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_FLOORF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2825, - "column": 1, - "source_line": "#define STBIR_FLOORF(x) floorf(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_FLOORF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MEMCPY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2832, - "column": 1, - "source_line": "#define STBIR_MEMCPY( dest, src, len ) memcpy( dest, src, len )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MEMCPY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3698, - "column": 3, - "source_line": " #define STBIR_MOVE_1( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint32*)(dest))[0] = ((stbir_uint32*)(src))[0]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3699, - "column": 3, - "source_line": " #define STBIR_MOVE_2( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3701, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { stbir__simdf t; STBIR_NO_UNROLL(dest); stbir__simdf_load( t, src ); stbir__simdf_store( dest, t ); }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_MOVE_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3703, - "column": 3, - "source_line": " #define STBIR_MOVE_4( dest, src ) { STBIR_NO_UNROLL(dest); ((stbir_uint64*)(dest))[0] = ((stbir_uint64*)(src))[0]; ((stbir_uint64*)(dest))[1] = ((stbir_uint64*)(src))[1]; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR_MOVE_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4710, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4716, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4725, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4735, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4741, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4747, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4752, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4758, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_setup' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4764, - "column": 1, - "source_line": "#define stbir__3_coeff_setup() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_setup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4768, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4773, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4785, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4789, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4794, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4800, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4806, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4813, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4819, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4822, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4826, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4831, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4849, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4857, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4864, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4874, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4884, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4891, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4897, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4905, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4912, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4919, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4931, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4940, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4948, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4955, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4960, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4969, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4982, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4988, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 4998, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5010, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5017, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5032, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5046, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5051, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5059, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5070, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5089, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5097, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5108, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5122, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5133, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5142, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5150, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5155, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5161, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5169, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5189, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5200, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5210, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5216, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5226, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5238, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5262, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5269, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5280, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5295, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5303, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5322, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5340, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5346, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5356, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5370, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5389, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5396, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5405, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5416, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5424, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5433, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5441, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5446, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5452, - "column": 2, - "source_line": " #define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5460, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5469, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5482, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5494, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5500, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5508, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5518, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5529, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5538, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5552, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5571, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5580, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5604, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5627, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5635, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5648, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5666, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5688, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5696, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5707, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5721, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5730, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5743, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5755, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5760, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5767, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5777, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5793, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5810, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5826, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5833, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5843, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5856, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5869, - "column": 1, - "source_line": "#define stbir__1_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5880, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5899, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output_tiny' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5926, - "column": 1, - "source_line": "#define stbir__store_output_tiny() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output_tiny" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5938, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 5974, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__1_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6009, - "column": 1, - "source_line": "#define stbir__1_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__1_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6020, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6039, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__store_output' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6066, - "column": 1, - "source_line": "#define stbir__store_output() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__store_output" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__FLOAT_BUFFER_IS_EMPTY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6372, - "column": 1, - "source_line": "#define STBIR__FLOAT_BUFFER_IS_EMPTY(ptr) ((ptr)[0]==STBIR__FLOAT_EMPTY_MARKER)" - }, - "unit_kind": "macro", - "unit_name": "STBIR__FLOAT_BUFFER_IS_EMPTY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__FREE_AND_CLEAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6819, - "column": 3, - "source_line": " #define STBIR__FREE_AND_CLEAR( ptr ) { if ( ptr ) { void * p = (ptr); (ptr) = 0; STBIR_FREE( p, info->user_data); } }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__FREE_AND_CLEAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__NEXT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7143, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) if ( alloced ) { void * p = STBIR_MALLOC( size, user_data); if ( p == 0 ) { stbir__free_internal_mem( info ); return 0; } (ptr) = (ntype*)p; }" - }, - "unit_kind": "macro", - "unit_name": "STBIR__NEXT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__NEXT_PTR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7145, - "column": 5, - "source_line": " #define STBIR__NEXT_PTR( ptr, size, ntype ) advance_mem = (void*) ( ( ((size_t)advance_mem) + 15 ) & ~15 ); if ( alloced ) ptr = (ntype*)advance_mem; advance_mem = (char*)(((size_t)advance_mem) + (size));" - }, - "unit_kind": "macro", - "unit_name": "STBIR__NEXT_PTR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_RETURN_ERROR_AND_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7891, - "column": 3, - "source_line": " #define STBIR_RETURN_ERROR_AND_ASSERT( exp ) STBIR_ASSERT( !(exp) ); if (exp) return 0;" - }, - "unit_kind": "macro", - "unit_name": "STBIR_RETURN_ERROR_AND_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8253, - "column": 1, - "source_line": "#define STBIR_strs_join2( start, mid, end ) start##mid##end" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8254, - "column": 1, - "source_line": "#define STBIR_strs_join1( start, mid, end ) STBIR_strs_join2( start, mid, end )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join24' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8256, - "column": 1, - "source_line": "#define STBIR_strs_join24( start, mid1, mid2, end ) start##mid1##mid2##end" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join24" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_strs_join14' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8257, - "column": 1, - "source_line": "#define STBIR_strs_join14( start, mid1, mid2, end ) STBIR_strs_join24( start, mid1, mid2, end )" - }, - "unit_kind": "macro", - "unit_name": "STBIR_strs_join14" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CODER_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8262, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) STBIR_strs_join1( name, _, stbir__decode_suffix )" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR__CODER_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8264, - "column": 1, - "source_line": "#define STBIR__CODER_NAME( name ) name" - }, - "unit_kind": "macro", - "unit_name": "STBIR__CODER_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf8_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8268, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3),stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf8_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf4_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8269, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__decode_order0,stbir__decode_order1),stbir__decode_order2,stbir__decode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf4_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf8_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8270, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( STBIR_strs_join1( stbir__simdf8_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3),stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf8_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf4_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8271, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg) STBIR_strs_join1( STBIR_strs_join1( stbir__simdf_0123to,stbir__encode_order0,stbir__encode_order1),stbir__encode_order2,stbir__encode_order3)(reg, reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf4_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf8_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8281, - "column": 1, - "source_line": "#define stbir__decode_simdf8_flip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf8_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__decode_simdf4_flip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8282, - "column": 1, - "source_line": "#define stbir__decode_simdf4_flip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__decode_simdf4_flip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf8_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8283, - "column": 1, - "source_line": "#define stbir__encode_simdf8_unflip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf8_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__encode_simdf4_unflip' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8284, - "column": 1, - "source_line": "#define stbir__encode_simdf4_unflip(reg)" - }, - "unit_kind": "macro", - "unit_name": "stbir__encode_simdf4_unflip" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__min_max_shift20' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8747, - "column": 1, - "source_line": "#define stbir__min_max_shift20( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__min_max_shift20" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__scale_and_convert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8752, - "column": 1, - "source_line": "#define stbir__scale_and_convert( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__scale_and_convert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__linear_to_srgb_finish' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8758, - "column": 1, - "source_line": "#define stbir__linear_to_srgb_finish( i, f ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__linear_to_srgb_finish" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8768, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup2( v0,v1, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8779, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup3( v0,v1,v2, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__simdi_table_lookup4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8793, - "column": 1, - "source_line": "#define stbir__simdi_table_lookup4( v0,v1,v2,v3, table ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__simdi_table_lookup4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_hi_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9750, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v ) if ( v > STBIR_FLOAT_HIGH_CLAMP ) v = STBIR_FLOAT_HIGH_CLAMP;" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_hi_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_hi_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9752, - "column": 3, - "source_line": " #define stbir_scalar_hi_clamp( v )" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_hi_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_lo_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9755, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v ) if ( v < STBIR_FLOAT_LOW_CLAMP ) v = STBIR_FLOAT_LOW_CLAMP;" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_lo_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir_scalar_lo_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9757, - "column": 3, - "source_line": " #define stbir_scalar_lo_clamp( v )" - }, - "unit_kind": "macro", - "unit_name": "stbir_scalar_lo_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9896, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join14(start,STBIR__vertical_channels,end,_cont)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9898, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__vertical_channels,end)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF0' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9902, - "column": 1, - "source_line": "#define stbIF0( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF0" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF0' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9904, - "column": 1, - "source_line": "#define stbIF0( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF0" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9907, - "column": 1, - "source_line": "#define stbIF1( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9909, - "column": 1, - "source_line": "#define stbIF1( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9912, - "column": 1, - "source_line": "#define stbIF2( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9914, - "column": 1, - "source_line": "#define stbIF2( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9917, - "column": 1, - "source_line": "#define stbIF3( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9919, - "column": 1, - "source_line": "#define stbIF3( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9922, - "column": 1, - "source_line": "#define stbIF4( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9924, - "column": 1, - "source_line": "#define stbIF4( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF5' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9927, - "column": 1, - "source_line": "#define stbIF5( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF5" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF5' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9929, - "column": 1, - "source_line": "#define stbIF5( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF5" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF6' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9932, - "column": 1, - "source_line": "#define stbIF6( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF6" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF6' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9934, - "column": 1, - "source_line": "#define stbIF6( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF6" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF7' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9937, - "column": 1, - "source_line": "#define stbIF7( code ) code" - }, - "unit_kind": "macro", - "unit_name": "stbIF7" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbIF7' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 9939, - "column": 1, - "source_line": "#define stbIF7( code )" - }, - "unit_kind": "macro", - "unit_name": "stbIF7" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIR_chans' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10282, - "column": 1, - "source_line": "#define STBIR_chans( start, end ) STBIR_strs_join1(start,STBIR__horizontal_channels,end)" - }, - "unit_kind": "macro", - "unit_name": "STBIR_chans" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10285, - "column": 1, - "source_line": "#define stbir__2_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__2_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10291, - "column": 1, - "source_line": "#define stbir__2_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__2_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_only' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10297, - "column": 1, - "source_line": "#define stbir__3_coeff_only() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_only" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_remnant' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10303, - "column": 1, - "source_line": "#define stbir__3_coeff_remnant( ofs ) \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_remnant" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__3_coeff_setup' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10309, - "column": 1, - "source_line": "#define stbir__3_coeff_setup()" - }, - "unit_kind": "macro", - "unit_name": "stbir__3_coeff_setup" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_start' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10313, - "column": 1, - "source_line": "#define stbir__4_coeff_start() \\" - }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_start" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbir__4_coeff_continue_from_4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 10319, - "column": 1, - "source_line": "#define stbir__4_coeff_continue_from_4( ofs ) \\" + }, + { + "name": "called_alloc", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int called_alloc" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 590, + "column": 3, + "source_line": " int called_alloc;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "input_pixel_layout_public", + "type": { + "reference": "stbir_pixel_layout" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 591, + "column": 3, + "source_line": " stbir_pixel_layout input_pixel_layout_public;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "output_pixel_layout_public", + "type": { + "reference": "stbir_pixel_layout" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 592, + "column": 3, + "source_line": " stbir_pixel_layout output_pixel_layout_public;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "input_data_type", + "type": { + "reference": "stbir_datatype" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 593, + "column": 3, + "source_line": " stbir_datatype input_data_type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "output_data_type", + "type": { + "reference": "stbir_datatype" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 594, + "column": 3, + "source_line": " stbir_datatype output_data_type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "horizontal_filter", + "type": { + "reference": "stbir_filter" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 595, + "column": 3, + "source_line": " stbir_filter horizontal_filter, vertical_filter;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "vertical_filter", + "type": { + "reference": "stbir_filter" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 595, + "column": 3, + "source_line": " stbir_filter horizontal_filter, vertical_filter;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "horizontal_edge", + "type": { + "reference": "stbir_edge" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 596, + "column": 3, + "source_line": " stbir_edge horizontal_edge, vertical_edge;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "vertical_edge", + "type": { + "reference": "stbir_edge" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 596, + "column": 3, + "source_line": " stbir_edge horizontal_edge, vertical_edge;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "horizontal_filter_kernel", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * horizontal_filter_kernel", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir__kernel_callback", + "name": "stbir__kernel_callback", + "type": { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "typedef float stbir__kernel_callback( float x, float scale, void * user_data )", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameter_types": [ + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 568, + "column": 1, + "source_line": "typedef float stbir__kernel_callback( float x, float scale, void * user_data );" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 597, + "column": 3, + "source_line": " stbir__kernel_callback * horizontal_filter_kernel; stbir__support_callback * horizontal_filter_support;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "horizontal_filter_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * horizontal_filter_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir__support_callback", + "name": "stbir__support_callback", + "type": { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "typedef float stbir__support_callback( float scale, void * user_data )", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameter_types": [ + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + } + ], + "is_variadic": false, + "prototype_style": "prototype" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 569, + "column": 1, + "source_line": "typedef float stbir__support_callback( float scale, void * user_data );" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 597, + "column": 54, + "source_line": " stbir__kernel_callback * horizontal_filter_kernel; stbir__support_callback * horizontal_filter_support;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "vertical_filter_kernel", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * vertical_filter_kernel", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 598, + "column": 3, + "source_line": " stbir__kernel_callback * vertical_filter_kernel; stbir__support_callback * vertical_filter_support;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "vertical_filter_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * vertical_filter_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 598, + "column": 52, + "source_line": " stbir__kernel_callback * vertical_filter_kernel; stbir__support_callback * vertical_filter_support;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "samplers", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__info * samplers", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir__info", + "name": "stbir__info", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "typedef struct stbir__info stbir__info", + "name": "stbir__info", + "members": [], + "anonymous_id": null, + "is_incomplete": true, + "source_location": null + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 572, + "column": 1, + "source_line": "typedef struct stbir__info stbir__info;" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 599, + "column": 3, + "source_line": " stbir__info * samplers;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 574, + "column": 1, + "source_line": "typedef struct STBIR_RESIZE" + } + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 574, + "column": 1, + "source_line": "typedef struct STBIR_RESIZE" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 606, + "column": 1, + "source_line": "extern void stbir_resize_init( STBIR_RESIZE * resize," + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 606, + "column": 1, + "source_line": "extern void stbir_resize_init( STBIR_RESIZE * resize," + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_datatypes", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 615, + "column": 1, + "source_line": "extern void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 615, + "column": 1, + "source_line": "extern void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_pixel_callbacks", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_cb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_input_callback * input_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_input_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_input_callback * input_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_input_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_cb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_output_callback * output_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_output_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_output_callback * output_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_output_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 616, + "column": 1, + "source_line": "extern void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 616, + "column": 1, + "source_line": "extern void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_user_data", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "user_data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 617, + "column": 1, + "source_line": "extern void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 617, + "column": 1, + "source_line": "extern void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_buffer_ptrs", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 618, + "column": 1, + "source_line": "extern void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 618, + "column": 1, + "source_line": "extern void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_pixel_layouts", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 627, + "column": 1, + "source_line": "extern int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 627, + "column": 1, + "source_line": "extern int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_edgemodes", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_edge", + "type": { + "reference": "stbir_edge" + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_edge", + "type": { + "reference": "stbir_edge" + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 628, + "column": 1, + "source_line": "extern int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 628, + "column": 1, + "source_line": "extern int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_filters", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_filter", + "type": { + "reference": "stbir_filter" + }, + "declared_type": { + "reference": "stbir_filter" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_filter", + "type": { + "reference": "stbir_filter" + }, + "declared_type": { + "reference": "stbir_filter" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 630, + "column": 1, + "source_line": "extern int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 630, + "column": 1, + "source_line": "extern int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_filter_callbacks", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * horizontal_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * horizontal_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * horizontal_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * horizontal_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * vertical_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * vertical_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * vertical_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * vertical_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 631, + "column": 1, + "source_line": "extern int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 631, + "column": 1, + "source_line": "extern int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_pixel_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "suby", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 633, + "column": 1, + "source_line": "extern int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 633, + "column": 1, + "source_line": "extern int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_input_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s0", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s0" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t0", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t0" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s1" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t1" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t1" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 634, + "column": 1, + "source_line": "extern int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 634, + "column": 1, + "source_line": "extern int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_output_pixel_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "suby", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 635, + "column": 1, + "source_line": "extern int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 635, + "column": 1, + "source_line": "extern int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_set_non_pm_alpha_speed_over_quality", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "non_pma_alpha_speed_over_quality", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int non_pma_alpha_speed_over_quality" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int non_pma_alpha_speed_over_quality" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 641, + "column": 1, + "source_line": "extern int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 641, + "column": 1, + "source_line": "extern int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_build_samplers", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 653, + "column": 1, + "source_line": "extern int stbir_build_samplers( STBIR_RESIZE * resize );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 653, + "column": 1, + "source_line": "extern int stbir_build_samplers( STBIR_RESIZE * resize );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_free_samplers", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 656, + "column": 1, + "source_line": "extern void stbir_free_samplers( STBIR_RESIZE * resize );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 656, + "column": 1, + "source_line": "extern void stbir_free_samplers( STBIR_RESIZE * resize );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_resize_extended", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 661, + "column": 1, + "source_line": "extern int stbir_resize_extended( STBIR_RESIZE * resize );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 661, + "column": 1, + "source_line": "extern int stbir_resize_extended( STBIR_RESIZE * resize );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_build_samplers_with_splits", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "try_splits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int try_splits" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int try_splits" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 676, + "column": 1, + "source_line": "extern int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 676, + "column": 1, + "source_line": "extern int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbir_resize_extended_split", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "split_start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_start" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "split_count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 689, + "column": 1, + "source_line": "extern int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" + }, + "start": { + "filename": "stb/stb_image_resize2.h", + "line": 689, + "column": 1, + "source_line": "extern int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" + }, + "end": null, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_uint8", + "name": "stbir_uint8", + "type": { + "reference": "uint8_t" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 399, + "column": 1, + "source_line": "typedef uint8_t stbir_uint8;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_uint16", + "name": "stbir_uint16", + "type": { + "reference": "uint16_t" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 400, + "column": 1, + "source_line": "typedef uint16_t stbir_uint16;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_uint32", + "name": "stbir_uint32", + "type": { + "reference": "uint32_t" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 401, + "column": 1, + "source_line": "typedef uint32_t stbir_uint32;" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbir_uint64", + "name": "stbir_uint64", + "type": { + "reference": "uint64_t" + }, + "source_location": { + "filename": "stb/stb_image_resize2.h", + "line": 402, + "column": 1, + "source_line": "typedef uint64_t stbir_uint64;" + }, + "declaration_locations": [] + } + ], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbir_resize_uint8_srgb": { + "name": "stbir_resize_uint8_srgb", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "macro", - "unit_name": "stbir__4_coeff_continue_from_4" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'stbir_uint64'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_type", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 396, + "line": 472, "column": 1, - "source_line": "typedef unsigned __int64 stbir_uint64;" + "source_line": "extern unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", "line": 472, "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + "source_line": "extern unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbir_resize_uint8_linear": { + "name": "stbir_resize_uint8_linear", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_type", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", "line": 476, "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 480, - "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 526, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 606, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 615, - "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 616, - "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ); // no callbacks by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 617, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ); // pass back STBIR_RESIZE* by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 618, - "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 627, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ); // sets new buffer layouts" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 628, - "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ); // CLAMP by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 630, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ); // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 631, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 633, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets both sub-regions (full regions by default)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 634, - "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ); // sets input sub-region (full region by default)" + "source_line": "extern unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 635, + "line": 476, "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ); // sets output sub-region (full region by default)" + "source_line": "extern unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 641, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" + "stbir_resize_float_linear": { + "name": "stbir_resize_float_linear", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_type", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 653, + "line": 480, "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize );" + "source_line": "extern float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 656, + "line": 480, "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize );" + "source_line": "extern float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 661, - "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize );" + "stbir_resize": { + "name": "stbir_resize", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "edge", + "type": { + "reference": "stbir_edge" + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "filter", + "type": { + "reference": "stbir_filter" + }, + "declared_type": { + "reference": "stbir_filter" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 676, + "line": 526, "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" + "source_line": "extern void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 689, + "line": 526, "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" + "source_line": "extern void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 767, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" + "stbir_resize_init": { + "name": "stbir_resize_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 770, + "line": 606, "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize );" + "source_line": "extern void stbir_resize_init( STBIR_RESIZE * resize," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 773, + "line": 606, "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * out_info, STBIR_RESIZE const * resize, int split_start, int split_num );" + "source_line": "extern void stbir_resize_init( STBIR_RESIZE * resize," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1077, - "column": 1, - "source_line": "static stbir__inline int stbir__min(int a, int b)" + "stbir_set_datatypes": { + "name": "stbir_set_datatypes", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_type", + "type": { + "reference": "stbir_datatype" + }, + "declared_type": { + "reference": "stbir_datatype" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 1082, + "line": 615, "column": 1, - "source_line": "static stbir__inline int stbir__max(int a, int b)" + "source_line": "extern void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 1138, + "line": 615, "column": 1, - "source_line": "static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1405, - "column": 3, - "source_line": " static const stbir__simdf STBIR_zeroones = { 0.0f,1.0f,0.0f,1.0f };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1406, - "column": 3, - "source_line": " static const stbir__simdf STBIR_onezeros = { 1.0f,0.0f,1.0f,0.0f };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1481, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s32_32768, 32768);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1482, - "column": 5, - "source_line": " static STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768));" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1679, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x) // martins floorf" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1696, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x) // martins ceilf" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbir_make16x2'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1821, - "column": 7, - "source_line": " static stbir__inline uint8x16x2_t stbir_make16x2(float32x4_t rega,float32x4_t regb)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir_make16x2" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'stbir_make8x2'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1849, - "column": 7, - "source_line": " static stbir__inline uint8x8x2_t stbir_make8x2(float32x4_t reg)" + "source_line": "extern void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir_make8x2" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1940, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 1958, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_UNSUPPORTED_DECLARATION", - "message": "Compiler-specific declaration attributes are not supported yet.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2120, - "column": 3, - "source_line": " typedef float stbir__f32x4 __attribute__((__vector_size__(16), __aligned__(16)));" - }, - "unit_kind": "attribute_declaration", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2130, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_floorf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2139, - "column": 3, - "source_line": " static stbir__inline float stbir_simd_ceilf(float x)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2178, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float_inverted8 = { stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted,stbir__max_uint16_as_float_inverted };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2179, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float_inverted8 = { stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted,stbir__max_uint8_as_float_inverted };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2180, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_ones8 = { 1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2181, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_simd_point58 = { 0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5 };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2182, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint8_as_float8 = { stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float, stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float,stbir__max_uint8_as_float };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__simdf8'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2183, - "column": 3, - "source_line": " static const stbir__simdf8 STBIR_max_uint16_as_float8 = { stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float, stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float,stbir__max_uint16_as_float };" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__simdf8" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2237, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2251, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half(float val)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2301, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2306, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2311, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2316, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2326, - "column": 3, - "source_line": " stbir__inline static void stbir__half_to_float_SIMD(float * output, void const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2380, - "column": 3, - "source_line": " stbir__inline static void stbir__float_to_half_SIMD(void * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2462, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2470, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2478, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2483, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" + "stbir_set_pixel_callbacks": { + "name": "stbir_set_pixel_callbacks", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_cb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_input_callback * input_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_input_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_input_callback * input_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_input_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_cb", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_output_callback * output_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_output_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir_output_callback * output_cb", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir_output_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2490, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" + "line": 616, + "column": 1, + "source_line": "extern void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2497, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" + "line": 616, + "column": 1, + "source_line": "extern void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2504, - "column": 3, - "source_line": " static stbir__inline float stbir__half_to_float( stbir__FP16 h )" + "stbir_set_user_data": { + "name": "stbir_set_user_data", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "user_data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * user_data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2509, - "column": 3, - "source_line": " static stbir__inline stbir__FP16 stbir__float_to_half( float f )" + "line": 617, + "column": 1, + "source_line": "extern void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2516, - "column": 3, - "source_line": " static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)" + "line": 617, + "column": 1, + "source_line": "extern void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2523, - "column": 3, - "source_line": " static stbir__inline void stbir__float_to_half_SIMD(stbir__FP16 * output, float const * input)" + "stbir_set_buffer_ptrs": { + "name": "stbir_set_buffer_ptrs", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void * input_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int input_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void * output_pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int output_stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2566, + "line": 618, "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float, stbir__max_uint8_as_float);" + "source_line": "extern void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2567, + "line": 618, "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float, stbir__max_uint16_as_float);" + "source_line": "extern void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2568, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint8_as_float_inverted, stbir__max_uint8_as_float_inverted);" + "stbir_set_pixel_layouts": { + "name": "stbir_set_pixel_layouts", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "input_pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output_pixel_layout", + "type": { + "reference": "stbir_pixel_layout" + }, + "declared_type": { + "reference": "stbir_pixel_layout" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2569, + "line": 627, "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_max_uint16_as_float_inverted, stbir__max_uint16_as_float_inverted);" + "source_line": "extern int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2571, + "line": 627, "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_simd_point5, 0.5f);" + "source_line": "extern int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDF_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2572, - "column": 1, - "source_line": "static const STBIR__SIMDF_CONST(STBIR_ones, 1.0f);" + "stbir_set_edgemodes": { + "name": "stbir_set_edgemodes", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDF_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_edge", + "type": { + "reference": "stbir_edge" + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_edge", + "type": { + "reference": "stbir_edge" + }, + "declared_type": { + "reference": "stbir_edge" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2573, + "line": 628, "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_zero, (127 - 13) << 23);" + "source_line": "extern int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2574, + "line": 628, "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_almost_one, 0x3f7fffff);" + "source_line": "extern int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbir_set_filters": { + "name": "stbir_set_filters", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_filter", + "type": { + "reference": "stbir_filter" + }, + "declared_type": { + "reference": "stbir_filter" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_filter", + "type": { + "reference": "stbir_filter" + }, + "declared_type": { + "reference": "stbir_filter" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2575, + "line": 630, "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_mantissa_mask, 0xff);" + "source_line": "extern int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__SIMDI_CONST'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 2576, + "line": 630, "column": 1, - "source_line": "static const STBIR__SIMDI_CONST(STBIR_topscale, 0x02000000);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__SIMDI_CONST" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2735, - "column": 3, - "source_line": " STBIRDEF stbir_uint64 __rdtsc();" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_PROFILE_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2740, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" + "source_line": "extern int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_PROFILE_FUNC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_PROFILE_FUNC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2757, - "column": 3, - "source_line": " static stbir__inline stbir_uint64 STBIR_PROFILE_FUNC()" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_PROFILE_FUNC" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbir__inline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 3110, - "column": 1, - "source_line": "stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max)" + "stbir_set_filter_callbacks": { + "name": "stbir_set_filter_callbacks", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbir__inline" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_BUILD_GET_INFO'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * horizontal_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * horizontal_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "horizontal_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * horizontal_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * horizontal_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_filter", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * vertical_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__kernel_callback * vertical_filter", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__kernel_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertical_support", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * vertical_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbir__support_callback * vertical_support", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbir__support_callback" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 3931, + "line": 631, "column": 1, - "source_line": "static void stbir__calculate_filters( stbir__sampler * samp, stbir__sampler * other_axis_for_pivot, void * user_data STBIR_ONLY_PROFILE_BUILD_GET_INFO )" + "source_line": "extern int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 4610, + "line": 631, "column": 1, - "source_line": "static void stbir__decode_scanline(stbir__info const * stbir_info, int n, float * output_buffer STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" + "source_line": "extern int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support );" }, - "unit_kind": "declarator", - "unit_name": null + "end": null, + "declaration_locations": [] }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 6184, - "column": 1, - "source_line": "static void stbir__encode_scanline( stbir__info const * stbir_info, void *output_buffer_data, float * encode_buffer, int row STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" + "stbir_set_pixel_subrect": { + "name": "stbir_set_pixel_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_GET_SPLIT_INFO'.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "suby", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 6236, + "line": 633, "column": 1, - "source_line": "static void stbir__resample_horizontal_gather(stbir__info const * stbir_info, float* output_buffer, float const * input_buffer STBIR_ONLY_PROFILE_GET_SPLIT_INFO )" + "source_line": "extern int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'STBIR_ONLY_PROFILE_BUILD_GET_INFO'.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7048, + "line": 633, "column": 1, - "source_line": "static stbir__info * stbir__alloc_internal_mem_and_build_samplers( stbir__sampler * horizontal, stbir__sampler * vertical, stbir__contributors * conservative, stbir_pixel_layout input_pixel_layout_public, stbir_pixel_layout output_pixel_layout_public, int splits, int new_x, int new_y, int fast_alpha, void * user_data STBIR_ONLY_PROFILE_BUILD_GET_INFO )" + "source_line": "extern int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" }, - "unit_kind": "declarator", - "unit_name": null + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7720, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_init( STBIR_RESIZE * resize," + "stbir_set_input_subrect": { + "name": "stbir_set_input_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s0", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s0" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t0", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t0" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s1" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double s1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "t1", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t1" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double t1" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7739, + "line": 634, "column": 1, - "source_line": "STBIRDEF void stbir_set_datatypes( STBIR_RESIZE * resize, stbir_datatype input_type, stbir_datatype output_type ) // by default, datatype from resize_init" + "source_line": "extern int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7747, + "line": 634, "column": 1, - "source_line": "STBIRDEF void stbir_set_pixel_callbacks( STBIR_RESIZE * resize, stbir_input_callback * input_cb, stbir_output_callback * output_cb ) // no callbacks by default" + "source_line": "extern int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7759, - "column": 1, - "source_line": "STBIRDEF void stbir_set_user_data( STBIR_RESIZE * resize, void * user_data ) // pass back STBIR_RESIZE* by default" + "stbir_set_output_pixel_subrect": { + "name": "stbir_set_output_pixel_subrect", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "suby", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int suby" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subw" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "subh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int subh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7766, + "line": 635, "column": 1, - "source_line": "STBIRDEF void stbir_set_buffer_ptrs( STBIR_RESIZE * resize, const void * input_pixels, int input_stride_in_bytes, void * output_pixels, int output_stride_in_bytes )" + "source_line": "extern int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7777, + "line": 635, "column": 1, - "source_line": "STBIRDEF int stbir_set_edgemodes( STBIR_RESIZE * resize, stbir_edge horizontal_edge, stbir_edge vertical_edge ) // CLAMP by default" + "source_line": "extern int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7785, - "column": 1, - "source_line": "STBIRDEF int stbir_set_filters( STBIR_RESIZE * resize, stbir_filter horizontal_filter, stbir_filter vertical_filter ) // STBIR_DEFAULT_FILTER_UPSAMPLE/DOWNSAMPLE by default" + "stbir_set_non_pm_alpha_speed_over_quality": { + "name": "stbir_set_non_pm_alpha_speed_over_quality", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "non_pma_alpha_speed_over_quality", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int non_pma_alpha_speed_over_quality" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int non_pma_alpha_speed_over_quality" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7793, + "line": 641, "column": 1, - "source_line": "STBIRDEF int stbir_set_filter_callbacks( STBIR_RESIZE * resize, stbir__kernel_callback * horizontal_filter, stbir__support_callback * horizontal_support, stbir__kernel_callback * vertical_filter, stbir__support_callback * vertical_support )" + "source_line": "extern int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7801, + "line": 641, "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_layouts( STBIR_RESIZE * resize, stbir_pixel_layout input_pixel_layout, stbir_pixel_layout output_pixel_layout ) // sets new pixel layouts" + "source_line": "extern int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7810, - "column": 1, - "source_line": "STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality ) // sets alpha speed" + "stbir_build_samplers": { + "name": "stbir_build_samplers", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7817, + "line": 653, "column": 1, - "source_line": "STBIRDEF int stbir_set_input_subrect( STBIR_RESIZE * resize, double s0, double t0, double s1, double t1 ) // sets input region (full region by default)" + "source_line": "extern int stbir_build_samplers( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7835, + "line": 653, "column": 1, - "source_line": "STBIRDEF int stbir_set_output_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets input region (full region by default)" + "source_line": "extern int stbir_build_samplers( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7850, - "column": 1, - "source_line": "STBIRDEF int stbir_set_pixel_subrect( STBIR_RESIZE * resize, int subx, int suby, int subw, int subh ) // sets both regions (full regions by default)" + "stbir_free_samplers": { + "name": "stbir_free_samplers", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7949, + "line": 656, "column": 1, - "source_line": "STBIRDEF void stbir_free_samplers( STBIR_RESIZE * resize )" + "source_line": "extern void stbir_free_samplers( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 7959, + "line": 656, "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int splits )" + "source_line": "extern void stbir_free_samplers( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 7975, - "column": 1, - "source_line": "STBIRDEF int stbir_build_samplers( STBIR_RESIZE * resize )" + "stbir_resize_extended": { + "name": "stbir_resize_extended", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 7980, + "line": 661, "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize )" + "source_line": "extern int stbir_resize_extended( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 8024, + "line": 661, "column": 1, - "source_line": "STBIRDEF int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count )" + "source_line": "extern int stbir_resize_extended( STBIR_RESIZE * resize );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8120, - "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_linear( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + "stbir_build_samplers_with_splits": { + "name": "stbir_build_samplers_with_splits", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "try_splits", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int try_splits" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int try_splits" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8129, + "line": 676, "column": 1, - "source_line": "STBIRDEF unsigned char * stbir_resize_uint8_srgb( const unsigned char *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + "source_line": "extern int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 8139, + "line": 676, "column": 1, - "source_line": "STBIRDEF float * stbir_resize_float_linear( const float *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + "source_line": "extern int stbir_build_samplers_with_splits( STBIR_RESIZE * resize, int try_splits );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8149, - "column": 1, - "source_line": "STBIRDEF void * stbir_resize( const void *input_pixels , int input_w , int input_h, int input_stride_in_bytes," + "stbir_resize_extended_split": { + "name": "stbir_resize_extended_split", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "resize", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBIR_RESIZE * resize", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBIR_RESIZE" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "split_start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_start" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "split_count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int split_count" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8161, + "line": 689, "column": 1, - "source_line": "STBIRDEF void stbir_resize_build_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" + "source_line": "extern int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_resize2.h", - "line": 8179, + "line": 689, "column": 1, - "source_line": "STBIRDEF void stbir_resize_split_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize, int split_start, int split_count )" + "source_line": "extern int stbir_resize_extended_split( STBIR_RESIZE * resize, int split_start, int split_count );" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "end": null, + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": { + "stbir_uint8": { + "reference": "stbir_uint8" }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIRDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8219, - "column": 1, - "source_line": "STBIRDEF void stbir_resize_extended_profile_info( STBIR_PROFILE_INFO * info, STBIR_RESIZE const * resize )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIRDEF" + "stbir_uint16": { + "reference": "stbir_uint16" }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 8293, - "column": 1, - "source_line": "static float * STBIR__CODER_NAME( stbir__decode_uint8_linear_scaled )( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "stbir_uint32": { + "reference": "stbir_uint32" }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbir_uint64": { + "reference": "stbir_uint64" + } + }, + "variables": {}, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_image_resize2.h": [ + "stbir_resize_uint8_srgb", + "stbir_resize_uint8_linear", + "stbir_resize_float_linear", + "stbir_resize", + "stbir_resize_init", + "stbir_set_datatypes", + "stbir_set_pixel_callbacks", + "stbir_set_user_data", + "stbir_set_buffer_ptrs", + "stbir_set_pixel_layouts", + "stbir_set_edgemodes", + "stbir_set_filters", + "stbir_set_filter_callbacks", + "stbir_set_pixel_subrect", + "stbir_set_input_subrect", + "stbir_set_output_pixel_subrect", + "stbir_set_non_pm_alpha_speed_over_quality", + "stbir_build_samplers", + "stbir_free_samplers", + "stbir_resize_extended", + "stbir_build_samplers_with_splits", + "stbir_resize_extended_split" + ] + }, + "enum_constants": { + "STBIR_1CHANNEL": { + "name": "STBIR_1CHANNEL", + "value": "1", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8395, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear_scaled )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_2CHANNEL": { + "name": "STBIR_2CHANNEL", + "value": "2", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8512, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RGB": { + "name": "STBIR_RGB", + "value": "3", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8607, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_BGR": { + "name": "STBIR_BGR", + "value": "0", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8706, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_4CHANNEL": { + "name": "STBIR_4CHANNEL", + "value": "5", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8810, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RGBA": { + "name": "STBIR_RGBA", + "value": "4", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8897, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb4_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_BGRA": { + "name": "STBIR_BGRA", + "value": "6", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8915, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb4_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ARGB": { + "name": "STBIR_ARGB", + "value": "7", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 8984, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint8_srgb2_linearalpha)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ABGR": { + "name": "STBIR_ABGR", + "value": "8", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9009, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_uint8_srgb2_linearalpha )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RA": { + "name": "STBIR_RA", + "value": "9", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9072, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear_scaled)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_AR": { + "name": "STBIR_AR", + "value": "10", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9162, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear_scaled)( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RGBA_PM": { + "name": "STBIR_RGBA_PM", + "value": "11", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9278, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_uint16_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_BGRA_PM": { + "name": "STBIR_BGRA_PM", + "value": "12", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9364, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME(stbir__encode_uint16_linear)( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ARGB_PM": { + "name": "STBIR_ARGB_PM", + "value": "13", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9462, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_half_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ABGR_PM": { + "name": "STBIR_ABGR_PM", + "value": "14", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9549, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_half_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RA_PM": { + "name": "STBIR_RA_PM", + "value": "15", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9633, + "line": 435, "column": 1, - "source_line": "static float * STBIR__CODER_NAME(stbir__decode_float_linear)( float * decodep, int width_times_channels, void const * inputp )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR__CODER_NAME'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_AR_PM": { + "name": "STBIR_AR_PM", + "value": "16", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9737, + "line": 435, "column": 1, - "source_line": "static void STBIR__CODER_NAME( stbir__encode_float_linear )( void * outputp, int width_times_channels, float const * encode )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR__CODER_NAME" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RGBA_NO_AW": { + "name": "STBIR_RGBA_NO_AW", + "value": "11", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 9942, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_scatter_with_,_coeffs)( float ** outputs, float const * vertical_coefficients, float const * input, float const * input_end )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_BGRA_NO_AW": { + "name": "STBIR_BGRA_NO_AW", + "value": "12", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10114, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__vertical_gather_with_,_coeffs)( float * outputp, float const * vertical_coefficients, float const ** inputs, float const * input0_end )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ARGB_NO_AW": { + "name": "STBIR_ARGB_NO_AW", + "value": "13", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10328, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_1_coeff)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_ABGR_NO_AW": { + "name": "STBIR_ABGR_NO_AW", + "value": "14", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10341, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_2_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_RA_NO_AW": { + "name": "STBIR_RA_NO_AW", + "value": "15", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10354, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_3_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_AR_NO_AW": { + "name": "STBIR_AR_NO_AW", + "value": "16", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10367, + "line": 435, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_4_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_EDGE_CLAMP": { + "name": "STBIR_EDGE_CLAMP", + "value": "0", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10380, + "line": 495, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_5_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_EDGE_REFLECT": { + "name": "STBIR_EDGE_REFLECT", + "value": "1", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10394, + "line": 495, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_6_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_EDGE_WRAP": { + "name": "STBIR_EDGE_WRAP", + "value": "2", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10408, + "line": 495, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_7_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_EDGE_ZERO": { + "name": "STBIR_EDGE_ZERO", + "value": "3", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10424, + "line": 495, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_8_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_DEFAULT": { + "name": "STBIR_FILTER_DEFAULT", + "value": "0", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10438, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_9_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_BOX": { + "name": "STBIR_FILTER_BOX", + "value": "1", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10453, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_10_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_TRIANGLE": { + "name": "STBIR_FILTER_TRIANGLE", + "value": "2", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10468, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_11_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_CUBICBSPLINE": { + "name": "STBIR_FILTER_CUBICBSPLINE", + "value": "3", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10484, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_12_coeffs)( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_CATMULLROM": { + "name": "STBIR_FILTER_CATMULLROM", + "value": "4", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10499, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod0 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_MITCHELL": { + "name": "STBIR_FILTER_MITCHELL", + "value": "5", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10521, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod1 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_POINT_SAMPLE": { + "name": "STBIR_FILTER_POINT_SAMPLE", + "value": "6", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10544, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod2 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_FILTER_OTHER": { + "name": "STBIR_FILTER_OTHER", + "value": "7", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10568, + "line": 503, "column": 1, - "source_line": "static void STBIR_chans( stbir__horizontal_gather_,_channels_with_n_coeffs_mod3 )( float * output_buffer, unsigned int output_sub_size, float const * decode_buffer, stbir__contributors const * horizontal_contributors, float const * horizontal_coefficients, int coefficient_width )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_TYPE_UINT8": { + "name": "STBIR_TYPE_UINT8", + "value": "0", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10593, + "line": 515, "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_with_n_coeffs_funcs)[4]=" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBIR_chans'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBIR_TYPE_UINT8_SRGB": { + "name": "STBIR_TYPE_UINT8_SRGB", + "value": "1", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 10601, + "line": 515, "column": 1, - "source_line": "static stbir__horizontal_gather_channels_func * STBIR_chans(stbir__horizontal_gather_,_channels_funcs)[12]=" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIR_chans" + "source_line": "typedef enum" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint8'.", - "severity": "error", - "location": { + "STBIR_TYPE_UINT8_SRGB_ALPHA": { + "name": "STBIR_TYPE_UINT8_SRGB_ALPHA", + "value": "2", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 399, + "line": 515, "column": 1, - "source_line": "typedef uint8_t stbir_uint8;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint8" + "source_line": "typedef enum" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint16'.", - "severity": "error", - "location": { + "STBIR_TYPE_UINT16": { + "name": "STBIR_TYPE_UINT16", + "value": "3", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 400, + "line": 515, "column": 1, - "source_line": "typedef uint16_t stbir_uint16;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint16" + "source_line": "typedef enum" + } }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir_uint32'.", - "severity": "error", - "location": { + "STBIR_TYPE_FLOAT": { + "name": "STBIR_TYPE_FLOAT", + "value": "4", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 401, + "line": 515, "column": 1, - "source_line": "typedef uint32_t stbir_uint32;" - }, - "unit_kind": "typedef", - "unit_name": "stbir_uint32" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir__FP16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2221, - "column": 3, - "source_line": " typedef float16_t stbir__FP16;" - }, - "unit_kind": "typedef", - "unit_name": "stbir__FP16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbir__FP16'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_resize2.h", - "line": 2226, - "column": 3, - "source_line": " typedef union stbir__FP16" - }, - "unit_kind": "typedef", - "unit_name": "stbir__FP16" + "source_line": "typedef enum" + } }, - { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'stbir_overlapping_memcpy'.", - "severity": "error", - "location": { + "STBIR_TYPE_HALF_FLOAT": { + "name": "STBIR_TYPE_HALF_FLOAT", + "value": "5", + "source_location": { "filename": "stb/stb_image_resize2.h", - "line": 2840, + "line": 515, "column": 1, - "source_line": "static void stbir_overlapping_memcpy( void * dest, void const * src, size_t bytes )" - }, - "unit_kind": "function", - "unit_name": "stbir_overlapping_memcpy" + "source_line": "typedef enum" + } } - ] + }, + "include_graph": { + "stb/stb_image_resize2.h": [] + }, + "system_includes": { + "stb/stb_image_resize2.h": [] + }, + "unresolved_includes": { + "stb/stb_image_resize2.h": [] + }, + "header_source_pairs": { + "stb/stb_image_resize2.h": [] + }, + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_image_write.json b/tests/parser/c/fixtures/stb/stb_image_write.json index f6e4a8d59..2934756c3 100644 --- a/tests/parser/c/fixtures/stb/stb_image_write.json +++ b/tests/parser/c/fixtures/stb/stb_image_write.json @@ -3,23 +3,25 @@ "stb/stb_image_write.h": { "filename": "stb/stb_image_write.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_image_write.h" + ], "functions": [ { - "name": "stbi__start_write_callbacks", + "name": "stbi_write_png", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -27,217 +29,18 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi__write_context", - "name": "stbi__write_context", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "func", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_write_func *func", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbi_write_func", - "name": "stbi_write_func", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef void stbi_write_func(void *context, void *data, int size)", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameter_types": [ - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 187, - "column": 1, - "source_line": "typedef void stbi_write_func(void *context, void *data, int size);" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 269, - "column": 4, - "source_line": " stbi_write_func *func;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "context", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 270, - "column": 4, - "source_line": " void *context;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char buffer[64]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 271, - "column": 4, - "source_line": " unsigned char buffer[64];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buf_used", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int buf_used" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 272, - "column": 4, - "source_line": " int buf_used;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_image_write.h:267:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 267, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 267, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -245,7 +48,11 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -253,150 +60,46 @@ "callback_policy": null }, { - "name": "c", + "name": "w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_write_func *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_write_func" - } - ] + "source_text": "int w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi_write_func *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_write_func" - } - ] + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "context", + "name": "h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int h" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 276, - "column": 1, - "source_line": "static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 276, - "column": 1, - "source_line": "static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 280, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi__stdio_write", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "context", + "name": "comp", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int comp" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int comp" }, "source_location": null, "callback_policy": null @@ -406,7 +109,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -415,15 +118,17 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -432,8 +137,10 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -441,70 +148,49 @@ "callback_policy": null }, { - "name": "size", + "name": "stride_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int size" + "source_text": "int stride_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int size" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 284, + "line": 176, "column": 1, - "source_line": "static void stbi__stdio_write(void *context, void *data, int size)" + "source_line": "extern int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 284, - "column": 1, - "source_line": "static void stbi__stdio_write(void *context, void *data, int size)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 287, + "line": 176, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__fopen", + "name": "stbi_write_bmp", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "FILE", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int" }, "parameters": [ { @@ -551,11 +237,56 @@ "callback_policy": null }, { - "name": "mode", + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -563,18 +294,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char const *mode", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -582,11 +313,11 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, @@ -595,34 +326,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 304, + "line": 177, "column": 1, - "source_line": "static FILE *stbiw__fopen(char const *filename, char const *mode)" + "source_line": "extern int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 304, - "column": 1, - "source_line": "static FILE *stbiw__fopen(char const *filename, char const *mode)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 330, + "line": 177, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbi__start_write_file", + "name": "stbi_write_tga", "result_type": { "model": "CInt", "qualifiers": [], @@ -630,11 +356,11 @@ }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -642,14 +368,18 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -657,7 +387,11 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -665,11 +399,56 @@ "callback_policy": null }, { - "name": "filename", + "name": "w", "type": { - "model": "CComposedType", + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -677,18 +456,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -696,11 +475,11 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, @@ -709,46 +488,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 332, + "line": 178, "column": 1, - "source_line": "static int stbi__start_write_file(stbi__write_context *s, const char *filename)" + "source_line": "extern int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 332, - "column": 1, - "source_line": "static int stbi__start_write_file(stbi__write_context *s, const char *filename)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 337, + "line": 178, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbi__end_write_file", + "name": "stbi_write_hdr", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -756,14 +530,18 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -771,90 +549,68 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 339, - "column": 1, - "source_line": "static void stbi__end_write_file(stbi__write_context *s)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 339, - "column": 1, - "source_line": "static void stbi__end_write_file(stbi__write_context *s)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 342, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__writefv", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, "source_location": null, "callback_policy": null }, { - "name": "fmt", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const float *data", "components": [ { "model": "CPointer", @@ -862,18 +618,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const float *data", "components": [ { "model": "CPointer", @@ -881,76 +637,54 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const float" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "va_list v", - "name": "va_list", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "va_list" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 349, + "line": 179, "column": 1, - "source_line": "static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v)" + "source_line": "extern int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 349, - "column": 1, - "source_line": "static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 376, + "line": 179, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__writef", + "name": "stbi_write_jpg", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -958,14 +692,18 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -973,7 +711,11 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -981,11 +723,56 @@ "callback_policy": null }, { - "name": "fmt", + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -993,18 +780,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -1012,130 +799,69 @@ "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const void" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": true, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 378, - "column": 1, - "source_line": "static void stbiw__writef(stbi__write_context *s, const char *fmt, ...)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 378, - "column": 1, - "source_line": "static void stbiw__writef(stbi__write_context *s, const char *fmt, ...)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 384, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__write_flush", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "quality", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int quality" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int quality" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 386, + "line": 180, "column": 1, - "source_line": "static void stbiw__write_flush(stbi__write_context *s)" + "source_line": "extern int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 386, - "column": 1, - "source_line": "static void stbiw__write_flush(stbi__write_context *s)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 392, + "line": 180, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__putc", + "name": "stbi_write_png_to_func", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "func", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1143,14 +869,77 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbi_write_func", + "name": "stbi_write_func", + "type": { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "typedef void stbi_write_func(void *context, void *data, int size)", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + }, + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 187, + "column": 1, + "source_line": "typedef void stbi_write_func(void *context, void *data, int size);" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1158,7 +947,7 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, @@ -1166,62 +955,11 @@ "callback_policy": null }, { - "name": "c", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 394, - "column": 1, - "source_line": "static void stbiw__putc(stbi__write_context *s, unsigned char c)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 394, - "column": 1, - "source_line": "static void stbiw__putc(stbi__write_context *s, unsigned char c)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 397, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__write1", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", + "name": "context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -1229,14 +967,16 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -1244,7 +984,9 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -1252,178 +994,145 @@ "callback_policy": null }, { - "name": "a", + "name": "w", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char a" + "source_text": "int w" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char a" + "source_text": "int w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 399, - "column": 1, - "source_line": "static void stbiw__write1(stbi__write_context *s, unsigned char a)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 399, - "column": 1, - "source_line": "static void stbiw__write1(stbi__write_context *s, unsigned char a)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 404, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__write3", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "s", + "name": "h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] + "source_text": "int h" }, "source_location": null, "callback_policy": null }, { - "name": "a", + "name": "comp", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char a" + "source_text": "int comp" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char a" + "source_text": "int comp" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "data", "type": { - "model": "CUnsignedChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char b" + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "declared_type": { - "model": "CUnsignedChar", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char b" + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "stride_in_bytes", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char c" + "source_text": "int stride_in_bytes" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char c" + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 406, + "line": 189, "column": 1, - "source_line": "static void stbiw__write3(stbi__write_context *s, unsigned char a, unsigned char b, unsigned char c)" + "source_line": "extern int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 406, - "column": 1, - "source_line": "static void stbiw__write3(stbi__write_context *s, unsigned char a, unsigned char b, unsigned char c)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 416, + "line": 189, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__write_pixel", + "name": "stbi_write_bmp_to_func", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "func", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1431,14 +1140,14 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1446,7 +1155,7 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, @@ -1454,71 +1163,95 @@ "callback_policy": null }, { - "name": "rgb_dir", + "name": "context", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int rgb_dir" + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int rgb_dir" + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "comp", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int comp" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int comp" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "write_alpha", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int write_alpha" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int write_alpha" + "source_text": "int h" }, "source_location": null, "callback_policy": null }, { - "name": "expand_mono", + "name": "comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int expand_mono" + "source_text": "int comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int expand_mono" + "source_text": "int comp" }, "source_location": null, "callback_policy": null }, { - "name": "d", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *d", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -1526,16 +1259,18 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *d", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -1543,9 +1278,11 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -1554,46 +1291,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 418, + "line": 190, "column": 1, - "source_line": "static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d)" + "source_line": "extern int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 418, - "column": 1, - "source_line": "static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 449, + "line": 190, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__write_pixels", + "name": "stbi_write_tga_to_func", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "s", + "name": "func", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1601,14 +1333,14 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1616,7 +1348,7 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, @@ -1624,61 +1356,70 @@ "callback_policy": null }, { - "name": "rgb_dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vdir", + "name": "context", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int vdir" + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int vdir" + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int w" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y" + "source_text": "int h" }, "source_location": null, "callback_policy": null @@ -1703,7 +1444,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -1712,15 +1453,17 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -1729,89 +1472,41 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "write_alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline_pad", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scanline_pad" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scanline_pad" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "expand_mono", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 451, + "line": 191, "column": 1, - "source_line": "static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono)" + "source_line": "extern int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 451, - "column": 1, - "source_line": "static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 476, + "line": 191, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__outfile", + "name": "stbi_write_hdr_to_func", "result_type": { "model": "CInt", "qualifiers": [], @@ -1819,11 +1514,11 @@ }, "parameters": [ { - "name": "s", + "name": "func", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1831,14 +1526,14 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -1846,7 +1541,7 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, @@ -1854,101 +1549,11 @@ "callback_policy": null }, { - "name": "rgb_dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vdir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "expand_mono", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", + "name": "context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -1965,7 +1570,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -1983,41 +1588,56 @@ "callback_policy": null }, { - "name": "alpha", + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int alpha" + "source_text": "int h" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int alpha" + "source_text": "int h" }, "source_location": null, "callback_policy": null }, { - "name": "pad", + "name": "comp", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int pad" + "source_text": "int comp" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int pad" + "source_text": "int comp" }, "source_location": null, "callback_policy": null }, { - "name": "fmt", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const float *data", "components": [ { "model": "CPointer", @@ -2025,18 +1645,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *fmt", + "source_text": "const float *data", "components": [ { "model": "CPointer", @@ -2044,11 +1664,11 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const float" } ] }, @@ -2057,34 +1677,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], - "is_variadic": true, - "is_definition": true, + "is_variadic": false, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 478, + "line": 192, "column": 1, - "source_line": "static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...)" + "source_line": "extern int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 478, - "column": 1, - "source_line": "static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 490, + "line": 192, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbi_write_bmp_core", + "name": "stbi_write_jpg_to_func", "result_type": { "model": "CInt", "qualifiers": [], @@ -2092,11 +1707,11 @@ }, "parameters": [ { - "name": "s", + "name": "func", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -2104,14 +1719,14 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbi__write_context *s", + "source_text": "stbi_write_func *func", "components": [ { "model": "CPointer", @@ -2119,7 +1734,7 @@ "source_text": "" }, { - "reference": "stbi__write_context" + "reference": "stbi_write_func" } ] }, @@ -2127,56 +1742,11 @@ "callback_policy": null }, { - "name": "x", + "name": "context", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *data", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -2185,17 +1755,15 @@ }, { "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void *data", + "source_text": "void *context", "components": [ { "model": "CPointer", @@ -2204,81 +1772,8 @@ }, { "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 492, - "column": 1, - "source_line": "static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 492, - "column": 1, - "source_line": "static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 510, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi_write_tga_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" + "source_text": "void" } ] }, @@ -2335,7 +1830,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -2344,15 +1839,17 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *data", + "source_text": "const void *data", "components": [ { "model": "CPointer", @@ -2361,83 +1858,10 @@ }, { "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 532, - "column": 1, - "source_line": "static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 532, - "column": 1, - "source_line": "static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 609, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__linear_to_rgbe", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "rgbe", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *rgbe", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *rgbe", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -2445,74 +1869,45 @@ "callback_policy": null }, { - "name": "linear", + "name": "quality", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *linear", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int quality" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *linear", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int quality" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 639, + "line": 193, "column": 1, - "source_line": "static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear)" + "source_line": "extern int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 639, - "column": 1, - "source_line": "static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 654, + "line": 193, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbiw__write_run_data", + "name": "stbi_flip_vertically_on_write", "result_type": { "model": "CVoid", "qualifiers": [], @@ -2520,563 +1915,135 @@ }, "parameters": [ { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", + "name": "flip_boolean", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int length" + "source_text": "int flip_boolean" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "databyte", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char databyte" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char databyte" + "source_text": "int flip_boolean" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 656, + "line": 195, "column": 1, - "source_line": "static void stbiw__write_run_data(stbi__write_context *s, int length, unsigned char databyte)" + "source_line": "extern void stbi_flip_vertically_on_write(int flip_boolean);" }, "start": { "filename": "stb/stb_image_write.h", - "line": 656, + "line": 195, "column": 1, - "source_line": "static void stbiw__write_run_data(stbi__write_context *s, int length, unsigned char databyte)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 662, - "column": 1, - "source_line": "}" + "source_line": "extern void stbi_flip_vertically_on_write(int flip_boolean);" }, + "end": null, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [ { - "name": "stbiw__write_dump_data", - "result_type": { - "model": "CVoid", + "name": "stbi_write_tga_with_rle", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "extern int stbi_write_tga_with_rle" }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], "storage": [ - "static" + "extern" ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image_write.h", - "line": 664, - "column": 1, - "source_line": "static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 664, - "column": 1, - "source_line": "static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 670, + "line": 170, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_tga_with_rle;" }, + "callback_policy": null, "declaration_locations": [] }, { - "name": "stbiw__write_hdr_scanline", - "result_type": { - "model": "CVoid", + "name": "stbi_write_png_compression_level", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "extern int stbi_write_png_compression_level" }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ncomp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scratch", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *scratch", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *scratch", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], "storage": [ - "static" + "extern" ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image_write.h", - "line": 672, - "column": 1, - "source_line": "static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 672, - "column": 1, - "source_line": "static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 759, + "line": 171, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_png_compression_level;" }, + "callback_policy": null, "declaration_locations": [] }, { - "name": "stbi_write_hdr_core", - "result_type": { + "name": "stbi_write_force_png_filter", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "extern int stbi_write_force_png_filter" }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], "storage": [ - "static" + "extern" ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_image_write.h", - "line": 761, - "column": 1, - "source_line": "static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, float *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 761, - "column": 1, - "source_line": "static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, float *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 785, + "line": 172, "column": 1, - "source_line": "}" + "source_line": "extern int stbi_write_force_png_filter;" }, + "callback_policy": null, "declaration_locations": [] - }, + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbi_write_png": { + "name": "stbi_write_png", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "stbiw__sbgrowf", - "result_type": { + "name": "filename", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -3084,126 +2051,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, - "parameters": [ - { - "name": "arr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void **arr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void **arr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "increment", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int increment" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int increment" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "itemsize", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int itemsize" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int itemsize" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 826, - "column": 1, - "source_line": "static void *stbiw__sbgrowf(void **arr, int increment, int itemsize)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 826, - "column": 1, - "source_line": "static void *stbiw__sbgrowf(void **arr, int increment, int itemsize)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 837, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbiw__zlib_flushf", - "result_type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char", + "source_text": "char const *filename", "components": [ { "model": "CPointer", @@ -3211,11370 +2070,1946 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitbuffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned int *bitbuffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned int *bitbuffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitcount", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitcount", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitcount", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 839, - "column": 1, - "source_line": "static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 839, - "column": 1, - "source_line": "static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount)" + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 847, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__zlib_bitrev", - "result_type": { + "name": "h", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int h" }, - "parameters": [ - { - "name": "code", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int code" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int code" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "codebits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int codebits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int codebits" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 849, - "column": 1, - "source_line": "static int stbiw__zlib_bitrev(int code, int codebits)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 849, - "column": 1, - "source_line": "static int stbiw__zlib_bitrev(int code, int codebits)" + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 857, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__zlib_countm", - "result_type": { - "model": "CUnsignedInt", + "name": "data", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 859, - "column": 1, - "source_line": "static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 859, - "column": 1, - "source_line": "static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 865, - "column": 1, - "source_line": "}" + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__zhash", - "result_type": { - "model": "CUnsignedInt", + "name": "stride_in_bytes", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "int stride_in_bytes" }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 176, + "column": 1, + "source_line": "extern int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" + }, + "start": { + "filename": "stb/stb_image_write.h", + "line": 176, + "column": 1, + "source_line": "extern int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_write_bmp": { + "name": "stbi_write_bmp", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 867, - "column": 1, - "source_line": "static unsigned int stbiw__zhash(unsigned char *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 867, - "column": 1, - "source_line": "static unsigned int stbiw__zhash(unsigned char *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 877, - "column": 1, - "source_line": "}" + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__crc32", - "result_type": { - "model": "CUnsignedInt", + "name": "w", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "int w" }, - "parameters": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1024, - "column": 1, - "source_line": "static unsigned int stbiw__crc32(unsigned char *buffer, int len)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1024, - "column": 1, - "source_line": "static unsigned int stbiw__crc32(unsigned char *buffer, int len)" + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1071, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__wpcrc", - "result_type": { - "model": "CVoid", + "name": "comp", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int comp" }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned char **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 177, + "column": 1, + "source_line": "extern int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" + }, + "start": { + "filename": "stb/stb_image_write.h", + "line": 177, + "column": 1, + "source_line": "extern int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_write_tga": { + "name": "stbi_write_tga", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int len" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int len" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1077, - "column": 1, - "source_line": "static void stbiw__wpcrc(unsigned char **data, int len)" + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1077, - "column": 1, - "source_line": "static void stbiw__wpcrc(unsigned char **data, int len)" + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1081, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__paeth", - "result_type": { - "model": "CUnsignedChar", + "name": "h", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "int h" }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1083, - "column": 1, - "source_line": "static unsigned char stbiw__paeth(int a, int b, int c)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1083, - "column": 1, - "source_line": "static unsigned char stbiw__paeth(int a, int b, int c)" + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1089, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__encode_png_line", - "result_type": { - "model": "CVoid", + "name": "data", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter_type", - "type": { - "model": "CInt", + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int filter_type" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int filter_type" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "line_buffer", - "type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 178, + "column": 1, + "source_line": "extern int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" + }, + "start": { + "filename": "stb/stb_image_write.h", + "line": 178, + "column": 1, + "source_line": "extern int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_write_hdr": { + "name": "stbi_write_hdr", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "signed char *line_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "signed char *line_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1092, - "column": 1, - "source_line": "static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer)" + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1092, - "column": 1, - "source_line": "static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer)" + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1126, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__jpg_writeBits", - "result_type": { - "model": "CVoid", + "name": "h", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int h" }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitBufP", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBufP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBufP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitCntP", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCntP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCntP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short *bs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short *bs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1253, - "column": 1, - "source_line": "static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) {" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1253, - "column": 1, - "source_line": "static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) {" + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1268, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__jpg_DCT", - "result_type": { - "model": "CVoid", + "name": "data", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "d0p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d0p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d0p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1p", - "type": { - "model": "CComposedType", + "source_text": "const float *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d1p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d1p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d2p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d2p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d2p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d3p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d3p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 179, + "column": 1, + "source_line": "extern int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" + }, + "start": { + "filename": "stb/stb_image_write.h", + "line": 179, + "column": 1, + "source_line": "extern int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_write_jpg": { + "name": "stbi_write_jpg", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "filename", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d3p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d4p", - "type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *filename", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d4p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d4p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d5p", - "type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d5p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "quality", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int quality" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int quality" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_image_write.h", + "line": 180, + "column": 1, + "source_line": "extern int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" + }, + "start": { + "filename": "stb/stb_image_write.h", + "line": 180, + "column": 1, + "source_line": "extern int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" + }, + "end": null, + "declaration_locations": [] + }, + "stbi_write_png_to_func": { + "name": "stbi_write_png_to_func", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d5p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d6p", - "type": { - "model": "CComposedType", + { + "reference": "stbi_write_func" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d6p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbi_write_func" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d6p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d7p", - "type": { - "model": "CComposedType", + { + "model": "CVoid", "qualifiers": [], - "source_text": "float *d7p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float *d7p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1270, - "column": 1, - "source_line": "static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) {" + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1270, - "column": 1, - "source_line": "static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) {" + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1316, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__jpg_calcBits", - "result_type": { - "model": "CVoid", + "name": "h", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int h" }, - "parameters": [ - { - "name": "val", - "type": { - "model": "CInt", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int val" + "source_text": "" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bits", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned short bits[2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned short bits[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1318, - "column": 1, - "source_line": "static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1318, - "column": 1, - "source_line": "static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1326, - "column": 1, - "source_line": "}" + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbiw__jpg_processDU", - "result_type": { + "name": "stride_in_bytes", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitBuf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitCnt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCnt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCnt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "CDU", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *CDU", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *CDU", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "du_stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int du_stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int du_stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fdtbl", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *fdtbl", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *fdtbl", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "DC", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int DC" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int DC" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "HTDC", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTDC[256][2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTDC[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "HTAC", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTAC[256][2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTAC[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1328, - "column": 1, - "source_line": "static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt, float *CDU, int du_stride, float *fdtbl, int DC, const unsigned short HTDC[256][2], const unsigned short HTAC[256][2]) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1328, - "column": 1, - "source_line": "static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt, float *CDU, int du_stride, float *fdtbl, int DC, const unsigned short HTDC[256][2], const unsigned short HTAC[256][2]) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1396, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbi_write_jpg_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void * data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void * data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "quality", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int quality" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int quality" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1398, - "column": 1, - "source_line": "static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1398, - "column": 1, - "source_line": "static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1605, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_image_write.h:267:1" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "stbi_write_func" - }, - { - "reference": "stbi__write_context" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbiw_uint32", - "name": "stbiw_uint32", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "typedef unsigned int stbiw_uint32" - }, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 346, - "column": 1, - "source_line": "typedef unsigned int stbiw_uint32;" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_image_write_test", - "name": "stb_image_write_test", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 : -1]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "sizeof(stbiw_uint32)==4 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 347, - "column": 1, - "source_line": "typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 : -1];" - }, - "declaration_locations": [] - } - ], - "variables": [ - { - "name": "stbi_write_png_compression_level", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_png_compression_level" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "8" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 251, - "column": 1, - "source_line": "static int stbi_write_png_compression_level = 8;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi_write_tga_with_rle", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_tga_with_rle" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 252, - "column": 1, - "source_line": "static int stbi_write_tga_with_rle = 1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi_write_force_png_filter", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_force_png_filter" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "-1" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 253, - "column": 1, - "source_line": "static int stbi_write_force_png_filter = -1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbi__flip_vertically_on_write", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__flip_vertically_on_write" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 260, - "column": 1, - "source_line": "static int stbi__flip_vertically_on_write = 0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbiw__jpg_ZigZag", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const unsigned char stbiw__jpg_ZigZag[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,\n 24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1250, - "column": 1, - "source_line": "static const unsigned char stbiw__jpg_ZigZag[] = { 0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18," - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "INCLUDE_STB_IMAGE_WRITE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 152, - "column": 1, - "source_line": "#define INCLUDE_STB_IMAGE_WRITE_H" - } - }, - { - "name": "STBIWDEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 159, - "column": 1, - "source_line": "#define STBIWDEF static" - } - }, - { - "name": "STBIWDEF", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 162, - "column": 1, - "source_line": "#define STBIWDEF extern \"C\"" - } - }, - { - "name": "STBIWDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 164, - "column": 1, - "source_line": "#define STBIWDEF extern" - } - }, - { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 203, - "column": 4, - "source_line": " #define _CRT_SECURE_NO_WARNINGS" - } - }, - { - "name": "_CRT_NONSTDC_NO_DEPRECATE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 206, - "column": 4, - "source_line": " #define _CRT_NONSTDC_NO_DEPRECATE" - } - }, - { - "name": "STBIW_MALLOC", - "value": "malloc(sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 228, - "column": 1, - "source_line": "#define STBIW_MALLOC(sz) malloc(sz)" - } - }, - { - "name": "STBIW_REALLOC", - "value": "realloc(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 229, - "column": 1, - "source_line": "#define STBIW_REALLOC(p,newsz) realloc(p,newsz)" - } - }, - { - "name": "STBIW_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 230, - "column": 1, - "source_line": "#define STBIW_FREE(p) free(p)" - } - }, - { - "name": "STBIW_REALLOC_SIZED", - "value": "STBIW_REALLOC(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 234, - "column": 1, - "source_line": "#define STBIW_REALLOC_SIZED(p,oldsz,newsz) STBIW_REALLOC(p,newsz)" - } - }, - { - "name": "STBIW_MEMMOVE", - "value": "memmove(a,b,sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 239, - "column": 1, - "source_line": "#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz)" - } - }, - { - "name": "STBIW_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 245, - "column": 1, - "source_line": "#define STBIW_ASSERT(x) assert(x)" - } - }, - { - "name": "STBIW_UCHAR", - "value": "(unsigned char) ((x) & 0xff)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 248, - "column": 1, - "source_line": "#define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff)" - } - }, - { - "name": "STBIW_EXTERN", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 291, - "column": 1, - "source_line": "#define STBIW_EXTERN extern \"C\"" - } - }, - { - "name": "STBIW_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 293, - "column": 1, - "source_line": "#define STBIW_EXTERN extern" - } - }, - { - "name": "stbiw__max", - "value": "((a) > (b) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 635, - "column": 1, - "source_line": "#define stbiw__max(a, b) ((a) > (b) ? (a) : (b))" - } - }, - { - "name": "stbiw__sbraw", - "value": "((int *) (void *) (a) - 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 814, - "column": 1, - "source_line": "#define stbiw__sbraw(a) ((int *) (void *) (a) - 2)" - } - }, - { - "name": "stbiw__sbm", - "value": "stbiw__sbraw(a)[0]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 815, - "column": 1, - "source_line": "#define stbiw__sbm(a) stbiw__sbraw(a)[0]" - } - }, - { - "name": "stbiw__sbn", - "value": "stbiw__sbraw(a)[1]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 816, - "column": 1, - "source_line": "#define stbiw__sbn(a) stbiw__sbraw(a)[1]" - } - }, - { - "name": "stbiw__sbneedgrow", - "value": "((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 818, - "column": 1, - "source_line": "#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))" - } - }, - { - "name": "stbiw__sbmaybegrow", - "value": "(stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 819, - "column": 1, - "source_line": "#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)" - } - }, - { - "name": "stbiw__sbgrow", - "value": "stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 820, - "column": 1, - "source_line": "#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))" - } - }, - { - "name": "stbiw__sbpush", - "value": "(stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 822, - "column": 1, - "source_line": "#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))" - } - }, - { - "name": "stbiw__sbcount", - "value": "((a) ? stbiw__sbn(a) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 823, - "column": 1, - "source_line": "#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0)" - } - }, - { - "name": "stbiw__sbfree", - "value": "((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 824, - "column": 1, - "source_line": "#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)" - } - }, - { - "name": "stbiw__zlib_flush", - "value": "(out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 879, - "column": 1, - "source_line": "#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))" - } - }, - { - "name": "stbiw__zlib_add", - "value": "(bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush())", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 880, - "column": 1, - "source_line": "#define stbiw__zlib_add(code,codebits) \\" - } - }, - { - "name": "stbiw__zlib_huffa", - "value": "stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 882, - "column": 1, - "source_line": "#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)" - } - }, - { - "name": "stbiw__zlib_huff1", - "value": "stbiw__zlib_huffa(0x30 + (n), 8)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 884, - "column": 1, - "source_line": "#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8)" - } - }, - { - "name": "stbiw__zlib_huff2", - "value": "stbiw__zlib_huffa(0x190 + (n)-144, 9)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 885, - "column": 1, - "source_line": "#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9)" - } - }, - { - "name": "stbiw__zlib_huff3", - "value": "stbiw__zlib_huffa(0 + (n)-256,7)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 886, - "column": 1, - "source_line": "#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7)" - } - }, - { - "name": "stbiw__zlib_huff4", - "value": "stbiw__zlib_huffa(0xc0 + (n)-280,8)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 887, - "column": 1, - "source_line": "#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8)" - } - }, - { - "name": "stbiw__zlib_huff", - "value": "((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 888, - "column": 1, - "source_line": "#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))" - } - }, - { - "name": "stbiw__zlib_huffb", - "value": "((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 889, - "column": 1, - "source_line": "#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))" - } - }, - { - "name": "stbiw__ZHASH", - "value": "16384", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 891, - "column": 1, - "source_line": "#define stbiw__ZHASH 16384" - } - }, - { - "name": "stbiw__wpng4", - "value": "((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1073, - "column": 1, - "source_line": "#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)" - } - }, - { - "name": "stbiw__wp32", - "value": "stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1074, - "column": 1, - "source_line": "#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));" - } - }, - { - "name": "stbiw__wptag", - "value": "stbiw__wpng4(data, s[0],s[1],s[2],s[3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1075, - "column": 1, - "source_line": "#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3])" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 154, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 211, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 214, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 215, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 216, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 217, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 244, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_IMAGE_WRITE_H", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 151, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_IMAGE_WRITE_H" - } - }, - { - "directive": "ifndef", - "argument": "STBIWDEF", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 157, - "column": 1, - "source_line": "#ifndef STBIWDEF" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_WRITE_STATIC", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 158, - "column": 1, - "source_line": "#ifdef STB_IMAGE_WRITE_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 160, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 161, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 163, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 165, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 166, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 167, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_IMAGE_WRITE_STATIC", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 169, - "column": 1, - "source_line": "#ifndef STB_IMAGE_WRITE_STATIC // C++ forbids static forward declarations" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 173, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 175, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "ifdef", - "argument": "STBIW_WINDOWS_UTF8", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 182, - "column": 1, - "source_line": "#ifdef STBIW_WINDOWS_UTF8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 184, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 185, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 197, - "column": 1, - "source_line": "#endif//INCLUDE_STB_IMAGE_WRITE_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_WRITE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 199, - "column": 1, - "source_line": "#ifdef STB_IMAGE_WRITE_IMPLEMENTATION" - } - }, - { - "directive": "ifdef", - "argument": "_WIN32", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 201, - "column": 1, - "source_line": "#ifdef _WIN32" - } - }, - { - "directive": "ifndef", - "argument": "_CRT_SECURE_NO_WARNINGS", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 202, - "column": 4, - "source_line": " #ifndef _CRT_SECURE_NO_WARNINGS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 204, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "_CRT_NONSTDC_NO_DEPRECATE", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 205, - "column": 4, - "source_line": " #ifndef _CRT_NONSTDC_NO_DEPRECATE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 207, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 208, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 210, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 212, - "column": 1, - "source_line": "#endif // STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "if", - "argument": "defined(STBIW_MALLOC) && defined(STBIW_FREE) && (defined(STBIW_REALLOC) || defined(STBIW_REALLOC_SIZED))", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 219, - "column": 1, - "source_line": "#if defined(STBIW_MALLOC) && defined(STBIW_FREE) && (defined(STBIW_REALLOC) || defined(STBIW_REALLOC_SIZED))" - } - }, - { - "directive": "elif", - "argument": "!defined(STBIW_MALLOC) && !defined(STBIW_FREE) && !defined(STBIW_REALLOC) && !defined(STBIW_REALLOC_SIZED)", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 221, - "column": 1, - "source_line": "#elif !defined(STBIW_MALLOC) && !defined(STBIW_FREE) && !defined(STBIW_REALLOC) && !defined(STBIW_REALLOC_SIZED)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 223, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 225, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIW_MALLOC", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 227, - "column": 1, - "source_line": "#ifndef STBIW_MALLOC" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 231, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIW_REALLOC_SIZED", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 233, - "column": 1, - "source_line": "#ifndef STBIW_REALLOC_SIZED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 235, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIW_MEMMOVE", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 238, - "column": 1, - "source_line": "#ifndef STBIW_MEMMOVE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 240, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBIW_ASSERT", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 243, - "column": 1, - "source_line": "#ifndef STBIW_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 246, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_IMAGE_WRITE_STATIC", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 250, - "column": 1, - "source_line": "#ifdef STB_IMAGE_WRITE_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 254, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 258, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 282, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(STBIW_WINDOWS_UTF8)", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 289, - "column": 1, - "source_line": "#if defined(_WIN32) && defined(STBIW_WINDOWS_UTF8)" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 290, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 292, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 294, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 302, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(STBIW_WINDOWS_UTF8)", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 307, - "column": 1, - "source_line": "#if defined(_WIN32) && defined(STBIW_WINDOWS_UTF8)" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && _MSC_VER >= 1400", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 316, - "column": 1, - "source_line": "#if defined(_MSC_VER) && _MSC_VER >= 1400" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 319, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 321, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "elif", - "argument": "defined(_MSC_VER) && _MSC_VER >= 1400", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 323, - "column": 1, - "source_line": "#elif defined(_MSC_VER) && _MSC_VER >= 1400" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 326, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 328, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 344, - "column": 1, - "source_line": "#endif // !STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 519, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 530, - "column": 1, - "source_line": "#endif //!STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 618, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 629, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 637, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "ifdef", - "argument": "__STDC_LIB_EXT1__", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 773, - "column": 1, - "source_line": "#ifdef __STDC_LIB_EXT1__" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 775, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 777, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 804, - "column": 1, - "source_line": "#endif // STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STBIW_ZLIB_COMPRESS", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 812, - "column": 1, - "source_line": "#ifndef STBIW_ZLIB_COMPRESS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 893, - "column": 1, - "source_line": "#endif // STBIW_ZLIB_COMPRESS" - } - }, - { - "directive": "ifdef", - "argument": "STBIW_ZLIB_COMPRESS", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 897, - "column": 1, - "source_line": "#ifdef STBIW_ZLIB_COMPRESS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 900, - "column": 1, - "source_line": "#else // use builtin" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1021, - "column": 1, - "source_line": "#endif // STBIW_ZLIB_COMPRESS" - } - }, - { - "directive": "ifdef", - "argument": "STBIW_CRC32", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1026, - "column": 1, - "source_line": "#ifdef STBIW_CRC32" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1028, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1070, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1214, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1229, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBI_WRITE_NO_STDIO", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1615, - "column": 1, - "source_line": "#ifndef STBI_WRITE_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1626, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1628, - "column": 1, - "source_line": "#endif // STB_IMAGE_WRITE_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 170, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_with_rle;" - }, - "source_text": "STBIWDEF int stbi_write_tga_with_rle" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 171, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_compression_level;" - }, - "source_text": "STBIWDEF int stbi_write_png_compression_level" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 172, - "column": 1, - "source_line": "STBIWDEF int stbi_write_force_png_filter;" - }, - "source_text": "STBIWDEF int stbi_write_force_png_filter" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 176, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" - }, - "source_text": "STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 177, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" - }, - "source_text": "STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 178, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" - }, - "source_text": "STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 179, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" - }, - "source_text": "STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 180, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" - }, - "source_text": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 183, - "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input);" - }, - "source_text": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 189, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" - }, - "source_text": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 190, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" - }, - "source_text": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 191, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" - }, - "source_text": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 192, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" - }, - "source_text": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 193, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" - }, - "source_text": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 195, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean);" - }, - "source_text": "STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 262, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flag)" - }, - "source_text": "STBIWDEF void stbi_flip_vertically_on_write(int flag)" - }, - { - "name": "STBIW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 295, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" - }, - "source_text": "STBIW_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide)" - }, - { - "name": "STBIW_EXTERN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 296, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" - }, - "source_text": "STBIW_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 298, - "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - "source_text": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 512, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "source_text": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 520, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data)" - }, - "source_text": "STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 611, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "source_text": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 619, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data)" - }, - "source_text": "STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 787, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data)" - }, - "source_text": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 794, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)" - }, - "source_text": "STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 895, - "column": 1, - "source_line": "STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality)" - }, - "source_text": "STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1128, - "column": 1, - "source_line": "STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len)" - }, - "source_text": "STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1215, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes)" - }, - "source_text": "STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1231, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes)" - }, - "source_text": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1607, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)" - }, - "source_text": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)" - }, - { - "name": "STBIWDEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1616, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality)" - }, - "source_text": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 228, - "column": 1, - "source_line": "#define STBIW_MALLOC(sz) malloc(sz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_MALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 229, - "column": 1, - "source_line": "#define STBIW_REALLOC(p,newsz) realloc(p,newsz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 230, - "column": 1, - "source_line": "#define STBIW_FREE(p) free(p)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_REALLOC_SIZED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 234, - "column": 1, - "source_line": "#define STBIW_REALLOC_SIZED(p,oldsz,newsz) STBIW_REALLOC(p,newsz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_REALLOC_SIZED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_MEMMOVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 239, - "column": 1, - "source_line": "#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_MEMMOVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 245, - "column": 1, - "source_line": "#define STBIW_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_UCHAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 248, - "column": 1, - "source_line": "#define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_UCHAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 635, - "column": 1, - "source_line": "#define stbiw__max(a, b) ((a) > (b) ? (a) : (b))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbraw' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 814, - "column": 1, - "source_line": "#define stbiw__sbraw(a) ((int *) (void *) (a) - 2)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbraw" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbm' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 815, - "column": 1, - "source_line": "#define stbiw__sbm(a) stbiw__sbraw(a)[0]" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbm" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbn' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 816, - "column": 1, - "source_line": "#define stbiw__sbn(a) stbiw__sbraw(a)[1]" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbn" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbneedgrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 818, - "column": 1, - "source_line": "#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbneedgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbmaybegrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 819, - "column": 1, - "source_line": "#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbmaybegrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbgrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 820, - "column": 1, - "source_line": "#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbpush' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 822, - "column": 1, - "source_line": "#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbpush" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbcount' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 823, - "column": 1, - "source_line": "#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbcount" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbfree' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 824, - "column": 1, - "source_line": "#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbfree" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_flush' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 879, - "column": 1, - "source_line": "#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_flush" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 880, - "column": 1, - "source_line": "#define stbiw__zlib_add(code,codebits) \\" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huffa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 882, - "column": 1, - "source_line": "#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huffa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 884, - "column": 1, - "source_line": "#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 885, - "column": 1, - "source_line": "#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 886, - "column": 1, - "source_line": "#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 887, - "column": 1, - "source_line": "#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 888, - "column": 1, - "source_line": "#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huffb' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 889, - "column": 1, - "source_line": "#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huffb" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wpng4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1073, - "column": 1, - "source_line": "#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wpng4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wp32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1074, - "column": 1, - "source_line": "#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wp32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wptag' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1075, - "column": 1, - "source_line": "#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3])" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wptag" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 170, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_with_rle;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 171, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_compression_level;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 172, - "column": 1, - "source_line": "STBIWDEF int stbi_write_force_png_filter;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 176, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 177, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 178, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 179, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 180, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 183, - "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 189, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 190, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 191, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 192, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 193, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 195, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 262, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flag)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 295, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 296, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 298, - "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 512, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 520, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 611, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 619, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 787, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 794, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 895, - "column": 1, - "source_line": "STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1128, - "column": 1, - "source_line": "STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1215, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1231, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1607, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1616, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_png_compression_level'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_write.h", - "line": 255, - "column": 1, - "source_line": "int stbi_write_png_compression_level = 8;" - }, - "unit_kind": "variable", - "unit_name": "stbi_write_png_compression_level" - }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_tga_with_rle'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_write.h", - "line": 256, - "column": 1, - "source_line": "int stbi_write_tga_with_rle = 1;" - }, - "unit_kind": "variable", - "unit_name": "stbi_write_tga_with_rle" - }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_force_png_filter'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_write.h", - "line": 257, - "column": 1, - "source_line": "int stbi_write_force_png_filter = -1;" - }, - "unit_kind": "variable", - "unit_name": "stbi_write_force_png_filter" - } - ] - } - }, - "functions": { - "stbi__start_write_callbacks": { - "name": "stbi__start_write_callbacks", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_write_func *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_write_func" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi_write_func *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi_write_func" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "context", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 276, - "column": 1, - "source_line": "static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 276, - "column": 1, - "source_line": "static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 280, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__stdio_write": { - "name": "stbi__stdio_write", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "context", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 284, - "column": 1, - "source_line": "static void stbi__stdio_write(void *context, void *data, int size)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 284, - "column": 1, - "source_line": "static void stbi__stdio_write(void *context, void *data, int size)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__fopen": { - "name": "stbiw__fopen", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "FILE", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mode", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *mode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char const *mode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 304, - "column": 1, - "source_line": "static FILE *stbiw__fopen(char const *filename, char const *mode)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 304, - "column": 1, - "source_line": "static FILE *stbiw__fopen(char const *filename, char const *mode)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 330, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__start_write_file": { - "name": "stbi__start_write_file", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 332, - "column": 1, - "source_line": "static int stbi__start_write_file(stbi__write_context *s, const char *filename)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 332, - "column": 1, - "source_line": "static int stbi__start_write_file(stbi__write_context *s, const char *filename)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 337, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi__end_write_file": { - "name": "stbi__end_write_file", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 339, - "column": 1, - "source_line": "static void stbi__end_write_file(stbi__write_context *s)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 339, - "column": 1, - "source_line": "static void stbi__end_write_file(stbi__write_context *s)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 342, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__writefv": { - "name": "stbiw__writefv", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fmt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "reference": "va_list" - }, - "declared_type": { - "reference": "va_list" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 349, - "column": 1, - "source_line": "static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 349, - "column": 1, - "source_line": "static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 376, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__writef": { - "name": "stbiw__writef", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fmt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": true, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 378, - "column": 1, - "source_line": "static void stbiw__writef(stbi__write_context *s, const char *fmt, ...)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 378, - "column": 1, - "source_line": "static void stbiw__writef(stbi__write_context *s, const char *fmt, ...)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 384, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_flush": { - "name": "stbiw__write_flush", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 386, - "column": 1, - "source_line": "static void stbiw__write_flush(stbi__write_context *s)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 386, - "column": 1, - "source_line": "static void stbiw__write_flush(stbi__write_context *s)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 392, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__putc": { - "name": "stbiw__putc", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 394, - "column": 1, - "source_line": "static void stbiw__putc(stbi__write_context *s, unsigned char c)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 394, - "column": 1, - "source_line": "static void stbiw__putc(stbi__write_context *s, unsigned char c)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 397, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write1": { - "name": "stbiw__write1", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char a" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 399, - "column": 1, - "source_line": "static void stbiw__write1(stbi__write_context *s, unsigned char a)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 399, - "column": 1, - "source_line": "static void stbiw__write1(stbi__write_context *s, unsigned char a)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 404, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write3": { - "name": "stbiw__write3", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char a" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char b" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 406, - "column": 1, - "source_line": "static void stbiw__write3(stbi__write_context *s, unsigned char a, unsigned char b, unsigned char c)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 406, - "column": 1, - "source_line": "static void stbiw__write3(stbi__write_context *s, unsigned char a, unsigned char b, unsigned char c)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 416, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_pixel": { - "name": "stbiw__write_pixel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rgb_dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "write_alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "expand_mono", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *d", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 418, - "column": 1, - "source_line": "static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 418, - "column": 1, - "source_line": "static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 449, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_pixels": { - "name": "stbiw__write_pixels", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rgb_dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vdir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "write_alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int write_alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline_pad", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scanline_pad" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scanline_pad" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "expand_mono", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 451, - "column": 1, - "source_line": "static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 451, - "column": 1, - "source_line": "static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 476, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__outfile": { - "name": "stbiw__outfile", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rgb_dir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rgb_dir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vdir", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vdir" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "expand_mono", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expand_mono" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "alpha", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int alpha" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pad", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pad" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pad" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fmt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": true, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 478, - "column": 1, - "source_line": "static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 478, - "column": 1, - "source_line": "static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 490, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi_write_bmp_core": { - "name": "stbi_write_bmp_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 492, - "column": 1, - "source_line": "static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 492, - "column": 1, - "source_line": "static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 510, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi_write_tga_core": { - "name": "stbi_write_tga_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 532, - "column": 1, - "source_line": "static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 532, - "column": 1, - "source_line": "static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 609, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__linear_to_rgbe": { - "name": "stbiw__linear_to_rgbe", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "rgbe", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *rgbe", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *rgbe", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "linear", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *linear", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *linear", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 639, - "column": 1, - "source_line": "static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 639, - "column": 1, - "source_line": "static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 654, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_run_data": { - "name": "stbiw__write_run_data", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "databyte", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char databyte" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char databyte" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 656, - "column": 1, - "source_line": "static void stbiw__write_run_data(stbi__write_context *s, int length, unsigned char databyte)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 656, - "column": 1, - "source_line": "static void stbiw__write_run_data(stbi__write_context *s, int length, unsigned char databyte)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 662, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_dump_data": { - "name": "stbiw__write_dump_data", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 664, - "column": 1, - "source_line": "static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 664, - "column": 1, - "source_line": "static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 670, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__write_hdr_scanline": { - "name": "stbiw__write_hdr_scanline", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ncomp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ncomp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scratch", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *scratch", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *scratch", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 672, - "column": 1, - "source_line": "static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 672, - "column": 1, - "source_line": "static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 759, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi_write_hdr_core": { - "name": "stbi_write_hdr_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 761, - "column": 1, - "source_line": "static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, float *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 761, - "column": 1, - "source_line": "static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, float *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 785, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__sbgrowf": { - "name": "stbiw__sbgrowf", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "arr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void **arr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void **arr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "increment", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int increment" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int increment" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "itemsize", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int itemsize" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int itemsize" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 826, - "column": 1, - "source_line": "static void *stbiw__sbgrowf(void **arr, int increment, int itemsize)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 826, - "column": 1, - "source_line": "static void *stbiw__sbgrowf(void **arr, int increment, int itemsize)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 837, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__zlib_flushf": { - "name": "stbiw__zlib_flushf", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitbuffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned int *bitbuffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned int *bitbuffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitcount", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitcount", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitcount", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 839, - "column": 1, - "source_line": "static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 839, - "column": 1, - "source_line": "static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 847, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__zlib_bitrev": { - "name": "stbiw__zlib_bitrev", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "code", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int code" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int code" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "codebits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int codebits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int codebits" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 849, - "column": 1, - "source_line": "static int stbiw__zlib_bitrev(int code, int codebits)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 849, - "column": 1, - "source_line": "static int stbiw__zlib_bitrev(int code, int codebits)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 857, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__zlib_countm": { - "name": "stbiw__zlib_countm", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *a", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "limit", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int limit" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 859, - "column": 1, - "source_line": "static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 859, - "column": 1, - "source_line": "static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 865, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__zhash": { - "name": "stbiw__zhash", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 867, - "column": 1, - "source_line": "static unsigned int stbiw__zhash(unsigned char *data)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 867, - "column": 1, - "source_line": "static unsigned int stbiw__zhash(unsigned char *data)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 877, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__crc32": { - "name": "stbiw__crc32", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1024, - "column": 1, - "source_line": "static unsigned int stbiw__crc32(unsigned char *buffer, int len)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1024, - "column": 1, - "source_line": "static unsigned int stbiw__crc32(unsigned char *buffer, int len)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1071, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__wpcrc": { - "name": "stbiw__wpcrc", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1077, - "column": 1, - "source_line": "static void stbiw__wpcrc(unsigned char **data, int len)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1077, - "column": 1, - "source_line": "static void stbiw__wpcrc(unsigned char **data, int len)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1081, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__paeth": { - "name": "stbiw__paeth", - "result_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1083, - "column": 1, - "source_line": "static unsigned char stbiw__paeth(int a, int b, int c)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1083, - "column": 1, - "source_line": "static unsigned char stbiw__paeth(int a, int b, int c)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1089, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__encode_png_line": { - "name": "stbiw__encode_png_line", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "pixels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int stride_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filter_type", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int filter_type" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int filter_type" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "line_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *line_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "signed char *line_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "signed char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1092, - "column": 1, - "source_line": "static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer)" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1092, - "column": 1, - "source_line": "static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer)" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1126, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__jpg_writeBits": { - "name": "stbiw__jpg_writeBits", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitBufP", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBufP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBufP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitCntP", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCntP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCntP", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short *bs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short *bs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1253, - "column": 1, - "source_line": "static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1253, - "column": 1, - "source_line": "static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1268, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__jpg_DCT": { - "name": "stbiw__jpg_DCT", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "d0p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d0p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d0p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d1p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d1p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d1p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d2p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d2p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d2p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d3p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d3p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d3p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d4p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d4p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d4p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d5p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d5p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d5p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d6p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d6p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d6p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d7p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d7p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *d7p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1270, - "column": 1, - "source_line": "static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1270, - "column": 1, - "source_line": "static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1316, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__jpg_calcBits": { - "name": "stbiw__jpg_calcBits", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "val", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bits", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned short bits[2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned short bits[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1318, - "column": 1, - "source_line": "static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1318, - "column": 1, - "source_line": "static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1326, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbiw__jpg_processDU": { - "name": "stbiw__jpg_processDU", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitBuf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitBuf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitCnt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCnt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitCnt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "CDU", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *CDU", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *CDU", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "du_stride", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int du_stride" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int du_stride" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fdtbl", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *fdtbl", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *fdtbl", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "DC", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int DC" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int DC" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "HTDC", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTDC[256][2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTDC[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "HTAC", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTAC[256][2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned short HTAC[256][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1328, - "column": 1, - "source_line": "static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt, float *CDU, int du_stride, float *fdtbl, int DC, const unsigned short HTDC[256][2], const unsigned short HTAC[256][2]) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1328, - "column": 1, - "source_line": "static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt, float *CDU, int du_stride, float *fdtbl, int DC, const unsigned short HTDC[256][2], const unsigned short HTAC[256][2]) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1396, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbi_write_jpg_core": { - "name": "stbi_write_jpg_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbi__write_context *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbi__write_context" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "comp", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int comp" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void * data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void * data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "quality", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int quality" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int quality" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1398, - "column": 1, - "source_line": "static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) {" - }, - "start": { - "filename": "stb/stb_image_write.h", - "line": 1398, - "column": 1, - "source_line": "static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) {" - }, - "end": { - "filename": "stb/stb_image_write.h", - "line": 1605, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": {}, - "unions": {}, - "enums": {}, - "typedefs": { - "stbi_write_func": { - "reference": "stbi_write_func" - }, - "stbi__write_context": { - "reference": "stbi__write_context" - }, - "stbiw_uint32": { - "reference": "stbiw_uint32" - }, - "stb_image_write_test": { - "reference": "stb_image_write_test" - } - }, - "variables": { - "stbi_write_png_compression_level": { - "name": "stbi_write_png_compression_level", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_png_compression_level" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "8" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 251, - "column": 1, - "source_line": "static int stbi_write_png_compression_level = 8;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi_write_tga_with_rle": { - "name": "stbi_write_tga_with_rle", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_tga_with_rle" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "1" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 252, - "column": 1, - "source_line": "static int stbi_write_tga_with_rle = 1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi_write_force_png_filter": { - "name": "stbi_write_force_png_filter", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi_write_force_png_filter" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "-1" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 253, - "column": 1, - "source_line": "static int stbi_write_force_png_filter = -1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbi__flip_vertically_on_write": { - "name": "stbi__flip_vertically_on_write", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbi__flip_vertically_on_write" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "0" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 260, - "column": 1, - "source_line": "static int stbi__flip_vertically_on_write = 0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbiw__jpg_ZigZag": { - "name": "stbiw__jpg_ZigZag", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const unsigned char stbiw__jpg_ZigZag[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,\n 24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1250, - "column": 1, - "source_line": "static const unsigned char stbiw__jpg_ZigZag[] = { 0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18," - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "INCLUDE_STB_IMAGE_WRITE_H": { - "name": "INCLUDE_STB_IMAGE_WRITE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 152, - "column": 1, - "source_line": "#define INCLUDE_STB_IMAGE_WRITE_H" - } - }, - "STBIWDEF": { - "name": "STBIWDEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 164, - "column": 1, - "source_line": "#define STBIWDEF extern" - } - }, - "_CRT_SECURE_NO_WARNINGS": { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 203, - "column": 4, - "source_line": " #define _CRT_SECURE_NO_WARNINGS" - } - }, - "_CRT_NONSTDC_NO_DEPRECATE": { - "name": "_CRT_NONSTDC_NO_DEPRECATE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 206, - "column": 4, - "source_line": " #define _CRT_NONSTDC_NO_DEPRECATE" - } - }, - "STBIW_MALLOC": { - "name": "STBIW_MALLOC", - "value": "malloc(sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 228, - "column": 1, - "source_line": "#define STBIW_MALLOC(sz) malloc(sz)" - } - }, - "STBIW_REALLOC": { - "name": "STBIW_REALLOC", - "value": "realloc(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 229, - "column": 1, - "source_line": "#define STBIW_REALLOC(p,newsz) realloc(p,newsz)" - } - }, - "STBIW_FREE": { - "name": "STBIW_FREE", - "value": "free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 230, - "column": 1, - "source_line": "#define STBIW_FREE(p) free(p)" - } - }, - "STBIW_REALLOC_SIZED": { - "name": "STBIW_REALLOC_SIZED", - "value": "STBIW_REALLOC(p,newsz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 234, - "column": 1, - "source_line": "#define STBIW_REALLOC_SIZED(p,oldsz,newsz) STBIW_REALLOC(p,newsz)" - } - }, - "STBIW_MEMMOVE": { - "name": "STBIW_MEMMOVE", - "value": "memmove(a,b,sz)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 239, - "column": 1, - "source_line": "#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz)" - } - }, - "STBIW_ASSERT": { - "name": "STBIW_ASSERT", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 245, - "column": 1, - "source_line": "#define STBIW_ASSERT(x) assert(x)" - } - }, - "STBIW_UCHAR": { - "name": "STBIW_UCHAR", - "value": "(unsigned char) ((x) & 0xff)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 248, - "column": 1, - "source_line": "#define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff)" - } - }, - "STBIW_EXTERN": { - "name": "STBIW_EXTERN", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 293, - "column": 1, - "source_line": "#define STBIW_EXTERN extern" - } - }, - "stbiw__max": { - "name": "stbiw__max", - "value": "((a) > (b) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 635, - "column": 1, - "source_line": "#define stbiw__max(a, b) ((a) > (b) ? (a) : (b))" - } - }, - "stbiw__sbraw": { - "name": "stbiw__sbraw", - "value": "((int *) (void *) (a) - 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 814, - "column": 1, - "source_line": "#define stbiw__sbraw(a) ((int *) (void *) (a) - 2)" - } - }, - "stbiw__sbm": { - "name": "stbiw__sbm", - "value": "stbiw__sbraw(a)[0]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 815, - "column": 1, - "source_line": "#define stbiw__sbm(a) stbiw__sbraw(a)[0]" - } - }, - "stbiw__sbn": { - "name": "stbiw__sbn", - "value": "stbiw__sbraw(a)[1]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 816, - "column": 1, - "source_line": "#define stbiw__sbn(a) stbiw__sbraw(a)[1]" - } - }, - "stbiw__sbneedgrow": { - "name": "stbiw__sbneedgrow", - "value": "((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 818, - "column": 1, - "source_line": "#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))" - } - }, - "stbiw__sbmaybegrow": { - "name": "stbiw__sbmaybegrow", - "value": "(stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 819, - "column": 1, - "source_line": "#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)" - } - }, - "stbiw__sbgrow": { - "name": "stbiw__sbgrow", - "value": "stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 820, - "column": 1, - "source_line": "#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))" - } - }, - "stbiw__sbpush": { - "name": "stbiw__sbpush", - "value": "(stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 822, - "column": 1, - "source_line": "#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))" - } - }, - "stbiw__sbcount": { - "name": "stbiw__sbcount", - "value": "((a) ? stbiw__sbn(a) : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 823, - "column": 1, - "source_line": "#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0)" - } - }, - "stbiw__sbfree": { - "name": "stbiw__sbfree", - "value": "((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 824, - "column": 1, - "source_line": "#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)" - } - }, - "stbiw__zlib_flush": { - "name": "stbiw__zlib_flush", - "value": "(out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 879, - "column": 1, - "source_line": "#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))" - } - }, - "stbiw__zlib_add": { - "name": "stbiw__zlib_add", - "value": "(bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush())", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 880, - "column": 1, - "source_line": "#define stbiw__zlib_add(code,codebits) \\" - } - }, - "stbiw__zlib_huffa": { - "name": "stbiw__zlib_huffa", - "value": "stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 882, - "column": 1, - "source_line": "#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)" - } - }, - "stbiw__zlib_huff1": { - "name": "stbiw__zlib_huff1", - "value": "stbiw__zlib_huffa(0x30 + (n), 8)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 884, - "column": 1, - "source_line": "#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8)" - } - }, - "stbiw__zlib_huff2": { - "name": "stbiw__zlib_huff2", - "value": "stbiw__zlib_huffa(0x190 + (n)-144, 9)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 885, - "column": 1, - "source_line": "#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9)" - } - }, - "stbiw__zlib_huff3": { - "name": "stbiw__zlib_huff3", - "value": "stbiw__zlib_huffa(0 + (n)-256,7)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 886, - "column": 1, - "source_line": "#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7)" - } - }, - "stbiw__zlib_huff4": { - "name": "stbiw__zlib_huff4", - "value": "stbiw__zlib_huffa(0xc0 + (n)-280,8)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 887, - "column": 1, - "source_line": "#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8)" - } - }, - "stbiw__zlib_huff": { - "name": "stbiw__zlib_huff", - "value": "((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 888, - "column": 1, - "source_line": "#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))" - } - }, - "stbiw__zlib_huffb": { - "name": "stbiw__zlib_huffb", - "value": "((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 889, - "column": 1, - "source_line": "#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))" - } - }, - "stbiw__ZHASH": { - "name": "stbiw__ZHASH", - "value": "16384", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 891, - "column": 1, - "source_line": "#define stbiw__ZHASH 16384" - } - }, - "stbiw__wpng4": { - "name": "stbiw__wpng4", - "value": "((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1073, - "column": 1, - "source_line": "#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)" - } - }, - "stbiw__wp32": { - "name": "stbiw__wp32", - "value": "stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1074, - "column": 1, - "source_line": "#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));" - } - }, - "stbiw__wptag": { - "name": "stbiw__wptag", - "value": "stbiw__wpng4(data, s[0],s[1],s[2],s[3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 1075, - "column": 1, - "source_line": "#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3])" - } - } - }, - "includes": { - "stb/stb_image_write.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 215, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_write.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 211, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_write.h:stdarg.h": { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 214, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_write.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 216, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_write.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_image_write.h", - "line": 217, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_image_write.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, + "source_text": "int stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_image_write.h", - "line": 244, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_image_write.h": [ - "stbi__start_write_callbacks", - "stbi__stdio_write", - "stbiw__fopen", - "stbi__start_write_file", - "stbi__end_write_file", - "stbiw__writefv", - "stbiw__writef", - "stbiw__write_flush", - "stbiw__putc", - "stbiw__write1", - "stbiw__write3", - "stbiw__write_pixel", - "stbiw__write_pixels", - "stbiw__outfile", - "stbi_write_bmp_core", - "stbi_write_tga_core", - "stbiw__linear_to_rgbe", - "stbiw__write_run_data", - "stbiw__write_dump_data", - "stbiw__write_hdr_scanline", - "stbi_write_hdr_core", - "stbiw__sbgrowf", - "stbiw__zlib_flushf", - "stbiw__zlib_bitrev", - "stbiw__zlib_countm", - "stbiw__zhash", - "stbiw__crc32", - "stbiw__wpcrc", - "stbiw__paeth", - "stbiw__encode_png_line", - "stbiw__jpg_writeBits", - "stbiw__jpg_DCT", - "stbiw__jpg_calcBits", - "stbiw__jpg_processDU", - "stbi_write_jpg_core" - ] - }, - "enum_constants": {}, - "include_graph": { - "stb/stb_image_write.h": [] - }, - "system_includes": { - "stb/stb_image_write.h": [ - "assert.h", - "math.h", - "stdarg.h", - "stdio.h", - "stdlib.h", - "string.h" - ] - }, - "unresolved_includes": { - "stb/stb_image_write.h": [] - }, - "header_source_pairs": { - "stb/stb_image_write.h": [] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_MALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 228, - "column": 1, - "source_line": "#define STBIW_MALLOC(sz) malloc(sz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_MALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_REALLOC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 229, - "column": 1, - "source_line": "#define STBIW_REALLOC(p,newsz) realloc(p,newsz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_REALLOC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_FREE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 230, - "column": 1, - "source_line": "#define STBIW_FREE(p) free(p)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_FREE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_REALLOC_SIZED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 234, - "column": 1, - "source_line": "#define STBIW_REALLOC_SIZED(p,oldsz,newsz) STBIW_REALLOC(p,newsz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_REALLOC_SIZED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_MEMMOVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 239, - "column": 1, - "source_line": "#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_MEMMOVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_ASSERT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 245, - "column": 1, - "source_line": "#define STBIW_ASSERT(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_ASSERT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBIW_UCHAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 248, - "column": 1, - "source_line": "#define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff)" - }, - "unit_kind": "macro", - "unit_name": "STBIW_UCHAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 635, - "column": 1, - "source_line": "#define stbiw__max(a, b) ((a) > (b) ? (a) : (b))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__max" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbraw' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 814, - "column": 1, - "source_line": "#define stbiw__sbraw(a) ((int *) (void *) (a) - 2)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbraw" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbm' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 815, - "column": 1, - "source_line": "#define stbiw__sbm(a) stbiw__sbraw(a)[0]" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbm" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbn' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 816, - "column": 1, - "source_line": "#define stbiw__sbn(a) stbiw__sbraw(a)[1]" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbn" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbneedgrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 818, - "column": 1, - "source_line": "#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbneedgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbmaybegrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 819, - "column": 1, - "source_line": "#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbmaybegrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbgrow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 820, - "column": 1, - "source_line": "#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a)))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbgrow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbpush' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 822, - "column": 1, - "source_line": "#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbpush" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbcount' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 823, - "column": 1, - "source_line": "#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbcount" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__sbfree' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 824, - "column": 1, - "source_line": "#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__sbfree" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_flush' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 879, - "column": 1, - "source_line": "#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_flush" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_add' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 880, - "column": 1, - "source_line": "#define stbiw__zlib_add(code,codebits) \\" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_add" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huffa' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 882, - "column": 1, - "source_line": "#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huffa" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 884, - "column": 1, - "source_line": "#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 885, - "column": 1, - "source_line": "#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 886, - "column": 1, - "source_line": "#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 887, - "column": 1, - "source_line": "#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huff' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 888, - "column": 1, - "source_line": "#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huff" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__zlib_huffb' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 889, - "column": 1, - "source_line": "#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n))" - }, - "unit_kind": "macro", - "unit_name": "stbiw__zlib_huffb" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wpng4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1073, - "column": 1, - "source_line": "#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4)" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wpng4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wp32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1074, - "column": 1, - "source_line": "#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v));" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wp32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbiw__wptag' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1075, - "column": 1, - "source_line": "#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3])" - }, - "unit_kind": "macro", - "unit_name": "stbiw__wptag" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 170, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_with_rle;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 171, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_compression_level;" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 172, + "line": 189, "column": 1, - "source_line": "STBIWDEF int stbi_write_force_png_filter;" + "source_line": "extern int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", - "line": 176, + "line": 189, "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);" + "source_line": "extern int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 177, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data);" + "stbi_write_bmp_to_func": { + "name": "stbi_write_bmp_to_func", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_write.h", - "line": 178, + "line": 190, "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data);" + "source_line": "extern int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", - "line": 179, + "line": 190, "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data);" + "source_line": "extern int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 180, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality);" + "stbi_write_tga_to_func": { + "name": "stbi_write_tga_to_func", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_write.h", - "line": 183, + "line": 191, "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input);" + "source_line": "extern int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", - "line": 189, + "line": 191, "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes);" + "source_line": "extern int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 190, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" + "stbi_write_hdr_to_func": { + "name": "stbi_write_hdr_to_func", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const float *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [ + "const" + ], + "source_text": "const float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_write.h", - "line": 191, + "line": 192, "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data);" + "source_line": "extern int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", "line": 192, "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" + "source_line": "extern int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "stbi_write_jpg_to_func": { + "name": "stbi_write_jpg_to_func", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "func", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbi_write_func *func", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbi_write_func" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "comp", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comp" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "quality", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int quality" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int quality" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_write.h", "line": 193, "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 195, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 262, - "column": 1, - "source_line": "STBIWDEF void stbi_flip_vertically_on_write(int flag)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 295, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIW_EXTERN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 296, - "column": 1, - "source_line": "STBIW_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIW_EXTERN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 298, - "column": 1, - "source_line": "STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 512, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 520, - "column": 1, - "source_line": "STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 611, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 619, - "column": 1, - "source_line": "STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 787, - "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data)" + "source_line": "extern int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", - "line": 794, + "line": 193, "column": 1, - "source_line": "STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)" + "source_line": "extern int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 895, - "column": 1, - "source_line": "STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality)" + "stbi_flip_vertically_on_write": { + "name": "stbi_flip_vertically_on_write", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "flip_boolean", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flip_boolean" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flip_boolean" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_image_write.h", - "line": 1128, + "line": 195, "column": 1, - "source_line": "STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len)" + "source_line": "extern void stbi_flip_vertically_on_write(int flip_boolean);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_image_write.h", - "line": 1215, + "line": 195, "column": 1, - "source_line": "STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes)" + "source_line": "extern void stbi_flip_vertically_on_write(int flip_boolean);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1231, - "column": 1, - "source_line": "STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes)" + "end": null, + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": { + "stbi_write_tga_with_rle": { + "name": "stbi_write_tga_with_rle", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "extern int stbi_write_tga_with_rle" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "storage": [ + "extern" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image_write.h", - "line": 1607, + "line": 170, "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)" + "source_line": "extern int stbi_write_tga_with_rle;" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBIWDEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_image_write.h", - "line": 1616, - "column": 1, - "source_line": "STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality)" + "stbi_write_png_compression_level": { + "name": "stbi_write_png_compression_level", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "extern int stbi_write_png_compression_level" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBIWDEF" - }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_png_compression_level'.", - "severity": "error", - "location": { + "storage": [ + "extern" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image_write.h", - "line": 255, + "line": 171, "column": 1, - "source_line": "int stbi_write_png_compression_level = 8;" + "source_line": "extern int stbi_write_png_compression_level;" }, - "unit_kind": "variable", - "unit_name": "stbi_write_png_compression_level" + "callback_policy": null, + "declaration_locations": [] }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_tga_with_rle'.", - "severity": "error", - "location": { - "filename": "stb/stb_image_write.h", - "line": 256, - "column": 1, - "source_line": "int stbi_write_tga_with_rle = 1;" + "stbi_write_force_png_filter": { + "name": "stbi_write_force_png_filter", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "extern int stbi_write_force_png_filter" }, - "unit_kind": "variable", - "unit_name": "stbi_write_tga_with_rle" - }, - { - "code": "C_DUPLICATE_VARIABLE_DEFINITION", - "message": "Duplicate definition for variable 'stbi_write_force_png_filter'.", - "severity": "error", - "location": { + "storage": [ + "extern" + ], + "initializer": null, + "bit_width": null, + "source_location": { "filename": "stb/stb_image_write.h", - "line": 257, + "line": 172, "column": 1, - "source_line": "int stbi_write_force_png_filter = -1;" + "source_line": "extern int stbi_write_force_png_filter;" }, - "unit_kind": "variable", - "unit_name": "stbi_write_force_png_filter" + "callback_policy": null, + "declaration_locations": [] } - ] + }, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_image_write.h": [ + "stbi_write_png", + "stbi_write_bmp", + "stbi_write_tga", + "stbi_write_hdr", + "stbi_write_jpg", + "stbi_write_png_to_func", + "stbi_write_bmp_to_func", + "stbi_write_tga_to_func", + "stbi_write_hdr_to_func", + "stbi_write_jpg_to_func", + "stbi_flip_vertically_on_write" + ] + }, + "enum_constants": {}, + "include_graph": { + "stb/stb_image_write.h": [] + }, + "system_includes": { + "stb/stb_image_write.h": [] + }, + "unresolved_includes": { + "stb/stb_image_write.h": [] + }, + "header_source_pairs": { + "stb/stb_image_write.h": [] + }, + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_include.json b/tests/parser/c/fixtures/stb/stb_include.json index 2c1498762..a6ab17d25 100644 --- a/tests/parser/c/fixtures/stb/stb_include.json +++ b/tests/parser/c/fixtures/stb/stb_include.json @@ -3,8 +3,10 @@ "stb/stb_include.h": { "filename": "stb/stb_include.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_include.h" + ], "functions": [ { "name": "stb_include_string", @@ -144,11 +146,11 @@ "callback_policy": null }, { - "name": "filename", + "name": "filename_for_line_directive", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *filename", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -165,7 +167,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *filename", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -229,34 +231,22 @@ "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 184, + "line": 41, "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename, char error[256])" + "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 184, + "line": 41, "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename, char error[256])" + "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, - "end": { - "filename": "stb/stb_include.h", - "line": 251, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 41, - "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stb_include_strings", @@ -421,11 +411,11 @@ "callback_policy": null }, { - "name": "filename", + "name": "filename_for_line_directive", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *filename", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -442,7 +432,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *filename", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -506,34 +496,22 @@ "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 253, + "line": 44, "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename, char error[256])" + "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 253, - "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename, char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 270, + "line": 44, "column": 1, - "source_line": "}" + "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 44, - "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stb_include_file", @@ -719,41 +697,63 @@ "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 272, + "line": 48, "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256])" + "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 272, + "line": 48, "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256])" + "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" }, - "end": { - "filename": "stb/stb_include.h", - "line": 286, - "column": 1, - "source_line": "}" + "end": null, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stb_include_string": { + "name": "stb_include_string", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 48, - "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" - } - ] - }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [ { - "name": "stb_include_load_file", - "result_type": { + "name": "str", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char", + "source_text": "char *str", "components": [ { "model": "CPointer", @@ -767,121 +767,32 @@ } ] }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "plen", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *str", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "size_t *plen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "size_t *plen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "size_t" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 59, - "column": 1, - "source_line": "static char *stb_include_load_file(char *filename, size_t *plen)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 59, - "column": 1, - "source_line": "static char *stb_include_load_file(char *filename, size_t *plen)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 75, - "column": 1, - "source_line": "}" + "source_text": "char" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stb_include_append_include", - "result_type": { + "name": "inject", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "include_info", + "source_text": "char *inject", "components": [ { "model": "CPointer", @@ -889,2505 +800,77 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "include_info", - "name": "include_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 79, - "column": 4, - "source_line": " int offset;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 80, - "column": 4, - "source_line": " int end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 81, - "column": 4, - "source_line": " char *filename;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next_line_after", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_line_after" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 82, - "column": 4, - "source_line": " int next_line_after;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_include.h:77:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_include.h", - "line": 77, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_include.h", - "line": 77, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, - "parameters": [ - { - "name": "array", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *inject", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "path_to_includes", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *path_to_includes", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int len" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CChar", "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "offset", - "type": { - "model": "CInt", + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *path_to_includes", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int offset" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CChar", "qualifiers": [], - "source_text": "int offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "next_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 85, - "column": 1, - "source_line": "static include_info *stb_include_append_include(include_info *array, int len, int offset, int end, char *filename, int next_line)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 85, - "column": 1, - "source_line": "static include_info *stb_include_append_include(include_info *array, int len, int offset, int end, char *filename, int next_line)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 93, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_free_includes", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "array", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 95, - "column": 1, - "source_line": "static void stb_include_free_includes(include_info *array, int len)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 95, - "column": 1, - "source_line": "static void stb_include_free_includes(include_info *array, int len)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 101, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_isspace", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 103, - "column": 1, - "source_line": "static int stb_include_isspace(int ch)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 103, - "column": 1, - "source_line": "static int stb_include_isspace(int ch)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 106, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_find_includes", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "plist", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info **plist", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info **plist", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 109, - "column": 1, - "source_line": "static int stb_include_find_includes(char *text, include_info **plist)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 109, - "column": 1, - "source_line": "static int stb_include_find_includes(char *text, include_info **plist)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 158, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_itoa", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char str[9]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char str[9]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 161, - "column": 1, - "source_line": "static void stb_include_itoa(char str[9], int n)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 161, - "column": 1, - "source_line": "static void stb_include_itoa(char str[9], int n)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 174, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_append", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "curlen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "size_t *curlen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "size_t *curlen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "size_t" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "addstr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *addstr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *addstr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "addlen", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t addlen", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 176, - "column": 1, - "source_line": "static char *stb_include_append(char *str, size_t *curlen, char *addstr, size_t addlen)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 176, - "column": 1, - "source_line": "static char *stb_include_append(char *str, size_t *curlen, char *addstr, size_t addlen)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 182, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_include_preloaded", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inject", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "includes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *includes[][2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *includes[][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 289, - "column": 1, - "source_line": "char *stb_include_preloaded(char *str, char *inject, char *includes[][2], char error[256])" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 289, - "column": 1, - "source_line": "char *stb_include_preloaded(char *str, char *inject, char *includes[][2], char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 292, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_include.h:77:1" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "include_info" - } - ], - "variables": [], - "macros": [ - { - "name": "STB_INCLUDE_STB_INCLUDE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_include.h", - "line": 38, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_INCLUDE_H" - } - } - ], - "includes": [ - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 55, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 56, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 57, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_INCLUDE_STB_INCLUDE_H", - "source_location": { - "filename": "stb/stb_include.h", - "line": 37, - "column": 1, - "source_line": "#ifndef STB_INCLUDE_STB_INCLUDE_H" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 50, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_INCLUDE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_include.h", - "line": 53, - "column": 1, - "source_line": "#ifdef STB_INCLUDE_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STB_INCLUDE_LINE_NONE", - "source_location": { - "filename": "stb/stb_include.h", - "line": 195, - "column": 7, - "source_line": " #ifndef STB_INCLUDE_LINE_NONE" - } - }, - { - "directive": "ifdef", - "argument": "STB_INCLUDE_LINE_GLSL", - "source_location": { - "filename": "stb/stb_include.h", - "line": 196, - "column": 7, - "source_line": " #ifdef STB_INCLUDE_LINE_GLSL" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 198, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_INCLUDE_LINE_GLSL", - "source_location": { - "filename": "stb/stb_include.h", - "line": 203, - "column": 10, - "source_line": " #ifdef STB_INCLUDE_LINE_GLSL" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 205, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 212, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 216, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_INCLUDE_LINE_NONE", - "source_location": { - "filename": "stb/stb_include.h", - "line": 234, - "column": 7, - "source_line": " #ifndef STB_INCLUDE_LINE_NONE" - } - }, - { - "directive": "ifdef", - "argument": "STB_INCLUDE_LINE_GLSL", - "source_location": { - "filename": "stb/stb_include.h", - "line": 238, - "column": 7, - "source_line": " #ifdef STB_INCLUDE_LINE_GLSL" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 240, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 242, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 245, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_include.h", - "line": 288, - "column": 1, - "source_line": "#if 0 // @TODO, GL_ARB_shader_language_include-style system that doesn't touch filesystem" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 293, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 295, - "column": 1, - "source_line": "#endif // STB_INCLUDE_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [], - "diagnostics": [] - } - }, - "functions": { - "stb_include_string": { - "name": "stb_include_string", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inject", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "path_to_includes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 184, - "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename, char error[256])" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 184, - "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename, char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 251, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 41, - "column": 1, - "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" - } - ] - }, - "stb_include_strings": { - "name": "stb_include_strings", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "strs", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **strs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **strs", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inject", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "path_to_includes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 253, - "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename, char error[256])" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 253, - "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename, char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 270, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 44, - "column": 1, - "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" - } - ] - }, - "stb_include_file": { - "name": "stb_include_file", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "inject", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *inject", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "path_to_includes", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *path_to_includes", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char error[256]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 272, - "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256])" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 272, - "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 286, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_include.h", - "line": 48, - "column": 1, - "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" - } - ] - }, - "stb_include_load_file": { - "name": "stb_include_load_file", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "plen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "size_t *plen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "size_t" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "size_t *plen", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "size_t" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 59, - "column": 1, - "source_line": "static char *stb_include_load_file(char *filename, size_t *plen)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 59, - "column": 1, - "source_line": "static char *stb_include_load_file(char *filename, size_t *plen)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 75, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_include_append_include": { - "name": "stb_include_append_include", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "parameters": [ - { - "name": "array", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "filename", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *filename", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "next_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 85, - "column": 1, - "source_line": "static include_info *stb_include_append_include(include_info *array, int len, int offset, int end, char *filename, int next_line)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 85, - "column": 1, - "source_line": "static include_info *stb_include_append_include(include_info *array, int len, int offset, int end, char *filename, int next_line)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 93, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_include_free_includes": { - "name": "stb_include_free_includes", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "array", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "include_info *array", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 95, - "column": 1, - "source_line": "static void stb_include_free_includes(include_info *array, int len)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 95, - "column": 1, - "source_line": "static void stb_include_free_includes(include_info *array, int len)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 101, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_include_isspace": { - "name": "stb_include_isspace", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" + "source_text": "char" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 103, - "column": 1, - "source_line": "static int stb_include_isspace(int ch)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 103, - "column": 1, - "source_line": "static int stb_include_isspace(int ch)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 106, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_include_find_includes": { - "name": "stb_include_find_includes", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "text", + "name": "filename_for_line_directive", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -3404,7 +887,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -3422,11 +905,11 @@ "callback_policy": null }, { - "name": "plist", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "include_info **plist", + "source_text": "char error[256]", "components": [ { "model": "CPointer", @@ -3434,32 +917,30 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CChar", "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "include_info **plist", + "source_text": "char error[256]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "model": "CPointer", + "model": "CChar", "qualifiers": [], - "source_text": "" - }, - { - "reference": "include_info" + "source_text": "char" } ] }, @@ -3467,48 +948,58 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 109, + "line": 41, "column": 1, - "source_line": "static int stb_include_find_includes(char *text, include_info **plist)" + "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 109, - "column": 1, - "source_line": "static int stb_include_find_includes(char *text, include_info **plist)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 158, + "line": 41, "column": 1, - "source_line": "}" + "source_line": "char *stb_include_string(char *str, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, + "end": null, "declaration_locations": [] }, - "stb_include_itoa": { - "name": "stb_include_itoa", + "stb_include_strings": { + "name": "stb_include_strings", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "parameters": [ { - "name": "str", + "name": "strs", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char str[9]", + "source_text": "char **strs", "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], @@ -3524,16 +1015,17 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char str[9]", + "source_text": "char **strs", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "9", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, { "model": "CChar", @@ -3546,74 +1038,26 @@ "callback_policy": null }, { - "name": "n", + "name": "count", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int count" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int count" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_include.h", - "line": 161, - "column": 1, - "source_line": "static void stb_include_itoa(char str[9], int n)" - }, - "start": { - "filename": "stb/stb_include.h", - "line": 161, - "column": 1, - "source_line": "static void stb_include_itoa(char str[9], int n)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 174, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_include_append": { - "name": "stb_include_append", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ + }, { - "name": "str", + "name": "inject", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *str", + "source_text": "char *inject", "components": [ { "model": "CPointer", @@ -3630,7 +1074,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *str", + "source_text": "char *inject", "components": [ { "model": "CPointer", @@ -3648,11 +1092,11 @@ "callback_policy": null }, { - "name": "curlen", + "name": "path_to_includes", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "size_t *curlen", + "source_text": "char *path_to_includes", "components": [ { "model": "CPointer", @@ -3660,14 +1104,16 @@ "source_text": "" }, { - "reference": "size_t" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "size_t *curlen", + "source_text": "char *path_to_includes", "components": [ { "model": "CPointer", @@ -3675,7 +1121,9 @@ "source_text": "" }, { - "reference": "size_t" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, @@ -3683,11 +1131,11 @@ "callback_policy": null }, { - "name": "addstr", + "name": "filename_for_line_directive", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *addstr", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -3704,7 +1152,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *addstr", + "source_text": "char *filename_for_line_directive", "components": [ { "model": "CPointer", @@ -3722,46 +1170,71 @@ "callback_policy": null }, { - "name": "addlen", + "name": "error", "type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "char error[256]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "declared_type": { - "reference": "size_t" + "model": "CComposedType", + "qualifiers": [], + "source_text": "char error[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 176, + "line": 44, "column": 1, - "source_line": "static char *stb_include_append(char *str, size_t *curlen, char *addstr, size_t addlen)" + "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 176, - "column": 1, - "source_line": "static char *stb_include_append(char *str, size_t *curlen, char *addstr, size_t addlen)" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 182, + "line": 44, "column": 1, - "source_line": "}" + "source_line": "char *stb_include_strings(char **strs, int count, char *inject, char *path_to_includes, char *filename_for_line_directive, char error[256]);" }, + "end": null, "declaration_locations": [] }, - "stb_include_preloaded": { - "name": "stb_include_preloaded", + "stb_include_file": { + "name": "stb_include_file", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -3781,11 +1254,11 @@ }, "parameters": [ { - "name": "str", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *str", + "source_text": "char *filename", "components": [ { "model": "CPointer", @@ -3802,7 +1275,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *str", + "source_text": "char *filename", "components": [ { "model": "CPointer", @@ -3859,26 +1332,12 @@ "callback_policy": null }, { - "name": "includes", + "name": "path_to_includes", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *includes[][2]", + "source_text": "char *path_to_includes", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, { "model": "CPointer", "qualifiers": [], @@ -3894,26 +1353,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *includes[][2]", + "source_text": "char *path_to_includes", "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, { "model": "CPointer", "qualifiers": [], @@ -3976,100 +1417,36 @@ "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_include.h", - "line": 289, + "line": 48, "column": 1, - "source_line": "char *stb_include_preloaded(char *str, char *inject, char *includes[][2], char error[256])" + "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" }, "start": { "filename": "stb/stb_include.h", - "line": 289, - "column": 1, - "source_line": "char *stb_include_preloaded(char *str, char *inject, char *includes[][2], char error[256])" - }, - "end": { - "filename": "stb/stb_include.h", - "line": 292, + "line": 48, "column": 1, - "source_line": "}" + "source_line": "char *stb_include_file(char *filename, char *inject, char *path_to_includes, char error[256]);" }, + "end": null, "declaration_locations": [] } }, "structs": {}, "unions": {}, "enums": {}, - "typedefs": { - "include_info": { - "reference": "include_info" - } - }, + "typedefs": {}, "variables": {}, - "macros": { - "STB_INCLUDE_STB_INCLUDE_H": { - "name": "STB_INCLUDE_STB_INCLUDE_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_include.h", - "line": 38, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_INCLUDE_H" - } - } - }, - "includes": { - "stb/stb_include.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 55, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_include.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 56, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_include.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_include.h", - "line": 57, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_include.h": [ "stb_include_string", "stb_include_strings", - "stb_include_file", - "stb_include_load_file", - "stb_include_append_include", - "stb_include_free_includes", - "stb_include_isspace", - "stb_include_find_includes", - "stb_include_itoa", - "stb_include_append", - "stb_include_preloaded" + "stb_include_file" ] }, "enum_constants": {}, @@ -4077,11 +1454,7 @@ "stb/stb_include.h": [] }, "system_includes": { - "stb/stb_include.h": [ - "stdio.h", - "stdlib.h", - "string.h" - ] + "stb/stb_include.h": [] }, "unresolved_includes": { "stb/stb_include.h": [] diff --git a/tests/parser/c/fixtures/stb/stb_leakcheck.json b/tests/parser/c/fixtures/stb/stb_leakcheck.json index 9b219c662..2abc1203e 100644 --- a/tests/parser/c/fixtures/stb/stb_leakcheck.json +++ b/tests/parser/c/fixtures/stb/stb_leakcheck.json @@ -3,8 +3,10 @@ "stb/stb_leakcheck.h": { "filename": "stb/stb_leakcheck.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_leakcheck.h" + ], "functions": [ { "name": "stb_leakcheck_malloc", @@ -29,13 +31,7 @@ { "name": "sz", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t sz", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -102,117 +98,27 @@ "callback_policy": null } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 37, - "column": 1, - "source_line": "void *stb_leakcheck_malloc(size_t sz, const char *file, int line)" - }, - "start": { - "filename": "stb/stb_leakcheck.h", - "line": 37, - "column": 1, - "source_line": "void *stb_leakcheck_malloc(size_t sz, const char *file, int line)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 50, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 146, - "column": 1, - "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" - } - ] - }, - { - "name": "stb_leakcheck_free", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "ptr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 52, + "line": 146, "column": 1, - "source_line": "void stb_leakcheck_free(void *ptr)" + "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 52, - "column": 1, - "source_line": "void stb_leakcheck_free(void *ptr)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 68, + "line": 146, "column": 1, - "source_line": "}" + "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 148, - "column": 1, - "source_line": "extern void stb_leakcheck_free(void *ptr);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stb_leakcheck_realloc", @@ -276,13 +182,7 @@ { "name": "sz", "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t sz", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "size_t" }, "declared_type": { "reference": "size_t" @@ -349,40 +249,30 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 70, + "line": 147, "column": 1, - "source_line": "void *stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line)" + "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 70, + "line": 147, "column": 1, - "source_line": "void *stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line)" + "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 94, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 147, - "column": 1, - "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" - } - ] + "end": null, + "declaration_locations": [] }, { - "name": "stblkck_internal_print", + "name": "stb_leakcheck_free", "result_type": { "model": "CVoid", "qualifiers": [], @@ -390,54 +280,11 @@ }, "parameters": [ { - "name": "reason", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *reason", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *reason", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mi", + "name": "ptr", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *mi", + "source_text": "void *ptr", "components": [ { "model": "CPointer", @@ -445,173 +292,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info", - "name": "stb_leakcheck_malloc_info", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "malloc_info", - "members": [ - { - "name": "file", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *file", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 29, - "column": 4, - "source_line": " const char *file;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int line" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 30, - "column": 4, - "source_line": " int line;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "size", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t size", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 31, - "column": 4, - "source_line": " size_t size;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_leakcheck_malloc_info" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 32, - "column": 4, - "source_line": " stb_leakcheck_malloc_info *next,*prev;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "prev", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *prev", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_leakcheck_malloc_info" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 32, - "column": 4, - "source_line": " stb_leakcheck_malloc_info *next,*prev;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 27, - "column": 1, - "source_line": "struct malloc_info" - } - }, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 25, - "column": 1, - "source_line": "typedef struct malloc_info stb_leakcheck_malloc_info;" - }, - "declaration_locations": [] + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *mi", + "source_text": "void *ptr", "components": [ { "model": "CPointer", @@ -619,7 +309,9 @@ "source_text": "" }, { - "reference": "stb_leakcheck_malloc_info" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -628,580 +320,68 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 96, - "column": 1, - "source_line": "static void stblkck_internal_print(const char *reason, stb_leakcheck_malloc_info *mi)" - }, - "start": { - "filename": "stb/stb_leakcheck.h", - "line": 96, - "column": 1, - "source_line": "static void stblkck_internal_print(const char *reason, stb_leakcheck_malloc_info *mi)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 116, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_leakcheck_dumpmem", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 118, - "column": 1, - "source_line": "void stb_leakcheck_dumpmem(void)" - }, - "start": { - "filename": "stb/stb_leakcheck.h", - "line": 118, - "column": 1, - "source_line": "void stb_leakcheck_dumpmem(void)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 134, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 149, - "column": 1, - "source_line": "extern void stb_leakcheck_dumpmem(void);" - } - ] - } - ], - "structs": [ - { - "reference": "struct malloc_info" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "stb_leakcheck_malloc_info" - } - ], - "variables": [ - { - "name": "mi_head", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stb_leakcheck_malloc_info *mi_head", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_leakcheck_malloc_info" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 35, - "column": 1, - "source_line": "static stb_leakcheck_malloc_info *mi_head;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_LEAKCHECK_IMPLEMENTATION", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 7, - "column": 1, - "source_line": "#undef STB_LEAKCHECK_IMPLEMENTATION // don't implement more than once" - } - }, - { - "name": "malloc", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 11, - "column": 1, - "source_line": "#undef malloc" - } - }, - { - "name": "free", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 12, - "column": 1, - "source_line": "#undef free" - } - }, - { - "name": "realloc", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 13, - "column": 1, - "source_line": "#undef realloc" - } - }, - { - "name": "STB_LEAKCHECK_OUTPUT_PIPE", - "value": "stdout", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 17, - "column": 1, - "source_line": "#define STB_LEAKCHECK_OUTPUT_PIPE stdout" - } - }, - { - "name": "INCLUDE_STB_LEAKCHECK_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 138, - "column": 1, - "source_line": "#define INCLUDE_STB_LEAKCHECK_H" - } - }, - { - "name": "malloc", - "value": "stb_leakcheck_malloc(sz, __FILE__, __LINE__)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 142, - "column": 1, - "source_line": "#define malloc(sz) stb_leakcheck_malloc(sz, __FILE__, __LINE__)" - } - }, - { - "name": "free", - "value": "stb_leakcheck_free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 143, - "column": 1, - "source_line": "#define free(p) stb_leakcheck_free(p)" - } - }, - { - "name": "realloc", - "value": "stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 144, - "column": 1, - "source_line": "#define realloc(p,sz) stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)" - } - } - ], - "includes": [ - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 20, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 21, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 22, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 23, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 24, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 140, - "column": 1, - "source_line": "#include // we want to define the macros *after* stdlib to avoid a slew of errors" - } - } - ], - "raw_directives": [ - { - "directive": "ifdef", - "argument": "STB_LEAKCHECK_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 6, - "column": 1, - "source_line": "#ifdef STB_LEAKCHECK_IMPLEMENTATION" - } - }, - { - "directive": "ifdef", - "argument": "malloc", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 10, - "column": 1, - "source_line": "#ifdef malloc" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 14, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_LEAKCHECK_OUTPUT_PIPE", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 16, - "column": 1, - "source_line": "#ifndef STB_LEAKCHECK_OUTPUT_PIPE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 18, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_LEAKCHECK_SHOWALL", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 57, - "column": 7, - "source_line": " #ifndef STB_LEAKCHECK_SHOWALL" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 66, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_LEAKCHECK_REALLOC_PRESERVE_MALLOC_FILELINE", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 82, - "column": 10, - "source_line": " #ifdef STB_LEAKCHECK_REALLOC_PRESERVE_MALLOC_FILELINE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 84, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 86, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && _MSC_VER < 1900", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 98, - "column": 1, - "source_line": "#if defined(_MSC_VER) && _MSC_VER < 1900 // 1900=VS 2015" - } - }, - { - "directive": "if", - "argument": "_MSC_VER < 1400", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 103, - "column": 4, - "source_line": " #if _MSC_VER < 1400 // before VS 2005" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 105, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 107, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 108, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "__MINGW32__", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 110, - "column": 4, - "source_line": " #ifdef __MINGW32__" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 112, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 114, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 115, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_LEAKCHECK_SHOWALL", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 126, - "column": 4, - "source_line": " #ifdef STB_LEAKCHECK_SHOWALL" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 133, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 135, - "column": 1, - "source_line": "#endif // STB_LEAKCHECK_IMPLEMENTATION" - } - }, - { - "directive": "if", - "argument": "!defined(INCLUDE_STB_LEAKCHECK_H) || !defined(malloc)", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 137, - "column": 1, - "source_line": "#if !defined(INCLUDE_STB_LEAKCHECK_H) || !defined(malloc)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 151, + "line": 148, "column": 1, - "source_line": "#endif // INCLUDE_STB_LEAKCHECK_H" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'malloc' is recorded but not expanded.", - "severity": "warning", - "location": { + "source_line": "extern void stb_leakcheck_free(void *ptr);" + }, + "start": { "filename": "stb/stb_leakcheck.h", - "line": 142, + "line": 148, "column": 1, - "source_line": "#define malloc(sz) stb_leakcheck_malloc(sz, __FILE__, __LINE__)" + "source_line": "extern void stb_leakcheck_free(void *ptr);" }, - "unit_kind": "macro", - "unit_name": "malloc" + "end": null, + "declaration_locations": [] }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'free' is recorded but not expanded.", - "severity": "warning", - "location": { + "name": "stb_leakcheck_dumpmem", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 143, + "line": 149, "column": 1, - "source_line": "#define free(p) stb_leakcheck_free(p)" + "source_line": "extern void stb_leakcheck_dumpmem(void);" }, - "unit_kind": "macro", - "unit_name": "free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'realloc' is recorded but not expanded.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_leakcheck.h", - "line": 144, + "line": 149, "column": 1, - "source_line": "#define realloc(p,sz) stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)" + "source_line": "extern void stb_leakcheck_dumpmem(void);" }, - "unit_kind": "macro", - "unit_name": "realloc" + "end": null, + "declaration_locations": [] } - ] + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] } }, "functions": { @@ -1295,117 +475,27 @@ "callback_policy": null } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 37, - "column": 1, - "source_line": "void *stb_leakcheck_malloc(size_t sz, const char *file, int line)" - }, - "start": { - "filename": "stb/stb_leakcheck.h", - "line": 37, - "column": 1, - "source_line": "void *stb_leakcheck_malloc(size_t sz, const char *file, int line)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 50, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 146, - "column": 1, - "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" - } - ] - }, - "stb_leakcheck_free": { - "name": "stb_leakcheck_free", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "ptr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *ptr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 52, + "line": 146, "column": 1, - "source_line": "void stb_leakcheck_free(void *ptr)" + "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 52, - "column": 1, - "source_line": "void stb_leakcheck_free(void *ptr)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 68, + "line": 146, "column": 1, - "source_line": "}" + "source_line": "extern void * stb_leakcheck_malloc(size_t sz, const char *file, int line);" }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 148, - "column": 1, - "source_line": "extern void stb_leakcheck_free(void *ptr);" - } - ] + "end": null, + "declaration_locations": [] }, "stb_leakcheck_realloc": { "name": "stb_leakcheck_realloc", @@ -1536,40 +626,30 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 70, + "line": 147, "column": 1, - "source_line": "void *stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line)" + "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 70, - "column": 1, - "source_line": "void *stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 94, + "line": 147, "column": 1, - "source_line": "}" + "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 147, - "column": 1, - "source_line": "extern void * stb_leakcheck_realloc(void *ptr, size_t sz, const char *file, int line);" - } - ] + "end": null, + "declaration_locations": [] }, - "stblkck_internal_print": { - "name": "stblkck_internal_print", + "stb_leakcheck_free": { + "name": "stb_leakcheck_free", "result_type": { "model": "CVoid", "qualifiers": [], @@ -1577,30 +657,11 @@ }, "parameters": [ { - "name": "reason", + "name": "ptr", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *reason", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *reason", + "source_text": "void *ptr", "components": [ { "model": "CPointer", @@ -1608,38 +669,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mi", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *mi", - "components": [ - { - "model": "CPointer", + "model": "CVoid", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_leakcheck_malloc_info" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_leakcheck_malloc_info *mi", + "source_text": "void *ptr", "components": [ { "model": "CPointer", @@ -1647,7 +686,9 @@ "source_text": "" }, { - "reference": "stb_leakcheck_malloc_info" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -1656,30 +697,25 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 96, + "line": 148, "column": 1, - "source_line": "static void stblkck_internal_print(const char *reason, stb_leakcheck_malloc_info *mi)" + "source_line": "extern void stb_leakcheck_free(void *ptr);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 96, - "column": 1, - "source_line": "static void stblkck_internal_print(const char *reason, stb_leakcheck_malloc_info *mi)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 116, + "line": 148, "column": 1, - "source_line": "}" + "source_line": "extern void stb_leakcheck_free(void *ptr);" }, + "end": null, "declaration_locations": [] }, "stb_leakcheck_dumpmem": { @@ -1690,221 +726,41 @@ "source_text": "void" }, "parameters": [], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_leakcheck.h", - "line": 118, + "line": 149, "column": 1, - "source_line": "void stb_leakcheck_dumpmem(void)" + "source_line": "extern void stb_leakcheck_dumpmem(void);" }, "start": { "filename": "stb/stb_leakcheck.h", - "line": 118, - "column": 1, - "source_line": "void stb_leakcheck_dumpmem(void)" - }, - "end": { - "filename": "stb/stb_leakcheck.h", - "line": 134, + "line": 149, "column": 1, - "source_line": "}" + "source_line": "extern void stb_leakcheck_dumpmem(void);" }, - "declaration_locations": [ - { - "filename": "stb/stb_leakcheck.h", - "line": 149, - "column": 1, - "source_line": "extern void stb_leakcheck_dumpmem(void);" - } - ] - } - }, - "structs": { - "malloc_info": { - "reference": "struct malloc_info" + "end": null, + "declaration_locations": [] } }, + "structs": {}, "unions": {}, "enums": {}, - "typedefs": { - "stb_leakcheck_malloc_info": { - "reference": "stb_leakcheck_malloc_info" - } - }, - "variables": { - "mi_head": { - "name": "mi_head", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stb_leakcheck_malloc_info *mi_head", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_leakcheck_malloc_info" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 35, - "column": 1, - "source_line": "static stb_leakcheck_malloc_info *mi_head;" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_LEAKCHECK_IMPLEMENTATION": { - "name": "STB_LEAKCHECK_IMPLEMENTATION", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 7, - "column": 1, - "source_line": "#undef STB_LEAKCHECK_IMPLEMENTATION // don't implement more than once" - } - }, - "malloc": { - "name": "malloc", - "value": "stb_leakcheck_malloc(sz, __FILE__, __LINE__)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 142, - "column": 1, - "source_line": "#define malloc(sz) stb_leakcheck_malloc(sz, __FILE__, __LINE__)" - } - }, - "free": { - "name": "free", - "value": "stb_leakcheck_free(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 143, - "column": 1, - "source_line": "#define free(p) stb_leakcheck_free(p)" - } - }, - "realloc": { - "name": "realloc", - "value": "stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 144, - "column": 1, - "source_line": "#define realloc(p,sz) stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)" - } - }, - "STB_LEAKCHECK_OUTPUT_PIPE": { - "name": "STB_LEAKCHECK_OUTPUT_PIPE", - "value": "stdout", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 17, - "column": 1, - "source_line": "#define STB_LEAKCHECK_OUTPUT_PIPE stdout" - } - }, - "INCLUDE_STB_LEAKCHECK_H": { - "name": "INCLUDE_STB_LEAKCHECK_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 138, - "column": 1, - "source_line": "#define INCLUDE_STB_LEAKCHECK_H" - } - } - }, - "includes": { - "stb/stb_leakcheck.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 20, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_leakcheck.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 21, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_leakcheck.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 140, - "column": 1, - "source_line": "#include // we want to define the macros *after* stdlib to avoid a slew of errors" - } - }, - "stb/stb_leakcheck.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 23, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_leakcheck.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_leakcheck.h", - "line": 24, - "column": 1, - "source_line": "#include " - } - } - }, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_leakcheck.h": [ "stb_leakcheck_malloc", - "stb_leakcheck_free", "stb_leakcheck_realloc", - "stblkck_internal_print", + "stb_leakcheck_free", "stb_leakcheck_dumpmem" ] }, @@ -1913,13 +769,7 @@ "stb/stb_leakcheck.h": [] }, "system_includes": { - "stb/stb_leakcheck.h": [ - "assert.h", - "stddef.h", - "stdio.h", - "stdlib.h", - "string.h" - ] + "stb/stb_leakcheck.h": [] }, "unresolved_includes": { "stb/stb_leakcheck.h": [] @@ -1927,45 +777,5 @@ "header_source_pairs": { "stb/stb_leakcheck.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'malloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_leakcheck.h", - "line": 142, - "column": 1, - "source_line": "#define malloc(sz) stb_leakcheck_malloc(sz, __FILE__, __LINE__)" - }, - "unit_kind": "macro", - "unit_name": "malloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_leakcheck.h", - "line": 143, - "column": 1, - "source_line": "#define free(p) stb_leakcheck_free(p)" - }, - "unit_kind": "macro", - "unit_name": "free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'realloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_leakcheck.h", - "line": 144, - "column": 1, - "source_line": "#define realloc(p,sz) stb_leakcheck_realloc(p,sz, __FILE__, __LINE__)" - }, - "unit_kind": "macro", - "unit_name": "realloc" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_perlin.json b/tests/parser/c/fixtures/stb/stb_perlin.json index 6d3141a3c..92a1a63b9 100644 --- a/tests/parser/c/fixtures/stb/stb_perlin.json +++ b/tests/parser/c/fixtures/stb/stb_perlin.json @@ -3,11 +3,13 @@ "stb/stb_perlin.h": { "filename": "stb/stb_perlin.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_perlin.h" + ], "functions": [ { - "name": "stb__perlin_lerp", + "name": "stb_perlin_noise3", "result_type": { "model": "CFloat", "qualifiers": [], @@ -15,227 +17,120 @@ }, "parameters": [ { - "name": "a", + "name": "x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float x" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float b" + "source_text": "float y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float b" + "source_text": "float y" }, "source_location": null, "callback_policy": null }, { - "name": "t", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float t" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 179, - "column": 1, - "source_line": "static float stb__perlin_lerp(float a, float b, float t)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 179, - "column": 1, - "source_line": "static float stb__perlin_lerp(float a, float b, float t)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 182, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__perlin_fastfloor", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", + "name": "z", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float z" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float z" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 184, - "column": 1, - "source_line": "static int stb__perlin_fastfloor(float a)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 184, - "column": 1, - "source_line": "static int stb__perlin_fastfloor(float a)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 188, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb__perlin_grad", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "grad_idx", + "name": "x_wrap", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int grad_idx" + "source_text": "int x_wrap" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int grad_idx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" + "source_text": "int x_wrap" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "y_wrap", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int y_wrap" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int y_wrap" }, "source_location": null, "callback_policy": null }, { - "name": "z", + "name": "z_wrap", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float z" + "source_text": "int z_wrap" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float z" + "source_text": "int z_wrap" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 191, + "line": 80, "column": 1, - "source_line": "static float stb__perlin_grad(int grad_idx, float x, float y, float z)" + "source_line": "extern float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 191, - "column": 1, - "source_line": "static float stb__perlin_grad(int grad_idx, float x, float y, float z)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 211, + "line": 80, "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap);" }, + "end": null, "declaration_locations": [] }, { - "name": "stb_perlin_noise3_internal", + "name": "stb_perlin_noise3_seed", "result_type": { "model": "CFloat", "qualifiers": [], @@ -335,46 +230,43 @@ { "name": "seed", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char seed" + "source_text": "int seed" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char seed" + "source_text": "int seed" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 213, + "line": 81, "column": 1, - "source_line": "float stb_perlin_noise3_internal(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" + "source_line": "extern float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 213, + "line": 81, "column": 1, - "source_line": "float stb_perlin_noise3_internal(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 263, - "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed);" }, + "end": null, "declaration_locations": [] }, { - "name": "stb_perlin_noise3", + "name": "stb_perlin_ridge_noise3", "result_type": { "model": "CFloat", "qualifiers": [], @@ -427,78 +319,90 @@ "callback_policy": null }, { - "name": "x_wrap", + "name": "lacunarity", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int x_wrap" + "source_text": "float lacunarity" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int x_wrap" + "source_text": "float lacunarity" }, "source_location": null, "callback_policy": null }, { - "name": "y_wrap", + "name": "gain", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int y_wrap" + "source_text": "float gain" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int y_wrap" + "source_text": "float gain" }, "source_location": null, "callback_policy": null }, { - "name": "z_wrap", + "name": "offset", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float offset" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "octaves", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int z_wrap" + "source_text": "int octaves" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int z_wrap" + "source_text": "int octaves" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 265, + "line": 82, "column": 1, - "source_line": "float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap)" + "source_line": "extern float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 265, + "line": 82, "column": 1, - "source_line": "float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 268, - "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves);" }, + "end": null, "declaration_locations": [] }, { - "name": "stb_perlin_noise3_seed", + "name": "stb_perlin_fbm_noise3", "result_type": { "model": "CFloat", "qualifiers": [], @@ -551,93 +455,75 @@ "callback_policy": null }, { - "name": "x_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_wrap", + "name": "lacunarity", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int y_wrap" + "source_text": "float lacunarity" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int y_wrap" + "source_text": "float lacunarity" }, "source_location": null, "callback_policy": null }, { - "name": "z_wrap", + "name": "gain", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int z_wrap" + "source_text": "float gain" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int z_wrap" + "source_text": "float gain" }, "source_location": null, "callback_policy": null }, { - "name": "seed", + "name": "octaves", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int seed" + "source_text": "int octaves" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int seed" + "source_text": "int octaves" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 270, + "line": 83, "column": 1, - "source_line": "float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed)" + "source_line": "extern float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 270, + "line": 83, "column": 1, - "source_line": "float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 273, - "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, + "end": null, "declaration_locations": [] }, { - "name": "stb_perlin_ridge_noise3", + "name": "stb_perlin_turbulence_noise3", "result_type": { "model": "CFloat", "qualifiers": [], @@ -719,21 +605,6 @@ "source_location": null, "callback_policy": null }, - { - "name": "offset", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float offset" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float offset" - }, - "source_location": null, - "callback_policy": null - }, { "name": "octaves", "type": { @@ -749,1017 +620,179 @@ "source_location": null, "callback_policy": null } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 275, - "column": 1, - "source_line": "float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 275, - "column": 1, - "source_line": "float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 293, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_perlin_fbm_noise3", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "lacunarity", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float lacunarity" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float lacunarity" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "gain", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float gain" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float gain" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "octaves", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int octaves" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int octaves" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 295, - "column": 1, - "source_line": "float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 295, - "column": 1, - "source_line": "float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 308, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_perlin_turbulence_noise3", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "lacunarity", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float lacunarity" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float lacunarity" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "gain", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float gain" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float gain" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "octaves", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int octaves" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int octaves" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 310, - "column": 1, - "source_line": "float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 310, - "column": 1, - "source_line": "float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 324, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_perlin_noise3_wrap_nonpow2", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "seed", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char seed" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char seed" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 326, - "column": 1, - "source_line": "float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 326, - "column": 1, - "source_line": "float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 385, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [ - { - "name": "stb__perlin_randtab", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stb__perlin_randtab[512]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 23, 125, 161, 52, 103, 117, 70, 37, 247, 101, 203, 169, 124, 126, 44, 123,\n 152, 238, 145, 45, 171, 114, 253, 10, 192, 136, 4, 157, 249, 30, 35, 72,\n 175, 63, 77, 90, 181, 16, 96, 111, 133, 104, 75, 162, 93, 56, 66, 240,\n 8, 50, 84, 229, 49, 210, 173, 239, 141, 1, 87, 18, 2, 198, 143, 57,\n 225, 160, 58, 217, 168, 206, 245, 204, 199, 6, 73, 60, 20, 230, 211, 233,\n 94, 200, 88, 9, 74, 155, 33, 15, 219, 130, 226, 202, 83, 236, 42, 172,\n 165, 218, 55, 222, 46, 107, 98, 154, 109, 67, 196, 178, 127, 158, 13, 243,\n 65, 79, 166, 248, 25, 224, 115, 80, 68, 51, 184, 128, 232, 208, 151, 122,\n 26, 212, 105, 43, 179, 213, 235, 148, 146, 89, 14, 195, 28, 78, 112, 76,\n 250, 47, 24, 251, 140, 108, 186, 190, 228, 170, 183, 139, 39, 188, 244, 246,\n 132, 48, 119, 144, 180, 138, 134, 193, 82, 182, 120, 121, 86, 220, 209, 3,\n 91, 241, 149, 85, 205, 150, 113, 216, 31, 100, 41, 164, 177, 214, 153, 231,\n 38, 71, 185, 174, 97, 201, 29, 95, 7, 92, 54, 254, 191, 118, 34, 221,\n 131, 11, 163, 99, 234, 81, 227, 147, 156, 176, 17, 142, 69, 12, 110, 62,\n 27, 255, 0, 194, 59, 116, 242, 252, 19, 21, 187, 53, 207, 129, 64, 135,\n 61, 40, 167, 237, 102, 223, 106, 159, 197, 189, 215, 137, 36, 32, 22, 5,\n\n \n 23, 125, 161, 52, 103, 117, 70, 37, 247, 101, 203, 169, 124, 126, 44, 123,\n 152, 238, 145, 45, 171, 114, 253, 10, 192, 136, 4, 157, 249, 30, 35, 72,\n 175, 63, 77, 90, 181, 16, 96, 111, 133, 104, 75, 162, 93, 56, 66, 240,\n 8, 50, 84, 229, 49, 210, 173, 239, 141, 1, 87, 18, 2, 198, 143, 57,\n 225, 160, 58, 217, 168, 206, 245, 204, 199, 6, 73, 60, 20, 230, 211, 233,\n 94, 200, 88, 9, 74, 155, 33, 15, 219, 130, 226, 202, 83, 236, 42, 172,\n 165, 218, 55, 222, 46, 107, 98, 154, 109, 67, 196, 178, 127, 158, 13, 243,\n 65, 79, 166, 248, 25, 224, 115, 80, 68, 51, 184, 128, 232, 208, 151, 122,\n 26, 212, 105, 43, 179, 213, 235, 148, 146, 89, 14, 195, 28, 78, 112, 76,\n 250, 47, 24, 251, 140, 108, 186, 190, 228, 170, 183, 139, 39, 188, 244, 246,\n 132, 48, 119, 144, 180, 138, 134, 193, 82, 182, 120, 121, 86, 220, 209, 3,\n 91, 241, 149, 85, 205, 150, 113, 216, 31, 100, 41, 164, 177, 214, 153, 231,\n 38, 71, 185, 174, 97, 201, 29, 95, 7, 92, 54, 254, 191, 118, 34, 221,\n 131, 11, 163, 99, 234, 81, 227, 147, 156, 176, 17, 142, 69, 12, 110, 62,\n 27, 255, 0, 194, 59, 116, 242, 252, 19, 21, 187, 53, 207, 129, 64, 135,\n 61, 40, 167, 237, 102, 223, 106, 159, 197, 189, 215, 137, 36, 32, 22, 5,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 96, - "column": 1, - "source_line": "static unsigned char stb__perlin_randtab[512] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stb__perlin_randtab_grad_idx", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stb__perlin_randtab_grad_idx[512]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 7, 9, 5, 0, 11, 1, 6, 9, 3, 9, 11, 1, 8, 10, 4, 7,\n 8, 6, 1, 5, 3, 10, 9, 10, 0, 8, 4, 1, 5, 2, 7, 8,\n 7, 11, 9, 10, 1, 0, 4, 7, 5, 0, 11, 6, 1, 4, 2, 8,\n 8, 10, 4, 9, 9, 2, 5, 7, 9, 1, 7, 2, 2, 6, 11, 5,\n 5, 4, 6, 9, 0, 1, 1, 0, 7, 6, 9, 8, 4, 10, 3, 1,\n 2, 8, 8, 9, 10, 11, 5, 11, 11, 2, 6, 10, 3, 4, 2, 4,\n 9, 10, 3, 2, 6, 3, 6, 10, 5, 3, 4, 10, 11, 2, 9, 11,\n 1, 11, 10, 4, 9, 4, 11, 0, 4, 11, 4, 0, 0, 0, 7, 6,\n 10, 4, 1, 3, 11, 5, 3, 4, 2, 9, 1, 3, 0, 1, 8, 0,\n 6, 7, 8, 7, 0, 4, 6, 10, 8, 2, 3, 11, 11, 8, 0, 2,\n 4, 8, 3, 0, 0, 10, 6, 1, 2, 2, 4, 5, 6, 0, 1, 3,\n 11, 9, 5, 5, 9, 6, 9, 8, 3, 8, 1, 8, 9, 6, 9, 11,\n 10, 7, 5, 6, 5, 9, 1, 3, 7, 0, 2, 10, 11, 2, 6, 1,\n 3, 11, 7, 7, 2, 1, 7, 3, 0, 8, 1, 1, 5, 0, 6, 10,\n 11, 11, 0, 2, 7, 0, 10, 8, 3, 5, 7, 1, 11, 1, 0, 7,\n 9, 0, 11, 5, 10, 3, 2, 3, 5, 9, 7, 9, 8, 4, 6, 5,\n\n \n 7, 9, 5, 0, 11, 1, 6, 9, 3, 9, 11, 1, 8, 10, 4, 7,\n 8, 6, 1, 5, 3, 10, 9, 10, 0, 8, 4, 1, 5, 2, 7, 8,\n 7, 11, 9, 10, 1, 0, 4, 7, 5, 0, 11, 6, 1, 4, 2, 8,\n 8, 10, 4, 9, 9, 2, 5, 7, 9, 1, 7, 2, 2, 6, 11, 5,\n 5, 4, 6, 9, 0, 1, 1, 0, 7, 6, 9, 8, 4, 10, 3, 1,\n 2, 8, 8, 9, 10, 11, 5, 11, 11, 2, 6, 10, 3, 4, 2, 4,\n 9, 10, 3, 2, 6, 3, 6, 10, 5, 3, 4, 10, 11, 2, 9, 11,\n 1, 11, 10, 4, 9, 4, 11, 0, 4, 11, 4, 0, 0, 0, 7, 6,\n 10, 4, 1, 3, 11, 5, 3, 4, 2, 9, 1, 3, 0, 1, 8, 0,\n 6, 7, 8, 7, 0, 4, 6, 10, 8, 2, 3, 11, 11, 8, 0, 2,\n 4, 8, 3, 0, 0, 10, 6, 1, 2, 2, 4, 5, 6, 0, 1, 3,\n 11, 9, 5, 5, 9, 6, 9, 8, 3, 8, 1, 8, 9, 6, 9, 11,\n 10, 7, 5, 6, 5, 9, 1, 3, 7, 0, 2, 10, 11, 2, 6, 1,\n 3, 11, 7, 7, 2, 1, 7, 3, 0, 8, 1, 1, 5, 0, 6, 10,\n 11, 11, 0, 2, 7, 0, 10, 8, 3, 5, 7, 1, 11, 1, 0, 7,\n 9, 0, 11, 5, 10, 3, 2, 3, 5, 9, 7, 9, 8, 4, 6, 5,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 141, - "column": 1, - "source_line": "static unsigned char stb__perlin_randtab_grad_idx[512] =" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "stb__perlin_ease", - "value": "(((a*6-15)*a + 10) * a * a * a)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 231, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - } - }, - { - "name": "stb__perlin_ease", - "value": "(((a*6-15)*a + 10) * a * a * a)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 351, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - } - } - ], - "includes": [ - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 92, - "column": 1, - "source_line": "#include // fabs()" - } - } - ], - "raw_directives": [ - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 77, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 79, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 86, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 88, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_PERLIN_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 90, - "column": 1, - "source_line": "#ifdef STB_PERLIN_IMPLEMENTATION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 386, - "column": 1, - "source_line": "#endif // STB_PERLIN_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__perlin_ease' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 231, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - }, - "unit_kind": "macro", - "unit_name": "stb__perlin_ease" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__perlin_ease' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 351, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - }, - "unit_kind": "macro", - "unit_name": "stb__perlin_ease" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 78, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] - } - }, - "functions": { - "stb__perlin_lerp": { - "name": "stb__perlin_lerp", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "t", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float t" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 179, - "column": 1, - "source_line": "static float stb__perlin_lerp(float a, float b, float t)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 179, - "column": 1, - "source_line": "static float stb__perlin_lerp(float a, float b, float t)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 182, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__perlin_fastfloor": { - "name": "stb__perlin_fastfloor", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 184, - "column": 1, - "source_line": "static int stb__perlin_fastfloor(float a)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 184, - "column": 1, - "source_line": "static int stb__perlin_fastfloor(float a)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 188, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb__perlin_grad": { - "name": "stb__perlin_grad", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "grad_idx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int grad_idx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int grad_idx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 191, - "column": 1, - "source_line": "static float stb__perlin_grad(int grad_idx, float x, float y, float z)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 191, - "column": 1, - "source_line": "static float stb__perlin_grad(int grad_idx, float x, float y, float z)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 211, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_perlin_noise3_internal": { - "name": "stb_perlin_noise3_internal", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_wrap" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_wrap" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z_wrap", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z_wrap" + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_perlin.h", + "line": 84, + "column": 1, + "source_line": "extern float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z_wrap" + "start": { + "filename": "stb/stb_perlin.h", + "line": 84, + "column": 1, + "source_line": "extern float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, - "source_location": null, - "callback_policy": null + "end": null, + "declaration_locations": [] }, { - "name": "seed", - "type": { - "model": "CUnsignedChar", + "name": "stb_perlin_noise3_wrap_nonpow2", + "result_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char seed" + "source_text": "float" }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char seed" + "parameters": [ + { + "name": "x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float z" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x_wrap", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_wrap" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_wrap" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_wrap", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_wrap" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_wrap" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z_wrap", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z_wrap" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z_wrap" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "seed", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char seed" + }, + "declared_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char seed" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_perlin.h", + "line": 85, + "column": 1, + "source_line": "extern float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed);" }, - "source_location": null, - "callback_policy": null + "start": { + "filename": "stb/stb_perlin.h", + "line": 85, + "column": 1, + "source_line": "extern float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed);" + }, + "end": null, + "declaration_locations": [] } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 213, - "column": 1, - "source_line": "float stb_perlin_noise3_internal(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "start": { - "filename": "stb/stb_perlin.h", - "line": 213, - "column": 1, - "source_line": "float stb_perlin_noise3_internal(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 263, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { "stb_perlin_noise3": { "name": "stb_perlin_noise3", "result_type": { @@ -1859,29 +892,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 265, + "line": 80, "column": 1, - "source_line": "float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap)" + "source_line": "extern float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 265, - "column": 1, - "source_line": "float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 268, + "line": 80, "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_noise3(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap);" }, + "end": null, "declaration_locations": [] }, "stb_perlin_noise3_seed": { @@ -1998,29 +1028,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 270, + "line": 81, "column": 1, - "source_line": "float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed)" + "source_line": "extern float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 270, + "line": 81, "column": 1, - "source_line": "float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 273, - "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_noise3_seed(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, int seed);" }, + "end": null, "declaration_locations": [] }, "stb_perlin_ridge_noise3": { @@ -2137,29 +1164,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 275, + "line": 82, "column": 1, - "source_line": "float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves)" + "source_line": "extern float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 275, - "column": 1, - "source_line": "float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 293, + "line": 82, "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_ridge_noise3(float x, float y, float z, float lacunarity, float gain, float offset, int octaves);" }, + "end": null, "declaration_locations": [] }, "stb_perlin_fbm_noise3": { @@ -2261,29 +1285,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 295, + "line": 83, "column": 1, - "source_line": "float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" + "source_line": "extern float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 295, - "column": 1, - "source_line": "float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 308, + "line": 83, "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_fbm_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, + "end": null, "declaration_locations": [] }, "stb_perlin_turbulence_noise3": { @@ -2385,29 +1406,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 310, + "line": 84, "column": 1, - "source_line": "float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" + "source_line": "extern float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 310, - "column": 1, - "source_line": "float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 324, + "line": 84, "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_turbulence_noise3(float x, float y, float z, float lacunarity, float gain, int octaves);" }, + "end": null, "declaration_locations": [] }, "stb_perlin_noise3_wrap_nonpow2": { @@ -2524,29 +1542,26 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_perlin.h", - "line": 326, + "line": 85, "column": 1, - "source_line": "float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" + "source_line": "extern float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed);" }, "start": { "filename": "stb/stb_perlin.h", - "line": 326, + "line": 85, "column": 1, - "source_line": "float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed)" - }, - "end": { - "filename": "stb/stb_perlin.h", - "line": 385, - "column": 1, - "source_line": "}" + "source_line": "extern float stb_perlin_noise3_wrap_nonpow2(float x, float y, float z, int x_wrap, int y_wrap, int z_wrap, unsigned char seed);" }, + "end": null, "declaration_locations": [] } }, @@ -2554,119 +1569,11 @@ "unions": {}, "enums": {}, "typedefs": {}, - "variables": { - "stb__perlin_randtab": { - "name": "stb__perlin_randtab", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stb__perlin_randtab[512]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 23, 125, 161, 52, 103, 117, 70, 37, 247, 101, 203, 169, 124, 126, 44, 123,\n 152, 238, 145, 45, 171, 114, 253, 10, 192, 136, 4, 157, 249, 30, 35, 72,\n 175, 63, 77, 90, 181, 16, 96, 111, 133, 104, 75, 162, 93, 56, 66, 240,\n 8, 50, 84, 229, 49, 210, 173, 239, 141, 1, 87, 18, 2, 198, 143, 57,\n 225, 160, 58, 217, 168, 206, 245, 204, 199, 6, 73, 60, 20, 230, 211, 233,\n 94, 200, 88, 9, 74, 155, 33, 15, 219, 130, 226, 202, 83, 236, 42, 172,\n 165, 218, 55, 222, 46, 107, 98, 154, 109, 67, 196, 178, 127, 158, 13, 243,\n 65, 79, 166, 248, 25, 224, 115, 80, 68, 51, 184, 128, 232, 208, 151, 122,\n 26, 212, 105, 43, 179, 213, 235, 148, 146, 89, 14, 195, 28, 78, 112, 76,\n 250, 47, 24, 251, 140, 108, 186, 190, 228, 170, 183, 139, 39, 188, 244, 246,\n 132, 48, 119, 144, 180, 138, 134, 193, 82, 182, 120, 121, 86, 220, 209, 3,\n 91, 241, 149, 85, 205, 150, 113, 216, 31, 100, 41, 164, 177, 214, 153, 231,\n 38, 71, 185, 174, 97, 201, 29, 95, 7, 92, 54, 254, 191, 118, 34, 221,\n 131, 11, 163, 99, 234, 81, 227, 147, 156, 176, 17, 142, 69, 12, 110, 62,\n 27, 255, 0, 194, 59, 116, 242, 252, 19, 21, 187, 53, 207, 129, 64, 135,\n 61, 40, 167, 237, 102, 223, 106, 159, 197, 189, 215, 137, 36, 32, 22, 5,\n\n \n 23, 125, 161, 52, 103, 117, 70, 37, 247, 101, 203, 169, 124, 126, 44, 123,\n 152, 238, 145, 45, 171, 114, 253, 10, 192, 136, 4, 157, 249, 30, 35, 72,\n 175, 63, 77, 90, 181, 16, 96, 111, 133, 104, 75, 162, 93, 56, 66, 240,\n 8, 50, 84, 229, 49, 210, 173, 239, 141, 1, 87, 18, 2, 198, 143, 57,\n 225, 160, 58, 217, 168, 206, 245, 204, 199, 6, 73, 60, 20, 230, 211, 233,\n 94, 200, 88, 9, 74, 155, 33, 15, 219, 130, 226, 202, 83, 236, 42, 172,\n 165, 218, 55, 222, 46, 107, 98, 154, 109, 67, 196, 178, 127, 158, 13, 243,\n 65, 79, 166, 248, 25, 224, 115, 80, 68, 51, 184, 128, 232, 208, 151, 122,\n 26, 212, 105, 43, 179, 213, 235, 148, 146, 89, 14, 195, 28, 78, 112, 76,\n 250, 47, 24, 251, 140, 108, 186, 190, 228, 170, 183, 139, 39, 188, 244, 246,\n 132, 48, 119, 144, 180, 138, 134, 193, 82, 182, 120, 121, 86, 220, 209, 3,\n 91, 241, 149, 85, 205, 150, 113, 216, 31, 100, 41, 164, 177, 214, 153, 231,\n 38, 71, 185, 174, 97, 201, 29, 95, 7, 92, 54, 254, 191, 118, 34, 221,\n 131, 11, 163, 99, 234, 81, 227, 147, 156, 176, 17, 142, 69, 12, 110, 62,\n 27, 255, 0, 194, 59, 116, 242, 252, 19, 21, 187, 53, 207, 129, 64, 135,\n 61, 40, 167, 237, 102, 223, 106, 159, 197, 189, 215, 137, 36, 32, 22, 5,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 96, - "column": 1, - "source_line": "static unsigned char stb__perlin_randtab[512] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stb__perlin_randtab_grad_idx": { - "name": "stb__perlin_randtab_grad_idx", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stb__perlin_randtab_grad_idx[512]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 7, 9, 5, 0, 11, 1, 6, 9, 3, 9, 11, 1, 8, 10, 4, 7,\n 8, 6, 1, 5, 3, 10, 9, 10, 0, 8, 4, 1, 5, 2, 7, 8,\n 7, 11, 9, 10, 1, 0, 4, 7, 5, 0, 11, 6, 1, 4, 2, 8,\n 8, 10, 4, 9, 9, 2, 5, 7, 9, 1, 7, 2, 2, 6, 11, 5,\n 5, 4, 6, 9, 0, 1, 1, 0, 7, 6, 9, 8, 4, 10, 3, 1,\n 2, 8, 8, 9, 10, 11, 5, 11, 11, 2, 6, 10, 3, 4, 2, 4,\n 9, 10, 3, 2, 6, 3, 6, 10, 5, 3, 4, 10, 11, 2, 9, 11,\n 1, 11, 10, 4, 9, 4, 11, 0, 4, 11, 4, 0, 0, 0, 7, 6,\n 10, 4, 1, 3, 11, 5, 3, 4, 2, 9, 1, 3, 0, 1, 8, 0,\n 6, 7, 8, 7, 0, 4, 6, 10, 8, 2, 3, 11, 11, 8, 0, 2,\n 4, 8, 3, 0, 0, 10, 6, 1, 2, 2, 4, 5, 6, 0, 1, 3,\n 11, 9, 5, 5, 9, 6, 9, 8, 3, 8, 1, 8, 9, 6, 9, 11,\n 10, 7, 5, 6, 5, 9, 1, 3, 7, 0, 2, 10, 11, 2, 6, 1,\n 3, 11, 7, 7, 2, 1, 7, 3, 0, 8, 1, 1, 5, 0, 6, 10,\n 11, 11, 0, 2, 7, 0, 10, 8, 3, 5, 7, 1, 11, 1, 0, 7,\n 9, 0, 11, 5, 10, 3, 2, 3, 5, 9, 7, 9, 8, 4, 6, 5,\n\n \n 7, 9, 5, 0, 11, 1, 6, 9, 3, 9, 11, 1, 8, 10, 4, 7,\n 8, 6, 1, 5, 3, 10, 9, 10, 0, 8, 4, 1, 5, 2, 7, 8,\n 7, 11, 9, 10, 1, 0, 4, 7, 5, 0, 11, 6, 1, 4, 2, 8,\n 8, 10, 4, 9, 9, 2, 5, 7, 9, 1, 7, 2, 2, 6, 11, 5,\n 5, 4, 6, 9, 0, 1, 1, 0, 7, 6, 9, 8, 4, 10, 3, 1,\n 2, 8, 8, 9, 10, 11, 5, 11, 11, 2, 6, 10, 3, 4, 2, 4,\n 9, 10, 3, 2, 6, 3, 6, 10, 5, 3, 4, 10, 11, 2, 9, 11,\n 1, 11, 10, 4, 9, 4, 11, 0, 4, 11, 4, 0, 0, 0, 7, 6,\n 10, 4, 1, 3, 11, 5, 3, 4, 2, 9, 1, 3, 0, 1, 8, 0,\n 6, 7, 8, 7, 0, 4, 6, 10, 8, 2, 3, 11, 11, 8, 0, 2,\n 4, 8, 3, 0, 0, 10, 6, 1, 2, 2, 4, 5, 6, 0, 1, 3,\n 11, 9, 5, 5, 9, 6, 9, 8, 3, 8, 1, 8, 9, 6, 9, 11,\n 10, 7, 5, 6, 5, 9, 1, 3, 7, 0, 2, 10, 11, 2, 6, 1,\n 3, 11, 7, 7, 2, 1, 7, 3, 0, 8, 1, 1, 5, 0, 6, 10,\n 11, 11, 0, 2, 7, 0, 10, 8, 3, 5, 7, 1, 11, 1, 0, 7,\n 9, 0, 11, 5, 10, 3, 2, 3, 5, 9, 7, 9, 8, 4, 6, 5,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 141, - "column": 1, - "source_line": "static unsigned char stb__perlin_randtab_grad_idx[512] =" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "stb__perlin_ease": { - "name": "stb__perlin_ease", - "value": "(((a*6-15)*a + 10) * a * a * a)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 351, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - } - } - }, - "includes": { - "stb/stb_perlin.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_perlin.h", - "line": 92, - "column": 1, - "source_line": "#include // fabs()" - } - } - }, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_perlin.h": [ - "stb__perlin_lerp", - "stb__perlin_fastfloor", - "stb__perlin_grad", - "stb_perlin_noise3_internal", "stb_perlin_noise3", "stb_perlin_noise3_seed", "stb_perlin_ridge_noise3", @@ -2680,9 +1587,7 @@ "stb/stb_perlin.h": [] }, "system_includes": { - "stb/stb_perlin.h": [ - "math.h" - ] + "stb/stb_perlin.h": [] }, "unresolved_includes": { "stb/stb_perlin.h": [] @@ -2690,45 +1595,5 @@ "header_source_pairs": { "stb/stb_perlin.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__perlin_ease' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 231, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - }, - "unit_kind": "macro", - "unit_name": "stb__perlin_ease" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stb__perlin_ease' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 351, - "column": 4, - "source_line": " #define stb__perlin_ease(a) (((a*6-15)*a + 10) * a * a * a)" - }, - "unit_kind": "macro", - "unit_name": "stb__perlin_ease" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_perlin.h", - "line": 78, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_rect_pack.json b/tests/parser/c/fixtures/stb/stb_rect_pack.json index 4592d3d03..ea12d4b88 100644 --- a/tests/parser/c/fixtures/stb/stb_rect_pack.json +++ b/tests/parser/c/fixtures/stb/stb_rect_pack.json @@ -3,11 +3,13 @@ "stb/stb_rect_pack.h": { "filename": "stb/stb_rect_pack.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_rect_pack.h" + ], "functions": [ { - "name": "stbrp__skyline_find_min_y", + "name": "stbrp_pack_rects", "result_type": { "model": "CInt", "qualifiers": [], @@ -15,11 +17,11 @@ }, "parameters": [ { - "name": "c", + "name": "context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -31,8 +33,337 @@ "qualifiers": [], "source_text": "stbrp_context", "name": "stbrp_context", - "type": null, - "source_location": null, + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbrp_context", + "members": [ + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 183, + "column": 4, + "source_line": " int width;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 184, + "column": 4, + "source_line": " int height;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "align", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int align" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 185, + "column": 4, + "source_line": " int align;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "init_mode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int init_mode" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 186, + "column": 4, + "source_line": " int init_mode;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "heuristic", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int heuristic" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 187, + "column": 4, + "source_line": " int heuristic;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_nodes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_nodes" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 188, + "column": 4, + "source_line": " int num_nodes;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "active_head", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *active_head", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbrp_node", + "name": "stbrp_node", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbrp_node", + "members": [ + { + "name": "x", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbrp_coord", + "name": "stbrp_coord", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "typedef int stbrp_coord" + }, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 85, + "column": 1, + "source_line": "typedef int stbrp_coord;" + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 177, + "column": 4, + "source_line": " stbrp_coord x,y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "reference": "stbrp_coord" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 177, + "column": 4, + "source_line": " stbrp_coord x,y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 178, + "column": 4, + "source_line": " stbrp_node *next;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 175, + "column": 1, + "source_line": "struct stbrp_node" + } + }, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 82, + "column": 1, + "source_line": "typedef struct stbrp_node stbrp_node;" + }, + "declaration_locations": [] + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 189, + "column": 4, + "source_line": " stbrp_node *active_head;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "free_head", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *free_head", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 190, + "column": 4, + "source_line": " stbrp_node *free_head;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "extra", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node extra[2]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "stbrp_node" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 191, + "column": 4, + "source_line": " stbrp_node extra[2];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 181, + "column": 1, + "source_line": "struct stbrp_context" + } + }, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 81, + "column": 1, + "source_line": "typedef struct stbrp_context stbrp_context;" + }, "declaration_locations": [] } ] @@ -40,7 +371,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -56,11 +387,11 @@ "callback_policy": null }, { - "name": "first", + "name": "rects", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *first", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -70,10 +401,136 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbrp_node", - "name": "stbrp_node", - "type": null, - "source_location": null, + "source_text": "stbrp_rect", + "name": "stbrp_rect", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbrp_rect", + "members": [ + { + "name": "id", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int id" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 118, + "column": 4, + "source_line": " int id;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "w", + "type": { + "reference": "stbrp_coord" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 121, + "column": 4, + "source_line": " stbrp_coord w, h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h", + "type": { + "reference": "stbrp_coord" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 121, + "column": 4, + "source_line": " stbrp_coord w, h;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x", + "type": { + "reference": "stbrp_coord" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 124, + "column": 4, + "source_line": " stbrp_coord x, y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "reference": "stbrp_coord" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 124, + "column": 4, + "source_line": " stbrp_coord x, y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "was_packed", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int was_packed" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 125, + "column": 4, + "source_line": " int was_packed;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 115, + "column": 1, + "source_line": "struct stbrp_rect" + } + }, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 83, + "column": 1, + "source_line": "typedef struct stbrp_rect stbrp_rect;" + }, "declaration_locations": [] } ] @@ -81,7 +538,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *first", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -89,7 +546,7 @@ "source_text": "" }, { - "reference": "stbrp_node" + "reference": "stbrp_rect" } ] }, @@ -97,77 +554,23 @@ "callback_policy": null }, { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", + "name": "num_rects", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int width" + "source_text": "int num_rects" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pwaste", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pwaste", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pwaste", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int num_rects" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -175,140 +578,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 287, + "line": 542, "column": 1, - "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + "source_line": "extern int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" }, "start": { "filename": "stb/stb_rect_pack.h", - "line": 287, + "line": 542, "column": 1, - "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + "source_line": "extern int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" }, "end": { "filename": "stb/stb_rect_pack.h", - "line": 335, + "line": 580, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_rect_pack.h", + "line": 90, + "column": 1, + "source_line": "extern int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects);" + } + ] }, { - "name": "stbrp__skyline_find_best_pos", + "name": "stbrp_init_target", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stbrp__findresult", - "name": "stbrp__findresult", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 339, - "column": 4, - "source_line": " int x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 339, - "column": 4, - "source_line": " int x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "prev_link", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbrp_node **prev_link", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbrp_node", - "name": "stbrp_node", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 340, - "column": 4, - "source_line": " stbrp_node **prev_link;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_rect_pack.h:337:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 337, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 337, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { - "name": "c", + "name": "context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -316,20 +624,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbrp_context", - "name": "stbrp_context", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbrp_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -373,47 +675,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 343, - "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" - }, - "start": { - "filename": "stb/stb_rect_pack.h", - "line": 343, - "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" - }, - "end": { - "filename": "stb/stb_rect_pack.h", - "line": 443, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbrp__skyline_pack_rectangle", - "result_type": { - "reference": "stbrp__findresult" - }, - "parameters": [ + }, { - "name": "context", + "name": "nodes", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *context", + "source_text": "stbrp_node *nodes", "components": [ { "model": "CPointer", @@ -421,20 +689,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbrp_context", - "name": "stbrp_context", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbrp_node" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *context", + "source_text": "stbrp_node *nodes", "components": [ { "model": "CPointer", @@ -442,7 +704,7 @@ "source_text": "" }, { - "reference": "stbrp_context" + "reference": "stbrp_node" } ] }, @@ -450,38 +712,23 @@ "callback_policy": null }, { - "name": "width", + "name": "num_nodes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int width" + "source_text": "int num_nodes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" + "source_text": "int num_nodes" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, @@ -489,622 +736,1489 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 445, + "line": 261, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + "source_line": "extern void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" }, "start": { "filename": "stb/stb_rect_pack.h", - "line": 445, + "line": 261, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + "source_line": "extern void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" }, "end": { "filename": "stb/stb_rect_pack.h", - "line": 522, + "line": 284, "column": 1, "source_line": "}" }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_rect_pack.h:337:1" - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ + "declaration_locations": [ { - "name": "STBRP__INIT_skyline", - "value": "1", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 224, - "column": 1, - "source_line": "enum" - } + "filename": "stb/stb_rect_pack.h", + "line": 130, + "column": 1, + "source_line": "extern void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);" } - ], - "anonymous_id": "enum@stb/stb_rect_pack.h:224:1", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 224, - "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "reference": "stbrp__findresult" - } - ], - "variables": [], - "macros": [ - { - "name": "STB_INCLUDE_STB_RECT_PACK_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 67, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_RECT_PACK_H" - } - }, - { - "name": "STB_RECT_PACK_VERSION", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 69, - "column": 1, - "source_line": "#define STB_RECT_PACK_VERSION 1" - } - }, - { - "name": "STBRP_DEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 72, - "column": 1, - "source_line": "#define STBRP_DEF static" - } - }, - { - "name": "STBRP_DEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 74, - "column": 1, - "source_line": "#define STBRP_DEF extern" - } - }, - { - "name": "STBRP__MAXVAL", - "value": "0x7fffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 87, - "column": 1, - "source_line": "#define STBRP__MAXVAL 0x7fffffff" - } - }, - { - "name": "STBRP_SORT", - "value": "qsort", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 208, - "column": 1, - "source_line": "#define STBRP_SORT qsort" - } - }, - { - "name": "STBRP_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 213, - "column": 1, - "source_line": "#define STBRP_ASSERT assert" - } + ] }, { - "name": "STBRP__NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", + "name": "stbrp_setup_allow_out_of_mem", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "allow_out_of_mem", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int allow_out_of_mem" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int allow_out_of_mem" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 217, + "line": 241, "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBRP__CDECL", - "value": "__cdecl", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 218, + "line": 241, "column": 1, - "source_line": "#define STBRP__CDECL __cdecl" - } - }, - { - "name": "STBRP__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "extern void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 220, + "line": 259, "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)sizeof(v)" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_rect_pack.h", + "line": 151, + "column": 1, + "source_line": "extern void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem);" + } + ] }, { - "name": "STBRP__CDECL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 221, - "column": 1, - "source_line": "#define STBRP__CDECL" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "name": "stbrp_setup_heuristic", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "heuristic", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int heuristic" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int heuristic" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 207, + "line": 229, "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "extern void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 212, + "line": 229, "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_INCLUDE_STB_RECT_PACK_H", - "source_location": { + "source_line": "extern void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 66, + "line": 239, "column": 1, - "source_line": "#ifndef STB_INCLUDE_STB_RECT_PACK_H" - } + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_rect_pack.h", + "line": 157, + "column": 1, + "source_line": "extern void stbrp_setup_heuristic (stbrp_context *context, int heuristic);" + } + ] }, { - "directive": "ifdef", - "argument": "STBRP_STATIC", - "source_location": { + "name": "stbrp__skyline_find_min_y", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "first", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *first", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *first", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pwaste", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *pwaste", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *pwaste", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 71, + "line": 287, "column": 1, - "source_line": "#ifdef STBRP_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { + "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 73, + "line": 287, "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 75, + "line": 335, "column": 1, - "source_line": "#endif" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "ifdef", - "argument": "__cplusplus", + "name": "stbrp__skyline_find_best_pos", + "result_type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbrp__findresult", + "name": "stbrp__findresult", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 339, + "column": 4, + "source_line": " int x,y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 339, + "column": 4, + "source_line": " int x,y;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "prev_link", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node **prev_link", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 340, + "column": 4, + "source_line": " stbrp_node **prev_link;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 337, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 337, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 77, + "line": 343, "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 79, + "line": 343, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { + "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 194, + "line": 443, "column": 1, - "source_line": "#ifdef __cplusplus" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "stbrp__skyline_pack_rectangle", + "result_type": { + "reference": "stbrp__findresult" + }, + "parameters": [ + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 196, + "line": 445, "column": 1, - "source_line": "#endif" - } + "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 445, + "column": 1, + "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 522, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "rect_height_compare", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 198, + "line": 524, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_RECT_PACK_IMPLEMENTATION", - "source_location": { + "source_line": "static int rect_height_compare(const void *a, const void *b)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 205, + "line": 524, "column": 1, - "source_line": "#ifdef STB_RECT_PACK_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STBRP_SORT", - "source_location": { + "source_line": "static int rect_height_compare(const void *a, const void *b)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 206, + "line": 533, "column": 1, - "source_line": "#ifndef STBRP_SORT" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "directive": "endif", - "argument": null, + "name": "rect_original_order", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 209, + "line": 535, "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBRP_ASSERT", - "source_location": { + "source_line": "static int rect_original_order(const void *a, const void *b)" + }, + "start": { "filename": "stb/stb_rect_pack.h", - "line": 211, + "line": 535, "column": 1, - "source_line": "#ifndef STBRP_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { + "source_line": "static int rect_original_order(const void *a, const void *b)" + }, + "end": { "filename": "stb/stb_rect_pack.h", - "line": 214, + "line": 540, "column": 1, - "source_line": "#endif" - } - }, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [ { - "directive": "ifdef", - "argument": "_MSC_VER", + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBRP_HEURISTIC_Skyline_default", + "value": "0", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 162, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBRP_HEURISTIC_Skyline_BL_sortHeight", + "value": "STBRP_HEURISTIC_Skyline_default", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 162, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBRP_HEURISTIC_Skyline_BF_sortHeight", + "value": null, + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 162, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 216, + "line": 162, "column": 1, - "source_line": "#ifdef _MSC_VER" + "source_line": "enum" } }, { - "directive": "else", - "argument": null, + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBRP__INIT_skyline", + "value": "1", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 224, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 219, + "line": 224, "column": 1, - "source_line": "#else" + "source_line": "enum" } - }, + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbrp_pack_rects": { + "name": "stbrp_pack_rects", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 222, - "column": 1, - "source_line": "#endif" - } + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 297, - "column": 4, - "source_line": " #if 0" - } + "name": "rects", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 301, - "column": 4, - "source_line": " #else" - } + "name": "num_rects", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 542, + "column": 1, + "source_line": "extern int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 542, + "column": 1, + "source_line": "extern int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 580, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_rect_pack.h", + "line": 90, + "column": 1, + "source_line": "extern int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects);" + } + ] + }, + "stbrp_init_target": { + "name": "stbrp_init_target", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 303, - "column": 4, - "source_line": " #endif" - } + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "ifdef", - "argument": "_DEBUG", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 497, - "column": 1, - "source_line": "#ifdef _DEBUG" - } + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 519, - "column": 1, - "source_line": "#endif" - } + "name": "nodes", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *nodes", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_node *nodes", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_node" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 581, - "column": 1, - "source_line": "#endif" - } + "name": "num_nodes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_nodes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_nodes" + }, + "source_location": null, + "callback_policy": null } ], - "macro_dependencies": [ + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 261, + "column": 1, + "source_line": "extern void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 261, + "column": 1, + "source_line": "extern void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 284, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "STBRP_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 229, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" - }, - "source_text": "STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" - }, + "filename": "stb/stb_rect_pack.h", + "line": 130, + "column": 1, + "source_line": "extern void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);" + } + ] + }, + "stbrp_setup_allow_out_of_mem": { + "name": "stbrp_setup_allow_out_of_mem", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "STBRP_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 241, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] }, - "source_text": "STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + "source_location": null, + "callback_policy": null }, { - "name": "STBRP_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 261, - "column": 1, - "source_line": "STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" + "name": "allow_out_of_mem", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int allow_out_of_mem" }, - "source_text": "STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" - }, - { - "name": "STBRP_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 542, - "column": 1, - "source_line": "STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int allow_out_of_mem" }, - "source_text": "STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" + "source_location": null, + "callback_policy": null } ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBRP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 217, - "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBRP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBRP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 220, - "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBRP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 78, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 241, + "column": 1, + "source_line": "extern void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 241, + "column": 1, + "source_line": "extern void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 259, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 229, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - }, + "filename": "stb/stb_rect_pack.h", + "line": 151, + "column": 1, + "source_line": "extern void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem);" + } + ] + }, + "stbrp_setup_heuristic": { + "name": "stbrp_setup_heuristic", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 241, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 261, - "column": 1, - "source_line": "STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'rect_height_compare(const void *a, const void *b)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 524, - "column": 1, - "source_line": "static int STBRP__CDECL rect_height_compare(const void *a, const void *b)" + "name": "heuristic", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int heuristic" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'rect_original_order(const void *a, const void *b)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 535, - "column": 1, - "source_line": "static int STBRP__CDECL rect_original_order(const void *a, const void *b)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int heuristic" }, - "unit_kind": "declarator", - "unit_name": null - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 229, + "column": 1, + "source_line": "extern void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 229, + "column": 1, + "source_line": "extern void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 239, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 542, - "column": 1, - "source_line": "STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" + "filename": "stb/stb_rect_pack.h", + "line": 157, + "column": 1, + "source_line": "extern void stbrp_setup_heuristic (stbrp_context *context, int heuristic);" } ] - } - }, - "functions": { + }, "stbrp__skyline_find_min_y": { "name": "stbrp__skyline_find_min_y", "result_type": { @@ -1270,28 +2384,127 @@ "filename": "stb/stb_rect_pack.h", "line": 287, "column": 1, - "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + "source_line": "static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 335, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "stbrp__skyline_find_best_pos": { + "name": "stbrp__skyline_find_best_pos", + "result_type": { + "reference": "stbrp__findresult" + }, + "parameters": [ + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_context *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_context" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 343, + "column": 1, + "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 343, + "column": 1, + "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" }, "end": { "filename": "stb/stb_rect_pack.h", - "line": 335, + "line": 443, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbrp__skyline_find_best_pos": { - "name": "stbrp__skyline_find_best_pos", + "stbrp__skyline_pack_rectangle": { + "name": "stbrp__skyline_pack_rectangle", "result_type": { "reference": "stbrp__findresult" }, "parameters": [ { - "name": "c", + "name": "context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -1306,7 +2519,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *c", + "source_text": "stbrp_context *context", "components": [ { "model": "CPointer", @@ -1361,36 +2574,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 343, + "line": 445, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" + "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" }, "start": { "filename": "stb/stb_rect_pack.h", - "line": 343, + "line": 445, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height)" + "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" }, "end": { "filename": "stb/stb_rect_pack.h", - "line": 443, + "line": 522, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stbrp__skyline_pack_rectangle": { - "name": "stbrp__skyline_pack_rectangle", + "rect_height_compare": { + "name": "rect_height_compare", "result_type": { - "reference": "stbrp__findresult" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "context", + "name": "a", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *context", + "source_text": "const void *a", "components": [ { "model": "CPointer", @@ -1398,14 +2613,18 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *context", + "source_text": "const void *a", "components": [ { "model": "CPointer", @@ -1413,7 +2632,11 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -1421,31 +2644,166 @@ "callback_policy": null }, { - "name": "width", + "name": "b", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int width" + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int width" + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_rect_pack.h", + "line": 524, + "column": 1, + "source_line": "static int rect_height_compare(const void *a, const void *b)" + }, + "start": { + "filename": "stb/stb_rect_pack.h", + "line": 524, + "column": 1, + "source_line": "static int rect_height_compare(const void *a, const void *b)" + }, + "end": { + "filename": "stb/stb_rect_pack.h", + "line": 533, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "rect_original_order": { + "name": "rect_original_order", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *a", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "height", + "name": "b", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int height" + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int height" + "source_text": "const void *b", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "source_location": null, "callback_policy": null @@ -1460,19 +2818,19 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 445, + "line": 535, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + "source_line": "static int rect_original_order(const void *a, const void *b)" }, "start": { "filename": "stb/stb_rect_pack.h", - "line": 445, + "line": 535, "column": 1, - "source_line": "static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height)" + "source_line": "static int rect_original_order(const void *a, const void *b)" }, "end": { "filename": "stb/stb_rect_pack.h", - "line": 522, + "line": 540, "column": 1, "source_line": "}" }, @@ -1482,142 +2840,54 @@ "structs": {}, "unions": {}, "enums": {}, - "typedefs": { - "stbrp__findresult": { - "reference": "stbrp__findresult" - } - }, + "typedefs": {}, "variables": {}, - "macros": { - "STB_INCLUDE_STB_RECT_PACK_H": { - "name": "STB_INCLUDE_STB_RECT_PACK_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 67, - "column": 1, - "source_line": "#define STB_INCLUDE_STB_RECT_PACK_H" - } - }, - "STB_RECT_PACK_VERSION": { - "name": "STB_RECT_PACK_VERSION", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 69, - "column": 1, - "source_line": "#define STB_RECT_PACK_VERSION 1" - } - }, - "STBRP_DEF": { - "name": "STBRP_DEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 74, - "column": 1, - "source_line": "#define STBRP_DEF extern" - } - }, - "STBRP__MAXVAL": { - "name": "STBRP__MAXVAL", - "value": "0x7fffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 87, - "column": 1, - "source_line": "#define STBRP__MAXVAL 0x7fffffff" - } - }, - "STBRP_SORT": { - "name": "STBRP_SORT", - "value": "qsort", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 208, - "column": 1, - "source_line": "#define STBRP_SORT qsort" - } - }, - "STBRP_ASSERT": { - "name": "STBRP_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_rect_pack.h": [ + "stbrp_pack_rects", + "stbrp_init_target", + "stbrp_setup_allow_out_of_mem", + "stbrp_setup_heuristic", + "stbrp__skyline_find_min_y", + "stbrp__skyline_find_best_pos", + "stbrp__skyline_pack_rectangle", + "rect_height_compare", + "rect_original_order" + ] + }, + "enum_constants": { + "STBRP_HEURISTIC_Skyline_default": { + "name": "STBRP_HEURISTIC_Skyline_default", + "value": "0", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 213, + "line": 162, "column": 1, - "source_line": "#define STBRP_ASSERT assert" + "source_line": "enum" } }, - "STBRP__NOTUSED": { - "name": "STBRP__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", + "STBRP_HEURISTIC_Skyline_BL_sortHeight": { + "name": "STBRP_HEURISTIC_Skyline_BL_sortHeight", + "value": "STBRP_HEURISTIC_Skyline_default", "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 220, + "line": 162, "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)sizeof(v)" + "source_line": "enum" } }, - "STBRP__CDECL": { - "name": "STBRP__CDECL", + "STBRP_HEURISTIC_Skyline_BF_sortHeight": { + "name": "STBRP_HEURISTIC_Skyline_BF_sortHeight", "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 221, - "column": 1, - "source_line": "#define STBRP__CDECL" - } - } - }, - "includes": { - "stb/stb_rect_pack.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, "source_location": { "filename": "stb/stb_rect_pack.h", - "line": 207, + "line": 162, "column": 1, - "source_line": "#include " + "source_line": "enum" } }, - "stb/stb_rect_pack.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_rect_pack.h", - "line": 212, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_rect_pack.h": [ - "stbrp__skyline_find_min_y", - "stbrp__skyline_find_best_pos", - "stbrp__skyline_pack_rectangle" - ] - }, - "enum_constants": { "STBRP__INIT_skyline": { "name": "STBRP__INIT_skyline", "value": "1", @@ -1633,10 +2903,7 @@ "stb/stb_rect_pack.h": [] }, "system_includes": { - "stb/stb_rect_pack.h": [ - "assert.h", - "stdlib.h" - ] + "stb/stb_rect_pack.h": [] }, "unresolved_includes": { "stb/stb_rect_pack.h": [] @@ -1644,123 +2911,5 @@ "header_source_pairs": { "stb/stb_rect_pack.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBRP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 217, - "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBRP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBRP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 220, - "column": 1, - "source_line": "#define STBRP__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBRP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 78, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 229, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 241, - "column": 1, - "source_line": "STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 261, - "column": 1, - "source_line": "STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'rect_height_compare(const void *a, const void *b)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 524, - "column": 1, - "source_line": "static int STBRP__CDECL rect_height_compare(const void *a, const void *b)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'rect_original_order(const void *a, const void *b)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 535, - "column": 1, - "source_line": "static int STBRP__CDECL rect_original_order(const void *a, const void *b)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBRP_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_rect_pack.h", - "line": 542, - "column": 1, - "source_line": "STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBRP_DEF" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_sprintf.json b/tests/parser/c/fixtures/stb/stb_sprintf.json index e182c8dc8..b32f89812 100644 --- a/tests/parser/c/fixtures/stb/stb_sprintf.json +++ b/tests/parser/c/fixtures/stb/stb_sprintf.json @@ -3,40 +3,64 @@ "stb/stb_sprintf.h": { "filename": "stb/stb_sprintf.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_sprintf.h" + ], "functions": [ { - "name": "stbsp__lead_sign", + "name": "stbsp_vsprintf", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "fl", + "name": "buf", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbsp__uint32 fl", - "name": "stbsp__uint32", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "declared_type": { - "reference": "stbsp__uint32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "sign", + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *sign", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -45,15 +69,17 @@ }, { "model": "CChar", - "qualifiers": [], - "source_text": "char" + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *sign", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -62,60 +88,56 @@ }, { "model": "CChar", - "qualifiers": [], - "source_text": "char" + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "va", + "type": { + "reference": "va_list" + }, + "declared_type": { + "reference": "va_list" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 294, + "line": 208, "column": 1, - "source_line": "static void stbsp__lead_sign(stbsp__uint32 fl, char *sign)" + "source_line": "extern int stbsp_vsprintf(char *buf, char const *fmt, va_list va);" }, "start": { "filename": "stb/stb_sprintf.h", - "line": 294, - "column": 1, - "source_line": "static void stbsp__lead_sign(stbsp__uint32 fl, char *sign)" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 307, + "line": 208, "column": 1, - "source_line": "}" + "source_line": "extern int stbsp_vsprintf(char *buf, char const *fmt, va_list va);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbsp__clamp_callback", + "name": "stbsp_vsnprintf", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int" }, "parameters": [ { @@ -123,7 +145,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *buf", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -132,17 +154,15 @@ }, { "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *buf", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -151,10 +171,8 @@ }, { "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "qualifiers": [], + "source_text": "char" } ] }, @@ -162,11 +180,26 @@ "callback_policy": null }, { - "name": "user", + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -174,16 +207,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -191,9 +226,11 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -201,66 +238,45 @@ "callback_policy": null }, { - "name": "len", + "name": "va", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" + "reference": "va_list" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" + "reference": "va_list" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 1393, + "line": 209, "column": 1, - "source_line": "static char *stbsp__clamp_callback(const char *buf, void *user, int len)" + "source_line": "extern int stbsp_vsnprintf(char *buf, int count, char const *fmt, va_list va);" }, "start": { "filename": "stb/stb_sprintf.h", - "line": 1393, - "column": 1, - "source_line": "static char *stbsp__clamp_callback(const char *buf, void *user, int len)" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1419, + "line": 209, "column": 1, - "source_line": "}" + "source_line": "extern int stbsp_vsnprintf(char *buf, int count, char const *fmt, va_list va);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbsp__count_clamp_callback", + "name": "stbsp_sprintf", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int" }, "parameters": [ { @@ -268,7 +284,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * buf", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -277,17 +293,15 @@ }, { "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "qualifiers": [], + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * buf", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -296,10 +310,8 @@ }, { "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "qualifiers": [], + "source_text": "char" } ] }, @@ -307,11 +319,11 @@ "callback_policy": null }, { - "name": "user", + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -319,16 +331,18 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void * user", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -336,72 +350,54 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], - "is_variadic": false, - "is_definition": true, + "is_variadic": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 1421, + "line": 210, "column": 1, - "source_line": "static char * stbsp__count_clamp_callback( const char * buf, void * user, int len )" + "source_line": "extern int stbsp_sprintf(char *buf, char const *fmt, ...) __attribute__((format(printf,2,3)));" }, "start": { "filename": "stb/stb_sprintf.h", - "line": 1421, - "column": 1, - "source_line": "static char * stbsp__count_clamp_callback( const char * buf, void * user, int len )" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1428, + "line": 210, "column": 1, - "source_line": "}" + "source_line": "extern int stbsp_sprintf(char *buf, char const *fmt, ...) __attribute__((format(printf,2,3)));" }, + "end": null, "declaration_locations": [] }, { - "name": "stbsp__raise_to_power10", + "name": "stbsp_snprintf", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "ohi", + "name": "buf", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "double *ohi", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -409,16 +405,16 @@ "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [], - "source_text": "double" + "source_text": "char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "double *ohi", + "source_text": "char *buf", "components": [ { "model": "CPointer", @@ -426,9 +422,9 @@ "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [], - "source_text": "double" + "source_text": "char" } ] }, @@ -436,11 +432,26 @@ "callback_policy": null }, { - "name": "olo", + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "double *olo", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -448,16 +459,18 @@ "source_text": "" }, { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "double *olo", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -465,153 +478,199 @@ "source_text": "" }, { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double d" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "power", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbsp__int32 power", - "name": "stbsp__int32", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "stbsp__int32" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], - "is_variadic": false, - "is_definition": true, + "is_variadic": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 1638, + "line": 211, "column": 1, - "source_line": "static void stbsp__raise_to_power10(double *ohi, double *olo, double d, stbsp__int32 power) // power can be -323 to +350" + "source_line": "extern int stbsp_snprintf(char *buf, int count, char const *fmt, ...) __attribute__((format(printf,3,4)));" }, "start": { "filename": "stb/stb_sprintf.h", - "line": 1638, - "column": 1, - "source_line": "static void stbsp__raise_to_power10(double *ohi, double *olo, double d, stbsp__int32 power) // power can be -323 to +350" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1699, + "line": 211, "column": 1, - "source_line": "}" + "source_line": "extern int stbsp_snprintf(char *buf, int count, char const *fmt, ...) __attribute__((format(printf,3,4)));" }, + "end": null, "declaration_locations": [] - } - ], - "structs": [ + }, { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ + "name": "stbsp_vsprintfcb", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "temp", + "name": "callback", "type": { - "model": "CShort", + "model": "CComposedType", "qualifiers": [], - "source_text": "short temp" + "source_text": "STBSP_SPRINTFCB *callback", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "STBSP_SPRINTFCB", + "name": "STBSP_SPRINTFCB", + "type": { + "model": "CFunctionType", + "qualifiers": [], + "source_text": "typedef char *STBSP_SPRINTFCB(const char *buf, void *user, int len)", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameter_types": [ + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + } + ], + "is_variadic": false, + "prototype_style": "prototype" + }, + "source_location": { + "filename": "stb/stb_sprintf.h", + "line": 202, + "column": 1, + "source_line": "typedef char *STBSP_SPRINTFCB(const char *buf, void *user, int len);" + }, + "declaration_locations": [] + } + ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 263, - "column": 4, - "source_line": " short temp; // force next field to be 2-byte aligned" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBSP_SPRINTFCB *callback", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBSP_SPRINTFCB" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "pair", + "name": "user", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char pair[201]", + "source_text": "void *user", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "201", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CChar", + "model": "CVoid", "qualifiers": [], - "source_text": "char" + "source_text": "void" } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 264, - "column": 4, - "source_line": " char pair[201];" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_sprintf.h:261:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 261, - "column": 1, - "source_line": "static struct" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbsp__context", - "members": [ + "source_location": null, + "callback_policy": null + }, { "name": "buf", "type": { @@ -631,71 +690,15 @@ } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1387, - "column": 4, - "source_line": " char *buf;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1388, - "column": 4, - "source_line": " int count;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1389, - "column": 4, - "source_line": " int length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tmp", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char tmp[STB_SPRINTF_MIN]", + "source_text": "char *buf", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "STB_SPRINTF_MIN", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { "model": "CChar", @@ -704,63 +707,15 @@ } ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1390, - "column": 4, - "source_line": " char tmp[STB_SPRINTF_MIN];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1386, - "column": 1, - "source_line": "typedef struct stbsp__context {" - } - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STBSP_SPRINTFCB", - "name": "STBSP_SPRINTFCB", - "type": { - "model": "CFunctionType", - "qualifiers": [], - "source_text": "typedef char *STBSP_SPRINTFCB(const char *buf, void *user, int len)", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_location": null, + "callback_policy": null }, - "parameter_types": [ - { + { + "name": "fmt", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *buf", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -776,10 +731,10 @@ } ] }, - { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *user", + "source_text": "char const *fmt", "components": [ { "model": "CPointer", @@ -787,4284 +742,905 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - } - ], - "is_variadic": false, - "prototype_style": "prototype" - }, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 202, - "column": 1, - "source_line": "typedef char *STBSP_SPRINTFCB(const char *buf, void *user, int len);" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbsp__context", - "name": "stbsp__context", - "type": { - "reference": "struct stbsp__context" - }, + "source_location": null, + "callback_policy": null + }, + { + "name": "va", + "type": { + "reference": "va_list" + }, + "declared_type": { + "reference": "va_list" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 1386, + "line": 213, "column": 1, - "source_line": "typedef struct stbsp__context {" - }, - "declaration_locations": [] - } - ], - "variables": [ - { - "name": "stbsp__period", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "static char stbsp__period" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "'.'" + "source_line": "extern int stbsp_vsprintfcb(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" }, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_sprintf.h", - "line": 259, + "line": 213, "column": 1, - "source_line": "static char stbsp__period = '.';" + "source_line": "extern int stbsp_vsprintfcb(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" }, - "callback_policy": null, + "end": null, "declaration_locations": [] }, { - "name": "stbsp__comma", - "type": { - "model": "CChar", + "name": "stbsp_set_separators", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "static char stbsp__comma" + "source_text": "void" }, + "parameters": [ + { + "name": "comma", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char comma" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char comma" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "period", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char period" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char period" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ - "static" + "extern" ], - "initializer": { - "source_text": "','" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 260, + "line": 214, "column": 1, - "source_line": "static char stbsp__comma = ',';" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbsp__digitpair", - "type": { - "reference": "struct@stb/stb_sprintf.h:261:1" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0,\n \"00010203040506070809101112131415161718192021222324\"\n \"25262728293031323334353637383940414243444546474849\"\n \"50515253545556575859606162636465666768697071727374\"\n \"75767778798081828384858687888990919293949596979899\"\n}" + "source_line": "extern void stbsp_set_separators(char comma, char period);" }, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_sprintf.h", - "line": 261, + "line": 214, "column": 1, - "source_line": "static struct" + "source_line": "extern void stbsp_set_separators(char comma, char period);" }, - "callback_policy": null, + "end": null, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbsp_vsprintf": { + "name": "stbsp_vsprintf", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "stbsp__bot", + "name": "buf", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__bot[23]", + "source_text": "char *buf", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "23", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e+000, 1e+001, 1e+002, 1e+003, 1e+004, 1e+005, 1e+006, 1e+007, 1e+008, 1e+009, 1e+010, 1e+011,\n 1e+012, 1e+013, 1e+014, 1e+015, 1e+016, 1e+017, 1e+018, 1e+019, 1e+020, 1e+021, 1e+022\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1507, - "column": 1, - "source_line": "static double const stbsp__bot[23] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbsp__negbot", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__negbot[22]", + "source_text": "char *buf", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "22", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e-001, 1e-002, 1e-003, 1e-004, 1e-005, 1e-006, 1e-007, 1e-008, 1e-009, 1e-010, 1e-011,\n 1e-012, 1e-013, 1e-014, 1e-015, 1e-016, 1e-017, 1e-018, 1e-019, 1e-020, 1e-021, 1e-022\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1511, - "column": 1, - "source_line": "static double const stbsp__negbot[22] = {" - }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbsp__negboterr", + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__negboterr[22]", + "source_text": "char const *fmt", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "22", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const double" + "source_text": "const char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n -5.551115123125783e-018, -2.0816681711721684e-019, -2.0816681711721686e-020, -4.7921736023859299e-021, -8.1803053914031305e-022, 4.5251888174113741e-023,\n 4.5251888174113739e-024, -2.0922560830128471e-025, -6.2281591457779853e-026, -3.6432197315497743e-027, 6.0503030718060191e-028, 2.0113352370744385e-029,\n -3.0373745563400371e-030, 1.1806906454401013e-032, -7.7705399876661076e-032, 2.0902213275965398e-033, -7.1542424054621921e-034, -7.1542424054621926e-035,\n 2.4754073164739869e-036, 5.4846728545790429e-037, 9.2462547772103625e-038, -4.8596774326570872e-039\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1515, - "column": 1, - "source_line": "static double const stbsp__negboterr[22] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbsp__top", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__top[13]", + "source_text": "char const *fmt", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const double" + "source_text": "const char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e+023, 1e+046, 1e+069, 1e+092, 1e+115, 1e+138, 1e+161, 1e+184, 1e+207, 1e+230, 1e+253, 1e+276, 1e+299\n}" + "source_location": null, + "callback_policy": null + }, + { + "name": "va", + "type": { + "reference": "va_list" }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1521, - "column": 1, - "source_line": "static double const stbsp__top[13] = {" + "declared_type": { + "reference": "va_list" }, - "callback_policy": null, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_sprintf.h", + "line": 208, + "column": 1, + "source_line": "extern int stbsp_vsprintf(char *buf, char const *fmt, va_list va);" + }, + "start": { + "filename": "stb/stb_sprintf.h", + "line": 208, + "column": 1, + "source_line": "extern int stbsp_vsprintf(char *buf, char const *fmt, va_list va);" + }, + "end": null, + "declaration_locations": [] + }, + "stbsp_vsnprintf": { + "name": "stbsp_vsnprintf", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "stbsp__negtop", + "name": "buf", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__negtop[13]", + "source_text": "char *buf", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" + "model": "CChar", + "qualifiers": [], + "source_text": "char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e-023, 1e-046, 1e-069, 1e-092, 1e-115, 1e-138, 1e-161, 1e-184, 1e-207, 1e-230, 1e-253, 1e-276, 1e-299\n}" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1524, - "column": 1, - "source_line": "static double const stbsp__negtop[13] = {" + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" }, - "callback_policy": null, - "declaration_locations": [] + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null }, { - "name": "stbsp__toperr", + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__toperr[13]", + "source_text": "char const *fmt", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const double" + "source_text": "const char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 8388608,\n 6.8601809640529717e+028,\n -7.253143638152921e+052,\n -4.3377296974619174e+075,\n -1.5559416129466825e+098,\n -3.2841562489204913e+121,\n -3.7745893248228135e+144,\n -1.7356668416969134e+167,\n -3.8893577551088374e+190,\n -9.9566444326005119e+213,\n 6.3641293062232429e+236,\n -5.2069140800249813e+259,\n -5.2504760255204387e+282\n}" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1527, - "column": 1, - "source_line": "static double const stbsp__toperr[13] = {" + "source_location": null, + "callback_policy": null + }, + { + "name": "va", + "type": { + "reference": "va_list" }, - "callback_policy": null, - "declaration_locations": [] + "declared_type": { + "reference": "va_list" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_sprintf.h", + "line": 209, + "column": 1, + "source_line": "extern int stbsp_vsnprintf(char *buf, int count, char const *fmt, va_list va);" + }, + "start": { + "filename": "stb/stb_sprintf.h", + "line": 209, + "column": 1, + "source_line": "extern int stbsp_vsnprintf(char *buf, int count, char const *fmt, va_list va);" + }, + "end": null, + "declaration_locations": [] + }, + "stbsp_sprintf": { + "name": "stbsp_sprintf", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "buf", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "stbsp__negtoperr", + "name": "fmt", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "static double const stbsp__negtoperr[13]", + "source_text": "char const *fmt", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CDouble", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const double" + "source_text": "const char" } ] }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 3.9565301985100693e-040, -2.299904345391321e-063, 3.6506201437945798e-086, 1.1875228833981544e-109,\n -5.0644902316928607e-132, -6.7156837247865426e-155, -2.812077463003139e-178, -5.7778912386589953e-201,\n 7.4997100559334532e-224, -4.6439668915134491e-247, -6.3691100762962136e-270, -9.436808465446358e-293,\n 8.0970921678014997e-317\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1542, - "column": 1, - "source_line": "static double const stbsp__negtoperr[13] = {" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null } ], - "macros": [ + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": true, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_sprintf.h", + "line": 210, + "column": 1, + "source_line": "extern int stbsp_sprintf(char *buf, char const *fmt, ...) __attribute__((format(printf,2,3)));" + }, + "start": { + "filename": "stb/stb_sprintf.h", + "line": 210, + "column": 1, + "source_line": "extern int stbsp_sprintf(char *buf, char const *fmt, ...) __attribute__((format(printf,2,3)));" + }, + "end": null, + "declaration_locations": [] + }, + "stbsp_snprintf": { + "name": "stbsp_snprintf", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "STB_SPRINTF_H_INCLUDE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 30, - "column": 1, - "source_line": "#define STB_SPRINTF_H_INCLUDE" - } - }, - { - "name": "STBSP__ASAN", - "value": "__attribute__((__no_sanitize__(\"address\")))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 149, - "column": 5, - "source_line": " #define STBSP__ASAN __attribute__((__no_sanitize__(\"address\")))" - } - }, - { - "name": "STBSP__ASAN", - "value": "__attribute__((__no_sanitize_address__))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 151, - "column": 5, - "source_line": " #define STBSP__ASAN __attribute__((__no_sanitize_address__))" - } - }, - { - "name": "STBSP__ASAN", - "value": "__attribute__((__no_address_safety_analysis__))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 153, - "column": 5, - "source_line": " #define STBSP__ASAN __attribute__((__no_address_safety_analysis__))" - } - }, - { - "name": "STBSP__ASAN", - "value": "__attribute__((__no_sanitize_address__))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 159, - "column": 3, - "source_line": " #define STBSP__ASAN __attribute__((__no_sanitize_address__))" - } - }, - { - "name": "STBSP__ASAN", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 164, - "column": 1, - "source_line": "#define STBSP__ASAN" - } - }, - { - "name": "STBSP__PUBLICDEC", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 168, - "column": 1, - "source_line": "#define STBSP__PUBLICDEC static" - } - }, - { - "name": "STBSP__PUBLICDEF", - "value": "static STBSP__ASAN", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 169, - "column": 1, - "source_line": "#define STBSP__PUBLICDEF static STBSP__ASAN" - } - }, - { - "name": "STBSP__PUBLICDEC", - "value": "extern \"C\"", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 172, - "column": 1, - "source_line": "#define STBSP__PUBLICDEC extern \"C\"" - } + "name": "buf", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "STBSP__PUBLICDEF", - "value": "extern \"C\" STBSP__ASAN", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 173, - "column": 1, - "source_line": "#define STBSP__PUBLICDEF extern \"C\" STBSP__ASAN" - } + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null }, { - "name": "STBSP__PUBLICDEC", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 175, - "column": 1, - "source_line": "#define STBSP__PUBLICDEC extern" - } - }, + "name": "fmt", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": true, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_sprintf.h", + "line": 211, + "column": 1, + "source_line": "extern int stbsp_snprintf(char *buf, int count, char const *fmt, ...) __attribute__((format(printf,3,4)));" + }, + "start": { + "filename": "stb/stb_sprintf.h", + "line": 211, + "column": 1, + "source_line": "extern int stbsp_snprintf(char *buf, int count, char const *fmt, ...) __attribute__((format(printf,3,4)));" + }, + "end": null, + "declaration_locations": [] + }, + "stbsp_vsprintfcb": { + "name": "stbsp_vsprintfcb", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "STBSP__PUBLICDEF", - "value": "STBSP__ASAN", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 176, - "column": 1, - "source_line": "#define STBSP__PUBLICDEF STBSP__ASAN" - } + "name": "callback", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBSP_SPRINTFCB *callback", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBSP_SPRINTFCB" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "STBSP_SPRINTFCB *callback", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "STBSP_SPRINTFCB" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "STBSP__ATTRIBUTE_FORMAT", - "value": "__attribute__((format(printf,fmt,va)))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 182, - "column": 4, - "source_line": " #define STBSP__ATTRIBUTE_FORMAT(fmt,va) __attribute__((format(printf,fmt,va)))" - } + "name": "user", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "STBSP__ATTRIBUTE_FORMAT", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 187, - "column": 1, - "source_line": "#define STBSP__ATTRIBUTE_FORMAT(fmt,va)" - } + "name": "buf", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *buf", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "name": "STBSP__NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 191, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBSP__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 193, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "STB_SPRINTF_MIN", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 200, - "column": 1, - "source_line": "#define STB_SPRINTF_MIN 512 // how many characters per callback" - } - }, - { - "name": "STB_SPRINTF_DECORATE", - "value": "stbsp_##name", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 205, - "column": 1, - "source_line": "#define STB_SPRINTF_DECORATE(name) stbsp_##name // define this before including if you want to change the names" - } - }, - { - "name": "stbsp__uint32", - "value": "unsigned int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 220, - "column": 1, - "source_line": "#define stbsp__uint32 unsigned int" - } - }, - { - "name": "stbsp__int32", - "value": "signed int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 221, - "column": 1, - "source_line": "#define stbsp__int32 signed int" - } - }, - { - "name": "stbsp__uint64", - "value": "unsigned __int64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 224, - "column": 1, - "source_line": "#define stbsp__uint64 unsigned __int64" - } - }, - { - "name": "stbsp__int64", - "value": "signed __int64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 225, - "column": 1, - "source_line": "#define stbsp__int64 signed __int64" - } - }, - { - "name": "stbsp__uint64", - "value": "unsigned long long", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 227, - "column": 1, - "source_line": "#define stbsp__uint64 unsigned long long" - } - }, - { - "name": "stbsp__int64", - "value": "signed long long", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 228, - "column": 1, - "source_line": "#define stbsp__int64 signed long long" - } - }, - { - "name": "stbsp__uint16", - "value": "unsigned short", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 230, - "column": 1, - "source_line": "#define stbsp__uint16 unsigned short" - } - }, - { - "name": "stbsp__uintptr", - "value": "stbsp__uint64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 234, - "column": 1, - "source_line": "#define stbsp__uintptr stbsp__uint64" - } - }, - { - "name": "stbsp__uintptr", - "value": "stbsp__uint32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 236, - "column": 1, - "source_line": "#define stbsp__uintptr stbsp__uint32" - } - }, - { - "name": "STB_SPRINTF_MSVC_MODE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 242, - "column": 1, - "source_line": "#define STB_SPRINTF_MSVC_MODE" - } - }, - { - "name": "STBSP__UNALIGNED", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 247, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code)" - } - }, - { - "name": "STBSP__UNALIGNED", - "value": "code", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 249, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code) code" - } - }, - { - "name": "STBSP__SPECIAL", - "value": "0x7000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 256, - "column": 1, - "source_line": "#define STBSP__SPECIAL 0x7000" - } - }, - { - "name": "STBSP__LEFTJUST", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 280, - "column": 1, - "source_line": "#define STBSP__LEFTJUST 1" - } - }, - { - "name": "STBSP__LEADINGPLUS", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 281, - "column": 1, - "source_line": "#define STBSP__LEADINGPLUS 2" - } - }, - { - "name": "STBSP__LEADINGSPACE", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 282, - "column": 1, - "source_line": "#define STBSP__LEADINGSPACE 4" - } - }, - { - "name": "STBSP__LEADING_0X", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 283, - "column": 1, - "source_line": "#define STBSP__LEADING_0X 8" - } - }, - { - "name": "STBSP__LEADINGZERO", - "value": "16", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 284, - "column": 1, - "source_line": "#define STBSP__LEADINGZERO 16" - } - }, - { - "name": "STBSP__INTMAX", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 285, - "column": 1, - "source_line": "#define STBSP__INTMAX 32" - } - }, - { - "name": "STBSP__TRIPLET_COMMA", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 286, - "column": 1, - "source_line": "#define STBSP__TRIPLET_COMMA 64" - } - }, - { - "name": "STBSP__NEGATIVE", - "value": "128", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 287, - "column": 1, - "source_line": "#define STBSP__NEGATIVE 128" - } - }, - { - "name": "STBSP__METRIC_SUFFIX", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 288, - "column": 1, - "source_line": "#define STBSP__METRIC_SUFFIX 256" - } - }, - { - "name": "STBSP__HALFWIDTH", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 289, - "column": 1, - "source_line": "#define STBSP__HALFWIDTH 512" - } - }, - { - "name": "STBSP__METRIC_NOSPACE", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 290, - "column": 1, - "source_line": "#define STBSP__METRIC_NOSPACE 1024" - } - }, - { - "name": "STBSP__METRIC_1024", - "value": "2048", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 291, - "column": 1, - "source_line": "#define STBSP__METRIC_1024 2048" - } - }, - { - "name": "STBSP__METRIC_JEDEC", - "value": "4096", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 292, - "column": 1, - "source_line": "#define STBSP__METRIC_JEDEC 4096" - } - }, - { - "name": "stbsp__chk_cb_bufL", - "value": "{ int len = (int)(bf - buf); if ((len + (bytes)) >= STB_SPRINTF_MIN) { tlen += len; if (0 == (bf = buf = callback(buf, user, len))) goto done; } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 364, - "column": 7, - "source_line": " #define stbsp__chk_cb_bufL(bytes) \\" - } - }, - { - "name": "stbsp__chk_cb_buf", - "value": "{ if (callback) { stbsp__chk_cb_bufL(bytes); } }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 373, - "column": 7, - "source_line": " #define stbsp__chk_cb_buf(bytes) \\" - } - }, - { - "name": "stbsp__flush_cb", - "value": "{ stbsp__chk_cb_bufL(STB_SPRINTF_MIN - 1); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 379, - "column": 7, - "source_line": " #define stbsp__flush_cb() \\" - } - }, - { - "name": "stbsp__cb_buf_clamp", - "value": "cl = v; if (callback) { int lg = STB_SPRINTF_MIN - (int)(bf - buf); if (cl > lg) cl = lg; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 383, - "column": 7, - "source_line": " #define stbsp__cb_buf_clamp(cl, v) \\" - } - }, - { - "name": "STBSP__NUMSZ", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 573, - "column": 10, - "source_line": " #define STBSP__NUMSZ 512 // big enough for e308 (with commas) or e-307" - } - }, - { - "name": "STBSP__LEFTJUST", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1358, - "column": 1, - "source_line": "#undef STBSP__LEFTJUST" - } - }, - { - "name": "STBSP__LEADINGPLUS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1359, - "column": 1, - "source_line": "#undef STBSP__LEADINGPLUS" - } - }, - { - "name": "STBSP__LEADINGSPACE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1360, - "column": 1, - "source_line": "#undef STBSP__LEADINGSPACE" - } - }, - { - "name": "STBSP__LEADING_0X", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1361, - "column": 1, - "source_line": "#undef STBSP__LEADING_0X" - } - }, - { - "name": "STBSP__LEADINGZERO", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1362, - "column": 1, - "source_line": "#undef STBSP__LEADINGZERO" - } - }, - { - "name": "STBSP__INTMAX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1363, - "column": 1, - "source_line": "#undef STBSP__INTMAX" - } - }, - { - "name": "STBSP__TRIPLET_COMMA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1364, - "column": 1, - "source_line": "#undef STBSP__TRIPLET_COMMA" - } - }, - { - "name": "STBSP__NEGATIVE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1365, - "column": 1, - "source_line": "#undef STBSP__NEGATIVE" - } - }, - { - "name": "STBSP__METRIC_SUFFIX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1366, - "column": 1, - "source_line": "#undef STBSP__METRIC_SUFFIX" - } - }, - { - "name": "STBSP__NUMSZ", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1367, - "column": 1, - "source_line": "#undef STBSP__NUMSZ" - } - }, - { - "name": "stbsp__chk_cb_bufL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1368, - "column": 1, - "source_line": "#undef stbsp__chk_cb_bufL" - } - }, - { - "name": "stbsp__chk_cb_buf", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1369, - "column": 1, - "source_line": "#undef stbsp__chk_cb_buf" - } - }, - { - "name": "stbsp__flush_cb", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1370, - "column": 1, - "source_line": "#undef stbsp__flush_cb" - } - }, - { - "name": "stbsp__cb_buf_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1371, - "column": 1, - "source_line": "#undef stbsp__cb_buf_clamp" - } - }, - { - "name": "STBSP__COPYFP", - "value": "{ int cn; for (cn = 0; cn < 8; cn++) ((char *)&dest)[cn] = ((char *)&src)[cn]; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1483, - "column": 1, - "source_line": "#define STBSP__COPYFP(dest, src) \\" - } - }, - { - "name": "stbsp__tento19th", - "value": "((stbsp__uint64)1000000000000000000)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1572, - "column": 1, - "source_line": "#define stbsp__tento19th ((stbsp__uint64)1000000000000000000)" - } - }, - { - "name": "stbsp__tento19th", - "value": "(1000000000000000000ULL)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1596, - "column": 1, - "source_line": "#define stbsp__tento19th (1000000000000000000ULL)" - } - }, - { - "name": "stbsp__ddmulthi", - "value": "{ double ahi = 0, alo, bhi = 0, blo; stbsp__int64 bt; oh = xh * yh; STBSP__COPYFP(bt, xh); bt &= ((~(stbsp__uint64)0) << 27); STBSP__COPYFP(ahi, bt); alo = xh - ahi; STBSP__COPYFP(bt, yh); bt &= ((~(stbsp__uint64)0) << 27); STBSP__COPYFP(bhi, bt); blo = yh - bhi; ol = ((ahi * bhi - oh) + ahi * blo + alo * bhi) + alo * blo; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1599, - "column": 1, - "source_line": "#define stbsp__ddmulthi(oh, ol, xh, yh) \\" - } - }, - { - "name": "stbsp__ddtoS64", - "value": "{ double ahi = 0, alo, vh, t; ob = (stbsp__int64)xh; vh = (double)ob; ahi = (xh - vh); t = (ahi - xh); alo = (xh - (ahi - t)) - (vh + t); ob += (stbsp__int64)(ahi + alo + xl); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1615, - "column": 1, - "source_line": "#define stbsp__ddtoS64(ob, xh, xl) \\" - } - }, - { - "name": "stbsp__ddrenorm", - "value": "{ double s; s = oh + ol; ol = ol - (s - oh); oh = s; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1626, - "column": 1, - "source_line": "#define stbsp__ddrenorm(oh, ol) \\" - } - }, - { - "name": "stbsp__ddmultlo", - "value": "ol = ol + (xh * yl + xl * yh);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1634, - "column": 1, - "source_line": "#define stbsp__ddmultlo(oh, ol, xh, xl, yh, yl) ol = ol + (xh * yl + xl * yh);" - } - }, - { - "name": "stbsp__ddmultlos", - "value": "ol = ol + (xh * yl);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1636, - "column": 1, - "source_line": "#define stbsp__ddmultlos(oh, ol, xh, yl) ol = ol + (xh * yl);" - } - }, - { - "name": "stbsp__ddmulthi", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1847, - "column": 1, - "source_line": "#undef stbsp__ddmulthi" - } - }, - { - "name": "stbsp__ddrenorm", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1848, - "column": 1, - "source_line": "#undef stbsp__ddrenorm" - } - }, - { - "name": "stbsp__ddmultlo", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1849, - "column": 1, - "source_line": "#undef stbsp__ddmultlo" - } - }, - { - "name": "stbsp__ddmultlos", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1850, - "column": 1, - "source_line": "#undef stbsp__ddmultlos" - } - }, - { - "name": "STBSP__SPECIAL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1851, - "column": 1, - "source_line": "#undef STBSP__SPECIAL" - } - }, - { - "name": "STBSP__COPYFP", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1852, - "column": 1, - "source_line": "#undef STBSP__COPYFP" - } - }, - { - "name": "stbsp__uint16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1857, - "column": 1, - "source_line": "#undef stbsp__uint16" - } - }, - { - "name": "stbsp__uint32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1858, - "column": 1, - "source_line": "#undef stbsp__uint32" - } - }, - { - "name": "stbsp__int32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1859, - "column": 1, - "source_line": "#undef stbsp__int32" - } - }, - { - "name": "stbsp__uint64", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1860, - "column": 1, - "source_line": "#undef stbsp__uint64" - } - }, - { - "name": "stbsp__int64", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1861, - "column": 1, - "source_line": "#undef stbsp__int64" - } - }, - { - "name": "STBSP__UNALIGNED", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1862, - "column": 1, - "source_line": "#undef STBSP__UNALIGNED" - } - } - ], - "includes": [ - { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 196, - "column": 1, - "source_line": "#include // for va_arg(), va_list()" - } - }, - { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 197, - "column": 1, - "source_line": "#include // size_t, ptrdiff_t" - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_SPRINTF_H_INCLUDE", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 29, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_H_INCLUDE" - } - }, - { - "directive": "if", - "argument": "defined(__clang__)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 145, - "column": 1, - "source_line": "#if defined(__clang__)" - } - }, - { - "directive": "if", - "argument": "defined(__has_feature) && defined(__has_attribute)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 146, - "column": 2, - "source_line": " #if defined(__has_feature) && defined(__has_attribute)" - } - }, - { - "directive": "if", - "argument": "__has_feature(address_sanitizer)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 147, - "column": 3, - "source_line": " #if __has_feature(address_sanitizer)" - } - }, - { - "directive": "if", - "argument": "__has_attribute(__no_sanitize__)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 148, - "column": 4, - "source_line": " #if __has_attribute(__no_sanitize__)" - } - }, - { - "directive": "elif", - "argument": "__has_attribute(__no_sanitize_address__)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 150, - "column": 4, - "source_line": " #elif __has_attribute(__no_sanitize_address__)" - } - }, - { - "directive": "elif", - "argument": "__has_attribute(__no_address_safety_analysis__)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 152, - "column": 4, - "source_line": " #elif __has_attribute(__no_address_safety_analysis__)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 154, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 155, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 156, - "column": 2, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "defined(__GNUC__) && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 157, - "column": 1, - "source_line": "#elif defined(__GNUC__) && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))" - } - }, - { - "directive": "if", - "argument": "defined(__SANITIZE_ADDRESS__) && __SANITIZE_ADDRESS__", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 158, - "column": 2, - "source_line": " #if defined(__SANITIZE_ADDRESS__) && __SANITIZE_ADDRESS__" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 160, - "column": 2, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 161, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBSP__ASAN", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 163, - "column": 1, - "source_line": "#ifndef STBSP__ASAN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 165, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_STATIC", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 167, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 170, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 171, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 174, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 177, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 178, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__has_attribute)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 180, - "column": 1, - "source_line": "#if defined(__has_attribute)" - } - }, - { - "directive": "if", - "argument": "__has_attribute(format)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 181, - "column": 2, - "source_line": " #if __has_attribute(format)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 183, - "column": 2, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 184, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBSP__ATTRIBUTE_FORMAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 186, - "column": 1, - "source_line": "#ifndef STBSP__ATTRIBUTE_FORMAT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 188, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 190, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 192, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 194, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_MIN", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 199, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_MIN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 201, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_DECORATE", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 204, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_DECORATE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 206, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 216, - "column": 1, - "source_line": "#endif // STB_SPRINTF_H_INCLUDE" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 218, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_IMPLEMENTATION" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 223, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 226, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 229, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbsp__uintptr", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 232, - "column": 1, - "source_line": "#ifndef stbsp__uintptr" - } - }, - { - "directive": "if", - "argument": "defined(__ppc64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) || defined(__s390x__)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 233, - "column": 1, - "source_line": "#if defined(__ppc64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) || defined(__s390x__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 235, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 237, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 238, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_MSVC_MODE", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 240, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_MSVC_MODE // used for MSVC2013 and earlier (MSVC2015 matches GCC)" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && (_MSC_VER < 1900)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 241, - "column": 1, - "source_line": "#if defined(_MSC_VER) && (_MSC_VER < 1900)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 243, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 244, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_NOUNALIGNED", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 246, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_NOUNALIGNED // define this before inclusion to force stbsp_sprintf to always use aligned accesses" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 248, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 250, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_NOFLOAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 252, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 257, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_NOUNALIGNED", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 418, - "column": 13, - "source_line": " #ifdef STB_SPRINTF_NOUNALIGNED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 425, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_NOFLOAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 581, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 583, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_NOFLOAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 621, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 638, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_MSVC_MODE", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 662, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_MSVC_MODE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 665, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 669, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_SPRINTF_MSVC_MODE", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 789, - "column": 1, - "source_line": "#ifdef STB_SPRINTF_MSVC_MODE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 791, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 793, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 976, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_NOFLOAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1076, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1085, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_SPRINTF_NOFLOAT", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1480, - "column": 1, - "source_line": "#ifndef STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) && (_MSC_VER <= 1200)", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1549, - "column": 1, - "source_line": "#if defined(_MSC_VER) && (_MSC_VER <= 1200)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1573, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1597, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1854, - "column": 1, - "source_line": "#endif // STB_SPRINTF_NOFLOAT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1864, - "column": 1, - "source_line": "#endif // STB_SPRINTF_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 208, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va);" - }, - "source_text": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 209, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsnprintf)(char *buf, int count, char const *fmt, va_list va);" - }, - "source_text": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsnprintf)(char *buf, int count, char const *fmt, va_list va)" - }, - { - "name": "STBSP__ATTRIBUTE_FORMAT", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 210, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(2,3);" - }, - "source_text": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(2,3)" - }, - { - "name": "STBSP__ATTRIBUTE_FORMAT", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 211, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(3,4);" - }, - "source_text": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(3,4)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 213, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" - }, - "source_text": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 214, - "column": 1, - "source_line": "STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char period);" - }, - "source_text": "STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char period)" - }, - { - "name": "stbsp__int32", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 254, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits);" - }, - "source_text": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits)" - }, - { - "name": "stbsp__int32", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 255, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value);" - }, - "source_text": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 274, - "column": 1, - "source_line": "STBSP__PUBLICDEF void STB_SPRINTF_DECORATE(set_separators)(char pcomma, char pperiod)" - }, - "source_text": "STBSP__PUBLICDEF void STB_SPRINTF_DECORATE(set_separators)(char pcomma, char pperiod)" - }, - { - "name": "STBSP__ASAN", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 309, - "column": 1, - "source_line": "static STBSP__ASAN stbsp__uint32 stbsp__strlen_limited(char const *s, stbsp__uint32 limit)" - }, - "source_text": "static STBSP__ASAN stbsp__uint32 stbsp__strlen_limited(char const *s, stbsp__uint32 limit)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 349, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va)" - }, - "source_text": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1376, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...)" - }, - "source_text": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1430, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE( vsnprintf )( char * buf, int count, char const * fmt, va_list va )" - }, - "source_text": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE( vsnprintf )( char * buf, int count, char const * fmt, va_list va )" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1460, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...)" - }, - "source_text": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...)" - }, - { - "name": "STB_SPRINTF_DECORATE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1472, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va)" - }, - "source_text": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va)" - }, - { - "name": "stbsp__int32", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1491, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value)" - }, - "source_text": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value)" - }, - { - "name": "stbsp__uint64", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1550, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "source_text": "static stbsp__uint64 const stbsp__powten[20] = {\n 1,\n 10,\n 100,\n 1000,\n 10000,\n 100000,\n 1000000,\n 10000000,\n 100000000,\n 1000000000,\n 10000000000,\n 100000000000,\n 1000000000000,\n 10000000000000,\n 100000000000000,\n 1000000000000000,\n 10000000000000000,\n 100000000000000000,\n 1000000000000000000,\n 10000000000000000000U\n}" - }, - { - "name": "stbsp__uint64", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1574, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "source_text": "static stbsp__uint64 const stbsp__powten[20] = {\n 1,\n 10,\n 100,\n 1000,\n 10000,\n 100000,\n 1000000,\n 10000000,\n 100000000,\n 1000000000,\n 10000000000ULL,\n 100000000000ULL,\n 1000000000000ULL,\n 10000000000000ULL,\n 100000000000000ULL,\n 1000000000000000ULL,\n 10000000000000000ULL,\n 100000000000000000ULL,\n 1000000000000000000ULL,\n 10000000000000000000ULL\n}" - }, - { - "name": "stbsp__int32", - "context": "declaration", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1705, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits)" - }, - "source_text": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__ATTRIBUTE_FORMAT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 182, - "column": 4, - "source_line": " #define STBSP__ATTRIBUTE_FORMAT(fmt,va) __attribute__((format(printf,fmt,va)))" - }, - "unit_kind": "macro", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__ATTRIBUTE_FORMAT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 187, - "column": 1, - "source_line": "#define STBSP__ATTRIBUTE_FORMAT(fmt,va)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 191, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 193, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_SPRINTF_DECORATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 205, - "column": 1, - "source_line": "#define STB_SPRINTF_DECORATE(name) stbsp_##name // define this before including if you want to change the names" - }, - "unit_kind": "macro", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__UNALIGNED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 247, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__UNALIGNED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__UNALIGNED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 249, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code) code" - }, - "unit_kind": "macro", - "unit_name": "STBSP__UNALIGNED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__chk_cb_bufL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 364, - "column": 7, - "source_line": " #define stbsp__chk_cb_bufL(bytes) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__chk_cb_bufL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__chk_cb_buf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 373, - "column": 7, - "source_line": " #define stbsp__chk_cb_buf(bytes) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__chk_cb_buf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__flush_cb' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 379, - "column": 7, - "source_line": " #define stbsp__flush_cb() \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__flush_cb" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__cb_buf_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 383, - "column": 7, - "source_line": " #define stbsp__cb_buf_clamp(cl, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__cb_buf_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__COPYFP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1483, - "column": 1, - "source_line": "#define STBSP__COPYFP(dest, src) \\" - }, - "unit_kind": "macro", - "unit_name": "STBSP__COPYFP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmulthi' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1599, - "column": 1, - "source_line": "#define stbsp__ddmulthi(oh, ol, xh, yh) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmulthi" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddtoS64' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1615, - "column": 1, - "source_line": "#define stbsp__ddtoS64(ob, xh, xl) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddtoS64" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddrenorm' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1626, - "column": 1, - "source_line": "#define stbsp__ddrenorm(oh, ol) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddrenorm" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmultlo' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1634, - "column": 1, - "source_line": "#define stbsp__ddmultlo(oh, ol, xh, xl, yh, yl) ol = ol + (xh * yl + xl * yh);" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmultlo" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmultlos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1636, - "column": 1, - "source_line": "#define stbsp__ddmultlos(oh, ol, xh, yl) ol = ol + (xh * yl);" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmultlos" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 208, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 209, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsnprintf)(char *buf, int count, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBSP__ATTRIBUTE_FORMAT'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 210, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(2,3);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBSP__ATTRIBUTE_FORMAT'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 211, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(3,4);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 213, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 214, - "column": 1, - "source_line": "STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char period);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 254, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 255, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 274, - "column": 1, - "source_line": "STBSP__PUBLICDEF void STB_SPRINTF_DECORATE(set_separators)(char pcomma, char pperiod)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBSP__ASAN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 309, - "column": 1, - "source_line": "static STBSP__ASAN stbsp__uint32 stbsp__strlen_limited(char const *s, stbsp__uint32 limit)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ASAN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 349, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1376, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1430, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE( vsnprintf )( char * buf, int count, char const * fmt, va_list va )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1460, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1472, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1491, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__uint64'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1550, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__uint64" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__uint64'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1574, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__uint64" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1705, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - } - ] - } - }, - "functions": { - "stbsp__lead_sign": { - "name": "stbsp__lead_sign", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "fl", - "type": { - "reference": "stbsp__uint32" - }, - "declared_type": { - "reference": "stbsp__uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sign", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *sign", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *sign", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 294, - "column": 1, - "source_line": "static void stbsp__lead_sign(stbsp__uint32 fl, char *sign)" - }, - "start": { - "filename": "stb/stb_sprintf.h", - "line": 294, - "column": 1, - "source_line": "static void stbsp__lead_sign(stbsp__uint32 fl, char *sign)" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 307, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbsp__clamp_callback": { - "name": "stbsp__clamp_callback", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "buf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *buf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *buf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1393, - "column": 1, - "source_line": "static char *stbsp__clamp_callback(const char *buf, void *user, int len)" - }, - "start": { - "filename": "stb/stb_sprintf.h", - "line": 1393, - "column": 1, - "source_line": "static char *stbsp__clamp_callback(const char *buf, void *user, int len)" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1419, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbsp__count_clamp_callback": { - "name": "stbsp__count_clamp_callback", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "buf", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * buf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * buf", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "user", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void * user", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1421, - "column": 1, - "source_line": "static char * stbsp__count_clamp_callback( const char * buf, void * user, int len )" - }, - "start": { - "filename": "stb/stb_sprintf.h", - "line": 1421, - "column": 1, - "source_line": "static char * stbsp__count_clamp_callback( const char * buf, void * user, int len )" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1428, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbsp__raise_to_power10": { - "name": "stbsp__raise_to_power10", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "ohi", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double *ohi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double *ohi", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "olo", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double *olo", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "double *olo", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "d", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double d" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double d" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "power", - "type": { - "reference": "stbsp__int32" - }, - "declared_type": { - "reference": "stbsp__int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1638, - "column": 1, - "source_line": "static void stbsp__raise_to_power10(double *ohi, double *olo, double d, stbsp__int32 power) // power can be -323 to +350" - }, - "start": { - "filename": "stb/stb_sprintf.h", - "line": 1638, - "column": 1, - "source_line": "static void stbsp__raise_to_power10(double *ohi, double *olo, double d, stbsp__int32 power) // power can be -323 to +350" - }, - "end": { - "filename": "stb/stb_sprintf.h", - "line": 1699, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stbsp__context": { - "reference": "struct stbsp__context" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "STBSP_SPRINTFCB": { - "reference": "STBSP_SPRINTFCB" - }, - "stbsp__context": { - "reference": "stbsp__context" - } - }, - "variables": { - "stbsp__period": { - "name": "stbsp__period", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "static char stbsp__period" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "'.'" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 259, - "column": 1, - "source_line": "static char stbsp__period = '.';" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__comma": { - "name": "stbsp__comma", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "static char stbsp__comma" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "','" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 260, - "column": 1, - "source_line": "static char stbsp__comma = ',';" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__digitpair": { - "name": "stbsp__digitpair", - "type": { - "reference": "struct@stb/stb_sprintf.h:261:1" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 0,\n \"00010203040506070809101112131415161718192021222324\"\n \"25262728293031323334353637383940414243444546474849\"\n \"50515253545556575859606162636465666768697071727374\"\n \"75767778798081828384858687888990919293949596979899\"\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 261, - "column": 1, - "source_line": "static struct" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__bot": { - "name": "stbsp__bot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__bot[23]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "23", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e+000, 1e+001, 1e+002, 1e+003, 1e+004, 1e+005, 1e+006, 1e+007, 1e+008, 1e+009, 1e+010, 1e+011,\n 1e+012, 1e+013, 1e+014, 1e+015, 1e+016, 1e+017, 1e+018, 1e+019, 1e+020, 1e+021, 1e+022\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1507, - "column": 1, - "source_line": "static double const stbsp__bot[23] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__negbot": { - "name": "stbsp__negbot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__negbot[22]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "22", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e-001, 1e-002, 1e-003, 1e-004, 1e-005, 1e-006, 1e-007, 1e-008, 1e-009, 1e-010, 1e-011,\n 1e-012, 1e-013, 1e-014, 1e-015, 1e-016, 1e-017, 1e-018, 1e-019, 1e-020, 1e-021, 1e-022\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1511, - "column": 1, - "source_line": "static double const stbsp__negbot[22] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__negboterr": { - "name": "stbsp__negboterr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__negboterr[22]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "22", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n -5.551115123125783e-018, -2.0816681711721684e-019, -2.0816681711721686e-020, -4.7921736023859299e-021, -8.1803053914031305e-022, 4.5251888174113741e-023,\n 4.5251888174113739e-024, -2.0922560830128471e-025, -6.2281591457779853e-026, -3.6432197315497743e-027, 6.0503030718060191e-028, 2.0113352370744385e-029,\n -3.0373745563400371e-030, 1.1806906454401013e-032, -7.7705399876661076e-032, 2.0902213275965398e-033, -7.1542424054621921e-034, -7.1542424054621926e-035,\n 2.4754073164739869e-036, 5.4846728545790429e-037, 9.2462547772103625e-038, -4.8596774326570872e-039\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1515, - "column": 1, - "source_line": "static double const stbsp__negboterr[22] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__top": { - "name": "stbsp__top", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__top[13]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e+023, 1e+046, 1e+069, 1e+092, 1e+115, 1e+138, 1e+161, 1e+184, 1e+207, 1e+230, 1e+253, 1e+276, 1e+299\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1521, - "column": 1, - "source_line": "static double const stbsp__top[13] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__negtop": { - "name": "stbsp__negtop", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__negtop[13]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1e-023, 1e-046, 1e-069, 1e-092, 1e-115, 1e-138, 1e-161, 1e-184, 1e-207, 1e-230, 1e-253, 1e-276, 1e-299\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1524, - "column": 1, - "source_line": "static double const stbsp__negtop[13] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__toperr": { - "name": "stbsp__toperr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__toperr[13]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 8388608,\n 6.8601809640529717e+028,\n -7.253143638152921e+052,\n -4.3377296974619174e+075,\n -1.5559416129466825e+098,\n -3.2841562489204913e+121,\n -3.7745893248228135e+144,\n -1.7356668416969134e+167,\n -3.8893577551088374e+190,\n -9.9566444326005119e+213,\n 6.3641293062232429e+236,\n -5.2069140800249813e+259,\n -5.2504760255204387e+282\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1527, - "column": 1, - "source_line": "static double const stbsp__toperr[13] = {" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbsp__negtoperr": { - "name": "stbsp__negtoperr", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static double const stbsp__negtoperr[13]", - "components": [ - { - "model": "CArray", + "name": "fmt", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "13", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 3.9565301985100693e-040, -2.299904345391321e-063, 3.6506201437945798e-086, 1.1875228833981544e-109,\n -5.0644902316928607e-132, -6.7156837247865426e-155, -2.812077463003139e-178, -5.7778912386589953e-201,\n 7.4997100559334532e-224, -4.6439668915134491e-247, -6.3691100762962136e-270, -9.436808465446358e-293,\n 8.0970921678014997e-317\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1542, - "column": 1, - "source_line": "static double const stbsp__negtoperr[13] = {" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_SPRINTF_H_INCLUDE": { - "name": "STB_SPRINTF_H_INCLUDE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 30, - "column": 1, - "source_line": "#define STB_SPRINTF_H_INCLUDE" - } - }, - "STBSP__ASAN": { - "name": "STBSP__ASAN", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 164, - "column": 1, - "source_line": "#define STBSP__ASAN" - } - }, - "STBSP__PUBLICDEC": { - "name": "STBSP__PUBLICDEC", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 175, - "column": 1, - "source_line": "#define STBSP__PUBLICDEC extern" - } - }, - "STBSP__PUBLICDEF": { - "name": "STBSP__PUBLICDEF", - "value": "STBSP__ASAN", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 176, - "column": 1, - "source_line": "#define STBSP__PUBLICDEF STBSP__ASAN" - } - }, - "STBSP__ATTRIBUTE_FORMAT": { - "name": "STBSP__ATTRIBUTE_FORMAT", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 187, - "column": 1, - "source_line": "#define STBSP__ATTRIBUTE_FORMAT(fmt,va)" - } - }, - "STBSP__NOTUSED": { - "name": "STBSP__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 193, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)sizeof(v)" - } - }, - "STB_SPRINTF_MIN": { - "name": "STB_SPRINTF_MIN", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 200, - "column": 1, - "source_line": "#define STB_SPRINTF_MIN 512 // how many characters per callback" - } - }, - "STB_SPRINTF_DECORATE": { - "name": "STB_SPRINTF_DECORATE", - "value": "stbsp_##name", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 205, - "column": 1, - "source_line": "#define STB_SPRINTF_DECORATE(name) stbsp_##name // define this before including if you want to change the names" - } - }, - "stbsp__uint32": { - "name": "stbsp__uint32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1858, - "column": 1, - "source_line": "#undef stbsp__uint32" - } - }, - "stbsp__int32": { - "name": "stbsp__int32", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1859, - "column": 1, - "source_line": "#undef stbsp__int32" - } - }, - "stbsp__uint64": { - "name": "stbsp__uint64", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1860, - "column": 1, - "source_line": "#undef stbsp__uint64" - } - }, - "stbsp__int64": { - "name": "stbsp__int64", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1861, - "column": 1, - "source_line": "#undef stbsp__int64" - } - }, - "stbsp__uint16": { - "name": "stbsp__uint16", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1857, - "column": 1, - "source_line": "#undef stbsp__uint16" - } - }, - "stbsp__uintptr": { - "name": "stbsp__uintptr", - "value": "stbsp__uint32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 236, - "column": 1, - "source_line": "#define stbsp__uintptr stbsp__uint32" - } - }, - "STB_SPRINTF_MSVC_MODE": { - "name": "STB_SPRINTF_MSVC_MODE", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 242, - "column": 1, - "source_line": "#define STB_SPRINTF_MSVC_MODE" - } - }, - "STBSP__UNALIGNED": { - "name": "STBSP__UNALIGNED", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1862, - "column": 1, - "source_line": "#undef STBSP__UNALIGNED" - } - }, - "STBSP__SPECIAL": { - "name": "STBSP__SPECIAL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1851, - "column": 1, - "source_line": "#undef STBSP__SPECIAL" - } - }, - "STBSP__LEFTJUST": { - "name": "STBSP__LEFTJUST", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1358, - "column": 1, - "source_line": "#undef STBSP__LEFTJUST" - } - }, - "STBSP__LEADINGPLUS": { - "name": "STBSP__LEADINGPLUS", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1359, - "column": 1, - "source_line": "#undef STBSP__LEADINGPLUS" - } - }, - "STBSP__LEADINGSPACE": { - "name": "STBSP__LEADINGSPACE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1360, - "column": 1, - "source_line": "#undef STBSP__LEADINGSPACE" - } - }, - "STBSP__LEADING_0X": { - "name": "STBSP__LEADING_0X", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1361, - "column": 1, - "source_line": "#undef STBSP__LEADING_0X" - } - }, - "STBSP__LEADINGZERO": { - "name": "STBSP__LEADINGZERO", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1362, - "column": 1, - "source_line": "#undef STBSP__LEADINGZERO" - } - }, - "STBSP__INTMAX": { - "name": "STBSP__INTMAX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1363, - "column": 1, - "source_line": "#undef STBSP__INTMAX" - } - }, - "STBSP__TRIPLET_COMMA": { - "name": "STBSP__TRIPLET_COMMA", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1364, - "column": 1, - "source_line": "#undef STBSP__TRIPLET_COMMA" - } - }, - "STBSP__NEGATIVE": { - "name": "STBSP__NEGATIVE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1365, - "column": 1, - "source_line": "#undef STBSP__NEGATIVE" - } - }, - "STBSP__METRIC_SUFFIX": { - "name": "STBSP__METRIC_SUFFIX", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1366, - "column": 1, - "source_line": "#undef STBSP__METRIC_SUFFIX" - } - }, - "STBSP__HALFWIDTH": { - "name": "STBSP__HALFWIDTH", - "value": "512", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 289, - "column": 1, - "source_line": "#define STBSP__HALFWIDTH 512" - } - }, - "STBSP__METRIC_NOSPACE": { - "name": "STBSP__METRIC_NOSPACE", - "value": "1024", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 290, - "column": 1, - "source_line": "#define STBSP__METRIC_NOSPACE 1024" - } - }, - "STBSP__METRIC_1024": { - "name": "STBSP__METRIC_1024", - "value": "2048", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 291, - "column": 1, - "source_line": "#define STBSP__METRIC_1024 2048" - } - }, - "STBSP__METRIC_JEDEC": { - "name": "STBSP__METRIC_JEDEC", - "value": "4096", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 292, - "column": 1, - "source_line": "#define STBSP__METRIC_JEDEC 4096" - } - }, - "stbsp__chk_cb_bufL": { - "name": "stbsp__chk_cb_bufL", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1368, - "column": 1, - "source_line": "#undef stbsp__chk_cb_bufL" - } - }, - "stbsp__chk_cb_buf": { - "name": "stbsp__chk_cb_buf", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1369, - "column": 1, - "source_line": "#undef stbsp__chk_cb_buf" - } - }, - "stbsp__flush_cb": { - "name": "stbsp__flush_cb", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1370, - "column": 1, - "source_line": "#undef stbsp__flush_cb" - } - }, - "stbsp__cb_buf_clamp": { - "name": "stbsp__cb_buf_clamp", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1371, - "column": 1, - "source_line": "#undef stbsp__cb_buf_clamp" - } - }, - "STBSP__NUMSZ": { - "name": "STBSP__NUMSZ", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1367, - "column": 1, - "source_line": "#undef STBSP__NUMSZ" - } - }, - "STBSP__COPYFP": { - "name": "STBSP__COPYFP", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1852, - "column": 1, - "source_line": "#undef STBSP__COPYFP" - } - }, - "stbsp__tento19th": { - "name": "stbsp__tento19th", - "value": "(1000000000000000000ULL)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1596, - "column": 1, - "source_line": "#define stbsp__tento19th (1000000000000000000ULL)" - } - }, - "stbsp__ddmulthi": { - "name": "stbsp__ddmulthi", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1847, - "column": 1, - "source_line": "#undef stbsp__ddmulthi" - } - }, - "stbsp__ddtoS64": { - "name": "stbsp__ddtoS64", - "value": "{ double ahi = 0, alo, vh, t; ob = (stbsp__int64)xh; vh = (double)ob; ahi = (xh - vh); t = (ahi - xh); alo = (xh - (ahi - t)) - (vh + t); ob += (stbsp__int64)(ahi + alo + xl); }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1615, - "column": 1, - "source_line": "#define stbsp__ddtoS64(ob, xh, xl) \\" - } - }, - "stbsp__ddrenorm": { - "name": "stbsp__ddrenorm", - "value": null, - "function_like": false, - "directive": "undef", + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char const *fmt", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "va", + "type": { + "reference": "va_list" + }, + "declared_type": { + "reference": "va_list" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 1848, + "line": 213, "column": 1, - "source_line": "#undef stbsp__ddrenorm" - } - }, - "stbsp__ddmultlo": { - "name": "stbsp__ddmultlo", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { + "source_line": "extern int stbsp_vsprintfcb(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" + }, + "start": { "filename": "stb/stb_sprintf.h", - "line": 1849, + "line": 213, "column": 1, - "source_line": "#undef stbsp__ddmultlo" - } + "source_line": "extern int stbsp_vsprintfcb(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" + }, + "end": null, + "declaration_locations": [] }, - "stbsp__ddmultlos": { - "name": "stbsp__ddmultlos", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_sprintf.h", - "line": 1850, - "column": 1, - "source_line": "#undef stbsp__ddmultlos" - } - } - }, - "includes": { - "stb/stb_sprintf.h:stdarg.h": { - "target": "stdarg.h", - "kind": "system", - "resolved_path": null, + "stbsp_set_separators": { + "name": "stbsp_set_separators", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "comma", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char comma" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char comma" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "period", + "type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char period" + }, + "declared_type": { + "model": "CChar", + "qualifiers": [], + "source_text": "char period" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_sprintf.h", - "line": 196, + "line": 214, "column": 1, - "source_line": "#include // for va_arg(), va_list()" - } - }, - "stb/stb_sprintf.h:stddef.h": { - "target": "stddef.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "extern void stbsp_set_separators(char comma, char period);" + }, + "start": { "filename": "stb/stb_sprintf.h", - "line": 197, + "line": 214, "column": 1, - "source_line": "#include // size_t, ptrdiff_t" - } + "source_line": "extern void stbsp_set_separators(char comma, char period);" + }, + "end": null, + "declaration_locations": [] } }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, "functions_by_file": { "stb/stb_sprintf.h": [ - "stbsp__lead_sign", - "stbsp__clamp_callback", - "stbsp__count_clamp_callback", - "stbsp__raise_to_power10" + "stbsp_vsprintf", + "stbsp_vsnprintf", + "stbsp_sprintf", + "stbsp_snprintf", + "stbsp_vsprintfcb", + "stbsp_set_separators" ] }, "enum_constants": {}, @@ -5072,10 +1648,7 @@ "stb/stb_sprintf.h": [] }, "system_includes": { - "stb/stb_sprintf.h": [ - "stdarg.h", - "stddef.h" - ] + "stb/stb_sprintf.h": [] }, "unresolved_includes": { "stb/stb_sprintf.h": [] @@ -5083,474 +1656,5 @@ "header_source_pairs": { "stb/stb_sprintf.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__ATTRIBUTE_FORMAT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 182, - "column": 4, - "source_line": " #define STBSP__ATTRIBUTE_FORMAT(fmt,va) __attribute__((format(printf,fmt,va)))" - }, - "unit_kind": "macro", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__ATTRIBUTE_FORMAT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 187, - "column": 1, - "source_line": "#define STBSP__ATTRIBUTE_FORMAT(fmt,va)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 191, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 193, - "column": 1, - "source_line": "#define STBSP__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_SPRINTF_DECORATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 205, - "column": 1, - "source_line": "#define STB_SPRINTF_DECORATE(name) stbsp_##name // define this before including if you want to change the names" - }, - "unit_kind": "macro", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__UNALIGNED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 247, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code)" - }, - "unit_kind": "macro", - "unit_name": "STBSP__UNALIGNED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__UNALIGNED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 249, - "column": 1, - "source_line": "#define STBSP__UNALIGNED(code) code" - }, - "unit_kind": "macro", - "unit_name": "STBSP__UNALIGNED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__chk_cb_bufL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 364, - "column": 7, - "source_line": " #define stbsp__chk_cb_bufL(bytes) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__chk_cb_bufL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__chk_cb_buf' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 373, - "column": 7, - "source_line": " #define stbsp__chk_cb_buf(bytes) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__chk_cb_buf" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__flush_cb' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 379, - "column": 7, - "source_line": " #define stbsp__flush_cb() \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__flush_cb" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__cb_buf_clamp' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 383, - "column": 7, - "source_line": " #define stbsp__cb_buf_clamp(cl, v) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__cb_buf_clamp" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBSP__COPYFP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1483, - "column": 1, - "source_line": "#define STBSP__COPYFP(dest, src) \\" - }, - "unit_kind": "macro", - "unit_name": "STBSP__COPYFP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmulthi' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1599, - "column": 1, - "source_line": "#define stbsp__ddmulthi(oh, ol, xh, yh) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmulthi" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddtoS64' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1615, - "column": 1, - "source_line": "#define stbsp__ddtoS64(ob, xh, xl) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddtoS64" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddrenorm' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1626, - "column": 1, - "source_line": "#define stbsp__ddrenorm(oh, ol) \\" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddrenorm" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmultlo' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1634, - "column": 1, - "source_line": "#define stbsp__ddmultlo(oh, ol, xh, xl, yh, yl) ol = ol + (xh * yl + xl * yh);" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmultlo" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbsp__ddmultlos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1636, - "column": 1, - "source_line": "#define stbsp__ddmultlos(oh, ol, xh, yl) ol = ol + (xh * yl);" - }, - "unit_kind": "macro", - "unit_name": "stbsp__ddmultlos" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 208, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 209, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsnprintf)(char *buf, int count, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBSP__ATTRIBUTE_FORMAT'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 210, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(2,3);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STBSP__ATTRIBUTE_FORMAT'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 211, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...) STBSP__ATTRIBUTE_FORMAT(3,4);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ATTRIBUTE_FORMAT" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 213, - "column": 1, - "source_line": "STBSP__PUBLICDEC int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 214, - "column": 1, - "source_line": "STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char period);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 254, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 255, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value);" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 274, - "column": 1, - "source_line": "STBSP__PUBLICDEF void STB_SPRINTF_DECORATE(set_separators)(char pcomma, char pperiod)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBSP__ASAN'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 309, - "column": 1, - "source_line": "static STBSP__ASAN stbsp__uint32 stbsp__strlen_limited(char const *s, stbsp__uint32 limit)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBSP__ASAN" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 349, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, void *user, char *buf, char const *fmt, va_list va)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1376, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(sprintf)(char *buf, char const *fmt, ...)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1430, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE( vsnprintf )( char * buf, int count, char const * fmt, va_list va )" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1460, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(snprintf)(char *buf, int count, char const *fmt, ...)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on function-like macro 'STB_SPRINTF_DECORATE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1472, - "column": 1, - "source_line": "STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintf)(char *buf, char const *fmt, va_list va)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_SPRINTF_DECORATE" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1491, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_parts(stbsp__int64 *bits, stbsp__int32 *expo, double value)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__uint64'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1550, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__uint64" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__uint64'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1574, - "column": 1, - "source_line": "static stbsp__uint64 const stbsp__powten[20] = {" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__uint64" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'stbsp__int32'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_sprintf.h", - "line": 1705, - "column": 1, - "source_line": "static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, char *out, stbsp__int32 *decimal_pos, double value, stbsp__uint32 frac_digits)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "stbsp__int32" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_textedit.json b/tests/parser/c/fixtures/stb/stb_textedit.json index ad3901667..92ab26eae 100644 --- a/tests/parser/c/fixtures/stb/stb_textedit.json +++ b/tests/parser/c/fixtures/stb/stb_textedit.json @@ -3,753 +3,137 @@ "stb/stb_textedit.h": { "filename": "stb/stb_textedit.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [ + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_textedit.h" + ], + "functions": [], + "structs": [ { - "name": "stb_text_locate_coord", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ { - "name": "str", + "name": "where", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int where" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 298, + "column": 4, + "source_line": " int where;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "x", + "name": "insert_length", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int insert_length" }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 299, + "column": 4, + "source_line": " int insert_length;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "y", + "name": "delete_length", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int delete_length" }, - "declared_type": { - "model": "CFloat", + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 300, + "column": 4, + "source_line": " int delete_length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "char_storage", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int char_storage" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 301, + "column": 4, + "source_line": " int char_storage;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "struct@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_textedit.h", - "line": 394, - "column": 1, - "source_line": "static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 394, - "column": 1, - "source_line": "static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 451, + "line": 295, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "typedef struct" + } }, { - "name": "stb_textedit_click", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ { - "name": "state", + "name": "undo_rec", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "STB_TexteditState *state", + "source_text": "StbUndoRecord undo_rec [99]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "99", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { "model": "CTypedef", "qualifiers": [], - "source_text": "STB_TexteditState", - "name": "STB_TexteditState", + "source_text": "StbUndoRecord", + "name": "StbUndoRecord", "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "cursor", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cursor" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 320, - "column": 4, - "source_line": " int cursor;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_start" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 323, - "column": 4, - "source_line": " int select_start; // selection start point" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_end" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 324, - "column": 4, - "source_line": " int select_end;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "insert_mode", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char insert_mode" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 330, - "column": 4, - "source_line": " unsigned char insert_mode;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "row_count_per_page", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int row_count_per_page" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 334, - "column": 4, - "source_line": " int row_count_per_page;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cursor_at_end_of_line", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char cursor_at_end_of_line" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 342, - "column": 4, - "source_line": " unsigned char cursor_at_end_of_line; // not implemented yet" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "initialized", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char initialized" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 343, - "column": 4, - "source_line": " unsigned char initialized;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "has_preferred_x", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char has_preferred_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 344, - "column": 4, - "source_line": " unsigned char has_preferred_x;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "single_line", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char single_line" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 345, - "column": 4, - "source_line": " unsigned char single_line;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "padding1", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char padding1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 346, - "column": 4, - "source_line": " unsigned char padding1, padding2, padding3;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "padding2", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char padding2" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 346, - "column": 4, - "source_line": " unsigned char padding1, padding2, padding3;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "padding3", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char padding3" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 346, - "column": 4, - "source_line": " unsigned char padding1, padding2, padding3;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "preferred_x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float preferred_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 347, - "column": 4, - "source_line": " float preferred_x; // this determines where the cursor up/down tries to seek to along x" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undostate", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "StbUndoState", - "name": "StbUndoState", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "undo_rec", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_TEXTEDIT_UNDOSTATECOUNT", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "StbUndoRecord", - "name": "StbUndoRecord", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "where", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_POSITIONTYPE where", - "name": "STB_TEXTEDIT_POSITIONTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 298, - "column": 4, - "source_line": " STB_TEXTEDIT_POSITIONTYPE where;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "insert_length", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_POSITIONTYPE insert_length", - "name": "STB_TEXTEDIT_POSITIONTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 299, - "column": 4, - "source_line": " STB_TEXTEDIT_POSITIONTYPE insert_length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delete_length", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_POSITIONTYPE delete_length", - "name": "STB_TEXTEDIT_POSITIONTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 300, - "column": 4, - "source_line": " STB_TEXTEDIT_POSITIONTYPE delete_length;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "char_storage", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int char_storage" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 301, - "column": 4, - "source_line": " int char_storage;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_textedit.h:295:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 295, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 295, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 307, - "column": 4, - "source_line": " StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_char", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_TEXTEDIT_UNDOCHARCOUNT", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE", - "name": "STB_TEXTEDIT_CHARTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 308, - "column": 4, - "source_line": " STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_point", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short undo_point" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 309, - "column": 4, - "source_line": " short undo_point, redo_point;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "redo_point", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short redo_point" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 309, - "column": 4, - "source_line": " short undo_point, redo_point;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_char_point", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_char_point" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 310, - "column": 4, - "source_line": " int undo_char_point, redo_char_point;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "redo_char_point", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int redo_char_point" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 310, - "column": 4, - "source_line": " int undo_char_point, redo_char_point;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_textedit.h:304:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 304, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 304, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 348, - "column": 4, - "source_line": " StbUndoState undostate;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_textedit.h:313:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 313, - "column": 1, - "source_line": "typedef struct" - } + "reference": "struct@:0:0" }, "source_location": { "filename": "stb/stb_textedit.h", - "line": 313, + "line": 295, "column": 1, "source_line": "typedef struct" }, @@ -757,7384 +141,631 @@ } ] }, - "declared_type": { + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 307, + "column": 4, + "source_line": " StbUndoRecord undo_rec [99];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "undo_char", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "STB_TexteditState *state", + "source_text": "int undo_char[999]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "999", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "STB_TexteditState" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, - "source_location": null, - "callback_policy": null + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 308, + "column": 4, + "source_line": " int undo_char[999];" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "x", + "name": "undo_point", "type": { - "model": "CFloat", + "model": "CShort", "qualifiers": [], - "source_text": "float x" + "source_text": "short undo_point" }, - "declared_type": { - "model": "CFloat", + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 309, + "column": 4, + "source_line": " short undo_point, redo_point;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "redo_point", + "type": { + "model": "CShort", "qualifiers": [], - "source_text": "float x" + "source_text": "short redo_point" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 309, + "column": 4, + "source_line": " short undo_point, redo_point;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "y", + "name": "undo_char_point", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int undo_char_point" }, - "declared_type": { - "model": "CFloat", + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 310, + "column": 4, + "source_line": " int undo_char_point, redo_char_point;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "redo_char_point", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int redo_char_point" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 310, + "column": 4, + "source_line": " int undo_char_point, redo_char_point;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "struct@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_textedit.h", - "line": 454, + "line": 304, "column": 1, - "source_line": "static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 454, - "column": 1, - "source_line": "static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 469, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "typedef struct" + } }, { - "name": "stb_textedit_drag", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ { - "name": "str", + "name": "cursor", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int cursor" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 320, + "column": 4, + "source_line": " int cursor;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "state", + "name": "select_start", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "source_text": "int select_start" }, - "source_location": null, - "callback_policy": null + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 323, + "column": 4, + "source_line": " int select_start;" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "x", + "name": "select_end", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int select_end" }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 324, + "column": 4, + "source_line": " int select_end;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "y", + "name": "insert_mode", "type": { - "model": "CFloat", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "float y" + "source_text": "unsigned char insert_mode" }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 330, + "column": 4, + "source_line": " unsigned char insert_mode;" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 472, - "column": 1, - "source_line": "static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 472, - "column": 1, - "source_line": "static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 490, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_text_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "callback_policy": null, + "declaration_locations": [] + }, { - "name": "str", + "name": "row_count_per_page", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int row_count_per_page" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 334, + "column": 4, + "source_line": " int row_count_per_page;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "state", + "name": "cursor_at_end_of_line", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "source_text": "unsigned char cursor_at_end_of_line" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 342, + "column": 4, + "source_line": " unsigned char cursor_at_end_of_line;" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1205, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1205, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1271, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 498, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state);" - } - ] - }, - { - "name": "stb_text_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "callback_policy": null, + "declaration_locations": [] + }, { - "name": "str", + "name": "initialized", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "unsigned char initialized" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 343, + "column": 4, + "source_line": " unsigned char initialized;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "state", + "name": "has_preferred_x", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "source_text": "unsigned char has_preferred_x" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 344, + "column": 4, + "source_line": " unsigned char has_preferred_x;" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1273, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1273, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1322, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 499, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state);" - } - ] - }, - { - "name": "stb_text_makeundo_delete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "callback_policy": null, + "declaration_locations": [] + }, { - "name": "str", + "name": "single_line", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "unsigned char single_line" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 345, + "column": 4, + "source_line": " unsigned char single_line;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "state", + "name": "padding1", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "source_text": "unsigned char padding1" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 346, + "column": 4, + "source_line": " unsigned char padding1, padding2, padding3;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "where", + "name": "padding2", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int where" + "source_text": "unsigned char padding2" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1329, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1329, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1337, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 500, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length);" - } - ] - }, - { - "name": "stb_text_makeundo_insert", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1324, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1324, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1327, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 501, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length);" - } - ] - }, - { - "name": "stb_text_makeundo_replace", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "old_length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1339, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1339, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1347, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 502, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length);" - } - ] - }, - { - "name": "stb_textedit_find_charpos", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "find", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbFindState *find", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "StbFindState", - "name": "StbFindState", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 506, - "column": 4, - "source_line": " float x,y; // position of n'th character" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 506, - "column": 4, - "source_line": " float x,y; // position of n'th character" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "height", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 507, - "column": 4, - "source_line": " float height; // height of line" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "first_char", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int first_char" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 508, - "column": 4, - "source_line": " int first_char, length; // first char of row, and length" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 508, - "column": 4, - "source_line": " int first_char, length; // first char of row, and length" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "prev_first", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int prev_first" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 509, - "column": 4, - "source_line": " int prev_first; // first char of previous row" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_textedit.h:504:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 504, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 504, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbFindState *find", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbFindState" - } - ] + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 346, + "column": 4, + "source_line": " unsigned char padding1, padding2, padding3;" }, - "source_location": null, - "callback_policy": null + "callback_policy": null, + "declaration_locations": [] }, { - "name": "str", + "name": "padding3", "type": { - "model": "CComposedType", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] + "source_text": "unsigned char padding3" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 346, + "column": 4, + "source_line": " unsigned char padding1, padding2, padding3;" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 514, - "column": 1, - "source_line": "static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 514, - "column": 1, - "source_line": "static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 568, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_clamp", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 573, - "column": 1, - "source_line": "static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 573, - "column": 1, - "source_line": "static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 584, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_delete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 587, - "column": 1, - "source_line": "static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 587, - "column": 1, - "source_line": "static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 592, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_delete_selection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 595, - "column": 1, - "source_line": "static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 595, - "column": 1, - "source_line": "static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 608, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_sortselection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 611, - "column": 1, - "source_line": "static void stb_textedit_sortselection(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 611, - "column": 1, - "source_line": "static void stb_textedit_sortselection(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 618, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_move_to_first", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 621, - "column": 1, - "source_line": "static void stb_textedit_move_to_first(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 621, - "column": 1, - "source_line": "static void stb_textedit_move_to_first(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 629, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_move_to_last", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 632, - "column": 1, - "source_line": "static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 632, - "column": 1, - "source_line": "static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 641, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "is_word_boundary", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "idx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 644, - "column": 1, - "source_line": "static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 644, - "column": 1, - "source_line": "static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 647, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_move_to_word_previous", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 650, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 650, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 660, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_move_to_word_next", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 665, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 665, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 676, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_prep_selection_at_cursor", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 683, - "column": 1, - "source_line": "static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 683, - "column": 1, - "source_line": "static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 689, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_cut", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 692, - "column": 1, - "source_line": "static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 692, - "column": 1, - "source_line": "static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 700, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_paste_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE", - "name": "STB_TEXTEDIT_CHARTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 703, - "column": 1, - "source_line": "static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 703, - "column": 1, - "source_line": "static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 717, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_key", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_KEYTYPE key", - "name": "STB_TEXTEDIT_KEYTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "STB_TEXTEDIT_KEYTYPE" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 724, - "column": 1, - "source_line": "static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 724, - "column": 1, - "source_line": "static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1101, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_flush_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1109, - "column": 1, - "source_line": "static void stb_textedit_flush_redo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1109, - "column": 1, - "source_line": "static void stb_textedit_flush_redo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1113, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_discard_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1116, - "column": 1, - "source_line": "static void stb_textedit_discard_undo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1116, - "column": 1, - "source_line": "static void stb_textedit_discard_undo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1132, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_discard_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1138, - "column": 1, - "source_line": "static void stb_textedit_discard_redo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1138, - "column": 1, - "source_line": "static void stb_textedit_discard_redo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1159, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_text_create_undo_record", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoRecord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoRecord" - } - ] - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numchars", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numchars" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numchars" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1161, - "column": 1, - "source_line": "static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1161, - "column": 1, - "source_line": "static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1183, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_clear_state", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1350, - "column": 1, - "source_line": "static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1350, - "column": 1, - "source_line": "static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1365, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_initialize_state", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1368, - "column": 1, - "source_line": "static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1368, - "column": 1, - "source_line": "static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1371, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_textedit_paste", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING", - "name": "STB_TEXTEDIT_STRING", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ctext", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE const *ctext", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const STB_TEXTEDIT_CHARTYPE", - "name": "STB_TEXTEDIT_CHARTYPE", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE const *ctext", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1378, - "column": 1, - "source_line": "static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1378, - "column": 1, - "source_line": "static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1381, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_textedit.h:295:1" - }, - { - "reference": "struct@stb/stb_textedit.h:304:1" - }, - { - "reference": "struct@stb/stb_textedit.h:313:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 362, - "column": 4, - "source_line": " float x0,x1; // starting x location, end x location (allows for align=right, etc)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 362, - "column": 4, - "source_line": " float x0,x1; // starting x location, end x location (allows for align=right, etc)" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "baseline_y_delta", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float baseline_y_delta" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 363, - "column": 4, - "source_line": " float baseline_y_delta; // position of baseline relative to previous row's baseline" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ymin", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ymin" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 364, - "column": 4, - "source_line": " float ymin,ymax; // height of row above and below baseline" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ymax", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ymax" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 364, - "column": 4, - "source_line": " float ymin,ymax; // height of row above and below baseline" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_chars", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_chars" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 365, - "column": 4, - "source_line": " int num_chars;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_textedit.h:360:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 360, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "reference": "struct@stb/stb_textedit.h:504:1" - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "StbUndoRecord" - }, - { - "reference": "StbUndoState" - }, - { - "reference": "STB_TexteditState" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "StbTexteditRow", - "name": "StbTexteditRow", - "type": { - "reference": "struct@stb/stb_textedit.h:360:1" - }, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 360, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "StbFindState" - } - ], - "variables": [], - "macros": [ - { - "name": "INCLUDE_STB_TEXTEDIT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 271, - "column": 1, - "source_line": "#define INCLUDE_STB_TEXTEDIT_H" - } - }, - { - "name": "STB_TEXTEDIT_UNDOSTATECOUNT", - "value": "99", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 283, - "column": 1, - "source_line": "#define STB_TEXTEDIT_UNDOSTATECOUNT 99" - } - }, - { - "name": "STB_TEXTEDIT_UNDOCHARCOUNT", - "value": "999", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 286, - "column": 1, - "source_line": "#define STB_TEXTEDIT_UNDOCHARCOUNT 999" - } - }, - { - "name": "STB_TEXTEDIT_CHARTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 289, - "column": 1, - "source_line": "#define STB_TEXTEDIT_CHARTYPE int" - } - }, - { - "name": "STB_TEXTEDIT_POSITIONTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 292, - "column": 1, - "source_line": "#define STB_TEXTEDIT_POSITIONTYPE int" - } - }, - { - "name": "STB_TEXTEDIT_memmove", - "value": "memmove", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 384, - "column": 1, - "source_line": "#define STB_TEXTEDIT_memmove memmove" - } - }, - { - "name": "STB_TEXT_HAS_SELECTION", - "value": "((s)->select_start != (s)->select_end)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 570, - "column": 1, - "source_line": "#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)" - } - }, - { - "name": "STB_TEXTEDIT_MOVEWORDLEFT", - "value": "stb_textedit_move_to_word_previous", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 661, - "column": 1, - "source_line": "#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous" - } - }, - { - "name": "STB_TEXTEDIT_MOVEWORDRIGHT", - "value": "stb_textedit_move_to_word_next", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 677, - "column": 1, - "source_line": "#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next" - } - }, - { - "name": "STB_TEXTEDIT_KEYTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 720, - "column": 1, - "source_line": "#define STB_TEXTEDIT_KEYTYPE int" - } - } - ], - "includes": [ - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 383, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_TEXTEDIT_H", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 270, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_TEXTEDIT_H" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_UNDOSTATECOUNT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 282, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_UNDOSTATECOUNT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 284, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_UNDOCHARCOUNT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 285, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_UNDOCHARCOUNT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 287, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_CHARTYPE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 288, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_CHARTYPE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 290, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_POSITIONTYPE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 291, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_POSITIONTYPE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 293, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 367, - "column": 1, - "source_line": "#endif //INCLUDE_STB_TEXTEDIT_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 380, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_memmove", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 382, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_memmove" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 385, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_IS_SPACE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 643, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_IS_SPACE" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_MOVEWORDLEFT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 649, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_MOVEWORDLEFT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 662, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_MOVEWORDRIGHT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 664, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_MOVEWORDRIGHT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 678, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 680, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_TEXTEDIT_KEYTYPE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 719, - "column": 1, - "source_line": "#ifndef STB_TEXTEDIT_KEYTYPE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 721, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_INSERT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 756, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_INSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 760, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_MOVEWORDLEFT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 802, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_MOVEWORDLEFT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 821, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_MOVEWORDRIGHT", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 823, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_MOVEWORDRIGHT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 842, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_GETWIDTH_NEWLINE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 891, - "column": 16, - "source_line": " #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 894, - "column": 16, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_GETWIDTH_NEWLINE", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 953, - "column": 16, - "source_line": " #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 956, - "column": 16, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_TEXTSTART2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1007, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_TEXTSTART2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1009, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_TEXTEND2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1015, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_TEXTEND2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1017, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_TEXTSTART2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1024, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_TEXTSTART2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1026, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_TEXTEND2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1033, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_TEXTEND2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1035, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_LINESTART2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1043, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_LINESTART2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1045, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_LINEEND2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1056, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_LINEEND2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1058, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_LINESTART2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1071, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_LINESTART2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1073, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TEXTEDIT_K_LINEEND2", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1085, - "column": 1, - "source_line": "#ifdef STB_TEXTEDIT_K_LINEEND2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1087, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) || defined(__clang__)", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1373, - "column": 1, - "source_line": "#if defined(__GNUC__) || defined(__clang__)" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic push", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1374, - "column": 1, - "source_line": "#pragma GCC diagnostic push" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic ignored \"-Wcast-qual\"", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1375, - "column": 1, - "source_line": "#pragma GCC diagnostic ignored \"-Wcast-qual\"" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1376, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) || defined(__clang__)", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1383, - "column": 1, - "source_line": "#if defined(__GNUC__) || defined(__clang__)" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic pop", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1384, - "column": 1, - "source_line": "#pragma GCC diagnostic pop" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1385, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1387, - "column": 1, - "source_line": "#endif//STB_TEXTEDIT_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STB_TEXTEDIT_CHARTYPE", - "context": "declaration", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1185, - "column": 1, - "source_line": "static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len)" - }, - "source_text": "static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_TEXT_HAS_SELECTION' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_textedit.h", - "line": 570, - "column": 1, - "source_line": "#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)" - }, - "unit_kind": "macro", - "unit_name": "STB_TEXT_HAS_SELECTION" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_TEXTEDIT_CHARTYPE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_textedit.h", - "line": 1185, - "column": 1, - "source_line": "static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_TEXTEDIT_CHARTYPE" - } - ] - } - }, - "functions": { - "stb_text_locate_coord": { - "name": "stb_text_locate_coord", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 394, - "column": 1, - "source_line": "static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 394, - "column": 1, - "source_line": "static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 451, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_click": { - "name": "stb_textedit_click", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 454, - "column": 1, - "source_line": "static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 454, - "column": 1, - "source_line": "static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 469, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_drag": { - "name": "stb_textedit_drag", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 472, - "column": 1, - "source_line": "static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 472, - "column": 1, - "source_line": "static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 490, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_text_undo": { - "name": "stb_text_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1205, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1205, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1271, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 498, - "column": 1, - "source_line": "static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state);" - } - ] - }, - "stb_text_redo": { - "name": "stb_text_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1273, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1273, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1322, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 499, - "column": 1, - "source_line": "static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state);" - } - ] - }, - "stb_text_makeundo_delete": { - "name": "stb_text_makeundo_delete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1329, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1329, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1337, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 500, - "column": 1, - "source_line": "static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length);" - } - ] - }, - "stb_text_makeundo_insert": { - "name": "stb_text_makeundo_insert", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1324, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1324, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1327, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 501, - "column": 1, - "source_line": "static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length);" - } - ] - }, - "stb_text_makeundo_replace": { - "name": "stb_text_makeundo_replace", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "old_length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int old_length" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "new_length", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_length" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int new_length" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1339, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1339, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1347, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_textedit.h", - "line": 502, - "column": 1, - "source_line": "static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length);" - } - ] - }, - "stb_textedit_find_charpos": { - "name": "stb_textedit_find_charpos", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "find", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbFindState *find", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbFindState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbFindState *find", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbFindState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 514, - "column": 1, - "source_line": "static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 514, - "column": 1, - "source_line": "static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 568, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_clamp": { - "name": "stb_textedit_clamp", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 573, - "column": 1, - "source_line": "static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 573, - "column": 1, - "source_line": "static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 584, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_delete": { - "name": "stb_textedit_delete", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "where", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int where" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 587, - "column": 1, - "source_line": "static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 587, - "column": 1, - "source_line": "static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 592, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_delete_selection": { - "name": "stb_textedit_delete_selection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 595, - "column": 1, - "source_line": "static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 595, - "column": 1, - "source_line": "static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 608, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_sortselection": { - "name": "stb_textedit_sortselection", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 611, - "column": 1, - "source_line": "static void stb_textedit_sortselection(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 611, - "column": 1, - "source_line": "static void stb_textedit_sortselection(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 618, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_move_to_first": { - "name": "stb_textedit_move_to_first", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 621, - "column": 1, - "source_line": "static void stb_textedit_move_to_first(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 621, - "column": 1, - "source_line": "static void stb_textedit_move_to_first(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 629, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_move_to_last": { - "name": "stb_textedit_move_to_last", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 632, - "column": 1, - "source_line": "static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 632, - "column": 1, - "source_line": "static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 641, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "is_word_boundary": { - "name": "is_word_boundary", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "idx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int idx" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 644, - "column": 1, - "source_line": "static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 644, - "column": 1, - "source_line": "static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 647, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_move_to_word_previous": { - "name": "stb_textedit_move_to_word_previous", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 650, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 650, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 660, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_move_to_word_next": { - "name": "stb_textedit_move_to_word_next", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int c" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 665, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c )" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 665, - "column": 1, - "source_line": "static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c )" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 676, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_prep_selection_at_cursor": { - "name": "stb_textedit_prep_selection_at_cursor", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 683, - "column": 1, - "source_line": "static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 683, - "column": 1, - "source_line": "static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 689, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_cut": { - "name": "stb_textedit_cut", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 692, - "column": 1, - "source_line": "static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 692, - "column": 1, - "source_line": "static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 700, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_paste_internal": { - "name": "stb_textedit_paste_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 703, - "column": 1, - "source_line": "static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 703, - "column": 1, - "source_line": "static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 717, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_key": { - "name": "stb_textedit_key", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "reference": "STB_TEXTEDIT_KEYTYPE" - }, - "declared_type": { - "reference": "STB_TEXTEDIT_KEYTYPE" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 724, - "column": 1, - "source_line": "static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 724, - "column": 1, - "source_line": "static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1101, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_flush_redo": { - "name": "stb_textedit_flush_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1109, - "column": 1, - "source_line": "static void stb_textedit_flush_redo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1109, - "column": 1, - "source_line": "static void stb_textedit_flush_redo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1113, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_discard_undo": { - "name": "stb_textedit_discard_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "preferred_x", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float preferred_x" }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 347, + "column": 4, + "source_line": " float preferred_x;" }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1116, - "column": 1, - "source_line": "static void stb_textedit_discard_undo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1116, - "column": 1, - "source_line": "static void stb_textedit_discard_undo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1132, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_discard_redo": { - "name": "stb_textedit_discard_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "undostate", + "type": { + "model": "CTypedef", "qualifiers": [], - "source_text": "" + "source_text": "StbUndoState", + "name": "StbUndoState", + "type": { + "reference": "struct@:0:0" + }, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 304, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 348, + "column": 4, + "source_line": " StbUndoState undostate;" }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1138, - "column": 1, - "source_line": "static void stb_textedit_discard_redo(StbUndoState *state)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1138, - "column": 1, - "source_line": "static void stb_textedit_discard_redo(StbUndoState *state)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1159, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_text_create_undo_record": { - "name": "stb_text_create_undo_record", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoRecord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "StbUndoRecord" + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 313, + "column": 1, + "source_line": "typedef struct" } - ] - }, - "parameters": [ + }, { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x0", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float x0" }, - { - "reference": "StbUndoState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "StbUndoState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 362, + "column": 4, + "source_line": " float x0,x1;" }, - { - "reference": "StbUndoState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "numchars", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numchars" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int numchars" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1161, - "column": 1, - "source_line": "static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1161, - "column": 1, - "source_line": "static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1183, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_clear_state": { - "name": "stb_textedit_clear_state", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x1", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float x1" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 362, + "column": 4, + "source_line": " float x0,x1;" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1350, - "column": 1, - "source_line": "static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1350, - "column": 1, - "source_line": "static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1365, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_initialize_state": { - "name": "stb_textedit_initialize_state", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "baseline_y_delta", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float baseline_y_delta" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 363, + "column": 4, + "source_line": " float baseline_y_delta;" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "is_single_line", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int is_single_line" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1368, - "column": 1, - "source_line": "static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1368, - "column": 1, - "source_line": "static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1371, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_textedit_paste": { - "name": "stb_textedit_paste", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ymin", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float ymin" }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_STRING *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 364, + "column": 4, + "source_line": " float ymin,ymax;" }, - { - "reference": "STB_TEXTEDIT_STRING" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "state", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "ymax", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "" + "source_text": "float ymax" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TexteditState *state", - "components": [ - { - "model": "CPointer", + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 364, + "column": 4, + "source_line": " float ymin,ymax;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_chars", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int num_chars" }, - { - "reference": "STB_TexteditState" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 365, + "column": 4, + "source_line": " int num_chars;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 360, + "column": 1, + "source_line": "typedef struct" + } + } + ], + "unions": [], + "enums": [], + "typedefs": [ { - "name": "ctext", + "model": "CTypedef", + "qualifiers": [], + "source_text": "STB_TexteditState", + "name": "STB_TexteditState", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE const *ctext", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] + "reference": "struct@:0:0" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "STB_TEXTEDIT_CHARTYPE const *ctext", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "STB_TEXTEDIT_CHARTYPE" - } - ] + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 313, + "column": 1, + "source_line": "typedef struct" }, - "source_location": null, - "callback_policy": null + "declaration_locations": [] }, { - "name": "len", + "model": "CTypedef", + "qualifiers": [], + "source_text": "StbTexteditRow", + "name": "StbTexteditRow", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" + "reference": "struct@:0:0" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" + "source_location": { + "filename": "stb/stb_textedit.h", + "line": 360, + "column": 1, + "source_line": "typedef struct" }, - "source_location": null, - "callback_policy": null + "declaration_locations": [] } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 1378, - "column": 1, - "source_line": "static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len)" - }, - "start": { - "filename": "stb/stb_textedit.h", - "line": 1378, - "column": 1, - "source_line": "static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len)" - }, - "end": { - "filename": "stb/stb_textedit.h", - "line": 1381, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] } }, + "functions": {}, "structs": {}, "unions": {}, "enums": {}, "typedefs": { - "StbUndoRecord": { - "reference": "StbUndoRecord" - }, - "StbUndoState": { - "reference": "StbUndoState" - }, "STB_TexteditState": { "reference": "STB_TexteditState" }, "StbTexteditRow": { "reference": "StbTexteditRow" - }, - "StbFindState": { - "reference": "StbFindState" } }, "variables": {}, - "macros": { - "INCLUDE_STB_TEXTEDIT_H": { - "name": "INCLUDE_STB_TEXTEDIT_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 271, - "column": 1, - "source_line": "#define INCLUDE_STB_TEXTEDIT_H" - } - }, - "STB_TEXTEDIT_UNDOSTATECOUNT": { - "name": "STB_TEXTEDIT_UNDOSTATECOUNT", - "value": "99", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 283, - "column": 1, - "source_line": "#define STB_TEXTEDIT_UNDOSTATECOUNT 99" - } - }, - "STB_TEXTEDIT_UNDOCHARCOUNT": { - "name": "STB_TEXTEDIT_UNDOCHARCOUNT", - "value": "999", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 286, - "column": 1, - "source_line": "#define STB_TEXTEDIT_UNDOCHARCOUNT 999" - } - }, - "STB_TEXTEDIT_CHARTYPE": { - "name": "STB_TEXTEDIT_CHARTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 289, - "column": 1, - "source_line": "#define STB_TEXTEDIT_CHARTYPE int" - } - }, - "STB_TEXTEDIT_POSITIONTYPE": { - "name": "STB_TEXTEDIT_POSITIONTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 292, - "column": 1, - "source_line": "#define STB_TEXTEDIT_POSITIONTYPE int" - } - }, - "STB_TEXTEDIT_memmove": { - "name": "STB_TEXTEDIT_memmove", - "value": "memmove", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 384, - "column": 1, - "source_line": "#define STB_TEXTEDIT_memmove memmove" - } - }, - "STB_TEXT_HAS_SELECTION": { - "name": "STB_TEXT_HAS_SELECTION", - "value": "((s)->select_start != (s)->select_end)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 570, - "column": 1, - "source_line": "#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)" - } - }, - "STB_TEXTEDIT_MOVEWORDLEFT": { - "name": "STB_TEXTEDIT_MOVEWORDLEFT", - "value": "stb_textedit_move_to_word_previous", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 661, - "column": 1, - "source_line": "#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous" - } - }, - "STB_TEXTEDIT_MOVEWORDRIGHT": { - "name": "STB_TEXTEDIT_MOVEWORDRIGHT", - "value": "stb_textedit_move_to_word_next", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 677, - "column": 1, - "source_line": "#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next" - } - }, - "STB_TEXTEDIT_KEYTYPE": { - "name": "STB_TEXTEDIT_KEYTYPE", - "value": "int", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 720, - "column": 1, - "source_line": "#define STB_TEXTEDIT_KEYTYPE int" - } - } - }, - "includes": { - "stb/stb_textedit.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_textedit.h", - "line": 383, - "column": 1, - "source_line": "#include " - } - } - }, + "macros": {}, + "includes": {}, "functions_by_file": { - "stb/stb_textedit.h": [ - "stb_text_locate_coord", - "stb_textedit_click", - "stb_textedit_drag", - "stb_text_undo", - "stb_text_redo", - "stb_text_makeundo_delete", - "stb_text_makeundo_insert", - "stb_text_makeundo_replace", - "stb_textedit_find_charpos", - "stb_textedit_clamp", - "stb_textedit_delete", - "stb_textedit_delete_selection", - "stb_textedit_sortselection", - "stb_textedit_move_to_first", - "stb_textedit_move_to_last", - "is_word_boundary", - "stb_textedit_move_to_word_previous", - "stb_textedit_move_to_word_next", - "stb_textedit_prep_selection_at_cursor", - "stb_textedit_cut", - "stb_textedit_paste_internal", - "stb_textedit_key", - "stb_textedit_flush_redo", - "stb_textedit_discard_undo", - "stb_textedit_discard_redo", - "stb_text_create_undo_record", - "stb_textedit_clear_state", - "stb_textedit_initialize_state", - "stb_textedit_paste" - ] + "stb/stb_textedit.h": [] }, "enum_constants": {}, "include_graph": { "stb/stb_textedit.h": [] }, "system_includes": { - "stb/stb_textedit.h": [ - "string.h" - ] + "stb/stb_textedit.h": [] }, "unresolved_includes": { "stb/stb_textedit.h": [] @@ -8142,32 +773,5 @@ "header_source_pairs": { "stb/stb_textedit.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STB_TEXT_HAS_SELECTION' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_textedit.h", - "line": 570, - "column": 1, - "source_line": "#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end)" - }, - "unit_kind": "macro", - "unit_name": "STB_TEXT_HAS_SELECTION" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STB_TEXTEDIT_CHARTYPE'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_textedit.h", - "line": 1185, - "column": 1, - "source_line": "static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STB_TEXTEDIT_CHARTYPE" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_tilemap_editor.json b/tests/parser/c/fixtures/stb/stb_tilemap_editor.json index 45dd93696..842ff0e44 100644 --- a/tests/parser/c/fixtures/stb/stb_tilemap_editor.json +++ b/tests/parser/c/fixtures/stb/stb_tilemap_editor.json @@ -3,8 +3,10 @@ "stb/stb_tilemap_editor.h": { "filename": "stb/stb_tilemap_editor.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_tilemap_editor.h" + ], "functions": [ { "name": "stbte_create_map", @@ -26,1293 +28,12 @@ "type": { "model": "CStruct", "qualifiers": [], - "source_text": "", + "source_text": "typedef struct stbte_tilemap stbte_tilemap", "name": "stbte_tilemap", - "members": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__tiledata data[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X][STBTE_MAX_LAYERS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_LAYERS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__tiledata", - "name": "stbte__tiledata", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "typedef short stbte__tiledata" - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 792, - "column": 1, - "source_line": "typedef short stbte__tiledata;" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 944, - "column": 5, - "source_line": " stbte__tiledata data[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X][STBTE_MAX_LAYERS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "props", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float props[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X][STBTE_MAX_PROPERTIES]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_PROPERTIES", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 945, - "column": 5, - "source_line": " float props[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X][STBTE_MAX_PROPERTIES];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "link", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__link link[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__link", - "name": "stbte__link", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 597, - "column": 4, - "source_line": " short x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 597, - "column": 4, - "source_line": " short x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:595:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 595, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 595, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 947, - "column": 5, - "source_line": " stbte__link link[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "linkcount", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int linkcount[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_Y", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_TILEMAP_X", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 948, - "column": 5, - "source_line": " int linkcount[STBTE_MAX_TILEMAP_Y][STBTE_MAX_TILEMAP_X];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 950, - "column": 5, - "source_line": " int max_x, max_y, num_layers;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 950, - "column": 5, - "source_line": " int max_x, max_y, num_layers;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_layers", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_layers" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 950, - "column": 5, - "source_line": " int max_x, max_y, num_layers;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "spacing_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 951, - "column": 5, - "source_line": " int spacing_x, spacing_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "spacing_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 951, - "column": 5, - "source_line": " int spacing_x, spacing_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "palette_spacing_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 952, - "column": 5, - "source_line": " int palette_spacing_x, palette_spacing_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "palette_spacing_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 952, - "column": 5, - "source_line": " int palette_spacing_x, palette_spacing_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scroll_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scroll_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 953, - "column": 5, - "source_line": " int scroll_x,scroll_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scroll_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scroll_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 953, - "column": 5, - "source_line": " int scroll_x,scroll_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_category", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_category" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 954, - "column": 5, - "source_line": " int cur_category, cur_tile, cur_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_tile", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_tile" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 954, - "column": 5, - "source_line": " int cur_category, cur_tile, cur_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_layer" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 954, - "column": 5, - "source_line": " int cur_category, cur_tile, cur_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "categories", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *categories[STBTE_MAX_CATEGORIES]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_CATEGORIES", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 955, - "column": 5, - "source_line": " char *categories[STBTE_MAX_CATEGORIES];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_categories", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_categories" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 956, - "column": 5, - "source_line": " int num_categories, category_scroll;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "category_scroll", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int category_scroll" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 956, - "column": 5, - "source_line": " int num_categories, category_scroll;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tiles", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__tileinfo *tiles", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__tileinfo", - "name": "stbte__tileinfo", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "id", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 784, - "column": 4, - "source_line": " short id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "category_id", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short category_id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 785, - "column": 4, - "source_line": " unsigned short category_id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "category", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *category", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 786, - "column": 4, - "source_line": " char *category;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "layermask", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int layermask" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 787, - "column": 4, - "source_line": " unsigned int layermask;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:782:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 782, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 782, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 957, - "column": 5, - "source_line": " stbte__tileinfo *tiles;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_tiles", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_tiles" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 958, - "column": 5, - "source_line": " int num_tiles, max_tiles, digits;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "max_tiles", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_tiles" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 958, - "column": 5, - "source_line": " int num_tiles, max_tiles, digits;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "digits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digits" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 958, - "column": 5, - "source_line": " int num_tiles, max_tiles, digits;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_available_valid", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char undo_available_valid" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 959, - "column": 5, - "source_line": " unsigned char undo_available_valid;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_available", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char undo_available" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 960, - "column": 5, - "source_line": " unsigned char undo_available;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "redo_available", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char redo_available" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 961, - "column": 5, - "source_line": " unsigned char redo_available;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "padding", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char padding" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 962, - "column": 5, - "source_line": " unsigned char padding;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cur_palette_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cur_palette_count" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 963, - "column": 5, - "source_line": " int cur_palette_count;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "palette_scroll", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_scroll" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 964, - "column": 5, - "source_line": " int palette_scroll;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tileinfo_dirty", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tileinfo_dirty" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 965, - "column": 5, - "source_line": " int tileinfo_dirty;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "layerinfo", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__layer layerinfo[STBTE_MAX_LAYERS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_LAYERS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__layer", - "name": "stbte__layer", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "name", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *name", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 930, - "column": 4, - "source_line": " const char *name;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "locked", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int locked" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 931, - "column": 4, - "source_line": " int locked;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hidden", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hidden" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 932, - "column": 4, - "source_line": " int hidden;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:928:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 928, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 928, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 966, - "column": 5, - "source_line": " stbte__layer layerinfo[STBTE_MAX_LAYERS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "has_layer_names", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int has_layer_names" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 967, - "column": 5, - "source_line": " int has_layer_names;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "layername_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layername_width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 968, - "column": 5, - "source_line": " int layername_width;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "layer_scroll", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer_scroll" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 969, - "column": 5, - "source_line": " int layer_scroll;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "propmode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int propmode" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 970, - "column": 5, - "source_line": " int propmode;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "solo_layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int solo_layer" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 971, - "column": 5, - "source_line": " int solo_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_pos", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_pos" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 972, - "column": 5, - "source_line": " int undo_pos, undo_len, redo_len;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_len" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 972, - "column": 5, - "source_line": " int undo_pos, undo_len, redo_len;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "redo_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int redo_len" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 972, - "column": 5, - "source_line": " int undo_pos, undo_len, redo_len;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "background_tile", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short background_tile" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 973, - "column": 5, - "source_line": " short background_tile;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "id_in_use", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char id_in_use[32768>>3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32768>>3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 974, - "column": 5, - "source_line": " unsigned char id_in_use[32768>>3];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undo_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *undo_buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 975, - "column": 5, - "source_line": " short *undo_buffer;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], + "members": [], "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 942, - "column": 1, - "source_line": "struct stbte_tilemap" - } + "is_incomplete": true, + "source_location": null }, "source_location": { "filename": "stb/stb_tilemap_editor.h", @@ -1416,37 +137,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1007, + "line": 367, "column": 1, - "source_line": "stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles)" + "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1007, - "column": 1, - "source_line": "stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1065, + "line": 367, "column": 1, - "source_line": "}" + "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 367, - "column": 1, - "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_define_tile", @@ -1522,11 +233,11 @@ "callback_policy": null }, { - "name": "category_c", + "name": "category", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * category_c", + "source_text": "const char * category", "components": [ { "model": "CPointer", @@ -1545,7 +256,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char * category_c", + "source_text": "const char * category", "components": [ { "model": "CPointer", @@ -1565,37 +276,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1102, + "line": 378, "column": 1, - "source_line": "void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category_c)" + "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1102, - "column": 1, - "source_line": "void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category_c)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1119, + "line": 378, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 378, - "column": 1, - "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_display", @@ -1666,37 +367,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1094, + "line": 387, "column": 1, - "source_line": "void stbte_set_display(int x0, int y0, int x1, int y1)" + "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1094, - "column": 1, - "source_line": "void stbte_set_display(int x0, int y0, int x1, int y1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1100, + "line": 387, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 387, - "column": 1, - "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_draw", @@ -1742,37 +433,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4053, + "line": 396, "column": 1, - "source_line": "void stbte_draw(stbte_tilemap *tm)" + "source_line": "extern void stbte_draw(stbte_tilemap *tm);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4053, - "column": 1, - "source_line": "void stbte_draw(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4057, + "line": 396, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_draw(stbte_tilemap *tm);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 396, - "column": 1, - "source_line": "extern void stbte_draw(stbte_tilemap *tm);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_tick", @@ -1818,52 +499,42 @@ "callback_policy": null }, { - "name": "dt", + "name": "time_in_seconds_since_last_frame", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float time_in_seconds_since_last_frame" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float dt" + "source_text": "float time_in_seconds_since_last_frame" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4106, + "line": 398, "column": 1, - "source_line": "void stbte_tick(stbte_tilemap *tm, float dt)" + "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4106, - "column": 1, - "source_line": "void stbte_tick(stbte_tilemap *tm, float dt)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4112, + "line": 398, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 398, - "column": 1, - "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_mouse_sdl", @@ -1952,97 +623,87 @@ "callback_policy": null }, { - "name": "xs", + "name": "xscale", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float xs" + "source_text": "float xscale" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float xs" + "source_text": "float xscale" }, "source_location": null, "callback_policy": null }, { - "name": "ys", + "name": "yscale", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float ys" + "source_text": "float yscale" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float ys" + "source_text": "float yscale" }, "source_location": null, "callback_policy": null }, { - "name": "xo", + "name": "xoffset", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int xo" + "source_text": "int xoffset" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int xo" + "source_text": "int xoffset" }, "source_location": null, "callback_policy": null }, { - "name": "yo", + "name": "yoffset", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int yo" + "source_text": "int yoffset" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int yo" + "source_text": "int yoffset" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4114, + "line": 407, "column": 1, - "source_line": "void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xs, float ys, int xo, int yo)" + "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4114, - "column": 1, - "source_line": "void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xs, float ys, int xo, int yo)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4143, + "line": 407, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 407, - "column": 1, - "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_mouse_move", @@ -2148,37 +809,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4059, + "line": 410, "column": 1, - "source_line": "void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey)" + "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4059, - "column": 1, - "source_line": "void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4065, + "line": 410, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 410, - "column": 1, - "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_mouse_button", @@ -2314,37 +965,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4067, + "line": 411, "column": 1, - "source_line": "void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey)" + "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4067, - "column": 1, - "source_line": "void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4076, + "line": 411, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 411, - "column": 1, - "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_mouse_wheel", @@ -2435,37 +1076,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4078, + "line": 412, "column": 1, - "source_line": "void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll)" + "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4078, - "column": 1, - "source_line": "void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4081, + "line": 412, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 412, - "column": 1, - "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_action", @@ -2704,37 +1335,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 4083, + "line": 438, "column": 1, - "source_line": "void stbte_action(stbte_tilemap *tm, enum stbte_action act)" + "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 4083, - "column": 1, - "source_line": "void stbte_action(stbte_tilemap *tm, enum stbte_action act)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4104, + "line": 438, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 438, - "column": 1, - "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_get_dimensions", @@ -2858,37 +1479,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1135, + "line": 451, "column": 1, - "source_line": "void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y)" + "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1135, - "column": 1, - "source_line": "void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1139, + "line": 451, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 451, - "column": 1, - "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_get_tile", @@ -2976,37 +1587,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1141, + "line": 454, "column": 1, - "source_line": "short* stbte_get_tile(stbte_tilemap *tm, int x, int y)" + "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1141, - "column": 1, - "source_line": "short* stbte_get_tile(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1147, + "line": 454, "column": 1, - "source_line": "}" + "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 454, - "column": 1, - "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_get_properties", @@ -3094,37 +1695,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1149, + "line": 458, "column": 1, - "source_line": "float *stbte_get_properties(stbte_tilemap *tm, int x, int y)" + "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1149, - "column": 1, - "source_line": "float *stbte_get_properties(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1155, + "line": 458, "column": 1, - "source_line": "}" + "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 458, - "column": 1, - "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_get_link", @@ -3278,37 +1869,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1157, + "line": 463, "column": 1, - "source_line": "void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty)" + "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1157, - "column": 1, - "source_line": "void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1172, + "line": 463, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 463, - "column": 1, - "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_dimensions", @@ -3354,67 +1935,57 @@ "callback_policy": null }, { - "name": "map_x", + "name": "max_x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int map_x" + "source_text": "int max_x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int map_x" + "source_text": "int max_x" }, "source_location": null, "callback_policy": null }, { - "name": "map_y", + "name": "max_y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int map_y" + "source_text": "int max_y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int map_y" + "source_text": "int max_y" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1203, + "line": 466, "column": 1, - "source_line": "void stbte_set_dimensions(stbte_tilemap *tm, int map_x, int map_y)" + "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1203, - "column": 1, - "source_line": "void stbte_set_dimensions(stbte_tilemap *tm, int map_x, int map_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1211, + "line": 466, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 466, - "column": 1, - "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_clear_map", @@ -3460,37 +2031,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1213, + "line": 470, "column": 1, - "source_line": "void stbte_clear_map(stbte_tilemap *tm)" + "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1213, - "column": 1, - "source_line": "void stbte_clear_map(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1228, + "line": 470, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 470, - "column": 1, - "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_tile", @@ -3596,37 +2157,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1230, + "line": 474, "column": 1, - "source_line": "void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile)" + "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1230, - "column": 1, - "source_line": "void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1241, + "line": 474, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 474, - "column": 1, - "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_property", @@ -3732,37 +2283,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1174, + "line": 477, "column": 1, - "source_line": "void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val)" + "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1174, - "column": 1, - "source_line": "void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1177, + "line": 477, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 477, - "column": 1, - "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_link", @@ -3868,37 +2409,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1190, + "line": 480, "column": 1, - "source_line": "void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty)" + "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1190, - "column": 1, - "source_line": "void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1197, + "line": 480, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 480, - "column": 1, - "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_background_tile", @@ -3959,37 +2490,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1067, + "line": 489, "column": 1, - "source_line": "void stbte_set_background_tile(stbte_tilemap *tm, short id)" + "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1067, - "column": 1, - "source_line": "void stbte_set_background_tile(stbte_tilemap *tm, short id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1078, + "line": 489, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 489, - "column": 1, - "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_sidewidths", @@ -4030,37 +2551,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1088, + "line": 493, "column": 1, - "source_line": "void stbte_set_sidewidths(int left, int right)" + "source_line": "extern void stbte_set_sidewidths(int left, int right);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1088, - "column": 1, - "source_line": "void stbte_set_sidewidths(int left, int right)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1092, + "line": 493, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_sidewidths(int left, int right);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 493, - "column": 1, - "source_line": "extern void stbte_set_sidewidths(int left, int right);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_spacing", @@ -4166,37 +2677,27 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1080, + "line": 497, "column": 1, - "source_line": "void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y)" + "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1080, - "column": 1, - "source_line": "void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1086, + "line": 497, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 497, - "column": 1, - "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" - } - ] + "end": null, + "declaration_locations": [] }, { "name": "stbte_set_layername", @@ -4300,2783 +2801,1674 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1123, + "line": 501, "column": 1, - "source_line": "void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername)" + "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" }, "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1123, - "column": 1, - "source_line": "void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1133, + "line": 501, "column": 1, - "source_line": "}" + "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" }, - "declaration_locations": [ + "end": null, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [ + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTE_drawmode_deemphasize", + "value": "-1", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 348, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBTE_drawmode_normal", + "value": "0", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 348, + "column": 1, + "source_line": "enum" + } + }, { - "filename": "stb/stb_tilemap_editor.h", - "line": 501, - "column": 1, - "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" + "name": "STBTE_drawmode_emphasize", + "value": "1", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 348, + "column": 1, + "source_line": "enum" + } } - ] - }, - { - "name": "stbte__init_gui", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 980, - "column": 1, - "source_line": "static void stbte__init_gui(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 980, - "column": 1, - "source_line": "static void stbte__init_gui(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1005, + "line": 348, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__text_width", - "result_type": { + "source_line": "enum" + } + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbte_create_map": { + "name": "stbte_create_map", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "parameters": [ + { + "name": "map_x", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int map_x" }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1735, - "column": 1, - "source_line": "static int stbte__text_width(const char *str)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int map_x" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1735, - "column": 1, - "source_line": "static int stbte__text_width(const char *str)" + "source_location": null, + "callback_policy": null + }, + { + "name": "map_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int map_y" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1744, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int map_y" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 1121, - "column": 1, - "source_line": "static int stbte__text_width(const char *str);" - } - ] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__set_link", - "result_type": { - "model": "CVoid", + "name": "map_layers", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int map_layers" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "undo_mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1624, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int map_layers" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1624, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode)" + "source_location": null, + "callback_policy": null + }, + { + "name": "spacing_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1649, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_x" }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 1180, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode);" - } - ] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__choose_category", - "result_type": { - "model": "CVoid", + "name": "spacing_y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int spacing_y" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "category", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int category" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int category" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1243, - "column": 1, - "source_line": "static void stbte__choose_category(stbte_tilemap *tm, int category)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1243, - "column": 1, - "source_line": "static void stbte__choose_category(stbte_tilemap *tm, int category)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1252, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_y" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__strequal", - "result_type": { + "name": "max_tiles", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int max_tiles" }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "q", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_tiles" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 367, + "column": 1, + "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 367, + "column": 1, + "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_define_tile": { + "name": "stbte_define_tile", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char *q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "char *q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1254, - "column": 1, - "source_line": "static int stbte__strequal(char *p, char *q)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1254, - "column": 1, - "source_line": "static int stbte__strequal(char *p, char *q)" + "source_location": null, + "callback_policy": null + }, + { + "name": "id", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short id" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1259, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short id" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__compute_tileinfo", - "result_type": { - "model": "CVoid", + "name": "layermask", + "type": { + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int layermask" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int layermask" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "category", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * category", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char * category", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1261, - "column": 1, - "source_line": "static void stbte__compute_tileinfo(stbte_tilemap *tm)" + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1261, - "column": 1, - "source_line": "static void stbte__compute_tileinfo(stbte_tilemap *tm)" + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 378, + "column": 1, + "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 378, + "column": 1, + "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_set_display": { + "name": "stbte_set_display", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "x0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1288, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__prepare_tileinfo", - "result_type": { - "model": "CVoid", + "name": "y0", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1290, - "column": 1, - "source_line": "static void stbte__prepare_tileinfo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1290, - "column": 1, - "source_line": "static void stbte__prepare_tileinfo(stbte_tilemap *tm)" + "source_text": "int y0" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1294, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y0" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__write_undo", - "result_type": { - "model": "CVoid", + "name": "x1", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1349, - "column": 1, - "source_line": "static void stbte__write_undo(stbte_tilemap *tm, short value)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1349, - "column": 1, - "source_line": "static void stbte__write_undo(stbte_tilemap *tm, short value)" + "source_text": "int x1" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1357, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__write_redo", - "result_type": { - "model": "CVoid", + "name": "y1", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int y1" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CShort", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 387, + "column": 1, + "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 387, + "column": 1, + "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_draw": { + "name": "stbte_draw", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short value" + "source_text": "" }, - "declared_type": { - "model": "CShort", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short value" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1359, - "column": 1, - "source_line": "static void stbte__write_redo(stbte_tilemap *tm, short value)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1359, - "column": 1, - "source_line": "static void stbte__write_redo(stbte_tilemap *tm, short value)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1367, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 396, + "column": 1, + "source_line": "extern void stbte_draw(stbte_tilemap *tm);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 396, + "column": 1, + "source_line": "extern void stbte_draw(stbte_tilemap *tm);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_tick": { + "name": "stbte_tick", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stbte__begin_undo", - "result_type": { - "model": "CVoid", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1369, - "column": 1, - "source_line": "static void stbte__begin_undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1369, - "column": 1, - "source_line": "static void stbte__begin_undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1375, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__end_undo", - "result_type": { - "model": "CVoid", + "name": "time_in_seconds_since_last_frame", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float time_in_seconds_since_last_frame" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1377, - "column": 1, - "source_line": "static void stbte__end_undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1377, - "column": 1, - "source_line": "static void stbte__end_undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1393, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float time_in_seconds_since_last_frame" }, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 398, + "column": 1, + "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 398, + "column": 1, + "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_mouse_sdl": { + "name": "stbte_mouse_sdl", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stbte__undo_record", - "result_type": { - "model": "CVoid", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int i" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int i" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sdl_event", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *sdl_event", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int v" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *sdl_event", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int v" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1395, - "column": 1, - "source_line": "static void stbte__undo_record(stbte_tilemap *tm, int x, int y, int i, int v)" + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1395, - "column": 1, - "source_line": "static void stbte__undo_record(stbte_tilemap *tm, int x, int y, int i, int v)" + "source_location": null, + "callback_policy": null + }, + { + "name": "xscale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xscale" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1404, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xscale" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__redo_record", - "result_type": { - "model": "CVoid", + "name": "yscale", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "void" + "source_text": "float yscale" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1406, - "column": 1, - "source_line": "static void stbte__redo_record(stbte_tilemap *tm, int x, int y, int i, int v)" + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float yscale" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1406, - "column": 1, - "source_line": "static void stbte__redo_record(stbte_tilemap *tm, int x, int y, int i, int v)" + "source_location": null, + "callback_policy": null + }, + { + "name": "xoffset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int xoffset" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1412, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int xoffset" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__extract_float", - "result_type": { - "model": "CFloat", + "name": "yoffset", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int yoffset" }, - "parameters": [ - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int yoffset" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 407, + "column": 1, + "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 407, + "column": 1, + "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_mouse_move": { + "name": "stbte_mouse_move", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short s1" + "source_text": "" }, - "declared_type": { - "model": "CShort", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short s1" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1414, - "column": 1, - "source_line": "static float stbte__extract_float(short s0, short s1)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1414, - "column": 1, - "source_line": "static float stbte__extract_float(short s0, short s1)" + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1420, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__extract_short", - "result_type": { - "model": "CShort", + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int y" }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1422, - "column": 1, - "source_line": "static short stbte__extract_short(float f, int slot)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1422, - "column": 1, - "source_line": "static short stbte__extract_short(float f, int slot)" + "source_location": null, + "callback_policy": null + }, + { + "name": "shifted", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shifted" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1427, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shifted" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__undo_record_prop", - "result_type": { - "model": "CVoid", + "name": "scrollkey", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int scrollkey" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scrollkey" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 410, + "column": 1, + "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 410, + "column": 1, + "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_mouse_button": { + "name": "stbte_mouse_button", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short s1" + "source_text": "" }, - "declared_type": { - "model": "CShort", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "short s1" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1429, - "column": 1, - "source_line": "static void stbte__undo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1429, - "column": 1, - "source_line": "static void stbte__undo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1439, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__undo_record_prop_float", - "result_type": { - "model": "CVoid", + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int y" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1441, - "column": 1, - "source_line": "static void stbte__undo_record_prop_float(stbte_tilemap *tm, int x, int y, int i, float f)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1441, - "column": 1, - "source_line": "static void stbte__undo_record_prop_float(stbte_tilemap *tm, int x, int y, int i, float f)" + "source_location": null, + "callback_policy": null + }, + { + "name": "right", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1444, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__redo_record_prop", - "result_type": { - "model": "CVoid", + "name": "down", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int down" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1446, - "column": 1, - "source_line": "static void stbte__redo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int down" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1446, - "column": 1, - "source_line": "static void stbte__redo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" + "source_location": null, + "callback_policy": null + }, + { + "name": "shifted", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shifted" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1453, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int shifted" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__undo_find_end", - "result_type": { + "name": "scrollkey", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int scrollkey" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1456, - "column": 1, - "source_line": "static int stbte__undo_find_end(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1456, - "column": 1, - "source_line": "static int stbte__undo_find_end(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1472, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int scrollkey" }, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 411, + "column": 1, + "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 411, + "column": 1, + "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_mouse_wheel": { + "name": "stbte_mouse_wheel", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stbte__undo", - "result_type": { - "model": "CVoid", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1474, - "column": 1, - "source_line": "static void stbte__undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1474, - "column": 1, - "source_line": "static void stbte__undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1525, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__redo_find_end", - "result_type": { + "name": "x", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int x" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1527, - "column": 1, - "source_line": "static int stbte__redo_find_end(stbte_tilemap *tm)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1527, - "column": 1, - "source_line": "static int stbte__redo_find_end(stbte_tilemap *tm)" + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1543, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__redo", - "result_type": { - "model": "CVoid", + "name": "vscroll", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int vscroll" }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1545, - "column": 1, - "source_line": "static void stbte__redo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1545, - "column": 1, - "source_line": "static void stbte__redo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1598, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int vscroll" }, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 412, + "column": 1, + "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 412, + "column": 1, + "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_action": { + "name": "stbte_action", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stbte__recompute_undo_available", - "result_type": { - "model": "CVoid", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1601, - "column": 1, - "source_line": "static void stbte__recompute_undo_available(stbte_tilemap *tm)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1601, - "column": 1, - "source_line": "static void stbte__recompute_undo_available(stbte_tilemap *tm)" + "source_location": null, + "callback_policy": null + }, + { + "name": "act", + "type": { + "reference": "enum stbte_action" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1605, - "column": 1, - "source_line": "}" + "declared_type": { + "reference": "enum stbte_action" }, - "declaration_locations": [] - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 438, + "column": 1, + "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 438, + "column": 1, + "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_get_dimensions": { + "name": "stbte_get_dimensions", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "stbte__undo_available", - "result_type": { - "model": "CInt", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1607, - "column": 1, - "source_line": "static int stbte__undo_available(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1607, - "column": 1, - "source_line": "static int stbte__undo_available(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1612, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__redo_available", - "result_type": { - "model": "CInt", + "name": "max_x", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", + "source_text": "int *max_x", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CInt", "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1614, - "column": 1, - "source_line": "static int stbte__redo_available(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1614, - "column": 1, - "source_line": "static int stbte__redo_available(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1619, - "column": 1, - "source_line": "}" + "source_text": "int" + } + ] }, - "declaration_locations": [] - }, - { - "name": "stbte__draw_rect", - "result_type": { - "model": "CVoid", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", + "source_text": "int *max_x", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int y0" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "max_y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *max_y", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x1" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *max_y", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int y1" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1653, - "column": 1, - "source_line": "static void stbte__draw_rect(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1653, - "column": 1, - "source_line": "static void stbte__draw_rect(int x0, int y0, int x1, int y1, unsigned int color)" + "source_text": "int" + } + ] }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1656, - "column": 1, - "source_line": "}" + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 451, + "column": 1, + "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 451, + "column": 1, + "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_get_tile": { + "name": "stbte_get_tile", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "declaration_locations": [] - }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "parameters": [ { - "name": "stbte__draw_line", - "result_type": { - "model": "CVoid", + "name": "tm", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x0" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int y1" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 454, + "column": 1, + "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 454, + "column": 1, + "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_get_properties": { + "name": "stbte_get_properties", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned int color" + "source_text": "" }, - "declared_type": { - "model": "CUnsignedInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned int color" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1659, - "column": 1, - "source_line": "static void stbte__draw_line(int x0, int y0, int x1, int y1, unsigned int color)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1659, - "column": 1, - "source_line": "static void stbte__draw_line(int x0, int y0, int x1, int y1, unsigned int color)" + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1665, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_link", - "result_type": { - "model": "CVoid", + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int y" }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 458, + "column": 1, + "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 458, + "column": 1, + "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_get_link": { + "name": "stbte_get_link", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x0" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "unsigned int color" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1667, - "column": 1, - "source_line": "static void stbte__draw_link(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1667, - "column": 1, - "source_line": "static void stbte__draw_link(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1671, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_frame", - "result_type": { - "model": "CVoid", + "name": "x", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1674, - "column": 1, - "source_line": "static void stbte__draw_frame(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1674, - "column": 1, - "source_line": "static void stbte__draw_frame(int x0, int y0, int x1, int y1, unsigned int color)" + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1680, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__get_char_width", - "result_type": { + "name": "y", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1682, - "column": 1, - "source_line": "static int stbte__get_char_width(int ch)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1682, - "column": 1, - "source_line": "static int stbte__get_char_width(int ch)" + "source_text": "int y" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1685, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__get_char_bitmap", - "result_type": { + "name": "destx", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short", + "source_text": "int *destx", "components": [ { "model": "CPointer", @@ -7084,28363 +4476,1260 @@ "source_text": "" }, { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *destx", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int ch" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1687, - "column": 1, - "source_line": "static short *stbte__get_char_bitmap(int ch)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1687, - "column": 1, - "source_line": "static short *stbte__get_char_bitmap(int ch)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1690, - "column": 1, - "source_line": "}" + "source_text": "int" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_bitmask_as_columns", - "result_type": { - "model": "CVoid", + "name": "desty", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", + "source_text": "int *desty", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *desty", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int y" + "source_text": "" }, - "declared_type": { + { "model": "CInt", "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitmask", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short bitmask" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short bitmask" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 463, + "column": 1, + "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 463, + "column": 1, + "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_set_dimensions": { + "name": "stbte_set_dimensions", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int color" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int color" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1692, - "column": 1, - "source_line": "static void stbte__draw_bitmask_as_columns(int x, int y, short bitmask, int color)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1692, - "column": 1, - "source_line": "static void stbte__draw_bitmask_as_columns(int x, int y, short bitmask, int color)" + "source_location": null, + "callback_policy": null + }, + { + "name": "max_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1706, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_bitmap", - "result_type": { - "model": "CVoid", + "name": "max_y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int max_y" }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 466, + "column": 1, + "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 466, + "column": 1, + "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_clear_map": { + "name": "stbte_clear_map", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitmap", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *bitmap", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *bitmap", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 470, + "column": 1, + "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 470, + "column": 1, + "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_set_tile": { + "name": "stbte_set_tile", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int color" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int color" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1708, - "column": 1, - "source_line": "static void stbte__draw_bitmap(int x, int y, int w, short *bitmap, int color)" + { + "reference": "stbte_tilemap" + } + ] }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1708, - "column": 1, - "source_line": "static void stbte__draw_bitmap(int x, int y, int w, short *bitmap, int color)" + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1713, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_text_core", - "result_type": { - "model": "CVoid", + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int y" }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "layer", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int layer" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int layer" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "tile", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "signed short tile" + }, + "declared_type": { + "model": "CShort", + "qualifiers": [], + "source_text": "signed short tile" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_tilemap_editor.h", + "line": 474, + "column": 1, + "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" + }, + "start": { + "filename": "stb/stb_tilemap_editor.h", + "line": 474, + "column": 1, + "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" + }, + "end": null, + "declaration_locations": [] + }, + "stbte_set_property": { + "name": "stbte_set_property", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "digitspace", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digitspace" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digitspace" + "source_text": "" }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1715, - "column": 1, - "source_line": "static void stbte__draw_text_core(int x, int y, const char *str, int w, int color, int digitspace)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1715, - "column": 1, - "source_line": "static void stbte__draw_text_core(int x, int y, const char *str, int w, int color, int digitspace)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1728, - "column": 1, - "source_line": "}" + { + "reference": "stbte_tilemap" + } + ] }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_text", - "result_type": { - "model": "CVoid", + "name": "x", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1730, - "column": 1, - "source_line": "static void stbte__draw_text(int x, int y, const char *str, int w, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1730, - "column": 1, - "source_line": "static void stbte__draw_text(int x, int y, const char *str, int w, int color)" + "source_text": "int x" }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1733, - "column": 1, - "source_line": "}" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__draw_frame_delayed", - "result_type": { - "model": "CVoid", + "name": "y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int y" }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1746, - "column": 1, - "source_line": "static void stbte__draw_frame_delayed(int x0, int y0, int x1, int y1, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1746, - "column": 1, - "source_line": "static void stbte__draw_frame_delayed(int x0, int y0, int x1, int y1, int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1752, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__flush_delay", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1754, - "column": 1, - "source_line": "static void stbte__flush_delay(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1754, - "column": 1, - "source_line": "static void stbte__flush_delay(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1762, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__activate", - "result_type": { - "model": "CVoid", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1764, - "column": 1, - "source_line": "static void stbte__activate(int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1764, - "column": 1, - "source_line": "static void stbte__activate(int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1770, - "column": 1, - "source_line": "}" + "source_text": "int y" }, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "stbte__hittest", - "result_type": { + "name": "n", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1772, - "column": 1, - "source_line": "static int stbte__hittest(int x0, int y0, int x1, int y1, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1772, - "column": 1, - "source_line": "static int stbte__hittest(int x0, int y0, int x1, int y1, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1781, - "column": 1, - "source_line": "}" + "source_text": "int n" }, - "declaration_locations": [] - }, - { - "name": "stbte__button_core", - "result_type": { + "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int" + "source_text": "int n" }, - "parameters": [ - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1783, - "column": 1, - "source_line": "static int stbte__button_core(int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1783, - "column": 1, - "source_line": "static int stbte__button_core(int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1808, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__draw_box", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colorindex", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1810, - "column": 1, - "source_line": "static void stbte__draw_box(int x0, int y0, int x1, int y1, int colormode, int colorindex)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1810, - "column": 1, - "source_line": "static void stbte__draw_box(int x0, int y0, int x1, int y1, int colormode, int colorindex)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1814, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__draw_textbox", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "yoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colorindex", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1816, - "column": 1, - "source_line": "static void stbte__draw_textbox(int x0, int y0, int x1, int y1, char *text, int xoff, int yoff, int colormode, int colorindex)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1816, - "column": 1, - "source_line": "static void stbte__draw_textbox(int x0, int y0, int x1, int y1, char *text, int xoff, int yoff, int colormode, int colorindex)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1820, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__button", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "textoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int textoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int textoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1822, - "column": 1, - "source_line": "static int stbte__button(int colormode, const char *label, int x, int y, int textoff, int width, int id, int toggled, int disabled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1822, - "column": 1, - "source_line": "static int stbte__button(int colormode, const char *label, int x, int y, int textoff, int width, int id, int toggled, int disabled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1834, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__button_icon", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char ch" - }, - "declared_type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1836, - "column": 1, - "source_line": "static int stbte__button_icon(int colormode, char ch, int x, int y, int width, int id, int toggled, int disabled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1836, - "column": 1, - "source_line": "static int stbte__button_icon(int colormode, char ch, int x, int y, int width, int id, int toggled, int disabled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__minibutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1853, - "column": 1, - "source_line": "static int stbte__minibutton(int colormode, int x, int y, int ch, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1853, - "column": 1, - "source_line": "static int stbte__minibutton(int colormode, int x, int y, int ch, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1862, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__layerbutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1864, - "column": 1, - "source_line": "static int stbte__layerbutton(int x, int y, int ch, int id, int toggled, int disabled, int colormode)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1864, - "column": 1, - "source_line": "static int stbte__layerbutton(int x, int y, int ch, int id, int toggled, int disabled, int colormode)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1876, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__microbutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1878, - "column": 1, - "source_line": "static int stbte__microbutton(int x, int y, int size, int id, int colormode)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1878, - "column": 1, - "source_line": "static int stbte__microbutton(int x, int y, int size, int id, int colormode)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1886, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__microbutton_dragger", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pos", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pos", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1888, - "column": 1, - "source_line": "static int stbte__microbutton_dragger(int x, int y, int size, int id, int *pos)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1888, - "column": 1, - "source_line": "static int stbte__microbutton_dragger(int x, int y, int size, int id, int *pos)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1915, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__category_button", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1917, - "column": 1, - "source_line": "static int stbte__category_button(const char *label, int x, int y, int width, int id, int toggled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1917, - "column": 1, - "source_line": "static int stbte__category_button(const char *label, int x, int y, int width, int id, int toggled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1928, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__slider", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1939, - "column": 1, - "source_line": "static int stbte__slider(int x0, int w, int y, int range, int *value, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1939, - "column": 1, - "source_line": "static int stbte__slider(int x0, int w, int y, int range, int *value, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1972, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__float_control", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "minv", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float minv" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float minv" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "maxv", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float maxv" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float maxv" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fmt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1982, - "column": 1, - "source_line": "static int stbte__float_control(int x0, int y0, int w, float minv, float maxv, float scale, const char *fmt, float *value, int colormode, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1982, - "column": 1, - "source_line": "static int stbte__float_control(int x0, int y0, int w, float minv, float maxv, float scale, const char *fmt, float *value, int colormode, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2034, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__scrollbar", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "val", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *val", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *val", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_vis", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vis" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vis" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2036, - "column": 1, - "source_line": "static void stbte__scrollbar(int x, int y0, int y1, int *val, int v0, int v1, int num_vis, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2036, - "column": 1, - "source_line": "static void stbte__scrollbar(int x, int y0, int y1, int *val, int v0, int v1, int num_vis, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2074, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__compute_digits", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2077, - "column": 1, - "source_line": "static void stbte__compute_digits(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2077, - "column": 1, - "source_line": "static void stbte__compute_digits(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2085, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__is_single_selection", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2087, - "column": 1, - "source_line": "static int stbte__is_single_selection(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2087, - "column": 1, - "source_line": "static int stbte__is_single_selection(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2092, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__compute_panel_locations", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2110, - "column": 1, - "source_line": "static void stbte__compute_panel_locations(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2110, - "column": 1, - "source_line": "static void stbte__compute_panel_locations(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2244, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__activate_map", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2275, - "column": 1, - "source_line": "static void stbte__activate_map(int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2275, - "column": 1, - "source_line": "static void stbte__activate_map(int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2281, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__alert", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "msg", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *msg", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *msg", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2283, - "column": 1, - "source_line": "static void stbte__alert(const char *msg)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2283, - "column": 1, - "source_line": "static void stbte__alert(const char *msg)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__brush_predict", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2293, - "column": 1, - "source_line": "static void stbte__brush_predict(stbte_tilemap *tm, short result[])" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2293, - "column": 1, - "source_line": "static void stbte__brush_predict(stbte_tilemap *tm, short result[])" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2329, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__brush", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2331, - "column": 1, - "source_line": "static void stbte__brush(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2331, - "column": 1, - "source_line": "static void stbte__brush(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2371, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__erase_predict", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "allow_any", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2381, - "column": 1, - "source_line": "static int stbte__erase_predict(stbte_tilemap *tm, short result[], int allow_any)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2381, - "column": 1, - "source_line": "static int stbte__erase_predict(stbte_tilemap *tm, short result[], int allow_any)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2449, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__erase", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "allow_any", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2451, - "column": 1, - "source_line": "static int stbte__erase(stbte_tilemap *tm, int x, int y, int allow_any)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2451, - "column": 1, - "source_line": "static int stbte__erase(stbte_tilemap *tm, int x, int y, int allow_any)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2522, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__find_tile", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tile_id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tile_id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tile_id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2524, - "column": 1, - "source_line": "static int stbte__find_tile(stbte_tilemap *tm, int tile_id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2524, - "column": 1, - "source_line": "static int stbte__find_tile(stbte_tilemap *tm, int tile_id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2532, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__eyedrop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2534, - "column": 1, - "source_line": "static void stbte__eyedrop(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2534, - "column": 1, - "source_line": "static void stbte__eyedrop(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2569, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__should_copy_properties", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2571, - "column": 1, - "source_line": "static int stbte__should_copy_properties(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2571, - "column": 1, - "source_line": "static int stbte__should_copy_properties(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2584, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__paste_stack", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short dest[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short dest[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short src[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short src[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dragging", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dragging" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dragging" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2587, - "column": 1, - "source_line": "static void stbte__paste_stack(stbte_tilemap *tm, short result[], short dest[], short src[], int dragging)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2587, - "column": 1, - "source_line": "static void stbte__paste_stack(stbte_tilemap *tm, short result[], short dest[], short src[], int dragging)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2619, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__clear_stack", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2622, - "column": 1, - "source_line": "static void stbte__clear_stack(stbte_tilemap *tm, short result[])" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2622, - "column": 1, - "source_line": "static void stbte__clear_stack(stbte_tilemap *tm, short result[])" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2635, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__fillrect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fill", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int fill" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int fill" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2641, - "column": 1, - "source_line": "static void stbte__fillrect(stbte_tilemap *tm, int x0, int y0, int x1, int y1, int fill)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2641, - "column": 1, - "source_line": "static void stbte__fillrect(stbte_tilemap *tm, int x0, int y0, int x1, int y1, int fill)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2657, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__select_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2659, - "column": 1, - "source_line": "static void stbte__select_rect(stbte_tilemap *tm, int x0, int y0, int x1, int y1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2659, - "column": 1, - "source_line": "static void stbte__select_rect(stbte_tilemap *tm, int x0, int y0, int x1, int y1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2666, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__copy_properties", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2668, - "column": 1, - "source_line": "static void stbte__copy_properties(float *dest, float *src)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2668, - "column": 1, - "source_line": "static void stbte__copy_properties(float *dest, float *src)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2673, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__copy_cut", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cut", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cut" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cut" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2675, - "column": 1, - "source_line": "static void stbte__copy_cut(stbte_tilemap *tm, int cut)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2675, - "column": 1, - "source_line": "static void stbte__copy_cut(stbte_tilemap *tm, int cut)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2736, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__in_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2738, - "column": 1, - "source_line": "static int stbte__in_rect(int x, int y, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2738, - "column": 1, - "source_line": "static int stbte__in_rect(int x, int y, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2741, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__in_src_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2744, - "column": 1, - "source_line": "static int stbte__in_src_rect(int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2744, - "column": 1, - "source_line": "static int stbte__in_src_rect(int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2747, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__in_dest_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "destx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "desty", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2749, - "column": 1, - "source_line": "static int stbte__in_dest_rect(int x, int y, int destx, int desty)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2749, - "column": 1, - "source_line": "static int stbte__in_dest_rect(int x, int y, int destx, int desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2752, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__paste", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2755, - "column": 1, - "source_line": "static void stbte__paste(stbte_tilemap *tm, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2755, - "column": 1, - "source_line": "static void stbte__paste(stbte_tilemap *tm, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2816, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__drag_update", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "copy_props", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_props" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_props" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2818, - "column": 1, - "source_line": "static void stbte__drag_update(stbte_tilemap *tm, int mapx, int mapy, int copy_props)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2818, - "column": 1, - "source_line": "static void stbte__drag_update(stbte_tilemap *tm, int mapx, int mapy, int copy_props)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2912, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__drag_place", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2914, - "column": 1, - "source_line": "static void stbte__drag_place(stbte_tilemap *tm, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2914, - "column": 1, - "source_line": "static void stbte__drag_place(stbte_tilemap *tm, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2943, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__tile_paint", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2945, - "column": 1, - "source_line": "static void stbte__tile_paint(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy, int layer)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2945, - "column": 1, - "source_line": "static void stbte__tile_paint(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy, int layer)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3024, - "column": 1, - "source_line": "static void stbte__tile(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3024, - "column": 1, - "source_line": "static void stbte__tile(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3301, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__start_paste", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3303, - "column": 1, - "source_line": "static void stbte__start_paste(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3303, - "column": 1, - "source_line": "static void stbte__start_paste(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3309, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__toolbar", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3311, - "column": 1, - "source_line": "static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3311, - "column": 1, - "source_line": "static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3372, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__info_value", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "val", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "digits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3376, - "column": 1, - "source_line": "static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3376, - "column": 1, - "source_line": "static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3394, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3396, - "column": 1, - "source_line": "static void stbte__info(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3396, - "column": 1, - "source_line": "static void stbte__info(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3425, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__layers", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3427, - "column": 1, - "source_line": "static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3427, - "column": 1, - "source_line": "static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3485, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__categories", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3487, - "column": 1, - "source_line": "static void stbte__categories(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3487, - "column": 1, - "source_line": "static void stbte__categories(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3512, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__tile_in_palette", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3514, - "column": 1, - "source_line": "static void stbte__tile_in_palette(stbte_tilemap *tm, int x, int y, int slot)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3514, - "column": 1, - "source_line": "static void stbte__tile_in_palette(stbte_tilemap *tm, int x, int y, int slot)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3532, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__palette_of_tiles", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3534, - "column": 1, - "source_line": "static void stbte__palette_of_tiles(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3534, - "column": 1, - "source_line": "static void stbte__palette_of_tiles(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3574, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__props_panel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3577, - "column": 1, - "source_line": "static void stbte__props_panel(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3577, - "column": 1, - "source_line": "static void stbte__props_panel(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3670, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__dump_colorstate", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3675, - "column": 1, - "source_line": "static void stbte__dump_colorstate(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3675, - "column": 1, - "source_line": "static void stbte__dump_colorstate(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3695, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__colorpicker", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3697, - "column": 1, - "source_line": "static void stbte__colorpicker(int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3697, - "column": 1, - "source_line": "static void stbte__colorpicker(int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3775, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__editor_traverse", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3778, - "column": 1, - "source_line": "static void stbte__editor_traverse(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3778, - "column": 1, - "source_line": "static void stbte__editor_traverse(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3999, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__do_event", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4001, - "column": 1, - "source_line": "static void stbte__do_event(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4001, - "column": 1, - "source_line": "static void stbte__do_event(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4038, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbte__set_event", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "event", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int event" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int event" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4040, - "column": 1, - "source_line": "static void stbte__set_event(int event, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4040, - "column": 1, - "source_line": "static void stbte__set_event(int event, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4051, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_tilemap_editor.h:595:1" - }, - { - "reference": "struct@stb/stb_tilemap_editor.h:782:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "expanded", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int expanded" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 863, - "column": 4, - "source_line": " int expanded, mode;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mode" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 863, - "column": 4, - "source_line": " int expanded, mode;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delta_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int delta_height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 864, - "column": 4, - "source_line": " int delta_height; // number of rows they've requested for this" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "side", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int side" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 865, - "column": 4, - "source_line": " int side;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 866, - "column": 4, - "source_line": " int width,height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 866, - "column": 4, - "source_line": " int width,height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 867, - "column": 4, - "source_line": " int x0,y0;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 867, - "column": 4, - "source_line": " int x0,y0;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:861:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 861, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 872, - "column": 4, - "source_line": " int x0,y0,x1,y1,color;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 872, - "column": 4, - "source_line": " int x0,y0,x1,y1,color;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 872, - "column": 4, - "source_line": " int x0,y0,x1,y1,color;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 872, - "column": 4, - "source_line": " int x0,y0,x1,y1,color;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 872, - "column": 4, - "source_line": " int x0,y0,x1,y1,color;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:870:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 870, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "tool", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tool" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 879, - "column": 4, - "source_line": " int tool, active_event;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "active_event", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int active_event" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 879, - "column": 4, - "source_line": " int tool, active_event;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "active_id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int active_id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 880, - "column": 4, - "source_line": " int active_id, hot_id, next_hot_id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "hot_id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int hot_id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 880, - "column": 4, - "source_line": " int active_id, hot_id, next_hot_id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next_hot_id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int next_hot_id" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 880, - "column": 4, - "source_line": " int active_id, hot_id, next_hot_id;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "event", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int event" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 881, - "column": 4, - "source_line": " int event;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "mx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 882, - "column": 4, - "source_line": " int mx,my, dx,dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "my", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int my" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 882, - "column": 4, - "source_line": " int mx,my, dx,dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 882, - "column": 4, - "source_line": " int mx,my, dx,dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 882, - "column": 4, - "source_line": " int mx,my, dx,dy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ms_time", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ms_time" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 883, - "column": 4, - "source_line": " int ms_time;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "shift", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shift" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 884, - "column": 4, - "source_line": " int shift, scrollkey;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scrollkey", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrollkey" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 884, - "column": 4, - "source_line": " int shift, scrollkey;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "initted", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int initted" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 885, - "column": 4, - "source_line": " int initted;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "side_extended", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int side_extended[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 886, - "column": 4, - "source_line": " int side_extended[2];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delayrect", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__colorrect delayrect[STBTE__MAX_DELAYRECT]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__MAX_DELAYRECT", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__colorrect", - "name": "stbte__colorrect", - "type": { - "reference": "struct@stb/stb_tilemap_editor.h:870:1" - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 870, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 887, - "column": 4, - "source_line": " stbte__colorrect delayrect[STBTE__MAX_DELAYRECT];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "delaycount", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int delaycount" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 888, - "column": 4, - "source_line": " int delaycount;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "show_grid", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int show_grid" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 889, - "column": 4, - "source_line": " int show_grid, show_links;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "show_links", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int show_links" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 889, - "column": 4, - "source_line": " int show_grid, show_links;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "brush_state", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int brush_state" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 890, - "column": 4, - "source_line": " int brush_state; // used to decide which kind of erasing" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "eyedrop_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int eyedrop_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 891, - "column": 4, - "source_line": " int eyedrop_x, eyedrop_y, eyedrop_last_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "eyedrop_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int eyedrop_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 891, - "column": 4, - "source_line": " int eyedrop_x, eyedrop_y, eyedrop_last_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "eyedrop_last_layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int eyedrop_last_layer" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 891, - "column": 4, - "source_line": " int eyedrop_x, eyedrop_y, eyedrop_last_layer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "pasting", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int pasting" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 892, - "column": 4, - "source_line": " int pasting, paste_x, paste_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "paste_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int paste_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 892, - "column": 4, - "source_line": " int pasting, paste_x, paste_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "paste_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int paste_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 892, - "column": 4, - "source_line": " int pasting, paste_x, paste_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scrolling", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrolling" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 893, - "column": 4, - "source_line": " int scrolling, start_x, start_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 893, - "column": 4, - "source_line": " int scrolling, start_x, start_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "start_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 893, - "column": 4, - "source_line": " int scrolling, start_x, start_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "last_mouse_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int last_mouse_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 894, - "column": 4, - "source_line": " int last_mouse_x, last_mouse_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "last_mouse_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int last_mouse_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 894, - "column": 4, - "source_line": " int last_mouse_x, last_mouse_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "accum_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int accum_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 895, - "column": 4, - "source_line": " int accum_x, accum_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "accum_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int accum_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 895, - "column": 4, - "source_line": " int accum_x, accum_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "linking", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int linking" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 896, - "column": 4, - "source_line": " int linking;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dragging", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dragging" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 897, - "column": 4, - "source_line": " int dragging;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 898, - "column": 4, - "source_line": " int drag_x, drag_y, drag_w, drag_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 898, - "column": 4, - "source_line": " int drag_x, drag_y, drag_w, drag_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_w" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 898, - "column": 4, - "source_line": " int drag_x, drag_y, drag_w, drag_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_h" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 898, - "column": 4, - "source_line": " int drag_x, drag_y, drag_w, drag_h;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_offx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_offx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 899, - "column": 4, - "source_line": " int drag_offx, drag_offy, drag_dest_x, drag_dest_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_offy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_offy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 899, - "column": 4, - "source_line": " int drag_offx, drag_offy, drag_dest_x, drag_dest_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_dest_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_dest_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 899, - "column": 4, - "source_line": " int drag_offx, drag_offy, drag_dest_x, drag_dest_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "drag_dest_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int drag_dest_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 899, - "column": 4, - "source_line": " int drag_offx, drag_offy, drag_dest_x, drag_dest_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "undoing", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undoing" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 900, - "column": 4, - "source_line": " int undoing;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "has_selection", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int has_selection" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 901, - "column": 4, - "source_line": " int has_selection, select_x0, select_y0, select_x1, select_y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 901, - "column": 4, - "source_line": " int has_selection, select_x0, select_y0, select_x1, select_y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 901, - "column": 4, - "source_line": " int has_selection, select_x0, select_y0, select_x1, select_y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 901, - "column": 4, - "source_line": " int has_selection, select_x0, select_y0, select_x1, select_y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "select_y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int select_y1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 901, - "column": 4, - "source_line": " int has_selection, select_x0, select_y0, select_x1, select_y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "sx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 902, - "column": 4, - "source_line": " int sx,sy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "sy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 902, - "column": 4, - "source_line": " int sx,sy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "left_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "right_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right_width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 903, - "column": 4, - "source_line": " int x0,y0,x1,y1, left_width, right_width; // configurable widths" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alert_timer", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float alert_timer" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 904, - "column": 4, - "source_line": " float alert_timer;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "alert_msg", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *alert_msg", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 905, - "column": 4, - "source_line": " const char *alert_msg;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dt", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dt" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 906, - "column": 4, - "source_line": " float dt;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "panel", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__panel panel[STBTE__num_panel]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_panel", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__panel", - "name": "stbte__panel", - "type": { - "reference": "struct@stb/stb_tilemap_editor.h:861:1" - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 861, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 907, - "column": 4, - "source_line": " stbte__panel panel[STBTE__num_panel];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copybuffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short copybuffer[STBTE_MAX_COPY][STBTE_MAX_LAYERS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_COPY", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_LAYERS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 908, - "column": 4, - "source_line": " short copybuffer[STBTE_MAX_COPY][STBTE_MAX_LAYERS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copyprops", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float copyprops[STBTE_MAX_COPY][STBTE_MAX_PROPERTIES]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_COPY", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_PROPERTIES", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 909, - "column": 4, - "source_line": " float copyprops[STBTE_MAX_COPY][STBTE_MAX_PROPERTIES];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copylinks", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte__link copylinks[STBTE_MAX_COPY]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE_MAX_COPY", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbte__link" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 911, - "column": 4, - "source_line": " stbte__link copylinks[STBTE_MAX_COPY];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_src_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_src_x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 913, - "column": 4, - "source_line": " int copy_src_x, copy_src_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_src_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_src_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 913, - "column": 4, - "source_line": " int copy_src_x, copy_src_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *copy_src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 914, - "column": 4, - "source_line": " stbte_tilemap *copy_src;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 915, - "column": 4, - "source_line": " int copy_width,copy_height,has_copy,copy_has_props;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 915, - "column": 4, - "source_line": " int copy_width,copy_height,has_copy,copy_has_props;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "has_copy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int has_copy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 915, - "column": 4, - "source_line": " int copy_width,copy_height,has_copy,copy_has_props;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "copy_has_props", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_has_props" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 915, - "column": 4, - "source_line": " int copy_width,copy_height,has_copy,copy_has_props;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:877:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 877, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "reference": "struct@stb/stb_tilemap_editor.h:928:1" - }, - { - "reference": "struct stbte_tilemap" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2096, - "column": 4, - "source_line": " int width, height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2096, - "column": 4, - "source_line": " int width, height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2097, - "column": 4, - "source_line": " int x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2097, - "column": 4, - "source_line": " int x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "active", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int active" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2098, - "column": 4, - "source_line": " int active;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "retracted", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float retracted" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2099, - "column": 4, - "source_line": " float retracted;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_tilemap_editor.h:2094:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2094, - "column": 1, - "source_line": "typedef struct" - } - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE_drawmode_deemphasize", - "value": "-1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE_drawmode_normal", - "value": "0", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE_drawmode_emphasize", - "value": "1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:348:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - { - "reference": "enum stbte_action" - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__base", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__outline", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__text", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__num_color_aspects", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:600:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__idle", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__over", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__down", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__over_down", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__selected", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__selected_over", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__disabled", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__num_color_states", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:609:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__cexpander", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__ctoolbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__ctoolbar_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__cpanel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__cpanel_sider", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__cpanel_sizer", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__cscrollbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__cmapsize", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__clayer_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__clayer_hide", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__clayer_lock", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__clayer_solo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__ccategory_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__num_color_modes", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:621:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__panel_toolbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_colorpick", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_info", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_layers", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_props", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_categories", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_tiles", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__num_panel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:796:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__side_left", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__side_right", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__side_top", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__side_bottom", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:809:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__tool_select", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_brush", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_erase", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_rect", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_eyedrop", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_fill", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_link", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_showgrid", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_showlinks", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_undo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tool_redo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__num_tool", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:817:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__propmode_default", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__propmode_always", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__propmode_never", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:840:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__paint", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__tick", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__mousemove", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__mousewheel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__leftdown", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__leftup", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__rightdown", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__rightup", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:847:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__unlocked", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 935, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__protected", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 935, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__locked", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 935, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:935:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 935, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__undo_none", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1183, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__undo_record", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1183, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__undo_block", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1183, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:1183:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1183, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__none", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1930, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__begin", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1930, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__end", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1930, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__change", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1930, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:1930:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1930, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__map", - "value": "1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__region", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__info", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__toolbarA", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__toolbarB", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__palette", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__categories", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__layer", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__solo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__hide", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__lock", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__scrollbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_mover", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__panel_sizer", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__scrollbar_id", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__colorpick_id", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__prop_flag", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__prop_float", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__prop_int", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:2247:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBTE__erase_none", - "value": "-1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__erase_brushonly", - "value": "0", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__erase_any", - "value": "1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBTE__erase_all", - "value": "2", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_tilemap_editor.h:2373:1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "reference": "stbte_tilemap" - }, - { - "reference": "stbte__link" - }, - { - "reference": "stbte__tileinfo" - }, - { - "reference": "stbte__tiledata" - }, - { - "reference": "stbte__panel" - }, - { - "reference": "stbte__colorrect" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__ui_t", - "name": "stbte__ui_t", - "type": { - "reference": "struct@stb/stb_tilemap_editor.h:877:1" - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 877, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "stbte__layer" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbte__region_t", - "name": "stbte__region_t", - "type": { - "reference": "struct@stb/stb_tilemap_editor.h:2094:1" - }, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2094, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ], - "variables": [ - { - "name": "stbte__color_names", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char *stbte__color_names[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n \"expander\", \"toolbar\", \"tool button\", \"panel\",\n \"panel c1\", \"panel c2\", \"scollbar\", \"map button\",\n \"layer\", \"hide\", \"lock\", \"solo\",\n \"category\",\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 641, - "column": 1, - "source_line": "static char *stbte__color_names[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__color_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static int stbte__color_table[STBTE__num_color_modes][STBTE__num_color_aspects][STBTE__num_color_states]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_modes", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_aspects", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_states", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { 0x000000, 0x84987c, 0xdcdca8, 0xdcdca8, 0x40c040, 0x60d060, 0x505050, },\n { 0xa4b090, 0xe0ec80, 0xffffc0, 0xffffc0, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x808890, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, },\n { 0x605860, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, },\n { 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, },\n }, {\n { 0x3c5068, 0x7088a8, 0x647488, 0x94b4dc, 0x8890c4, 0x9caccc, 0x404040, },\n { 0x889cb8, 0x889cb8, 0x889cb8, 0x889cb8, 0x84c4e8, 0xacc8ff, 0x0c0c08, },\n { 0xbcc4cc, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x707074, },\n }, {\n { 0x403848, 0x403010, 0x403010, 0x403010, 0x403010, 0x403010, 0x303024, },\n { 0x68546c, 0xc08040, 0xc08040, 0xc08040, 0xc08040, 0xc08040, 0x605030, },\n { 0xf4e4ff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0xb4b04c, 0xacac60, 0xc0ffc0, 0xc0ffc0, 0x40c040, 0x60d060, 0x505050, },\n { 0xa0a04c, 0xd0d04c, 0xffff80, 0xffff80, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x40c440, 0x60d060, 0xc0ffc0, 0xc0ffc0, 0x40c040, 0x60d060, 0x505050, },\n { 0x40c040, 0x80ff80, 0x80ff80, 0x80ff80, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x9090ac, 0xa0a0b8, 0xbcb8cc, 0xbcb8cc, 0x909040, 0x909040, 0x909040, },\n { 0xa0a0b8, 0xb0b4d0, 0xa0a0b8, 0xa0a0b8, 0xa0a050, 0xa0a050, 0xa0a050, },\n { 0x808088, 0x808030, 0x808030, 0x808030, 0x808030, 0x808030, 0x808030, },\n }, {\n { 0x704c70, 0x885c8c, 0x9c68a4, 0xb870bc, 0xb490bc, 0xb490bc, 0x302828, },\n { 0x646064, 0xcca8d4, 0xc060c0, 0xa07898, 0xe0b8e0, 0xe0b8e0, 0x403838, },\n { 0xdccce4, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x704c70, 0x885c8c, 0x9c68a4, 0xb870bc, 0xb490bc, 0xb490bc, 0x302828, },\n { 0xb09cb4, 0xcca8d4, 0xc060c0, 0xa07898, 0xe0b8e0, 0xe0b8e0, 0x403838, },\n { 0xdccce4, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x646494, 0x888cb8, 0xb0b0b0, 0xb0b0cc, 0x9c9cf4, 0x8888b0, 0x50506c, },\n { 0x9090a4, 0xb0b4d4, 0xb0b0dc, 0xb0b0cc, 0xd0d0fc, 0xd0d4f0, 0x606060, },\n { 0xb4b4d4, 0xe4e4ff, 0xffffff, 0xffffff, 0xe0e4ff, 0xececff, 0x909090, },\n }, {\n { 0x646444, 0x888c64, 0xb0b0b0, 0xb0b088, 0xaca858, 0x88886c, 0x505050, },\n { 0x88886c, 0xb0b490, 0xb0b0b0, 0xb0b088, 0xd8d898, 0xd0d4b0, 0x606060, },\n { 0xb4b49c, 0xffffd8, 0xffffff, 0xffffd4, 0xffffdc, 0xffffcc, 0x909090, },\n }, {\n { 0x906464, 0xb48c8c, 0xd4b0b0, 0xdcb0b0, 0xff9c9c, 0xc88888, 0x505050, },\n { 0xb47c80, 0xd4b4b8, 0xc4a8a8, 0xdcb0b0, 0xffc0c0, 0xfce8ec, 0x606060, },\n { 0xe0b4b4, 0xffdcd8, 0xffd8d4, 0xffe0e4, 0xffece8, 0xffffff, 0x909090, },\n }, {\n { 0x403848, 0x403848, 0x403848, 0x886894, 0x7c80c8, 0x7c80c8, 0x302828, },\n { 0x403848, 0x403848, 0x403848, 0x403848, 0x7c80c8, 0x7c80c8, 0x403838, },\n { 0xc8c4c8, 0xffffff, 0xffffff, 0xffffff, 0xe8e8ec, 0xffffff, 0x909090, },\n },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 651, - "column": 1, - "source_line": "static int stbte__color_table[STBTE__num_color_modes][STBTE__num_color_aspects][STBTE__num_color_states] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__state_to_index", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbte__state_to_index[2][2][2][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { { STBTE__idle , STBTE__over }, { STBTE__down , STBTE__over_down }, },\n { { STBTE__selected, STBTE__selected_over }, { STBTE__down , STBTE__over_down }, },\n },{\n { { STBTE__disabled, STBTE__disabled }, { STBTE__disabled, STBTE__disabled }, },\n { { STBTE__selected, STBTE__selected_over }, { STBTE__disabled, STBTE__disabled }, },\n }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 731, - "column": 1, - "source_line": "static unsigned char stbte__state_to_index[2][2][2][2] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__font_offset", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static short stbte__font_offset[95+16]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "95+16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 745, - "column": 1, - "source_line": "static short stbte__font_offset[95+16];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__fontdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static short stbte__fontdata[769]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "769", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 4,9,6,9,9,9,9,8,9,8,4,9,7,7,7,7,4,2,6,8,6,6,7,3,4,4,8,6,3,6,2,6,6,6,6,6,6,\n 6,6,6,6,6,2,3,5,4,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,6,7,6,6,6,6,7,7,6,6,\n 6,4,6,4,7,7,3,6,6,5,6,6,5,6,6,4,5,6,4,7,6,6,6,6,6,6,6,6,6,7,6,6,6,5,2,5,8,\n 0,0,0,0,2,253,130,456,156,8,72,184,64,2,125,66,64,160,64,146,511,146,146,\n 511,146,146,511,146,511,257,341,297,341,297,341,257,511,16,56,124,16,16,16,\n 124,56,16,96,144,270,261,262,136,80,48,224,192,160,80,40,22,14,15,3,448,496,\n 496,240,232,20,10,5,2,112,232,452,450,225,113,58,28,63,30,60,200,455,257,\n 257,0,0,0,257,257,455,120,204,132,132,159,14,4,4,14,159,132,132,204,120,8,\n 24,56,120,56,24,8,32,48,56,60,56,48,32,0,0,0,0,111,111,7,7,0,0,7,7,34,127,\n 127,34,34,127,127,34,36,46,107,107,58,18,99,51,24,12,102,99,48,122,79,93,\n 55,114,80,4,7,3,62,127,99,65,65,99,127,62,8,42,62,28,28,62,42,8,8,8,62,62,\n 8,8,128,224,96,8,8,8,8,8,8,96,96,96,48,24,12,6,3,62,127,89,77,127,62,64,66,\n 127,127,64,64,98,115,89,77,71,66,33,97,73,93,119,35,24,28,22,127,127,16,39,\n 103,69,69,125,57,62,127,73,73,121,48,1,1,113,121,15,7,54,127,73,73,127,54,\n 6,79,73,105,63,30,54,54,128,246,118,8,28,54,99,65,20,20,20,20,65,99,54,28,\n 8,2,3,105,109,7,2,30,63,33,45,47,46,124,126,19,19,126,124,127,127,73,73,127,\n 54,62,127,65,65,99,34,127,127,65,99,62,28,127,127,73,73,73,65,127,127,9,9,\n 9,1,62,127,65,73,121,121,127,127,8,8,127,127,65,65,127,127,65,65,32,96,64,\n 64,127,63,127,127,8,28,54,99,65,127,127,64,64,64,64,127,127,6,12,6,127,127,\n 127,127,6,12,24,127,127,62,127,65,65,65,127,62,127,127,9,9,15,6,62,127,65,\n 81,49,127,94,127,127,9,25,127,102,70,79,73,73,121,49,1,1,127,127,1,1,63,127,\n 64,64,127,63,15,31,48,96,48,31,15,127,127,48,24,48,127,127,99,119,28,28,119,\n 99,7,15,120,120,15,7,97,113,89,77,71,67,127,127,65,65,3,6,12,24,48,96,65,\n 65,127,127,8,12,6,3,6,12,8,64,64,64,64,64,64,64,3,7,4,32,116,84,84,124,120,\n 127,127,68,68,124,56,56,124,68,68,68,56,124,68,68,127,127,56,124,84,84,92,\n 24,8,124,126,10,10,56,380,324,324,508,252,127,127,4,4,124,120,72,122,122,\n 64,256,256,256,506,250,126,126,16,56,104,64,66,126,126,64,124,124,24,56,28,\n 124,120,124,124,4,4,124,120,56,124,68,68,124,56,508,508,68,68,124,56,56,124,\n 68,68,508,508,124,124,4,4,12,8,72,92,84,84,116,36,4,4,62,126,68,68,60,124,\n 64,64,124,124,28,60,96,96,60,28,28,124,112,56,112,124,28,68,108,56,56,108,\n 68,284,316,352,320,508,252,68,100,116,92,76,68,8,62,119,65,65,127,127,65,\n 65,119,62,8,16,24,12,12,24,24,12,4,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 746, - "column": 1, - "source_line": "static short stbte__fontdata[769] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "toolchar", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static int toolchar[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 26,24,25,20,23,22,18, 19,17, 29,28, }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 838, - "column": 1, - "source_line": "static int toolchar[] = { 26,24,25,20,23,22,18, 19,17, 29,28, };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__ui", - "type": { - "reference": "stbte__ui_t" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBTE__tool_brush, 0 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 919, - "column": 1, - "source_line": "static stbte__ui_t stbte__ui = { STBTE__tool_brush, 0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "default_category", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char *default_category", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "(char*) \"[unassigned]\"" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 978, - "column": 1, - "source_line": "static char *default_category = (char*) \"[unassigned]\";" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__region", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbte__region_t stbte__region[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbte__region_t" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2102, - "column": 1, - "source_line": "static stbte__region_t stbte__region[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__saved", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbte__saved" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3576, - "column": 1, - "source_line": "static float stbte__saved;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__cp_mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_mode" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__cp_aspect", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_aspect" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__save", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__save" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__cp_altered", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_altered" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__cp_state", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_state" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__cp_index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_index" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbte__color_copy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__color_copy" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 335, - "column": 1, - "source_line": "#define STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H" - } - }, - { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 339, - "column": 3, - "source_line": " #define _CRT_SECURE_NO_WARNINGS" - } - }, - { - "name": "STBTE_PROP_none", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 356, - "column": 1, - "source_line": "#define STBTE_PROP_none 0" - } - }, - { - "name": "STBTE_PROP_int", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 357, - "column": 1, - "source_line": "#define STBTE_PROP_int 1" - } - }, - { - "name": "STBTE_PROP_float", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 358, - "column": 1, - "source_line": "#define STBTE_PROP_float 2" - } - }, - { - "name": "STBTE_PROP_bool", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 359, - "column": 1, - "source_line": "#define STBTE_PROP_bool 3" - } - }, - { - "name": "STBTE_PROP_disabled", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 360, - "column": 1, - "source_line": "#define STBTE_PROP_disabled 4" - } - }, - { - "name": "STBTE_EMPTY", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 449, - "column": 1, - "source_line": "#define STBTE_EMPTY -1" - } - }, - { - "name": "STBTE_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 510, - "column": 1, - "source_line": "#define STBTE_ASSERT assert" - } - }, - { - "name": "STBTE__NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 515, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBTE__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 517, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "STBTE_MAX_TILEMAP_X", - "value": "200", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 521, - "column": 1, - "source_line": "#define STBTE_MAX_TILEMAP_X 200" - } - }, - { - "name": "STBTE_MAX_TILEMAP_Y", - "value": "200", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 525, - "column": 1, - "source_line": "#define STBTE_MAX_TILEMAP_Y 200" - } - }, - { - "name": "STBTE_MAX_LAYERS", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 529, - "column": 1, - "source_line": "#define STBTE_MAX_LAYERS 8" - } - }, - { - "name": "STBTE_MAX_CATEGORIES", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 533, - "column": 1, - "source_line": "#define STBTE_MAX_CATEGORIES 100" - } - }, - { - "name": "STBTE_MAX_COPY", - "value": "65536", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 537, - "column": 1, - "source_line": "#define STBTE_MAX_COPY 65536" - } - }, - { - "name": "STBTE_UNDO_BUFFER_BYTES", - "value": "(1 << 24)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 541, - "column": 1, - "source_line": "#define STBTE_UNDO_BUFFER_BYTES (1 << 24) // 16 MB" - } - }, - { - "name": "STBTE__NO_PROPS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 545, - "column": 1, - "source_line": "#define STBTE__NO_PROPS" - } - }, - { - "name": "STBTE_PROP_TYPE", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 546, - "column": 1, - "source_line": "#define STBTE_PROP_TYPE(n,td,tp) 0" - } - }, - { - "name": "STBTE_PROP_NAME", - "value": "\"\"", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 550, - "column": 1, - "source_line": "#define STBTE_PROP_NAME(n,td,tp) \"\"" - } - }, - { - "name": "STBTE_MAX_PROPERTIES", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 554, - "column": 1, - "source_line": "#define STBTE_MAX_PROPERTIES 10" - } - }, - { - "name": "STBTE_PROP_MIN", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 558, - "column": 1, - "source_line": "#define STBTE_PROP_MIN(n,td,tp) 0" - } - }, - { - "name": "STBTE_PROP_MAX", - "value": "100.0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 562, - "column": 1, - "source_line": "#define STBTE_PROP_MAX(n,td,tp) 100.0" - } - }, - { - "name": "STBTE_PROP_FLOAT_SCALE", - "value": "1", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 566, - "column": 1, - "source_line": "#define STBTE_PROP_FLOAT_SCALE(n,td,tp) 1 // default scale size" - } - }, - { - "name": "STBTE_FLOAT_CONTROL_GRANULARITY", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 570, - "column": 1, - "source_line": "#define STBTE_FLOAT_CONTROL_GRANULARITY 4" - } - }, - { - "name": "STBTE__UNDO_BUFFER_COUNT", - "value": "(STBTE_UNDO_BUFFER_BYTES>>1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 574, - "column": 1, - "source_line": "#define STBTE__UNDO_BUFFER_COUNT (STBTE_UNDO_BUFFER_BYTES>>1)" - } - }, - { - "name": "STBTE__NO_PROPS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 587, - "column": 1, - "source_line": "#define STBTE__NO_PROPS" - } - }, - { - "name": "STBTE_MAX_PROPERTIES", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 591, - "column": 1, - "source_line": "#undef STBTE_MAX_PROPERTIES" - } - }, - { - "name": "STBTE_MAX_PROPERTIES", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 592, - "column": 1, - "source_line": "#define STBTE_MAX_PROPERTIES 1 // so we can declare arrays" - } - }, - { - "name": "STBTE_COLOR_TILEMAP_BACKGROUND", - "value": "0x000000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 708, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_BACKGROUND 0x000000" - } - }, - { - "name": "STBTE_COLOR_TILEMAP_BORDER", - "value": "0x203060", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 709, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_BORDER 0x203060" - } - }, - { - "name": "STBTE_COLOR_TILEMAP_HIGHLIGHT", - "value": "0xffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 710, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_HIGHLIGHT 0xffffff" - } - }, - { - "name": "STBTE_COLOR_GRID", - "value": "0x404040", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 711, - "column": 1, - "source_line": "#define STBTE_COLOR_GRID 0x404040" - } - }, - { - "name": "STBTE_COLOR_SELECTION_OUTLINE1", - "value": "0xdfdfdf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 712, - "column": 1, - "source_line": "#define STBTE_COLOR_SELECTION_OUTLINE1 0xdfdfdf" - } - }, - { - "name": "STBTE_COLOR_SELECTION_OUTLINE2", - "value": "0x303030", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 713, - "column": 1, - "source_line": "#define STBTE_COLOR_SELECTION_OUTLINE2 0x303030" - } - }, - { - "name": "STBTE_COLOR_TILEPALETTE_OUTLINE", - "value": "0xffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 714, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEPALETTE_OUTLINE 0xffffff" - } - }, - { - "name": "STBTE_COLOR_TILEPALETTE_BACKGROUND", - "value": "0x000000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 715, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEPALETTE_BACKGROUND 0x000000" - } - }, - { - "name": "STBTE_LINK_COLOR", - "value": "0x5030ff", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 718, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR(src,sp,dest,dp) 0x5030ff" - } - }, - { - "name": "STBTE_LINK_COLOR_DRAWING", - "value": "0xff40ff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 722, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR_DRAWING 0xff40ff" - } - }, - { - "name": "STBTE_LINK_COLOR_DISALLOWED", - "value": "0x602060", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 726, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR_DISALLOWED 0x602060" - } - }, - { - "name": "STBTE__INDEX_FOR_STATE", - "value": "stbte__state_to_index[disable][select][down][over]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 741, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_STATE(disable,select,down,over) stbte__state_to_index[disable][select][down][over]" - } - }, - { - "name": "STBTE__INDEX_FOR_ID", - "value": "STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 742, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_ID(id,disable,select) STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))" - } - }, - { - "name": "STBTE__FONT_HEIGHT", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 744, - "column": 1, - "source_line": "#define STBTE__FONT_HEIGHT 9" - } - }, - { - "name": "MAX_LAYERMASK", - "value": "(1 << (8*sizeof(unsigned int)))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 790, - "column": 1, - "source_line": "#define MAX_LAYERMASK (1 << (8*sizeof(unsigned int)))" - } - }, - { - "name": "STBTE__NO_TILE", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 794, - "column": 1, - "source_line": "#define STBTE__NO_TILE -1" - } - }, - { - "name": "STBTE__MAX_DELAYRECT", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 875, - "column": 1, - "source_line": "#define STBTE__MAX_DELAYRECT 256" - } - }, - { - "name": "STBTE__INACTIVE", - "value": "(stbte__ui.active_id == 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 921, - "column": 1, - "source_line": "#define STBTE__INACTIVE() (stbte__ui.active_id == 0)" - } - }, - { - "name": "STBTE__IS_ACTIVE", - "value": "(stbte__ui.active_id == (id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 922, - "column": 1, - "source_line": "#define STBTE__IS_ACTIVE(id) (stbte__ui.active_id == (id))" - } - }, - { - "name": "STBTE__IS_HOT", - "value": "(stbte__ui.hot_id == (id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 923, - "column": 1, - "source_line": "#define STBTE__IS_HOT(id) (stbte__ui.hot_id == (id))" - } - }, - { - "name": "STBTE__BUTTON_HEIGHT", - "value": "(STBTE__FONT_HEIGHT + 2 * STBTE__BUTTON_INTERNAL_SPACING)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 925, - "column": 1, - "source_line": "#define STBTE__BUTTON_HEIGHT (STBTE__FONT_HEIGHT + 2 * STBTE__BUTTON_INTERNAL_SPACING)" - } - }, - { - "name": "STBTE__BUTTON_INTERNAL_SPACING", - "value": "(2 + (STBTE__FONT_HEIGHT>>4))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 926, - "column": 1, - "source_line": "#define STBTE__BUTTON_INTERNAL_SPACING (2 + (STBTE__FONT_HEIGHT>>4))" - } - }, - { - "name": "stbte__wrap", - "value": "((pos) & (STBTE__UNDO_BUFFER_COUNT-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1343, - "column": 1, - "source_line": "#define stbte__wrap(pos) ((pos) & (STBTE__UNDO_BUFFER_COUNT-1))" - } - }, - { - "name": "STBTE__undo_record", - "value": "-2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1345, - "column": 1, - "source_line": "#define STBTE__undo_record -2" - } - }, - { - "name": "STBTE__redo_record", - "value": "-3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1346, - "column": 1, - "source_line": "#define STBTE__redo_record -3" - } - }, - { - "name": "STBTE__undo_junk", - "value": "-4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1347, - "column": 1, - "source_line": "#define STBTE__undo_junk -4 // this is written underneath the undo pointer, never used" - } - }, - { - "name": "stbte__sprintf", - "value": "sprintf_s", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1975, - "column": 4, - "source_line": " #define stbte__sprintf sprintf_s" - } - }, - { - "name": "stbte__sizeof", - "value": ", sizeof(s)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1976, - "column": 4, - "source_line": " #define stbte__sizeof(s) , sizeof(s)" - } - }, - { - "name": "stbte__sprintf", - "value": "sprintf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1978, - "column": 4, - "source_line": " #define stbte__sprintf sprintf" - } - }, - { - "name": "stbte__sizeof", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1979, - "column": 4, - "source_line": " #define stbte__sizeof(s)" - } - }, - { - "name": "STBTE__TOOLBAR_ICON_SIZE", - "value": "(9+2*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2104, - "column": 1, - "source_line": "#define STBTE__TOOLBAR_ICON_SIZE (9+2*2)" - } - }, - { - "name": "STBTE__TOOLBAR_PASTE_SIZE", - "value": "(34+2*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2105, - "column": 1, - "source_line": "#define STBTE__TOOLBAR_PASTE_SIZE (34+2*2)" - } - }, - { - "name": "STBTE__ID", - "value": "((n) + ((p)<<7))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2271, - "column": 1, - "source_line": "#define STBTE__ID(n,p) ((n) + ((p)<<7))" - } - }, - { - "name": "STBTE__ID2", - "value": "STBTE__ID(n, ((p)<<12)+(q) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2272, - "column": 1, - "source_line": "#define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )" - } - }, - { - "name": "STBTE__IDMAP", - "value": "STBTE__ID2(STBTE__map, x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2273, - "column": 1, - "source_line": "#define STBTE__IDMAP(x,y) STBTE__ID2(STBTE__map, x,y)" - } - }, - { - "name": "STBTE__BG", - "value": "((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2289, - "column": 1, - "source_line": "#define STBTE__BG(tm,layer) ((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)" - } - }, - { - "name": "STBTE__IS_MAP_ACTIVE", - "value": "((stbte__ui.active_id & 127) == STBTE__map)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2638, - "column": 1, - "source_line": "#define STBTE__IS_MAP_ACTIVE() ((stbte__ui.active_id & 127) == STBTE__map)" - } - }, - { - "name": "STBTE__IS_MAP_HOT", - "value": "((stbte__ui.hot_id & 127) == STBTE__map)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2639, - "column": 1, - "source_line": "#define STBTE__IS_MAP_HOT() ((stbte__ui.hot_id & 127) == STBTE__map)" - } - }, - { - "name": "STBTE__TEXTCOLOR", - "value": "stbte__color_table[n][STBTE__text][STBTE__idle]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3374, - "column": 1, - "source_line": "#define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle]" - } - } - ], - "includes": [ - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 341, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 342, - "column": 3, - "source_line": " #include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 511, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 334, - "column": 1, - "source_line": "#ifndef STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H" - } - }, - { - "directive": "ifdef", - "argument": "_WIN32", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 337, - "column": 1, - "source_line": "#ifdef _WIN32" - } - }, - { - "directive": "ifndef", - "argument": "_CRT_SECURE_NO_WARNINGS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 338, - "column": 3, - "source_line": " #ifndef _CRT_SECURE_NO_WARNINGS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 340, - "column": 3, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 343, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 505, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TILEMAP_EDITOR_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 507, - "column": 1, - "source_line": "#ifdef STB_TILEMAP_EDITOR_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_ASSERT", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 509, - "column": 1, - "source_line": "#ifndef STBTE_ASSERT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 512, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 514, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 516, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 518, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_TILEMAP_X", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 520, - "column": 1, - "source_line": "#ifndef STBTE_MAX_TILEMAP_X" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 522, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_TILEMAP_Y", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 524, - "column": 1, - "source_line": "#ifndef STBTE_MAX_TILEMAP_Y" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 526, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_LAYERS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 528, - "column": 1, - "source_line": "#ifndef STBTE_MAX_LAYERS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 530, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_CATEGORIES", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 532, - "column": 1, - "source_line": "#ifndef STBTE_MAX_CATEGORIES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 534, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_COPY", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 536, - "column": 1, - "source_line": "#ifndef STBTE_MAX_COPY" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 538, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_UNDO_BUFFER_BYTES", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 540, - "column": 1, - "source_line": "#ifndef STBTE_UNDO_BUFFER_BYTES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 542, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_PROP_TYPE", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 544, - "column": 1, - "source_line": "#ifndef STBTE_PROP_TYPE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 547, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_PROP_NAME", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 549, - "column": 1, - "source_line": "#ifndef STBTE_PROP_NAME" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 551, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_MAX_PROPERTIES", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 553, - "column": 1, - "source_line": "#ifndef STBTE_MAX_PROPERTIES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 555, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_PROP_MIN", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 557, - "column": 1, - "source_line": "#ifndef STBTE_PROP_MIN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 559, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_PROP_MAX", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 561, - "column": 1, - "source_line": "#ifndef STBTE_PROP_MAX" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 563, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_PROP_FLOAT_SCALE", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 565, - "column": 1, - "source_line": "#ifndef STBTE_PROP_FLOAT_SCALE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 567, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_FLOAT_CONTROL_GRANULARITY", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 569, - "column": 1, - "source_line": "#ifndef STBTE_FLOAT_CONTROL_GRANULARITY" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 571, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTE_MAX_TILEMAP_X > 4096 || STBTE_MAX_TILEMAP_Y > 4096", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 576, - "column": 1, - "source_line": "#if STBTE_MAX_TILEMAP_X > 4096 || STBTE_MAX_TILEMAP_Y > 4096" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 578, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTE_MAX_LAYERS > 32", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 579, - "column": 1, - "source_line": "#if STBTE_MAX_LAYERS > 32" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 581, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTE_UNDO_BUFFER_COUNT & (STBTE_UNDO_BUFFER_COUNT-1)", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 582, - "column": 1, - "source_line": "#if STBTE_UNDO_BUFFER_COUNT & (STBTE_UNDO_BUFFER_COUNT-1)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 584, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTE_MAX_PROPERTIES == 0", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 586, - "column": 1, - "source_line": "#if STBTE_MAX_PROPERTIES == 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 588, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__NO_PROPS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 590, - "column": 1, - "source_line": "#ifdef STBTE__NO_PROPS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 593, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__COLORPICKER", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 640, - "column": 1, - "source_line": "#ifdef STBTE__COLORPICKER" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 648, - "column": 1, - "source_line": "#endif // STBTE__COLORPICKER" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_LINK_COLOR", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 717, - "column": 1, - "source_line": "#ifndef STBTE_LINK_COLOR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 719, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_LINK_COLOR_DRAWING", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 721, - "column": 1, - "source_line": "#ifndef STBTE_LINK_COLOR_DRAWING" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 723, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_LINK_COLOR_DISALLOWED", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 725, - "column": 1, - "source_line": "#ifndef STBTE_LINK_COLOR_DISALLOWED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 727, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 910, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 912, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 946, - "column": 5, - "source_line": " #ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 949, - "column": 5, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1161, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1169, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1179, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1181, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1192, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1194, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1196, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1222, - "column": 7, - "source_line": " #ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1226, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1506, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1510, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1575, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1579, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1623, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1650, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1658, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1672, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1974, - "column": 1, - "source_line": "#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1977, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1980, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__NO_PROPS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2121, - "column": 1, - "source_line": "#ifdef STBTE__NO_PROPS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2123, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2125, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__COLORPICKER", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2139, - "column": 1, - "source_line": "#ifdef STBTE__COLORPICKER" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2141, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2717, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2721, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2743, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2753, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2784, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2805, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2870, - "column": 4, - "source_line": " #ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2911, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3056, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3073, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3165, - "column": 1, - "source_line": "#ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3198, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3329, - "column": 7, - "source_line": " #ifndef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3332, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_NO_PROPS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3453, - "column": 1, - "source_line": "#ifndef STBTE_NO_PROPS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3455, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTE_NO_PROPS", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3477, - "column": 1, - "source_line": "#ifndef STBTE_NO_PROPS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3484, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__COLORPICKER", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3673, - "column": 1, - "source_line": "#ifdef STBTE__COLORPICKER" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3776, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_ALLOW_LINK", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3867, - "column": 7, - "source_line": " #ifdef STBTE_ALLOW_LINK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3883, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE__COLORPICKER", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3911, - "column": 1, - "source_line": "#ifdef STBTE__COLORPICKER" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3913, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBTE_SHOW_CURSOR", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3982, - "column": 1, - "source_line": "#ifdef STBTE_SHOW_CURSOR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3985, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_SDL_H", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4116, - "column": 1, - "source_line": "#ifdef _SDL_H" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4135, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4142, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4145, - "column": 1, - "source_line": "#endif // STB_TILEMAP_EDITOR_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 515, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 517, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_TYPE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 546, - "column": 1, - "source_line": "#define STBTE_PROP_TYPE(n,td,tp) 0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_TYPE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 550, - "column": 1, - "source_line": "#define STBTE_PROP_NAME(n,td,tp) \"\"" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_MIN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 558, - "column": 1, - "source_line": "#define STBTE_PROP_MIN(n,td,tp) 0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_MIN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_MAX' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 562, - "column": 1, - "source_line": "#define STBTE_PROP_MAX(n,td,tp) 100.0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_MAX" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_FLOAT_SCALE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 566, - "column": 1, - "source_line": "#define STBTE_PROP_FLOAT_SCALE(n,td,tp) 1 // default scale size" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_FLOAT_SCALE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_LINK_COLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 718, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR(src,sp,dest,dp) 0x5030ff" - }, - "unit_kind": "macro", - "unit_name": "STBTE_LINK_COLOR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INDEX_FOR_STATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 741, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_STATE(disable,select,down,over) stbte__state_to_index[disable][select][down][over]" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INDEX_FOR_STATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INDEX_FOR_ID' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 742, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_ID(id,disable,select) STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INDEX_FOR_ID" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 921, - "column": 1, - "source_line": "#define STBTE__INACTIVE() (stbte__ui.active_id == 0)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_ACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 922, - "column": 1, - "source_line": "#define STBTE__IS_ACTIVE(id) (stbte__ui.active_id == (id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_ACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_HOT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 923, - "column": 1, - "source_line": "#define STBTE__IS_HOT(id) (stbte__ui.hot_id == (id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_HOT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__wrap' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1343, - "column": 1, - "source_line": "#define stbte__wrap(pos) ((pos) & (STBTE__UNDO_BUFFER_COUNT-1))" - }, - "unit_kind": "macro", - "unit_name": "stbte__wrap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__sizeof' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1976, - "column": 4, - "source_line": " #define stbte__sizeof(s) , sizeof(s)" - }, - "unit_kind": "macro", - "unit_name": "stbte__sizeof" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__sizeof' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1979, - "column": 4, - "source_line": " #define stbte__sizeof(s)" - }, - "unit_kind": "macro", - "unit_name": "stbte__sizeof" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__ID' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2271, - "column": 1, - "source_line": "#define STBTE__ID(n,p) ((n) + ((p)<<7))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__ID" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__ID2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2272, - "column": 1, - "source_line": "#define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )" - }, - "unit_kind": "macro", - "unit_name": "STBTE__ID2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IDMAP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2273, - "column": 1, - "source_line": "#define STBTE__IDMAP(x,y) STBTE__ID2(STBTE__map, x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IDMAP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__BG' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2289, - "column": 1, - "source_line": "#define STBTE__BG(tm,layer) ((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__BG" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_MAP_ACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2638, - "column": 1, - "source_line": "#define STBTE__IS_MAP_ACTIVE() ((stbte__ui.active_id & 127) == STBTE__map)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_MAP_ACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_MAP_HOT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2639, - "column": 1, - "source_line": "#define STBTE__IS_MAP_HOT() ((stbte__ui.hot_id & 127) == STBTE__map)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_MAP_HOT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__TEXTCOLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3374, - "column": 1, - "source_line": "#define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle]" - }, - "unit_kind": "macro", - "unit_name": "STBTE__TEXTCOLOR" - } - ] - } - }, - "functions": { - "stbte_create_map": { - "name": "stbte_create_map", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "parameters": [ - { - "name": "map_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "map_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "map_layers", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_layers" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_layers" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "spacing_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "spacing_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max_tiles", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_tiles" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_tiles" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1007, - "column": 1, - "source_line": "stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1007, - "column": 1, - "source_line": "stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1065, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 367, - "column": 1, - "source_line": "extern stbte_tilemap *stbte_create_map(int map_x, int map_y, int map_layers, int spacing_x, int spacing_y, int max_tiles);" - } - ] - }, - "stbte_define_tile": { - "name": "stbte_define_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short id" - }, - "declared_type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layermask", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int layermask" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int layermask" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "category_c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * category_c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char * category_c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1102, - "column": 1, - "source_line": "void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category_c)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1102, - "column": 1, - "source_line": "void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category_c)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1119, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 378, - "column": 1, - "source_line": "extern void stbte_define_tile(stbte_tilemap *tm, unsigned short id, unsigned int layermask, const char * category);" - } - ] - }, - "stbte_set_display": { - "name": "stbte_set_display", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1094, - "column": 1, - "source_line": "void stbte_set_display(int x0, int y0, int x1, int y1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1094, - "column": 1, - "source_line": "void stbte_set_display(int x0, int y0, int x1, int y1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1100, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 387, - "column": 1, - "source_line": "extern void stbte_set_display(int x0, int y0, int x1, int y1);" - } - ] - }, - "stbte_draw": { - "name": "stbte_draw", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4053, - "column": 1, - "source_line": "void stbte_draw(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4053, - "column": 1, - "source_line": "void stbte_draw(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4057, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 396, - "column": 1, - "source_line": "extern void stbte_draw(stbte_tilemap *tm);" - } - ] - }, - "stbte_tick": { - "name": "stbte_tick", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dt", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dt" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dt" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4106, - "column": 1, - "source_line": "void stbte_tick(stbte_tilemap *tm, float dt)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4106, - "column": 1, - "source_line": "void stbte_tick(stbte_tilemap *tm, float dt)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4112, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 398, - "column": 1, - "source_line": "extern void stbte_tick(stbte_tilemap *tm, float time_in_seconds_since_last_frame);" - } - ] - }, - "stbte_mouse_sdl": { - "name": "stbte_mouse_sdl", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sdl_event", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *sdl_event", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *sdl_event", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xs", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float xs" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float xs" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ys", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ys" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ys" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xo", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xo" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xo" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "yo", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yo" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yo" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4114, - "column": 1, - "source_line": "void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xs, float ys, int xo, int yo)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4114, - "column": 1, - "source_line": "void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xs, float ys, int xo, int yo)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4143, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 407, - "column": 1, - "source_line": "extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);" - } - ] - }, - "stbte_mouse_move": { - "name": "stbte_mouse_move", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shifted", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shifted" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shifted" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scrollkey", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrollkey" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrollkey" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4059, - "column": 1, - "source_line": "void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4059, - "column": 1, - "source_line": "void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4065, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 410, - "column": 1, - "source_line": "extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);" - } - ] - }, - "stbte_mouse_button": { - "name": "stbte_mouse_button", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "down", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int down" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int down" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shifted", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shifted" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int shifted" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scrollkey", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrollkey" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int scrollkey" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4067, - "column": 1, - "source_line": "void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4067, - "column": 1, - "source_line": "void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4076, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 411, - "column": 1, - "source_line": "extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);" - } - ] - }, - "stbte_mouse_wheel": { - "name": "stbte_mouse_wheel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vscroll", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vscroll" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vscroll" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4078, - "column": 1, - "source_line": "void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4078, - "column": 1, - "source_line": "void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4081, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 412, - "column": 1, - "source_line": "extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);" - } - ] - }, - "stbte_action": { - "name": "stbte_action", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "act", - "type": { - "reference": "enum stbte_action" - }, - "declared_type": { - "reference": "enum stbte_action" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4083, - "column": 1, - "source_line": "void stbte_action(stbte_tilemap *tm, enum stbte_action act)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4083, - "column": 1, - "source_line": "void stbte_action(stbte_tilemap *tm, enum stbte_action act)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4104, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 438, - "column": 1, - "source_line": "extern void stbte_action(stbte_tilemap *tm, enum stbte_action act);" - } - ] - }, - "stbte_get_dimensions": { - "name": "stbte_get_dimensions", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max_x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *max_x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *max_x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "max_y", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *max_y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *max_y", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1135, - "column": 1, - "source_line": "void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1135, - "column": 1, - "source_line": "void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1139, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 451, - "column": 1, - "source_line": "extern void stbte_get_dimensions(stbte_tilemap *tm, int *max_x, int *max_y);" - } - ] - }, - "stbte_get_tile": { - "name": "stbte_get_tile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1141, - "column": 1, - "source_line": "short* stbte_get_tile(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1141, - "column": 1, - "source_line": "short* stbte_get_tile(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1147, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 454, - "column": 1, - "source_line": "extern short* stbte_get_tile(stbte_tilemap *tm, int x, int y);" - } - ] - }, - "stbte_get_properties": { - "name": "stbte_get_properties", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1149, - "column": 1, - "source_line": "float *stbte_get_properties(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1149, - "column": 1, - "source_line": "float *stbte_get_properties(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1155, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 458, - "column": 1, - "source_line": "extern float *stbte_get_properties(stbte_tilemap *tm, int x, int y);" - } - ] - }, - "stbte_get_link": { - "name": "stbte_get_link", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "destx", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *destx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *destx", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "desty", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *desty", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *desty", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1157, - "column": 1, - "source_line": "void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1157, - "column": 1, - "source_line": "void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1172, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 463, - "column": 1, - "source_line": "extern void stbte_get_link(stbte_tilemap *tm, int x, int y, int *destx, int *desty);" - } - ] - }, - "stbte_set_dimensions": { - "name": "stbte_set_dimensions", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "map_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "map_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int map_y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1203, - "column": 1, - "source_line": "void stbte_set_dimensions(stbte_tilemap *tm, int map_x, int map_y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1203, - "column": 1, - "source_line": "void stbte_set_dimensions(stbte_tilemap *tm, int map_x, int map_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1211, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 466, - "column": 1, - "source_line": "extern void stbte_set_dimensions(stbte_tilemap *tm, int max_x, int max_y);" - } - ] - }, - "stbte_clear_map": { - "name": "stbte_clear_map", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1213, - "column": 1, - "source_line": "void stbte_clear_map(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1213, - "column": 1, - "source_line": "void stbte_clear_map(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1228, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 470, - "column": 1, - "source_line": "extern void stbte_clear_map(stbte_tilemap *tm);" - } - ] - }, - "stbte_set_tile": { - "name": "stbte_set_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tile", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "signed short tile" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "signed short tile" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1230, - "column": 1, - "source_line": "void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1230, - "column": 1, - "source_line": "void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1241, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 474, - "column": 1, - "source_line": "extern void stbte_set_tile(stbte_tilemap *tm, int x, int y, int layer, signed short tile);" - } - ] - }, - "stbte_set_property": { - "name": "stbte_set_property", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "val", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float val" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float val" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1174, - "column": 1, - "source_line": "void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1174, - "column": 1, - "source_line": "void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1177, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 477, - "column": 1, - "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" - } - ] - }, - "stbte_set_link": { - "name": "stbte_set_link", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "destx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "desty", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1190, - "column": 1, - "source_line": "void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1190, - "column": 1, - "source_line": "void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1197, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 480, - "column": 1, - "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" - } - ] - }, - "stbte_set_background_tile": { - "name": "stbte_set_background_tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short id" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1067, - "column": 1, - "source_line": "void stbte_set_background_tile(stbte_tilemap *tm, short id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1067, - "column": 1, - "source_line": "void stbte_set_background_tile(stbte_tilemap *tm, short id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1078, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 489, - "column": 1, - "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" - } - ] - }, - "stbte_set_sidewidths": { - "name": "stbte_set_sidewidths", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "left", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1088, - "column": 1, - "source_line": "void stbte_set_sidewidths(int left, int right)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1088, - "column": 1, - "source_line": "void stbte_set_sidewidths(int left, int right)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1092, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 493, - "column": 1, - "source_line": "extern void stbte_set_sidewidths(int left, int right);" - } - ] - }, - "stbte_set_spacing": { - "name": "stbte_set_spacing", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "spacing_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "spacing_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int spacing_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "palette_spacing_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "palette_spacing_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int palette_spacing_y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1080, - "column": 1, - "source_line": "void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1080, - "column": 1, - "source_line": "void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1086, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 497, - "column": 1, - "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" - } - ] - }, - "stbte_set_layername": { - "name": "stbte_set_layername", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layername", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *layername", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *layername", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1123, - "column": 1, - "source_line": "void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1123, - "column": 1, - "source_line": "void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1133, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 501, - "column": 1, - "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" - } - ] - }, - "stbte__init_gui": { - "name": "stbte__init_gui", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 980, - "column": 1, - "source_line": "static void stbte__init_gui(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 980, - "column": 1, - "source_line": "static void stbte__init_gui(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1005, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__text_width": { - "name": "stbte__text_width", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1735, - "column": 1, - "source_line": "static int stbte__text_width(const char *str)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1735, - "column": 1, - "source_line": "static int stbte__text_width(const char *str)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1744, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 1121, - "column": 1, - "source_line": "static int stbte__text_width(const char *str);" - } - ] - }, - "stbte__set_link": { - "name": "stbte__set_link", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int src_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dest_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "undo_mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_mode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int undo_mode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1624, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1624, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1649, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [ - { - "filename": "stb/stb_tilemap_editor.h", - "line": 1180, - "column": 1, - "source_line": "static void stbte__set_link(stbte_tilemap *tm, int src_x, int src_y, int dest_x, int dest_y, int undo_mode);" - } - ] - }, - "stbte__choose_category": { - "name": "stbte__choose_category", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "category", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int category" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int category" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1243, - "column": 1, - "source_line": "static void stbte__choose_category(stbte_tilemap *tm, int category)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1243, - "column": 1, - "source_line": "static void stbte__choose_category(stbte_tilemap *tm, int category)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1252, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__strequal": { - "name": "stbte__strequal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "q", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *q", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1254, - "column": 1, - "source_line": "static int stbte__strequal(char *p, char *q)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1254, - "column": 1, - "source_line": "static int stbte__strequal(char *p, char *q)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1259, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__compute_tileinfo": { - "name": "stbte__compute_tileinfo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1261, - "column": 1, - "source_line": "static void stbte__compute_tileinfo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1261, - "column": 1, - "source_line": "static void stbte__compute_tileinfo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1288, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__prepare_tileinfo": { - "name": "stbte__prepare_tileinfo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1290, - "column": 1, - "source_line": "static void stbte__prepare_tileinfo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1290, - "column": 1, - "source_line": "static void stbte__prepare_tileinfo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1294, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__write_undo": { - "name": "stbte__write_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1349, - "column": 1, - "source_line": "static void stbte__write_undo(stbte_tilemap *tm, short value)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1349, - "column": 1, - "source_line": "static void stbte__write_undo(stbte_tilemap *tm, short value)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1357, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__write_redo": { - "name": "stbte__write_redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short value" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1359, - "column": 1, - "source_line": "static void stbte__write_redo(stbte_tilemap *tm, short value)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1359, - "column": 1, - "source_line": "static void stbte__write_redo(stbte_tilemap *tm, short value)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1367, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__begin_undo": { - "name": "stbte__begin_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1369, - "column": 1, - "source_line": "static void stbte__begin_undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1369, - "column": 1, - "source_line": "static void stbte__begin_undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1375, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__end_undo": { - "name": "stbte__end_undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1377, - "column": 1, - "source_line": "static void stbte__end_undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1377, - "column": 1, - "source_line": "static void stbte__end_undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1393, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo_record": { - "name": "stbte__undo_record", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1395, - "column": 1, - "source_line": "static void stbte__undo_record(stbte_tilemap *tm, int x, int y, int i, int v)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1395, - "column": 1, - "source_line": "static void stbte__undo_record(stbte_tilemap *tm, int x, int y, int i, int v)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1404, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__redo_record": { - "name": "stbte__redo_record", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1406, - "column": 1, - "source_line": "static void stbte__redo_record(stbte_tilemap *tm, int x, int y, int i, int v)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1406, - "column": 1, - "source_line": "static void stbte__redo_record(stbte_tilemap *tm, int x, int y, int i, int v)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1412, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__extract_float": { - "name": "stbte__extract_float", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1414, - "column": 1, - "source_line": "static float stbte__extract_float(short s0, short s1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1414, - "column": 1, - "source_line": "static float stbte__extract_float(short s0, short s1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1420, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__extract_short": { - "name": "stbte__extract_short", - "result_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1422, - "column": 1, - "source_line": "static short stbte__extract_short(float f, int slot)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1422, - "column": 1, - "source_line": "static short stbte__extract_short(float f, int slot)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1427, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo_record_prop": { - "name": "stbte__undo_record_prop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1429, - "column": 1, - "source_line": "static void stbte__undo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1429, - "column": 1, - "source_line": "static void stbte__undo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1439, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo_record_prop_float": { - "name": "stbte__undo_record_prop_float", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float f" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1441, - "column": 1, - "source_line": "static void stbte__undo_record_prop_float(stbte_tilemap *tm, int x, int y, int i, float f)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1441, - "column": 1, - "source_line": "static void stbte__undo_record_prop_float(stbte_tilemap *tm, int x, int y, int i, float f)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1444, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__redo_record_prop": { - "name": "stbte__redo_record_prop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s0", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s1", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short s1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1446, - "column": 1, - "source_line": "static void stbte__redo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1446, - "column": 1, - "source_line": "static void stbte__redo_record_prop(stbte_tilemap *tm, int x, int y, int i, short s0, short s1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1453, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo_find_end": { - "name": "stbte__undo_find_end", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1456, - "column": 1, - "source_line": "static int stbte__undo_find_end(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1456, - "column": 1, - "source_line": "static int stbte__undo_find_end(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1472, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo": { - "name": "stbte__undo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1474, - "column": 1, - "source_line": "static void stbte__undo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1474, - "column": 1, - "source_line": "static void stbte__undo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1525, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__redo_find_end": { - "name": "stbte__redo_find_end", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1527, - "column": 1, - "source_line": "static int stbte__redo_find_end(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1527, - "column": 1, - "source_line": "static int stbte__redo_find_end(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1543, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__redo": { - "name": "stbte__redo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1545, - "column": 1, - "source_line": "static void stbte__redo(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1545, - "column": 1, - "source_line": "static void stbte__redo(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1598, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__recompute_undo_available": { - "name": "stbte__recompute_undo_available", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1601, - "column": 1, - "source_line": "static void stbte__recompute_undo_available(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1601, - "column": 1, - "source_line": "static void stbte__recompute_undo_available(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1605, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__undo_available": { - "name": "stbte__undo_available", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1607, - "column": 1, - "source_line": "static int stbte__undo_available(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1607, - "column": 1, - "source_line": "static int stbte__undo_available(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1612, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__redo_available": { - "name": "stbte__redo_available", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1614, - "column": 1, - "source_line": "static int stbte__redo_available(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1614, - "column": 1, - "source_line": "static int stbte__redo_available(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1619, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_rect": { - "name": "stbte__draw_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1653, - "column": 1, - "source_line": "static void stbte__draw_rect(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1653, - "column": 1, - "source_line": "static void stbte__draw_rect(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1656, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_line": { - "name": "stbte__draw_line", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1659, - "column": 1, - "source_line": "static void stbte__draw_line(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1659, - "column": 1, - "source_line": "static void stbte__draw_line(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1665, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_link": { - "name": "stbte__draw_link", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1667, - "column": 1, - "source_line": "static void stbte__draw_link(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1667, - "column": 1, - "source_line": "static void stbte__draw_link(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1671, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_frame": { - "name": "stbte__draw_frame", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1674, - "column": 1, - "source_line": "static void stbte__draw_frame(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1674, - "column": 1, - "source_line": "static void stbte__draw_frame(int x0, int y0, int x1, int y1, unsigned int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1680, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__get_char_width": { - "name": "stbte__get_char_width", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1682, - "column": 1, - "source_line": "static int stbte__get_char_width(int ch)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1682, - "column": 1, - "source_line": "static int stbte__get_char_width(int ch)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1685, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__get_char_bitmap": { - "name": "stbte__get_char_bitmap", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "parameters": [ - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1687, - "column": 1, - "source_line": "static short *stbte__get_char_bitmap(int ch)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1687, - "column": 1, - "source_line": "static short *stbte__get_char_bitmap(int ch)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1690, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_bitmask_as_columns": { - "name": "stbte__draw_bitmask_as_columns", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitmask", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short bitmask" - }, - "declared_type": { - "model": "CShort", - "qualifiers": [], - "source_text": "short bitmask" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1692, - "column": 1, - "source_line": "static void stbte__draw_bitmask_as_columns(int x, int y, short bitmask, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1692, - "column": 1, - "source_line": "static void stbte__draw_bitmask_as_columns(int x, int y, short bitmask, int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1706, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_bitmap": { - "name": "stbte__draw_bitmap", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bitmap", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *bitmap", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short *bitmap", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1708, - "column": 1, - "source_line": "static void stbte__draw_bitmap(int x, int y, int w, short *bitmap, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1708, - "column": 1, - "source_line": "static void stbte__draw_bitmap(int x, int y, int w, short *bitmap, int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1713, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_text_core": { - "name": "stbte__draw_text_core", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "digitspace", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digitspace" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digitspace" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1715, - "column": 1, - "source_line": "static void stbte__draw_text_core(int x, int y, const char *str, int w, int color, int digitspace)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1715, - "column": 1, - "source_line": "static void stbte__draw_text_core(int x, int y, const char *str, int w, int color, int digitspace)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1728, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_text": { - "name": "stbte__draw_text", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "str", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *str", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1730, - "column": 1, - "source_line": "static void stbte__draw_text(int x, int y, const char *str, int w, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1730, - "column": 1, - "source_line": "static void stbte__draw_text(int x, int y, const char *str, int w, int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1733, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_frame_delayed": { - "name": "stbte__draw_frame_delayed", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "color", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int color" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1746, - "column": 1, - "source_line": "static void stbte__draw_frame_delayed(int x0, int y0, int x1, int y1, int color)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1746, - "column": 1, - "source_line": "static void stbte__draw_frame_delayed(int x0, int y0, int x1, int y1, int color)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1752, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__flush_delay": { - "name": "stbte__flush_delay", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1754, - "column": 1, - "source_line": "static void stbte__flush_delay(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1754, - "column": 1, - "source_line": "static void stbte__flush_delay(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1762, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__activate": { - "name": "stbte__activate", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1764, - "column": 1, - "source_line": "static void stbte__activate(int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1764, - "column": 1, - "source_line": "static void stbte__activate(int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1770, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__hittest": { - "name": "stbte__hittest", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1772, - "column": 1, - "source_line": "static int stbte__hittest(int x0, int y0, int x1, int y1, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1772, - "column": 1, - "source_line": "static int stbte__hittest(int x0, int y0, int x1, int y1, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1781, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__button_core": { - "name": "stbte__button_core", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1783, - "column": 1, - "source_line": "static int stbte__button_core(int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1783, - "column": 1, - "source_line": "static int stbte__button_core(int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1808, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_box": { - "name": "stbte__draw_box", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colorindex", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1810, - "column": 1, - "source_line": "static void stbte__draw_box(int x0, int y0, int x1, int y1, int colormode, int colorindex)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1810, - "column": 1, - "source_line": "static void stbte__draw_box(int x0, int y0, int x1, int y1, int colormode, int colorindex)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1814, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__draw_textbox": { - "name": "stbte__draw_textbox", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "text", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char *text", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "xoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int xoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "yoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int yoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colorindex", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colorindex" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1816, - "column": 1, - "source_line": "static void stbte__draw_textbox(int x0, int y0, int x1, int y1, char *text, int xoff, int yoff, int colormode, int colorindex)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1816, - "column": 1, - "source_line": "static void stbte__draw_textbox(int x0, int y0, int x1, int y1, char *text, int xoff, int yoff, int colormode, int colorindex)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1820, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__button": { - "name": "stbte__button", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "textoff", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int textoff" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int textoff" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1822, - "column": 1, - "source_line": "static int stbte__button(int colormode, const char *label, int x, int y, int textoff, int width, int id, int toggled, int disabled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1822, - "column": 1, - "source_line": "static int stbte__button(int colormode, const char *label, int x, int y, int textoff, int width, int id, int toggled, int disabled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1834, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__button_icon": { - "name": "stbte__button_icon", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char ch" - }, - "declared_type": { - "model": "CChar", - "qualifiers": [], - "source_text": "char ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1836, - "column": 1, - "source_line": "static int stbte__button_icon(int colormode, char ch, int x, int y, int width, int id, int toggled, int disabled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1836, - "column": 1, - "source_line": "static int stbte__button_icon(int colormode, char ch, int x, int y, int width, int id, int toggled, int disabled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1851, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__minibutton": { - "name": "stbte__minibutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1853, - "column": 1, - "source_line": "static int stbte__minibutton(int colormode, int x, int y, int ch, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1853, - "column": 1, - "source_line": "static int stbte__minibutton(int colormode, int x, int y, int ch, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1862, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__layerbutton": { - "name": "stbte__layerbutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "disabled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int disabled" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1864, - "column": 1, - "source_line": "static int stbte__layerbutton(int x, int y, int ch, int id, int toggled, int disabled, int colormode)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1864, - "column": 1, - "source_line": "static int stbte__layerbutton(int x, int y, int ch, int id, int toggled, int disabled, int colormode)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1876, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__microbutton": { - "name": "stbte__microbutton", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1878, - "column": 1, - "source_line": "static int stbte__microbutton(int x, int y, int size, int id, int colormode)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1878, - "column": 1, - "source_line": "static int stbte__microbutton(int x, int y, int size, int id, int colormode)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1886, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__microbutton_dragger": { - "name": "stbte__microbutton_dragger", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pos", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *pos", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1888, - "column": 1, - "source_line": "static int stbte__microbutton_dragger(int x, int y, int size, int id, int *pos)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1888, - "column": 1, - "source_line": "static int stbte__microbutton_dragger(int x, int y, int size, int id, int *pos)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1915, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__category_button": { - "name": "stbte__category_button", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "toggled", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int toggled" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1917, - "column": 1, - "source_line": "static int stbte__category_button(const char *label, int x, int y, int width, int id, int toggled)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1917, - "column": 1, - "source_line": "static int stbte__category_button(const char *label, int x, int y, int width, int id, int toggled)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1928, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__slider": { - "name": "stbte__slider", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "range", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int range" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int range" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1939, - "column": 1, - "source_line": "static int stbte__slider(int x0, int w, int y, int range, int *value, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1939, - "column": 1, - "source_line": "static int stbte__slider(int x0, int w, int y, int range, int *value, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1972, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__float_control": { - "name": "stbte__float_control", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "minv", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float minv" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float minv" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "maxv", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float maxv" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float maxv" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fmt", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *fmt", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "value", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *value", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "colormode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int colormode" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1982, - "column": 1, - "source_line": "static int stbte__float_control(int x0, int y0, int w, float minv, float maxv, float scale, const char *fmt, float *value, int colormode, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1982, - "column": 1, - "source_line": "static int stbte__float_control(int x0, int y0, int w, float minv, float maxv, float scale, const char *fmt, float *value, int colormode, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2034, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__scrollbar": { - "name": "stbte__scrollbar", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "val", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *val", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *val", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_vis", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vis" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vis" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2036, - "column": 1, - "source_line": "static void stbte__scrollbar(int x, int y0, int y1, int *val, int v0, int v1, int num_vis, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2036, - "column": 1, - "source_line": "static void stbte__scrollbar(int x, int y0, int y1, int *val, int v0, int v1, int num_vis, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2074, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__compute_digits": { - "name": "stbte__compute_digits", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2077, - "column": 1, - "source_line": "static void stbte__compute_digits(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2077, - "column": 1, - "source_line": "static void stbte__compute_digits(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2085, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__is_single_selection": { - "name": "stbte__is_single_selection", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2087, - "column": 1, - "source_line": "static int stbte__is_single_selection(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2087, - "column": 1, - "source_line": "static int stbte__is_single_selection(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2092, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__compute_panel_locations": { - "name": "stbte__compute_panel_locations", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2110, - "column": 1, - "source_line": "static void stbte__compute_panel_locations(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2110, - "column": 1, - "source_line": "static void stbte__compute_panel_locations(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2244, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__activate_map": { - "name": "stbte__activate_map", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2275, - "column": 1, - "source_line": "static void stbte__activate_map(int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2275, - "column": 1, - "source_line": "static void stbte__activate_map(int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2281, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__alert": { - "name": "stbte__alert", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "msg", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *msg", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *msg", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2283, - "column": 1, - "source_line": "static void stbte__alert(const char *msg)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2283, - "column": 1, - "source_line": "static void stbte__alert(const char *msg)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2287, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__brush_predict": { - "name": "stbte__brush_predict", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2293, - "column": 1, - "source_line": "static void stbte__brush_predict(stbte_tilemap *tm, short result[])" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2293, - "column": 1, - "source_line": "static void stbte__brush_predict(stbte_tilemap *tm, short result[])" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2329, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__brush": { - "name": "stbte__brush", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2331, - "column": 1, - "source_line": "static void stbte__brush(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2331, - "column": 1, - "source_line": "static void stbte__brush(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2371, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__erase_predict": { - "name": "stbte__erase_predict", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "allow_any", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2381, - "column": 1, - "source_line": "static int stbte__erase_predict(stbte_tilemap *tm, short result[], int allow_any)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2381, - "column": 1, - "source_line": "static int stbte__erase_predict(stbte_tilemap *tm, short result[], int allow_any)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2449, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__erase": { - "name": "stbte__erase", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "allow_any", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int allow_any" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2451, - "column": 1, - "source_line": "static int stbte__erase(stbte_tilemap *tm, int x, int y, int allow_any)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2451, - "column": 1, - "source_line": "static int stbte__erase(stbte_tilemap *tm, int x, int y, int allow_any)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2522, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__find_tile": { - "name": "stbte__find_tile", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tile_id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tile_id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int tile_id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2524, - "column": 1, - "source_line": "static int stbte__find_tile(stbte_tilemap *tm, int tile_id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2524, - "column": 1, - "source_line": "static int stbte__find_tile(stbte_tilemap *tm, int tile_id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2532, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__eyedrop": { - "name": "stbte__eyedrop", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2534, - "column": 1, - "source_line": "static void stbte__eyedrop(stbte_tilemap *tm, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2534, - "column": 1, - "source_line": "static void stbte__eyedrop(stbte_tilemap *tm, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2569, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__should_copy_properties": { - "name": "stbte__should_copy_properties", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2571, - "column": 1, - "source_line": "static int stbte__should_copy_properties(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2571, - "column": 1, - "source_line": "static int stbte__should_copy_properties(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2584, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__paste_stack": { - "name": "stbte__paste_stack", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short dest[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short dest[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short src[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short src[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dragging", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dragging" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dragging" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2587, - "column": 1, - "source_line": "static void stbte__paste_stack(stbte_tilemap *tm, short result[], short dest[], short src[], int dragging)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2587, - "column": 1, - "source_line": "static void stbte__paste_stack(stbte_tilemap *tm, short result[], short dest[], short src[], int dragging)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2619, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__clear_stack": { - "name": "stbte__clear_stack", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short result[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2622, - "column": 1, - "source_line": "static void stbte__clear_stack(stbte_tilemap *tm, short result[])" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2622, - "column": 1, - "source_line": "static void stbte__clear_stack(stbte_tilemap *tm, short result[])" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2635, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__fillrect": { - "name": "stbte__fillrect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fill", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int fill" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int fill" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2641, - "column": 1, - "source_line": "static void stbte__fillrect(stbte_tilemap *tm, int x0, int y0, int x1, int y1, int fill)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2641, - "column": 1, - "source_line": "static void stbte__fillrect(stbte_tilemap *tm, int x0, int y0, int x1, int y1, int fill)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2657, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__select_rect": { - "name": "stbte__select_rect", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2659, - "column": 1, - "source_line": "static void stbte__select_rect(stbte_tilemap *tm, int x0, int y0, int x1, int y1)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2659, - "column": 1, - "source_line": "static void stbte__select_rect(stbte_tilemap *tm, int x0, int y0, int x1, int y1)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2666, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__copy_properties": { - "name": "stbte__copy_properties", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "dest", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *dest", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "src", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *src", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2668, - "column": 1, - "source_line": "static void stbte__copy_properties(float *dest, float *src)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2668, - "column": 1, - "source_line": "static void stbte__copy_properties(float *dest, float *src)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2673, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__copy_cut": { - "name": "stbte__copy_cut", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cut", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cut" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int cut" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2675, - "column": 1, - "source_line": "static void stbte__copy_cut(stbte_tilemap *tm, int cut)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2675, - "column": 1, - "source_line": "static void stbte__copy_cut(stbte_tilemap *tm, int cut)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2736, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__in_rect": { - "name": "stbte__in_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2738, - "column": 1, - "source_line": "static int stbte__in_rect(int x, int y, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2738, - "column": 1, - "source_line": "static int stbte__in_rect(int x, int y, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2741, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__in_src_rect": { - "name": "stbte__in_src_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2744, - "column": 1, - "source_line": "static int stbte__in_src_rect(int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2744, - "column": 1, - "source_line": "static int stbte__in_src_rect(int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2747, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__in_dest_rect": { - "name": "stbte__in_dest_rect", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "destx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int destx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "desty", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int desty" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2749, - "column": 1, - "source_line": "static int stbte__in_dest_rect(int x, int y, int destx, int desty)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2749, - "column": 1, - "source_line": "static int stbte__in_dest_rect(int x, int y, int destx, int desty)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2752, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__paste": { - "name": "stbte__paste", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2755, - "column": 1, - "source_line": "static void stbte__paste(stbte_tilemap *tm, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2755, - "column": 1, - "source_line": "static void stbte__paste(stbte_tilemap *tm, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2816, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__drag_update": { - "name": "stbte__drag_update", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "copy_props", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_props" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int copy_props" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2818, - "column": 1, - "source_line": "static void stbte__drag_update(stbte_tilemap *tm, int mapx, int mapy, int copy_props)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2818, - "column": 1, - "source_line": "static void stbte__drag_update(stbte_tilemap *tm, int mapx, int mapy, int copy_props)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2912, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__drag_place": { - "name": "stbte__drag_place", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2914, - "column": 1, - "source_line": "static void stbte__drag_place(stbte_tilemap *tm, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2914, - "column": 1, - "source_line": "static void stbte__drag_place(stbte_tilemap *tm, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2943, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__tile_paint": { - "name": "stbte__tile_paint", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "layer", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int layer" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2945, - "column": 1, - "source_line": "static void stbte__tile_paint(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy, int layer)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2945, - "column": 1, - "source_line": "static void stbte__tile_paint(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy, int layer)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__tile": { - "name": "stbte__tile", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sy" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mapy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mapy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3024, - "column": 1, - "source_line": "static void stbte__tile(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3024, - "column": 1, - "source_line": "static void stbte__tile(stbte_tilemap *tm, int sx, int sy, int mapx, int mapy)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3301, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__start_paste": { - "name": "stbte__start_paste", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3303, - "column": 1, - "source_line": "static void stbte__start_paste(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3303, - "column": 1, - "source_line": "static void stbte__start_paste(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3309, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__toolbar": { - "name": "stbte__toolbar", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3311, - "column": 1, - "source_line": "static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3311, - "column": 1, - "source_line": "static void stbte__toolbar(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3372, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__info_value": { - "name": "stbte__info_value", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "label", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *label", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "val", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int val" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "digits", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digits" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int digits" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "id", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int id" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3376, - "column": 1, - "source_line": "static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3376, - "column": 1, - "source_line": "static int stbte__info_value(const char *label, int x, int y, int val, int digits, int id)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3394, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__info": { - "name": "stbte__info", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3396, - "column": 1, - "source_line": "static void stbte__info(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3396, - "column": 1, - "source_line": "static void stbte__info(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3425, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__layers": { - "name": "stbte__layers", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3427, - "column": 1, - "source_line": "static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3427, - "column": 1, - "source_line": "static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3485, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__categories": { - "name": "stbte__categories", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3487, - "column": 1, - "source_line": "static void stbte__categories(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3487, - "column": 1, - "source_line": "static void stbte__categories(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3512, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__tile_in_palette": { - "name": "stbte__tile_in_palette", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3514, - "column": 1, - "source_line": "static void stbte__tile_in_palette(stbte_tilemap *tm, int x, int y, int slot)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3514, - "column": 1, - "source_line": "static void stbte__tile_in_palette(stbte_tilemap *tm, int x, int y, int slot)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3532, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__palette_of_tiles": { - "name": "stbte__palette_of_tiles", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3534, - "column": 1, - "source_line": "static void stbte__palette_of_tiles(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3534, - "column": 1, - "source_line": "static void stbte__palette_of_tiles(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3574, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__props_panel": { - "name": "stbte__props_panel", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3577, - "column": 1, - "source_line": "static void stbte__props_panel(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3577, - "column": 1, - "source_line": "static void stbte__props_panel(stbte_tilemap *tm, int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3670, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__dump_colorstate": { - "name": "stbte__dump_colorstate", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3675, - "column": 1, - "source_line": "static void stbte__dump_colorstate(void)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3675, - "column": 1, - "source_line": "static void stbte__dump_colorstate(void)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3695, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__colorpicker": { - "name": "stbte__colorpicker", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3697, - "column": 1, - "source_line": "static void stbte__colorpicker(int x0, int y0, int w, int h)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3697, - "column": 1, - "source_line": "static void stbte__colorpicker(int x0, int y0, int w, int h)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3775, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__editor_traverse": { - "name": "stbte__editor_traverse", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3778, - "column": 1, - "source_line": "static void stbte__editor_traverse(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3778, - "column": 1, - "source_line": "static void stbte__editor_traverse(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3999, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__do_event": { - "name": "stbte__do_event", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "tm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbte_tilemap *tm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbte_tilemap" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4001, - "column": 1, - "source_line": "static void stbte__do_event(stbte_tilemap *tm)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4001, - "column": 1, - "source_line": "static void stbte__do_event(stbte_tilemap *tm)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4038, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbte__set_event": { - "name": "stbte__set_event", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "event", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int event" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int event" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4040, - "column": 1, - "source_line": "static void stbte__set_event(int event, int x, int y)" - }, - "start": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4040, - "column": 1, - "source_line": "static void stbte__set_event(int event, int x, int y)" - }, - "end": { - "filename": "stb/stb_tilemap_editor.h", - "line": 4051, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stbte_tilemap": { - "reference": "struct stbte_tilemap" - } - }, - "unions": {}, - "enums": { - "stbte_action": { - "reference": "enum stbte_action" - } - }, - "typedefs": { - "stbte_tilemap": { - "reference": "stbte_tilemap" - }, - "stbte__link": { - "reference": "stbte__link" - }, - "stbte__tileinfo": { - "reference": "stbte__tileinfo" - }, - "stbte__tiledata": { - "reference": "stbte__tiledata" - }, - "stbte__panel": { - "reference": "stbte__panel" - }, - "stbte__colorrect": { - "reference": "stbte__colorrect" - }, - "stbte__ui_t": { - "reference": "stbte__ui_t" - }, - "stbte__layer": { - "reference": "stbte__layer" - }, - "stbte__region_t": { - "reference": "stbte__region_t" - } - }, - "variables": { - "stbte__color_names": { - "name": "stbte__color_names", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char *stbte__color_names[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n \"expander\", \"toolbar\", \"tool button\", \"panel\",\n \"panel c1\", \"panel c2\", \"scollbar\", \"map button\",\n \"layer\", \"hide\", \"lock\", \"solo\",\n \"category\",\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 641, - "column": 1, - "source_line": "static char *stbte__color_names[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__color_table": { - "name": "stbte__color_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static int stbte__color_table[STBTE__num_color_modes][STBTE__num_color_aspects][STBTE__num_color_states]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_modes", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_aspects", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBTE__num_color_states", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { 0x000000, 0x84987c, 0xdcdca8, 0xdcdca8, 0x40c040, 0x60d060, 0x505050, },\n { 0xa4b090, 0xe0ec80, 0xffffc0, 0xffffc0, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x808890, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, },\n { 0x605860, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, 0x606060, },\n { 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, },\n }, {\n { 0x3c5068, 0x7088a8, 0x647488, 0x94b4dc, 0x8890c4, 0x9caccc, 0x404040, },\n { 0x889cb8, 0x889cb8, 0x889cb8, 0x889cb8, 0x84c4e8, 0xacc8ff, 0x0c0c08, },\n { 0xbcc4cc, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x707074, },\n }, {\n { 0x403848, 0x403010, 0x403010, 0x403010, 0x403010, 0x403010, 0x303024, },\n { 0x68546c, 0xc08040, 0xc08040, 0xc08040, 0xc08040, 0xc08040, 0x605030, },\n { 0xf4e4ff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0xb4b04c, 0xacac60, 0xc0ffc0, 0xc0ffc0, 0x40c040, 0x60d060, 0x505050, },\n { 0xa0a04c, 0xd0d04c, 0xffff80, 0xffff80, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x40c440, 0x60d060, 0xc0ffc0, 0xc0ffc0, 0x40c040, 0x60d060, 0x505050, },\n { 0x40c040, 0x80ff80, 0x80ff80, 0x80ff80, 0x80ff80, 0x80ff80, 0x606060, },\n { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x9090ac, 0xa0a0b8, 0xbcb8cc, 0xbcb8cc, 0x909040, 0x909040, 0x909040, },\n { 0xa0a0b8, 0xb0b4d0, 0xa0a0b8, 0xa0a0b8, 0xa0a050, 0xa0a050, 0xa0a050, },\n { 0x808088, 0x808030, 0x808030, 0x808030, 0x808030, 0x808030, 0x808030, },\n }, {\n { 0x704c70, 0x885c8c, 0x9c68a4, 0xb870bc, 0xb490bc, 0xb490bc, 0x302828, },\n { 0x646064, 0xcca8d4, 0xc060c0, 0xa07898, 0xe0b8e0, 0xe0b8e0, 0x403838, },\n { 0xdccce4, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x704c70, 0x885c8c, 0x9c68a4, 0xb870bc, 0xb490bc, 0xb490bc, 0x302828, },\n { 0xb09cb4, 0xcca8d4, 0xc060c0, 0xa07898, 0xe0b8e0, 0xe0b8e0, 0x403838, },\n { 0xdccce4, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x909090, },\n }, {\n { 0x646494, 0x888cb8, 0xb0b0b0, 0xb0b0cc, 0x9c9cf4, 0x8888b0, 0x50506c, },\n { 0x9090a4, 0xb0b4d4, 0xb0b0dc, 0xb0b0cc, 0xd0d0fc, 0xd0d4f0, 0x606060, },\n { 0xb4b4d4, 0xe4e4ff, 0xffffff, 0xffffff, 0xe0e4ff, 0xececff, 0x909090, },\n }, {\n { 0x646444, 0x888c64, 0xb0b0b0, 0xb0b088, 0xaca858, 0x88886c, 0x505050, },\n { 0x88886c, 0xb0b490, 0xb0b0b0, 0xb0b088, 0xd8d898, 0xd0d4b0, 0x606060, },\n { 0xb4b49c, 0xffffd8, 0xffffff, 0xffffd4, 0xffffdc, 0xffffcc, 0x909090, },\n }, {\n { 0x906464, 0xb48c8c, 0xd4b0b0, 0xdcb0b0, 0xff9c9c, 0xc88888, 0x505050, },\n { 0xb47c80, 0xd4b4b8, 0xc4a8a8, 0xdcb0b0, 0xffc0c0, 0xfce8ec, 0x606060, },\n { 0xe0b4b4, 0xffdcd8, 0xffd8d4, 0xffe0e4, 0xffece8, 0xffffff, 0x909090, },\n }, {\n { 0x403848, 0x403848, 0x403848, 0x886894, 0x7c80c8, 0x7c80c8, 0x302828, },\n { 0x403848, 0x403848, 0x403848, 0x403848, 0x7c80c8, 0x7c80c8, 0x403838, },\n { 0xc8c4c8, 0xffffff, 0xffffff, 0xffffff, 0xe8e8ec, 0xffffff, 0x909090, },\n },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 651, - "column": 1, - "source_line": "static int stbte__color_table[STBTE__num_color_modes][STBTE__num_color_aspects][STBTE__num_color_states] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__state_to_index": { - "name": "stbte__state_to_index", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbte__state_to_index[2][2][2][2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {\n { { STBTE__idle , STBTE__over }, { STBTE__down , STBTE__over_down }, },\n { { STBTE__selected, STBTE__selected_over }, { STBTE__down , STBTE__over_down }, },\n },{\n { { STBTE__disabled, STBTE__disabled }, { STBTE__disabled, STBTE__disabled }, },\n { { STBTE__selected, STBTE__selected_over }, { STBTE__disabled, STBTE__disabled }, },\n }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 731, - "column": 1, - "source_line": "static unsigned char stbte__state_to_index[2][2][2][2] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__font_offset": { - "name": "stbte__font_offset", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static short stbte__font_offset[95+16]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "95+16", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 745, - "column": 1, - "source_line": "static short stbte__font_offset[95+16];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__fontdata": { - "name": "stbte__fontdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static short stbte__fontdata[769]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "769", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 4,9,6,9,9,9,9,8,9,8,4,9,7,7,7,7,4,2,6,8,6,6,7,3,4,4,8,6,3,6,2,6,6,6,6,6,6,\n 6,6,6,6,6,2,3,5,4,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,6,7,6,6,6,6,7,7,6,6,\n 6,4,6,4,7,7,3,6,6,5,6,6,5,6,6,4,5,6,4,7,6,6,6,6,6,6,6,6,6,7,6,6,6,5,2,5,8,\n 0,0,0,0,2,253,130,456,156,8,72,184,64,2,125,66,64,160,64,146,511,146,146,\n 511,146,146,511,146,511,257,341,297,341,297,341,257,511,16,56,124,16,16,16,\n 124,56,16,96,144,270,261,262,136,80,48,224,192,160,80,40,22,14,15,3,448,496,\n 496,240,232,20,10,5,2,112,232,452,450,225,113,58,28,63,30,60,200,455,257,\n 257,0,0,0,257,257,455,120,204,132,132,159,14,4,4,14,159,132,132,204,120,8,\n 24,56,120,56,24,8,32,48,56,60,56,48,32,0,0,0,0,111,111,7,7,0,0,7,7,34,127,\n 127,34,34,127,127,34,36,46,107,107,58,18,99,51,24,12,102,99,48,122,79,93,\n 55,114,80,4,7,3,62,127,99,65,65,99,127,62,8,42,62,28,28,62,42,8,8,8,62,62,\n 8,8,128,224,96,8,8,8,8,8,8,96,96,96,48,24,12,6,3,62,127,89,77,127,62,64,66,\n 127,127,64,64,98,115,89,77,71,66,33,97,73,93,119,35,24,28,22,127,127,16,39,\n 103,69,69,125,57,62,127,73,73,121,48,1,1,113,121,15,7,54,127,73,73,127,54,\n 6,79,73,105,63,30,54,54,128,246,118,8,28,54,99,65,20,20,20,20,65,99,54,28,\n 8,2,3,105,109,7,2,30,63,33,45,47,46,124,126,19,19,126,124,127,127,73,73,127,\n 54,62,127,65,65,99,34,127,127,65,99,62,28,127,127,73,73,73,65,127,127,9,9,\n 9,1,62,127,65,73,121,121,127,127,8,8,127,127,65,65,127,127,65,65,32,96,64,\n 64,127,63,127,127,8,28,54,99,65,127,127,64,64,64,64,127,127,6,12,6,127,127,\n 127,127,6,12,24,127,127,62,127,65,65,65,127,62,127,127,9,9,15,6,62,127,65,\n 81,49,127,94,127,127,9,25,127,102,70,79,73,73,121,49,1,1,127,127,1,1,63,127,\n 64,64,127,63,15,31,48,96,48,31,15,127,127,48,24,48,127,127,99,119,28,28,119,\n 99,7,15,120,120,15,7,97,113,89,77,71,67,127,127,65,65,3,6,12,24,48,96,65,\n 65,127,127,8,12,6,3,6,12,8,64,64,64,64,64,64,64,3,7,4,32,116,84,84,124,120,\n 127,127,68,68,124,56,56,124,68,68,68,56,124,68,68,127,127,56,124,84,84,92,\n 24,8,124,126,10,10,56,380,324,324,508,252,127,127,4,4,124,120,72,122,122,\n 64,256,256,256,506,250,126,126,16,56,104,64,66,126,126,64,124,124,24,56,28,\n 124,120,124,124,4,4,124,120,56,124,68,68,124,56,508,508,68,68,124,56,56,124,\n 68,68,508,508,124,124,4,4,12,8,72,92,84,84,116,36,4,4,62,126,68,68,60,124,\n 64,64,124,124,28,60,96,96,60,28,28,124,112,56,112,124,28,68,108,56,56,108,\n 68,284,316,352,320,508,252,68,100,116,92,76,68,8,62,119,65,65,127,127,65,\n 65,119,62,8,16,24,12,12,24,24,12,4,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 746, - "column": 1, - "source_line": "static short stbte__fontdata[769] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "toolchar": { - "name": "toolchar", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static int toolchar[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 26,24,25,20,23,22,18, 19,17, 29,28, }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 838, - "column": 1, - "source_line": "static int toolchar[] = { 26,24,25,20,23,22,18, 19,17, 29,28, };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__ui": { - "name": "stbte__ui", - "type": { - "reference": "stbte__ui_t" - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ STBTE__tool_brush, 0 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 919, - "column": 1, - "source_line": "static stbte__ui_t stbte__ui = { STBTE__tool_brush, 0 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "default_category": { - "name": "default_category", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static char *default_category", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "(char*) \"[unassigned]\"" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 978, - "column": 1, - "source_line": "static char *default_category = (char*) \"[unassigned]\";" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__region": { - "name": "stbte__region", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbte__region_t stbte__region[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbte__region_t" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2102, - "column": 1, - "source_line": "static stbte__region_t stbte__region[4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__saved": { - "name": "stbte__saved", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "static float stbte__saved" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3576, - "column": 1, - "source_line": "static float stbte__saved;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__cp_mode": { - "name": "stbte__cp_mode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_mode" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__cp_aspect": { - "name": "stbte__cp_aspect", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_aspect" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__save": { - "name": "stbte__save", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__save" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__cp_altered": { - "name": "stbte__cp_altered", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_altered" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3672, - "column": 1, - "source_line": "static int stbte__cp_mode, stbte__cp_aspect, stbte__save, stbte__cp_altered;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__cp_state": { - "name": "stbte__cp_state", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_state" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__cp_index": { - "name": "stbte__cp_index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__cp_index" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbte__color_copy": { - "name": "stbte__color_copy", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "static int stbte__color_copy" - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3674, - "column": 1, - "source_line": "static int stbte__cp_state, stbte__cp_index, stbte__color_copy;" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H": { - "name": "STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 335, - "column": 1, - "source_line": "#define STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H" - } - }, - "_CRT_SECURE_NO_WARNINGS": { - "name": "_CRT_SECURE_NO_WARNINGS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 339, - "column": 3, - "source_line": " #define _CRT_SECURE_NO_WARNINGS" - } - }, - "STBTE_PROP_none": { - "name": "STBTE_PROP_none", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 356, - "column": 1, - "source_line": "#define STBTE_PROP_none 0" - } - }, - "STBTE_PROP_int": { - "name": "STBTE_PROP_int", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 357, - "column": 1, - "source_line": "#define STBTE_PROP_int 1" - } - }, - "STBTE_PROP_float": { - "name": "STBTE_PROP_float", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 358, - "column": 1, - "source_line": "#define STBTE_PROP_float 2" - } - }, - "STBTE_PROP_bool": { - "name": "STBTE_PROP_bool", - "value": "3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 359, - "column": 1, - "source_line": "#define STBTE_PROP_bool 3" - } - }, - "STBTE_PROP_disabled": { - "name": "STBTE_PROP_disabled", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 360, - "column": 1, - "source_line": "#define STBTE_PROP_disabled 4" - } - }, - "STBTE_EMPTY": { - "name": "STBTE_EMPTY", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 449, - "column": 1, - "source_line": "#define STBTE_EMPTY -1" - } - }, - "STBTE_ASSERT": { - "name": "STBTE_ASSERT", - "value": "assert", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 510, - "column": 1, - "source_line": "#define STBTE_ASSERT assert" - } - }, - "STBTE__NOTUSED": { - "name": "STBTE__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 517, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)sizeof(v)" - } - }, - "STBTE_MAX_TILEMAP_X": { - "name": "STBTE_MAX_TILEMAP_X", - "value": "200", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 521, - "column": 1, - "source_line": "#define STBTE_MAX_TILEMAP_X 200" - } - }, - "STBTE_MAX_TILEMAP_Y": { - "name": "STBTE_MAX_TILEMAP_Y", - "value": "200", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 525, - "column": 1, - "source_line": "#define STBTE_MAX_TILEMAP_Y 200" - } - }, - "STBTE_MAX_LAYERS": { - "name": "STBTE_MAX_LAYERS", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 529, - "column": 1, - "source_line": "#define STBTE_MAX_LAYERS 8" - } - }, - "STBTE_MAX_CATEGORIES": { - "name": "STBTE_MAX_CATEGORIES", - "value": "100", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 533, - "column": 1, - "source_line": "#define STBTE_MAX_CATEGORIES 100" - } - }, - "STBTE_MAX_COPY": { - "name": "STBTE_MAX_COPY", - "value": "65536", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 537, - "column": 1, - "source_line": "#define STBTE_MAX_COPY 65536" - } - }, - "STBTE_UNDO_BUFFER_BYTES": { - "name": "STBTE_UNDO_BUFFER_BYTES", - "value": "(1 << 24)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 541, - "column": 1, - "source_line": "#define STBTE_UNDO_BUFFER_BYTES (1 << 24) // 16 MB" - } - }, - "STBTE__NO_PROPS": { - "name": "STBTE__NO_PROPS", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 587, - "column": 1, - "source_line": "#define STBTE__NO_PROPS" - } - }, - "STBTE_PROP_TYPE": { - "name": "STBTE_PROP_TYPE", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 546, - "column": 1, - "source_line": "#define STBTE_PROP_TYPE(n,td,tp) 0" - } - }, - "STBTE_PROP_NAME": { - "name": "STBTE_PROP_NAME", - "value": "\"\"", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 550, - "column": 1, - "source_line": "#define STBTE_PROP_NAME(n,td,tp) \"\"" - } - }, - "STBTE_MAX_PROPERTIES": { - "name": "STBTE_MAX_PROPERTIES", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 592, - "column": 1, - "source_line": "#define STBTE_MAX_PROPERTIES 1 // so we can declare arrays" - } - }, - "STBTE_PROP_MIN": { - "name": "STBTE_PROP_MIN", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 558, - "column": 1, - "source_line": "#define STBTE_PROP_MIN(n,td,tp) 0" - } - }, - "STBTE_PROP_MAX": { - "name": "STBTE_PROP_MAX", - "value": "100.0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 562, - "column": 1, - "source_line": "#define STBTE_PROP_MAX(n,td,tp) 100.0" - } - }, - "STBTE_PROP_FLOAT_SCALE": { - "name": "STBTE_PROP_FLOAT_SCALE", - "value": "1", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 566, - "column": 1, - "source_line": "#define STBTE_PROP_FLOAT_SCALE(n,td,tp) 1 // default scale size" - } - }, - "STBTE_FLOAT_CONTROL_GRANULARITY": { - "name": "STBTE_FLOAT_CONTROL_GRANULARITY", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 570, - "column": 1, - "source_line": "#define STBTE_FLOAT_CONTROL_GRANULARITY 4" - } - }, - "STBTE__UNDO_BUFFER_COUNT": { - "name": "STBTE__UNDO_BUFFER_COUNT", - "value": "(STBTE_UNDO_BUFFER_BYTES>>1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 574, - "column": 1, - "source_line": "#define STBTE__UNDO_BUFFER_COUNT (STBTE_UNDO_BUFFER_BYTES>>1)" - } - }, - "STBTE_COLOR_TILEMAP_BACKGROUND": { - "name": "STBTE_COLOR_TILEMAP_BACKGROUND", - "value": "0x000000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 708, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_BACKGROUND 0x000000" - } - }, - "STBTE_COLOR_TILEMAP_BORDER": { - "name": "STBTE_COLOR_TILEMAP_BORDER", - "value": "0x203060", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 709, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_BORDER 0x203060" - } - }, - "STBTE_COLOR_TILEMAP_HIGHLIGHT": { - "name": "STBTE_COLOR_TILEMAP_HIGHLIGHT", - "value": "0xffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 710, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEMAP_HIGHLIGHT 0xffffff" - } - }, - "STBTE_COLOR_GRID": { - "name": "STBTE_COLOR_GRID", - "value": "0x404040", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 711, - "column": 1, - "source_line": "#define STBTE_COLOR_GRID 0x404040" - } - }, - "STBTE_COLOR_SELECTION_OUTLINE1": { - "name": "STBTE_COLOR_SELECTION_OUTLINE1", - "value": "0xdfdfdf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 712, - "column": 1, - "source_line": "#define STBTE_COLOR_SELECTION_OUTLINE1 0xdfdfdf" - } - }, - "STBTE_COLOR_SELECTION_OUTLINE2": { - "name": "STBTE_COLOR_SELECTION_OUTLINE2", - "value": "0x303030", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 713, - "column": 1, - "source_line": "#define STBTE_COLOR_SELECTION_OUTLINE2 0x303030" - } - }, - "STBTE_COLOR_TILEPALETTE_OUTLINE": { - "name": "STBTE_COLOR_TILEPALETTE_OUTLINE", - "value": "0xffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 714, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEPALETTE_OUTLINE 0xffffff" - } - }, - "STBTE_COLOR_TILEPALETTE_BACKGROUND": { - "name": "STBTE_COLOR_TILEPALETTE_BACKGROUND", - "value": "0x000000", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 715, - "column": 1, - "source_line": "#define STBTE_COLOR_TILEPALETTE_BACKGROUND 0x000000" - } - }, - "STBTE_LINK_COLOR": { - "name": "STBTE_LINK_COLOR", - "value": "0x5030ff", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 718, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR(src,sp,dest,dp) 0x5030ff" - } - }, - "STBTE_LINK_COLOR_DRAWING": { - "name": "STBTE_LINK_COLOR_DRAWING", - "value": "0xff40ff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 722, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR_DRAWING 0xff40ff" - } - }, - "STBTE_LINK_COLOR_DISALLOWED": { - "name": "STBTE_LINK_COLOR_DISALLOWED", - "value": "0x602060", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 726, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR_DISALLOWED 0x602060" - } - }, - "STBTE__INDEX_FOR_STATE": { - "name": "STBTE__INDEX_FOR_STATE", - "value": "stbte__state_to_index[disable][select][down][over]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 741, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_STATE(disable,select,down,over) stbte__state_to_index[disable][select][down][over]" - } - }, - "STBTE__INDEX_FOR_ID": { - "name": "STBTE__INDEX_FOR_ID", - "value": "STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 742, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_ID(id,disable,select) STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))" - } - }, - "STBTE__FONT_HEIGHT": { - "name": "STBTE__FONT_HEIGHT", - "value": "9", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 744, - "column": 1, - "source_line": "#define STBTE__FONT_HEIGHT 9" - } - }, - "MAX_LAYERMASK": { - "name": "MAX_LAYERMASK", - "value": "(1 << (8*sizeof(unsigned int)))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 790, - "column": 1, - "source_line": "#define MAX_LAYERMASK (1 << (8*sizeof(unsigned int)))" - } - }, - "STBTE__NO_TILE": { - "name": "STBTE__NO_TILE", - "value": "-1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 794, - "column": 1, - "source_line": "#define STBTE__NO_TILE -1" - } - }, - "STBTE__MAX_DELAYRECT": { - "name": "STBTE__MAX_DELAYRECT", - "value": "256", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 875, - "column": 1, - "source_line": "#define STBTE__MAX_DELAYRECT 256" - } - }, - "STBTE__INACTIVE": { - "name": "STBTE__INACTIVE", - "value": "(stbte__ui.active_id == 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 921, - "column": 1, - "source_line": "#define STBTE__INACTIVE() (stbte__ui.active_id == 0)" - } - }, - "STBTE__IS_ACTIVE": { - "name": "STBTE__IS_ACTIVE", - "value": "(stbte__ui.active_id == (id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 922, - "column": 1, - "source_line": "#define STBTE__IS_ACTIVE(id) (stbte__ui.active_id == (id))" - } - }, - "STBTE__IS_HOT": { - "name": "STBTE__IS_HOT", - "value": "(stbte__ui.hot_id == (id))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 923, - "column": 1, - "source_line": "#define STBTE__IS_HOT(id) (stbte__ui.hot_id == (id))" - } - }, - "STBTE__BUTTON_HEIGHT": { - "name": "STBTE__BUTTON_HEIGHT", - "value": "(STBTE__FONT_HEIGHT + 2 * STBTE__BUTTON_INTERNAL_SPACING)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 925, - "column": 1, - "source_line": "#define STBTE__BUTTON_HEIGHT (STBTE__FONT_HEIGHT + 2 * STBTE__BUTTON_INTERNAL_SPACING)" - } - }, - "STBTE__BUTTON_INTERNAL_SPACING": { - "name": "STBTE__BUTTON_INTERNAL_SPACING", - "value": "(2 + (STBTE__FONT_HEIGHT>>4))", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 926, - "column": 1, - "source_line": "#define STBTE__BUTTON_INTERNAL_SPACING (2 + (STBTE__FONT_HEIGHT>>4))" - } - }, - "stbte__wrap": { - "name": "stbte__wrap", - "value": "((pos) & (STBTE__UNDO_BUFFER_COUNT-1))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1343, - "column": 1, - "source_line": "#define stbte__wrap(pos) ((pos) & (STBTE__UNDO_BUFFER_COUNT-1))" - } - }, - "STBTE__undo_record": { - "name": "STBTE__undo_record", - "value": "-2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1345, - "column": 1, - "source_line": "#define STBTE__undo_record -2" - } - }, - "STBTE__redo_record": { - "name": "STBTE__redo_record", - "value": "-3", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1346, - "column": 1, - "source_line": "#define STBTE__redo_record -3" - } - }, - "STBTE__undo_junk": { - "name": "STBTE__undo_junk", - "value": "-4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1347, - "column": 1, - "source_line": "#define STBTE__undo_junk -4 // this is written underneath the undo pointer, never used" - } - }, - "stbte__sprintf": { - "name": "stbte__sprintf", - "value": "sprintf", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1978, - "column": 4, - "source_line": " #define stbte__sprintf sprintf" - } - }, - "stbte__sizeof": { - "name": "stbte__sizeof", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1979, - "column": 4, - "source_line": " #define stbte__sizeof(s)" - } - }, - "STBTE__TOOLBAR_ICON_SIZE": { - "name": "STBTE__TOOLBAR_ICON_SIZE", - "value": "(9+2*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2104, - "column": 1, - "source_line": "#define STBTE__TOOLBAR_ICON_SIZE (9+2*2)" - } - }, - "STBTE__TOOLBAR_PASTE_SIZE": { - "name": "STBTE__TOOLBAR_PASTE_SIZE", - "value": "(34+2*2)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2105, - "column": 1, - "source_line": "#define STBTE__TOOLBAR_PASTE_SIZE (34+2*2)" - } - }, - "STBTE__ID": { - "name": "STBTE__ID", - "value": "((n) + ((p)<<7))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2271, - "column": 1, - "source_line": "#define STBTE__ID(n,p) ((n) + ((p)<<7))" - } - }, - "STBTE__ID2": { - "name": "STBTE__ID2", - "value": "STBTE__ID(n, ((p)<<12)+(q) )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2272, - "column": 1, - "source_line": "#define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )" - } - }, - "STBTE__IDMAP": { - "name": "STBTE__IDMAP", - "value": "STBTE__ID2(STBTE__map, x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2273, - "column": 1, - "source_line": "#define STBTE__IDMAP(x,y) STBTE__ID2(STBTE__map, x,y)" - } - }, - "STBTE__BG": { - "name": "STBTE__BG", - "value": "((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2289, - "column": 1, - "source_line": "#define STBTE__BG(tm,layer) ((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)" - } - }, - "STBTE__IS_MAP_ACTIVE": { - "name": "STBTE__IS_MAP_ACTIVE", - "value": "((stbte__ui.active_id & 127) == STBTE__map)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2638, - "column": 1, - "source_line": "#define STBTE__IS_MAP_ACTIVE() ((stbte__ui.active_id & 127) == STBTE__map)" - } - }, - "STBTE__IS_MAP_HOT": { - "name": "STBTE__IS_MAP_HOT", - "value": "((stbte__ui.hot_id & 127) == STBTE__map)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2639, - "column": 1, - "source_line": "#define STBTE__IS_MAP_HOT() ((stbte__ui.hot_id & 127) == STBTE__map)" - } - }, - "STBTE__TEXTCOLOR": { - "name": "STBTE__TEXTCOLOR", - "value": "stbte__color_table[n][STBTE__text][STBTE__idle]", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3374, - "column": 1, - "source_line": "#define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle]" - } - } - }, - "includes": { - "stb/stb_tilemap_editor.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 341, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_tilemap_editor.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 342, - "column": 3, - "source_line": " #include " - } - }, - "stb/stb_tilemap_editor.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 511, - "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_tilemap_editor.h": [ - "stbte_create_map", - "stbte_define_tile", - "stbte_set_display", - "stbte_draw", - "stbte_tick", - "stbte_mouse_sdl", - "stbte_mouse_move", - "stbte_mouse_button", - "stbte_mouse_wheel", - "stbte_action", - "stbte_get_dimensions", - "stbte_get_tile", - "stbte_get_properties", - "stbte_get_link", - "stbte_set_dimensions", - "stbte_clear_map", - "stbte_set_tile", - "stbte_set_property", - "stbte_set_link", - "stbte_set_background_tile", - "stbte_set_sidewidths", - "stbte_set_spacing", - "stbte_set_layername", - "stbte__init_gui", - "stbte__text_width", - "stbte__set_link", - "stbte__choose_category", - "stbte__strequal", - "stbte__compute_tileinfo", - "stbte__prepare_tileinfo", - "stbte__write_undo", - "stbte__write_redo", - "stbte__begin_undo", - "stbte__end_undo", - "stbte__undo_record", - "stbte__redo_record", - "stbte__extract_float", - "stbte__extract_short", - "stbte__undo_record_prop", - "stbte__undo_record_prop_float", - "stbte__redo_record_prop", - "stbte__undo_find_end", - "stbte__undo", - "stbte__redo_find_end", - "stbte__redo", - "stbte__recompute_undo_available", - "stbte__undo_available", - "stbte__redo_available", - "stbte__draw_rect", - "stbte__draw_line", - "stbte__draw_link", - "stbte__draw_frame", - "stbte__get_char_width", - "stbte__get_char_bitmap", - "stbte__draw_bitmask_as_columns", - "stbte__draw_bitmap", - "stbte__draw_text_core", - "stbte__draw_text", - "stbte__draw_frame_delayed", - "stbte__flush_delay", - "stbte__activate", - "stbte__hittest", - "stbte__button_core", - "stbte__draw_box", - "stbte__draw_textbox", - "stbte__button", - "stbte__button_icon", - "stbte__minibutton", - "stbte__layerbutton", - "stbte__microbutton", - "stbte__microbutton_dragger", - "stbte__category_button", - "stbte__slider", - "stbte__float_control", - "stbte__scrollbar", - "stbte__compute_digits", - "stbte__is_single_selection", - "stbte__compute_panel_locations", - "stbte__activate_map", - "stbte__alert", - "stbte__brush_predict", - "stbte__brush", - "stbte__erase_predict", - "stbte__erase", - "stbte__find_tile", - "stbte__eyedrop", - "stbte__should_copy_properties", - "stbte__paste_stack", - "stbte__clear_stack", - "stbte__fillrect", - "stbte__select_rect", - "stbte__copy_properties", - "stbte__copy_cut", - "stbte__in_rect", - "stbte__in_src_rect", - "stbte__in_dest_rect", - "stbte__paste", - "stbte__drag_update", - "stbte__drag_place", - "stbte__tile_paint", - "stbte__tile", - "stbte__start_paste", - "stbte__toolbar", - "stbte__info_value", - "stbte__info", - "stbte__layers", - "stbte__categories", - "stbte__tile_in_palette", - "stbte__palette_of_tiles", - "stbte__props_panel", - "stbte__dump_colorstate", - "stbte__colorpicker", - "stbte__editor_traverse", - "stbte__do_event", - "stbte__set_event" - ] - }, - "enum_constants": { - "STBTE_drawmode_deemphasize": { - "name": "STBTE_drawmode_deemphasize", - "value": "-1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - "STBTE_drawmode_normal": { - "name": "STBTE_drawmode_normal", - "value": "0", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - "STBTE_drawmode_emphasize": { - "name": "STBTE_drawmode_emphasize", - "value": "1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 348, - "column": 1, - "source_line": "enum" - } - }, - "STBTE_tool_select": { - "name": "STBTE_tool_select", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_tool_brush": { - "name": "STBTE_tool_brush", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_tool_erase": { - "name": "STBTE_tool_erase", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_tool_rectangle": { - "name": "STBTE_tool_rectangle", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_tool_eyedropper": { - "name": "STBTE_tool_eyedropper", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_tool_link": { - "name": "STBTE_tool_link", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_toggle_grid": { - "name": "STBTE_act_toggle_grid", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_toggle_links": { - "name": "STBTE_act_toggle_links", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_undo": { - "name": "STBTE_act_undo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_redo": { - "name": "STBTE_act_redo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_cut": { - "name": "STBTE_act_cut", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_copy": { - "name": "STBTE_act_copy", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_act_paste": { - "name": "STBTE_act_paste", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_scroll_left": { - "name": "STBTE_scroll_left", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_scroll_right": { - "name": "STBTE_scroll_right", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_scroll_up": { - "name": "STBTE_scroll_up", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE_scroll_down": { - "name": "STBTE_scroll_down", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 418, - "column": 1, - "source_line": "enum stbte_action" - } - }, - "STBTE__base": { - "name": "STBTE__base", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__outline": { - "name": "STBTE__outline", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__text": { - "name": "STBTE__text", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__num_color_aspects": { - "name": "STBTE__num_color_aspects", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 600, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__idle": { - "name": "STBTE__idle", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__over": { - "name": "STBTE__over", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__down": { - "name": "STBTE__down", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__over_down": { - "name": "STBTE__over_down", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__selected": { - "name": "STBTE__selected", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__selected_over": { - "name": "STBTE__selected_over", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__disabled": { - "name": "STBTE__disabled", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__num_color_states": { - "name": "STBTE__num_color_states", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 609, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cexpander": { - "name": "STBTE__cexpander", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__ctoolbar": { - "name": "STBTE__ctoolbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__ctoolbar_button": { - "name": "STBTE__ctoolbar_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cpanel": { - "name": "STBTE__cpanel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cpanel_sider": { - "name": "STBTE__cpanel_sider", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cpanel_sizer": { - "name": "STBTE__cpanel_sizer", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cscrollbar": { - "name": "STBTE__cscrollbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__cmapsize": { - "name": "STBTE__cmapsize", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__clayer_button": { - "name": "STBTE__clayer_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__clayer_hide": { - "name": "STBTE__clayer_hide", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__clayer_lock": { - "name": "STBTE__clayer_lock", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__clayer_solo": { - "name": "STBTE__clayer_solo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__ccategory_button": { - "name": "STBTE__ccategory_button", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__num_color_modes": { - "name": "STBTE__num_color_modes", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 621, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_toolbar": { - "name": "STBTE__panel_toolbar", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_colorpick": { - "name": "STBTE__panel_colorpick", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_info": { - "name": "STBTE__panel_info", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_layers": { - "name": "STBTE__panel_layers", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_props": { - "name": "STBTE__panel_props", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_categories": { - "name": "STBTE__panel_categories", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel_tiles": { - "name": "STBTE__panel_tiles", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__num_panel": { - "name": "STBTE__num_panel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 796, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__side_left": { - "name": "STBTE__side_left", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__side_right": { - "name": "STBTE__side_right", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__side_top": { - "name": "STBTE__side_top", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__side_bottom": { - "name": "STBTE__side_bottom", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 809, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_select": { - "name": "STBTE__tool_select", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_brush": { - "name": "STBTE__tool_brush", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_erase": { - "name": "STBTE__tool_erase", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_rect": { - "name": "STBTE__tool_rect", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_eyedrop": { - "name": "STBTE__tool_eyedrop", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_fill": { - "name": "STBTE__tool_fill", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_link": { - "name": "STBTE__tool_link", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_showgrid": { - "name": "STBTE__tool_showgrid", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_showlinks": { - "name": "STBTE__tool_showlinks", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_undo": { - "name": "STBTE__tool_undo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tool_redo": { - "name": "STBTE__tool_redo", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__num_tool": { - "name": "STBTE__num_tool", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 817, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__propmode_default": { - "name": "STBTE__propmode_default", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__propmode_always": { - "name": "STBTE__propmode_always", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__propmode_never": { - "name": "STBTE__propmode_never", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 840, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__paint": { - "name": "STBTE__paint", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__tick": { - "name": "STBTE__tick", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__mousemove": { - "name": "STBTE__mousemove", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__mousewheel": { - "name": "STBTE__mousewheel", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__leftdown": { - "name": "STBTE__leftdown", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__leftup": { - "name": "STBTE__leftup", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__rightdown": { - "name": "STBTE__rightdown", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__rightup": { - "name": "STBTE__rightup", - "value": null, - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 847, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__unlocked": { - "name": "STBTE__unlocked", - "value": null, + "source_location": null, + "callback_policy": null + }, + { + "name": "val", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float val" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float val" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 935, + "line": 477, "column": 1, - "source_line": "enum" - } - }, - "STBTE__protected": { - "name": "STBTE__protected", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 935, + "line": 477, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbte_set_property(stbte_tilemap *tm, int x, int y, int n, float val);" + }, + "end": null, + "declaration_locations": [] }, - "STBTE__locked": { - "name": "STBTE__locked", - "value": null, + "stbte_set_link": { + "name": "stbte_set_link", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "destx", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int destx" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int destx" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "desty", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desty" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int desty" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 935, + "line": 480, "column": 1, - "source_line": "enum" - } - }, - "STBTE__undo_none": { - "name": "STBTE__undo_none", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1183, + "line": 480, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbte_set_link(stbte_tilemap *tm, int x, int y, int destx, int desty);" + }, + "end": null, + "declaration_locations": [] }, - "STBTE__undo_record": { - "name": "STBTE__undo_record", - "value": null, + "stbte_set_background_tile": { + "name": "stbte_set_background_tile", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "id", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short id" + }, + "declared_type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short id" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1183, + "line": 489, "column": 1, - "source_line": "enum" - } - }, - "STBTE__undo_block": { - "name": "STBTE__undo_block", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1183, + "line": 489, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbte_set_background_tile(stbte_tilemap *tm, short id);" + }, + "end": null, + "declaration_locations": [] }, - "STBTE__none": { - "name": "STBTE__none", - "value": null, + "stbte_set_sidewidths": { + "name": "stbte_set_sidewidths", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "left", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "right", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1930, + "line": 493, "column": 1, - "source_line": "enum" - } - }, - "STBTE__begin": { - "name": "STBTE__begin", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_sidewidths(int left, int right);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1930, + "line": 493, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbte_set_sidewidths(int left, int right);" + }, + "end": null, + "declaration_locations": [] }, - "STBTE__end": { - "name": "STBTE__end", - "value": null, + "stbte_set_spacing": { + "name": "stbte_set_spacing", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "spacing_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "spacing_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int spacing_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "palette_spacing_x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int palette_spacing_x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int palette_spacing_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "palette_spacing_y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int palette_spacing_y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int palette_spacing_y" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 1930, + "line": 497, "column": 1, - "source_line": "enum" - } - }, - "STBTE__change": { - "name": "STBTE__change", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 1930, + "line": 497, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbte_set_spacing(stbte_tilemap *tm, int spacing_x, int spacing_y, int palette_spacing_x, int palette_spacing_y);" + }, + "end": null, + "declaration_locations": [] }, - "STBTE__map": { - "name": "STBTE__map", - "value": "1", + "stbte_set_layername": { + "name": "stbte_set_layername", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "tm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbte_tilemap *tm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbte_tilemap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "layer", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int layer" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int layer" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "layername", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *layername", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *layername", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 501, "column": 1, - "source_line": "enum" - } - }, - "STBTE__region": { - "name": "STBTE__region", - "value": null, - "source_location": { + "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" + }, + "start": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 501, "column": 1, - "source_line": "enum" - } - }, - "STBTE__panel": { - "name": "STBTE__panel", - "value": null, + "source_line": "extern void stbte_set_layername(stbte_tilemap *tm, int layer, const char *layername);" + }, + "end": null, + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_tilemap_editor.h": [ + "stbte_create_map", + "stbte_define_tile", + "stbte_set_display", + "stbte_draw", + "stbte_tick", + "stbte_mouse_sdl", + "stbte_mouse_move", + "stbte_mouse_button", + "stbte_mouse_wheel", + "stbte_action", + "stbte_get_dimensions", + "stbte_get_tile", + "stbte_get_properties", + "stbte_get_link", + "stbte_set_dimensions", + "stbte_clear_map", + "stbte_set_tile", + "stbte_set_property", + "stbte_set_link", + "stbte_set_background_tile", + "stbte_set_sidewidths", + "stbte_set_spacing", + "stbte_set_layername" + ] + }, + "enum_constants": { + "STBTE_drawmode_deemphasize": { + "name": "STBTE_drawmode_deemphasize", + "value": "-1", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 348, "column": 1, "source_line": "enum" } }, - "STBTE__info": { - "name": "STBTE__info", - "value": null, + "STBTE_drawmode_normal": { + "name": "STBTE_drawmode_normal", + "value": "0", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 348, "column": 1, "source_line": "enum" } }, - "STBTE__toolbarA": { - "name": "STBTE__toolbarA", - "value": null, + "STBTE_drawmode_emphasize": { + "name": "STBTE_drawmode_emphasize", + "value": "1", "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 348, "column": 1, "source_line": "enum" } }, - "STBTE__toolbarB": { - "name": "STBTE__toolbarB", + "STBTE_tool_select": { + "name": "STBTE_tool_select", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__palette": { - "name": "STBTE__palette", + "STBTE_tool_brush": { + "name": "STBTE_tool_brush", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__categories": { - "name": "STBTE__categories", + "STBTE_tool_erase": { + "name": "STBTE_tool_erase", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__layer": { - "name": "STBTE__layer", + "STBTE_tool_rectangle": { + "name": "STBTE_tool_rectangle", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__solo": { - "name": "STBTE__solo", + "STBTE_tool_eyedropper": { + "name": "STBTE_tool_eyedropper", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__hide": { - "name": "STBTE__hide", + "STBTE_tool_link": { + "name": "STBTE_tool_link", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__lock": { - "name": "STBTE__lock", + "STBTE_act_toggle_grid": { + "name": "STBTE_act_toggle_grid", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__scrollbar": { - "name": "STBTE__scrollbar", + "STBTE_act_toggle_links": { + "name": "STBTE_act_toggle_links", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__panel_mover": { - "name": "STBTE__panel_mover", + "STBTE_act_undo": { + "name": "STBTE_act_undo", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__panel_sizer": { - "name": "STBTE__panel_sizer", + "STBTE_act_redo": { + "name": "STBTE_act_redo", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__scrollbar_id": { - "name": "STBTE__scrollbar_id", + "STBTE_act_cut": { + "name": "STBTE_act_cut", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__colorpick_id": { - "name": "STBTE__colorpick_id", + "STBTE_act_copy": { + "name": "STBTE_act_copy", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__prop_flag": { - "name": "STBTE__prop_flag", + "STBTE_act_paste": { + "name": "STBTE_act_paste", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__prop_float": { - "name": "STBTE__prop_float", + "STBTE_scroll_left": { + "name": "STBTE_scroll_left", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__prop_int": { - "name": "STBTE__prop_int", + "STBTE_scroll_right": { + "name": "STBTE_scroll_right", "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2247, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__erase_none": { - "name": "STBTE__erase_none", - "value": "-1", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, - "column": 1, - "source_line": "enum" - } - }, - "STBTE__erase_brushonly": { - "name": "STBTE__erase_brushonly", - "value": "0", - "source_location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2373, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__erase_any": { - "name": "STBTE__erase_any", - "value": "1", + "STBTE_scroll_up": { + "name": "STBTE_scroll_up", + "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2373, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } }, - "STBTE__erase_all": { - "name": "STBTE__erase_all", - "value": "2", + "STBTE_scroll_down": { + "name": "STBTE_scroll_down", + "value": null, "source_location": { "filename": "stb/stb_tilemap_editor.h", - "line": 2373, + "line": 418, "column": 1, - "source_line": "enum" + "source_line": "enum stbte_action" } } }, @@ -35448,11 +5737,7 @@ "stb/stb_tilemap_editor.h": [] }, "system_includes": { - "stb/stb_tilemap_editor.h": [ - "assert.h", - "stdio.h", - "stdlib.h" - ] + "stb/stb_tilemap_editor.h": [] }, "unresolved_includes": { "stb/stb_tilemap_editor.h": [] @@ -35460,305 +5745,5 @@ "header_source_pairs": { "stb/stb_tilemap_editor.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 515, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 517, - "column": 1, - "source_line": "#define STBTE__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_TYPE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 546, - "column": 1, - "source_line": "#define STBTE_PROP_TYPE(n,td,tp) 0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_TYPE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_NAME' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 550, - "column": 1, - "source_line": "#define STBTE_PROP_NAME(n,td,tp) \"\"" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_NAME" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_MIN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 558, - "column": 1, - "source_line": "#define STBTE_PROP_MIN(n,td,tp) 0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_MIN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_MAX' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 562, - "column": 1, - "source_line": "#define STBTE_PROP_MAX(n,td,tp) 100.0" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_MAX" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_PROP_FLOAT_SCALE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 566, - "column": 1, - "source_line": "#define STBTE_PROP_FLOAT_SCALE(n,td,tp) 1 // default scale size" - }, - "unit_kind": "macro", - "unit_name": "STBTE_PROP_FLOAT_SCALE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE_LINK_COLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 718, - "column": 1, - "source_line": "#define STBTE_LINK_COLOR(src,sp,dest,dp) 0x5030ff" - }, - "unit_kind": "macro", - "unit_name": "STBTE_LINK_COLOR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INDEX_FOR_STATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 741, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_STATE(disable,select,down,over) stbte__state_to_index[disable][select][down][over]" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INDEX_FOR_STATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INDEX_FOR_ID' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 742, - "column": 1, - "source_line": "#define STBTE__INDEX_FOR_ID(id,disable,select) STBTE__INDEX_FOR_STATE(disable,select,STBTE__IS_ACTIVE(id),STBTE__IS_HOT(id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INDEX_FOR_ID" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__INACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 921, - "column": 1, - "source_line": "#define STBTE__INACTIVE() (stbte__ui.active_id == 0)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__INACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_ACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 922, - "column": 1, - "source_line": "#define STBTE__IS_ACTIVE(id) (stbte__ui.active_id == (id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_ACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_HOT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 923, - "column": 1, - "source_line": "#define STBTE__IS_HOT(id) (stbte__ui.hot_id == (id))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_HOT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__wrap' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1343, - "column": 1, - "source_line": "#define stbte__wrap(pos) ((pos) & (STBTE__UNDO_BUFFER_COUNT-1))" - }, - "unit_kind": "macro", - "unit_name": "stbte__wrap" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__sizeof' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1976, - "column": 4, - "source_line": " #define stbte__sizeof(s) , sizeof(s)" - }, - "unit_kind": "macro", - "unit_name": "stbte__sizeof" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbte__sizeof' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 1979, - "column": 4, - "source_line": " #define stbte__sizeof(s)" - }, - "unit_kind": "macro", - "unit_name": "stbte__sizeof" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__ID' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2271, - "column": 1, - "source_line": "#define STBTE__ID(n,p) ((n) + ((p)<<7))" - }, - "unit_kind": "macro", - "unit_name": "STBTE__ID" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__ID2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2272, - "column": 1, - "source_line": "#define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )" - }, - "unit_kind": "macro", - "unit_name": "STBTE__ID2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IDMAP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2273, - "column": 1, - "source_line": "#define STBTE__IDMAP(x,y) STBTE__ID2(STBTE__map, x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IDMAP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__BG' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2289, - "column": 1, - "source_line": "#define STBTE__BG(tm,layer) ((layer) == 0 ? (tm)->background_tile : STBTE__NO_TILE)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__BG" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_MAP_ACTIVE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2638, - "column": 1, - "source_line": "#define STBTE__IS_MAP_ACTIVE() ((stbte__ui.active_id & 127) == STBTE__map)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_MAP_ACTIVE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__IS_MAP_HOT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 2639, - "column": 1, - "source_line": "#define STBTE__IS_MAP_HOT() ((stbte__ui.hot_id & 127) == STBTE__map)" - }, - "unit_kind": "macro", - "unit_name": "STBTE__IS_MAP_HOT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTE__TEXTCOLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_tilemap_editor.h", - "line": 3374, - "column": 1, - "source_line": "#define STBTE__TEXTCOLOR(n) stbte__color_table[n][STBTE__text][STBTE__idle]" - }, - "unit_kind": "macro", - "unit_name": "STBTE__TEXTCOLOR" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_truetype.json b/tests/parser/c/fixtures/stb/stb_truetype.json index 98e8a33c5..9ccd4522b 100644 --- a/tests/parser/c/fixtures/stb/stb_truetype.json +++ b/tests/parser/c/fixtures/stb/stb_truetype.json @@ -3,86 +3,98 @@ "stb/stb_truetype.h": { "filename": "stb/stb_truetype.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_truetype.h" + ], "functions": [ { - "name": "my_stbtt_initfont", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 287, - "column": 1, - "source_line": "void my_stbtt_initfont(void)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 287, - "column": 1, - "source_line": "void my_stbtt_initfont(void)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 297, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "my_stbtt_print", + "name": "stbtt_BakeFontBitmap", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "x", + "name": "data", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x" + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" + }, + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int offset" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "pixel_height", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float pixel_height" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float pixel_height" }, "source_location": null, "callback_policy": null }, { - "name": "text", + "name": "pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -90,16 +102,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -107,241 +119,81 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 299, - "column": 1, - "source_line": "void my_stbtt_print(float x, float y, char *text)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 299, - "column": 1, - "source_line": "void my_stbtt_print(float x, float y, char *text)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 319, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "argc", + "name": "pw", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int argc" + "source_text": "int pw" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int argc" + "source_text": "int pw" }, "source_location": null, "callback_policy": null }, { - "name": "argv", + "name": "ph", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int ph" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int ph" }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 334, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 334, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 351, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__buf_get8", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_uint8", - "name": "stbtt_uint8", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "typedef unsigned char stbtt_uint8" }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 428, - "column": 4, - "source_line": " typedef unsigned char stbtt_uint8;" + { + "name": "first_char", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_char" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_char" + }, + "source_location": null, + "callback_policy": null }, - "declaration_locations": [] - }, - "parameters": [ { - "name": "b", + "name": "num_chars", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int num_chars" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] + "source_text": "int num_chars" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1133, - "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1133, - "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1138, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__buf_peek8", - "result_type": { - "reference": "stbtt_uint8" - }, - "parameters": [ + }, { - "name": "b", + "name": "chardata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_bakedchar *chardata", "components": [ { "model": "CPointer", @@ -351,26 +203,179 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], + "source_text": "stbtt_bakedchar", + "name": "stbtt_bakedchar", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x0", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short x0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 529, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y0", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short y0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 529, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x1", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short x1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 529, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y1", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short y1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 529, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xoff", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xoff" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 530, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "yoff", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float yoff" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 530, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xadvance", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xadvance" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 530, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 527, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 527, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_bakedchar *chardata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_bakedchar" } ] }, @@ -379,34 +384,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1140, + "line": 533, "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b)" + "source_line": "extern int stbtt_BakeFontBitmap(const unsigned char *data, int offset," }, "start": { "filename": "stb/stb_truetype.h", - "line": 1140, - "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1145, + "line": 533, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_BakeFontBitmap(const unsigned char *data, int offset," }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__buf_seek", + "name": "stbtt_GetBakedQuad", "result_type": { "model": "CVoid", "qualifiers": [], @@ -414,11 +414,11 @@ }, "parameters": [ { - "name": "b", + "name": "chardata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const stbtt_bakedchar *chardata", "components": [ { "model": "CPointer", @@ -426,20 +426,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_bakedchar" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const stbtt_bakedchar *chardata", "components": [ { "model": "CPointer", @@ -447,7 +441,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_bakedchar" } ] }, @@ -455,167 +449,56 @@ "callback_policy": null }, { - "name": "o", + "name": "pw", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int pw" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int pw" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1147, - "column": 1, - "source_line": "static void stbtt__buf_seek(stbtt__buf *b, int o)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1147, - "column": 1, - "source_line": "static void stbtt__buf_seek(stbtt__buf *b, int o)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1151, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__buf_skip", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "b", + "name": "ph", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int ph" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] + "source_text": "int ph" }, "source_location": null, "callback_policy": null }, { - "name": "o", + "name": "char_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int char_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int char_index" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1153, - "column": 1, - "source_line": "static void stbtt__buf_skip(stbtt__buf *b, int o)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1153, - "column": 1, - "source_line": "static void stbtt__buf_skip(stbtt__buf *b, int o)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1156, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__buf_get", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_uint32", - "name": "stbtt_uint32", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "typedef unsigned int stbtt_uint32" }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 432, - "column": 4, - "source_line": " typedef unsigned int stbtt_uint32;" - }, - "declaration_locations": [] - }, - "parameters": [ { - "name": "b", + "name": "xpos", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -623,20 +506,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -644,7 +523,9 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -652,66 +533,50 @@ "callback_policy": null }, { - "name": "n", + "name": "ypos", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "float *ypos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "float *ypos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1158, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1158, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1166, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__new_buf", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ + }, { - "name": "p", + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void *p", + "source_text": "stbtt_aligned_quad *q", "components": [ { "model": "CPointer", @@ -719,18 +584,192 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbtt_aligned_quad", + "name": "stbtt_aligned_quad", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 545, + "column": 4, + "source_line": " float x0,y0,s0,t0;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 545, + "column": 4, + "source_line": " float x0,y0,s0,t0;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "s0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 545, + "column": 4, + "source_line": " float x0,y0,s0,t0;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "t0", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 545, + "column": 4, + "source_line": " float x0,y0,s0,t0;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float x1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 546, + "column": 4, + "source_line": " float x1,y1,s1,t1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float y1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 546, + "column": 4, + "source_line": " float x1,y1,s1,t1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "s1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float s1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 546, + "column": 4, + "source_line": " float x1,y1,s1,t1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "t1", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float t1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 546, + "column": 4, + "source_line": " float x1,y1,s1,t1;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 543, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 543, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void *p", + "source_text": "stbtt_aligned_quad *q", "components": [ { "model": "CPointer", @@ -738,11 +777,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "reference": "stbtt_aligned_quad" } ] }, @@ -750,68 +785,57 @@ "callback_policy": null }, { - "name": "size", + "name": "opengl_fillrule", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "size_t size", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int opengl_fillrule" }, "declared_type": { - "reference": "size_t" + "model": "CInt", + "qualifiers": [], + "source_text": "int opengl_fillrule" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1168, + "line": 549, "column": 1, - "source_line": "static stbtt__buf stbtt__new_buf(const void *p, size_t size)" + "source_line": "extern void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph," }, "start": { "filename": "stb/stb_truetype.h", - "line": 1168, + "line": 549, "column": 1, - "source_line": "static stbtt__buf stbtt__new_buf(const void *p, size_t size)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1176, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph," }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__buf_range", + "name": "stbtt_GetScaledFontVMetrics", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { - "name": "b", + "name": "fontdata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -819,22 +843,18 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CUnsignedChar", "qualifiers": [ "const" ], - "source_text": "const stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -842,7 +862,11 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -850,81 +874,41 @@ "callback_policy": null }, { - "name": "o", + "name": "index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int index" }, "source_location": null, "callback_policy": null }, { - "name": "s", + "name": "size", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int s" + "source_text": "float size" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int s" + "source_text": "float size" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1181, - "column": 1, - "source_line": "static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1181, - "column": 1, - "source_line": "static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1188, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__cff_get_index", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ + }, { - "name": "b", + "name": "ascent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *ascent", "components": [ { "model": "CPointer", @@ -932,20 +916,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *ascent", "components": [ { "model": "CPointer", @@ -953,130 +933,21 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1190, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_get_index(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1190, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_get_index(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1202, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__cff_int", - "result_type": { - "reference": "stbtt_uint32" - }, - "parameters": [ - { - "name": "b", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1204, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__cff_int(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1204, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__cff_int(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1214, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__cff_skip_operand", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "b", + "name": "descent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *descent", "components": [ { "model": "CPointer", @@ -1084,80 +955,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1216, - "column": 1, - "source_line": "static void stbtt__cff_skip_operand(stbtt__buf *b) {" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1216, - "column": 1, - "source_line": "static void stbtt__cff_skip_operand(stbtt__buf *b) {" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1229, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__dict_get", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ - { - "name": "b", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *descent", "components": [ { "model": "CPointer", @@ -1165,28 +972,9 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", + "model": "CFloat", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" + "source_text": "float" } ] }, @@ -1194,62 +982,11 @@ "callback_policy": null }, { - "name": "key", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int key" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int key" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1231, - "column": 1, - "source_line": "static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1231, - "column": 1, - "source_line": "static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1244, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__dict_get_ints", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "b", + "name": "lineGap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *lineGap", "components": [ { "model": "CPointer", @@ -1257,70 +994,16 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", + "model": "CFloat", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" + "source_text": "float" } ] }, - "source_location": null, - "callback_policy": null - }, - { - "name": "key", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int key" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int key" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "outcount", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outcount" - }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int outcount" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "out", - "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint32 *out", + "source_text": "float *lineGap", "components": [ { "model": "CPointer", @@ -1328,22 +1011,9 @@ "source_text": "" }, { - "reference": "stbtt_uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_uint32 *out", - "components": [ - { - "model": "CPointer", + "model": "CFloat", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint32" + "source_text": "float" } ] }, @@ -1352,34 +1022,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1246, + "line": 564, "column": 1, - "source_line": "static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out)" + "source_line": "extern void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1246, + "line": 564, "column": 1, - "source_line": "static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1252, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__cff_index_count", + "name": "stbtt_PackBegin", "result_type": { "model": "CInt", "qualifiers": [], @@ -1387,11 +1052,11 @@ }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -1401,159 +1066,315 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, + "source_text": "stbtt_pack_context", + "name": "stbtt_pack_context", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbtt_pack_context", + "members": [ + { + "name": "user_allocator_context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *user_allocator_context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 679, + "column": 4, + "source_line": " void *user_allocator_context;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "pack_info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *pack_info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 680, + "column": 4, + "source_line": " void *pack_info;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 681, + "column": 4, + "source_line": " int width;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 682, + "column": 4, + "source_line": " int height;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 683, + "column": 4, + "source_line": " int stride_in_bytes;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 684, + "column": 4, + "source_line": " int padding;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "skip_missing", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int skip_missing" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 685, + "column": 4, + "source_line": " int skip_missing;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h_oversample", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int h_oversample" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 686, + "column": 4, + "source_line": " unsigned int h_oversample, v_oversample;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "v_oversample", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v_oversample" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 686, + "column": 4, + "source_line": " unsigned int h_oversample, v_oversample;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 687, + "column": 4, + "source_line": " unsigned char *pixels;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "nodes", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *nodes", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 688, + "column": 4, + "source_line": " void *nodes;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 678, + "column": 1, + "source_line": "struct stbtt_pack_context {" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 582, + "column": 1, + "source_line": "typedef struct stbtt_pack_context stbtt_pack_context;" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_pack_context *spc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1254, - "column": 1, - "source_line": "static int stbtt__cff_index_count(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1254, - "column": 1, - "source_line": "static int stbtt__cff_index_count(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1258, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__cff_index_get", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ - { - "name": "b", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf b", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "stbtt__buf" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1260, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1260, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1272, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "ttUSHORT", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_uint16", - "name": "stbtt_uint16", - "type": { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "typedef unsigned short stbtt_uint16" - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 430, - "column": 4, - "source_line": " typedef unsigned short stbtt_uint16;" }, - "declaration_locations": [] - }, - "parameters": [ { - "name": "p", + "name": "pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -1561,14 +1382,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -1576,221 +1399,81 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 1, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 1, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 72, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "declaration_locations": [] - }, - { - "name": "ttSHORT", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_int16", - "name": "stbtt_int16", - "type": { - "model": "CShort", - "qualifiers": [], - "source_text": "typedef signed short stbtt_int16" }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 431, - "column": 4, - "source_line": " typedef signed short stbtt_int16;" + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null }, - "declaration_locations": [] - }, - "parameters": [ { - "name": "p", + "name": "height", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int height" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int height" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 1, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 1, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 72, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "declaration_locations": [] - }, - { - "name": "ttULONG", - "result_type": { - "reference": "stbtt_uint32" - }, - "parameters": [ + }, { - "name": "p", + "name": "stride_in_bytes", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int stride_in_bytes" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int stride_in_bytes" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1288, - "column": 1, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1288, - "column": 1, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1288, - "column": 99, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "declaration_locations": [] - }, - { - "name": "ttLONG", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_int32", - "name": "stbtt_int32", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "typedef signed int stbtt_int32" }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 433, - "column": 4, - "source_line": " typedef signed int stbtt_int32;" + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "source_location": null, + "callback_policy": null }, - "declaration_locations": [] - }, - "parameters": [ { - "name": "p", + "name": "alloc_context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "void *alloc_context", "components": [ { "model": "CPointer", @@ -1798,14 +1481,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "void *alloc_context", "components": [ { "model": "CPointer", @@ -1813,7 +1498,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -1822,46 +1509,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1289, + "line": 588, "column": 1, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" + "source_line": "extern int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1289, + "line": 588, "column": 1, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1289, - "column": 99, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" + "source_line": "extern int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__isfont", + "name": "stbtt_PackEnd", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "font", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *font", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -1869,14 +1551,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *font", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -1884,7 +1566,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, @@ -1893,44 +1575,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1294, + "line": 599, "column": 1, - "source_line": "static int stbtt__isfont(stbtt_uint8 *font)" + "source_line": "extern void stbtt_PackEnd (stbtt_pack_context *spc);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1294, - "column": 1, - "source_line": "static int stbtt__isfont(stbtt_uint8 *font)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1303, + "line": 599, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackEnd (stbtt_pack_context *spc);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__find_table", + "name": "stbtt_PackFontRange", "result_type": { - "reference": "stbtt_uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *data", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -1938,14 +1617,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *data", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -1953,7 +1632,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, @@ -1961,22 +1640,11 @@ "callback_policy": null }, { - "name": "fontstart", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tag", + "name": "fontdata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *tag", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -1984,18 +1652,18 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *tag", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -2003,59 +1671,83 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [ "const" ], - "source_text": "const char" + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1306, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1306, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1317, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt_GetFontOffsetForIndex_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, + { + "name": "font_index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int font_index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int font_index" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "font_size", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float font_size" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float font_size" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "first_unicode_char_in_range", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_unicode_char_in_range" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_unicode_char_in_range" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_chars_in_range", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars_in_range" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars_in_range" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "font_collection", + "name": "chardata_for_range", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_packedchar *chardata_for_range", "components": [ { "model": "CPointer", @@ -2063,16 +1755,211 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CTypedef", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "stbtt_packedchar", + "name": "stbtt_packedchar", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x0", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short x0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 577, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y0", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short y0" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 577, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "x1", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short x1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 577, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y1", + "type": { + "model": "CUnsignedShort", + "qualifiers": [], + "source_text": "unsigned short y1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 577, + "column": 4, + "source_line": " unsigned short x0,y0,x1,y1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xoff", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xoff" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 578, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "yoff", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float yoff" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 578, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xadvance", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xadvance" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 578, + "column": 4, + "source_line": " float xoff,yoff,xadvance;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "xoff2", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float xoff2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 579, + "column": 4, + "source_line": " float xoff2,yoff2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "yoff2", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float yoff2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 579, + "column": 4, + "source_line": " float xoff2,yoff2;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 575, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 575, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_packedchar *chardata_for_range", "components": [ { "model": "CPointer", @@ -2080,60 +1967,38 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_packedchar" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int index" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1319, + "line": 604, "column": 1, - "source_line": "static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index)" + "source_line": "extern int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," }, "start": { "filename": "stb/stb_truetype.h", - "line": 1319, + "line": 604, "column": 1, - "source_line": "static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1336, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_GetNumberOfFonts_internal", + "name": "stbtt_PackFontRanges", "result_type": { "model": "CInt", "qualifiers": [], @@ -2141,11 +2006,11 @@ }, "parameters": [ { - "name": "font_collection", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2153,16 +2018,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2170,131 +2033,77 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1338, - "column": 1, - "source_line": "static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1338, - "column": 1, - "source_line": "static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1352, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__get_subrs", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "parameters": [ + }, { - "name": "cff", + "name": "fontdata", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf cff", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "fontdict", + "name": "font_index", "type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf fontdict", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int font_index" }, "declared_type": { - "reference": "stbtt__buf" + "model": "CInt", + "qualifiers": [], + "source_text": "int font_index" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1354, - "column": 1, - "source_line": "static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1354, - "column": 1, - "source_line": "static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1365, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__get_svg", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "info", + "name": "ranges", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -2304,10 +2113,185 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, + "source_text": "stbtt_pack_range", + "name": "stbtt_pack_range", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "font_size", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float font_size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 621, + "column": 4, + "source_line": " float font_size;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "first_unicode_codepoint_in_range", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_unicode_codepoint_in_range" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 622, + "column": 4, + "source_line": " int first_unicode_codepoint_in_range;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "array_of_unicode_codepoints", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *array_of_unicode_codepoints", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 623, + "column": 4, + "source_line": " int *array_of_unicode_codepoints;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "num_chars", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 624, + "column": 4, + "source_line": " int num_chars;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "chardata_for_range", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_packedchar *chardata_for_range", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_packedchar" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 625, + "column": 4, + "source_line": " stbtt_packedchar *chardata_for_range;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h_oversample", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char h_oversample" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 626, + "column": 4, + "source_line": " unsigned char h_oversample, v_oversample;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "v_oversample", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char v_oversample" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 626, + "column": 4, + "source_line": " unsigned char h_oversample, v_oversample;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 619, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 619, + "column": 1, + "source_line": "typedef struct" + }, "declaration_locations": [] } ] @@ -2315,7 +2299,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -2323,55 +2307,65 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "reference": "stbtt_pack_range" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_ranges", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1368, + "line": 629, "column": 1, - "source_line": "static int stbtt__get_svg(stbtt_fontinfo *info)" + "source_line": "extern int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1368, + "line": 629, "column": 1, - "source_line": "static int stbtt__get_svg(stbtt_fontinfo *info)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1381, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_InitFont_internal", + "name": "stbtt_PackSetOversampling", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "info", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2379,20 +2373,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2400,7 +2388,7 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "reference": "stbtt_pack_context" } ] }, @@ -2408,89 +2396,60 @@ "callback_policy": null }, { - "name": "data", + "name": "h_oversample", "type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "unsigned int h_oversample" }, "declared_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "unsigned int h_oversample" }, "source_location": null, "callback_policy": null }, { - "name": "fontstart", + "name": "v_oversample", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int fontstart" + "source_text": "unsigned int v_oversample" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int fontstart" + "source_text": "unsigned int v_oversample" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1383, + "line": 635, "column": 1, - "source_line": "static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart)" + "source_line": "extern void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1383, - "column": 1, - "source_line": "static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1494, + "line": 635, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_setvertex", + "name": "stbtt_PackSetSkipMissingCodepoints", "result_type": { "model": "CVoid", "qualifiers": [], @@ -2498,11 +2457,11 @@ }, "parameters": [ { - "name": "v", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *v", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2510,20 +2469,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *v", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2531,7 +2484,7 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_pack_context" } ] }, @@ -2539,102 +2492,57 @@ "callback_policy": null }, { - "name": "type", - "type": { - "reference": "stbtt_uint8" - }, - "declared_type": { - "reference": "stbtt_uint8" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", + "name": "skip", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int skip" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int skip" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1594, + "line": 651, "column": 1, - "source_line": "static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy)" + "source_line": "extern void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1594, - "column": 1, - "source_line": "static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1601, + "line": 651, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__GetGlyfOffset", + "name": "stbtt_GetPackedQuad", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "info", + "name": "chardata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "const stbtt_packedchar *chardata", "components": [ { "model": "CPointer", @@ -2642,22 +2550,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_packedchar" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "const stbtt_packedchar *chardata", "components": [ { "model": "CPointer", @@ -2665,7 +2565,7 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "reference": "stbtt_packedchar" } ] }, @@ -2673,120 +2573,56 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "pw", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int pw" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int pw" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1603, - "column": 1, - "source_line": "static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1603, - "column": 1, - "source_line": "static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1621, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__GetGlyphInfoT2", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "info", + "name": "ph", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int ph" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_fontinfo" - } - ] + "source_text": "int ph" }, "source_location": null, "callback_policy": null }, { - "name": "glyph_index", + "name": "char_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int char_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int char_index" }, "source_location": null, "callback_policy": null }, { - "name": "x0", + "name": "xpos", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x0", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -2794,16 +2630,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x0", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -2811,9 +2647,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -2821,11 +2657,11 @@ "callback_policy": null }, { - "name": "y0", + "name": "ypos", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y0", + "source_text": "float *ypos", "components": [ { "model": "CPointer", @@ -2833,16 +2669,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y0", + "source_text": "float *ypos", "components": [ { "model": "CPointer", @@ -2850,9 +2686,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -2860,11 +2696,11 @@ "callback_policy": null }, { - "name": "x1", + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x1", + "source_text": "stbtt_aligned_quad *q", "components": [ { "model": "CPointer", @@ -2872,16 +2708,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbtt_aligned_quad" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x1", + "source_text": "stbtt_aligned_quad *q", "components": [ { "model": "CPointer", @@ -2889,9 +2723,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbtt_aligned_quad" } ] }, @@ -2899,81 +2731,45 @@ "callback_policy": null }, { - "name": "y1", + "name": "align_to_integer", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int align_to_integer" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *y1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int align_to_integer" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2286, + "line": 657, "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph," }, "start": { "filename": "stb/stb_truetype.h", - "line": 2286, - "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2295, + "line": 657, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph," }, - "declaration_locations": [ - { - "filename": "stb/stb_truetype.h", - "line": 1623, - "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" - } - ] + "end": null, + "declaration_locations": [] }, { - "name": "stbtt__close_shape", + "name": "stbtt_PackFontRangesGatherRects", "result_type": { "model": "CInt", "qualifiers": [], @@ -2981,11 +2777,11 @@ }, "parameters": [ { - "name": "vertices", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -2993,20 +2789,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -3014,7 +2804,7 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_pack_context" } ] }, @@ -3022,303 +2812,11 @@ "callback_policy": null }, { - "name": "num_vertices", + "name": "info", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vertices" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vertices" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "was_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int was_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int was_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "start_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1658, - "column": 1, - "source_line": "static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off," - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1658, - "column": 1, - "source_line": "static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off," - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1672, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__GetGlyphShapeTT", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "info", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", + "model": "CComposedType", "qualifiers": [], "source_text": "const stbtt_fontinfo *info", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_fontinfo" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "glyph_index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph_index" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph_index" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pvertices", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1674, - "column": 1, - "source_line": "static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1674, - "column": 1, - "source_line": "static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1895, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__track_vertex", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__csctx *c", "components": [ { "model": "CPointer", @@ -3328,265 +2826,516 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbtt__csctx", - "name": "stbtt__csctx", + "source_text": "stbtt_fontinfo", + "name": "stbtt_fontinfo", "type": { "model": "CStruct", "qualifiers": [], "source_text": "", - "name": null, + "name": "stbtt_fontinfo", "members": [ { - "name": "bounds", + "name": "userdata", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int bounds" + "source_text": "void * userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1899, + "line": 715, "column": 4, - "source_line": " int bounds;" + "source_line": " void * userdata;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "started", + "name": "data", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int started" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1900, - "column": 4, - "source_line": " int started;" - }, - "callback_policy": null, + "source_text": "unsigned char * data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 716, + "column": 4, + "source_line": " unsigned char * data;" + }, + "callback_policy": null, "declaration_locations": [] }, { - "name": "first_x", + "name": "fontstart", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float first_x" + "source_text": "int fontstart" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1901, + "line": 717, "column": 4, - "source_line": " float first_x, first_y;" + "source_line": " int fontstart;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "first_y", + "name": "numGlyphs", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float first_y" + "source_text": "int numGlyphs" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1901, + "line": 719, "column": 4, - "source_line": " float first_x, first_y;" + "source_line": " int numGlyphs;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "x", + "name": "loca", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int loca" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1902, + "line": 721, "column": 4, - "source_line": " float x, y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "y", + "name": "head", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int head" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1902, + "line": 721, "column": 4, - "source_line": " float x, y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "min_x", + "name": "glyf", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyf" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1903, + "line": 721, "column": 4, - "source_line": " stbtt_int32 min_x, max_x, min_y, max_y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "max_x", + "name": "hhea", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int hhea" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1903, + "line": 721, "column": 4, - "source_line": " stbtt_int32 min_x, max_x, min_y, max_y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "min_y", + "name": "hmtx", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int hmtx" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1903, + "line": 721, "column": 4, - "source_line": " stbtt_int32 min_x, max_x, min_y, max_y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "max_y", + "name": "kern", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int kern" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1903, + "line": 721, "column": 4, - "source_line": " stbtt_int32 min_x, max_x, min_y, max_y;" + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "pvertices", + "name": "gpos", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_vertex *pvertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int gpos" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 721, + "column": 4, + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "svg", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int svg" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 721, + "column": 4, + "source_line": " int loca,head,glyf,hhea,hmtx,kern,gpos,svg;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "index_map", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index_map" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1905, + "line": 722, "column": 4, - "source_line": " stbtt_vertex *pvertices;" + "source_line": " int index_map;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "num_vertices", + "name": "indexToLocFormat", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_vertices" + "source_text": "int indexToLocFormat" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 723, + "column": 4, + "source_line": " int indexToLocFormat;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cff", + "type": { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbtt__buf", + "name": "stbtt__buf", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 515, + "column": 4, + "source_line": " unsigned char *data;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cursor", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int cursor" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 516, + "column": 4, + "source_line": " int cursor;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 517, + "column": 4, + "source_line": " int size;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 513, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 513, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 725, + "column": 4, + "source_line": " stbtt__buf cff;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "charstrings", + "type": { + "reference": "stbtt__buf" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 726, + "column": 4, + "source_line": " stbtt__buf charstrings;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "gsubrs", + "type": { + "reference": "stbtt__buf" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 727, + "column": 4, + "source_line": " stbtt__buf gsubrs;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "subrs", + "type": { + "reference": "stbtt__buf" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 728, + "column": 4, + "source_line": " stbtt__buf subrs;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fontdicts", + "type": { + "reference": "stbtt__buf" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 729, + "column": 4, + "source_line": " stbtt__buf fontdicts;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "fdselect", + "type": { + "reference": "stbtt__buf" }, "storage": [], "initializer": null, "bit_width": null, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1906, + "line": 730, "column": 4, - "source_line": " int num_vertices;" + "source_line": " stbtt__buf fdselect;" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_truetype.h:1897:1", + "anonymous_id": null, "is_incomplete": false, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1897, + "line": 713, "column": 1, - "source_line": "typedef struct" + "source_line": "struct stbtt_fontinfo" } }, "source_location": { "filename": "stb/stb_truetype.h", - "line": 1897, + "line": 583, "column": 1, - "source_line": "typedef struct" + "source_line": "typedef struct stbtt_fontinfo stbtt_fontinfo;" }, "declaration_locations": [] } @@ -3595,7 +3344,42 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ranges", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_pack_range *ranges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_range" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -3603,7 +3387,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_pack_range" } ] }, @@ -3611,57 +3395,100 @@ "callback_policy": null }, { - "name": "x", + "name": "num_ranges", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "rects", "type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbrp_rect", + "name": "stbrp_rect", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "typedef struct stbrp_rect stbrp_rect", + "name": "stbrp_rect", + "members": [], + "anonymous_id": null, + "is_incomplete": true, + "source_location": null + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 585, + "column": 1, + "source_line": "typedef struct stbrp_rect stbrp_rect;" + }, + "declaration_locations": [] + } + ] }, "declared_type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1911, + "line": 663, "column": 1, - "source_line": "static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y)" + "source_line": "extern int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1911, + "line": 663, "column": 1, - "source_line": "static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1918, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__csctx_v", + "name": "stbtt_PackFontRangesPackRects", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3669,11 +3496,11 @@ }, "parameters": [ { - "name": "c", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -3681,14 +3508,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -3696,7 +3523,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_pack_context" } ] }, @@ -3704,124 +3531,92 @@ "callback_policy": null }, { - "name": "type", - "type": { - "reference": "stbtt_uint8" - }, - "declared_type": { - "reference": "stbtt_uint8" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", + "name": "rects", "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx1", - "type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] }, "declared_type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "cy1", + "name": "num_rects", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1920, + "line": 664, "column": 1, - "source_line": "static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1)" + "source_line": "extern void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1920, - "column": 1, - "source_line": "static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1934, + "line": 664, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__csctx_close_shape", + "name": "stbtt_PackFontRangesRenderIntoRects", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "ctx", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -3829,14 +3624,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -3844,55 +3639,19 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1936, - "column": 1, - "source_line": "static void stbtt__csctx_close_shape(stbtt__csctx *ctx)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1936, - "column": 1, - "source_line": "static void stbtt__csctx_close_shape(stbtt__csctx *ctx)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1940, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__csctx_rmove_to", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "ctx", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -3900,14 +3659,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -3915,7 +3674,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, @@ -3923,77 +3682,127 @@ "callback_policy": null }, { - "name": "dx", + "name": "ranges", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx" + "source_text": "stbtt_pack_range *ranges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_range" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx" + "source_text": "stbtt_pack_range *ranges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_range" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "dy", + "name": "num_ranges", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy" + "source_text": "int num_ranges" }, "declared_type": { - "model": "CFloat", + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "rects", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] + }, + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "float dy" + "source_text": "stbrp_rect *rects", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbrp_rect" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1942, + "line": 665, "column": 1, - "source_line": "static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy)" + "source_line": "extern int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1942, - "column": 1, - "source_line": "static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1948, + "line": 665, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__csctx_rline_to", + "name": "stbtt_GetNumberOfFonts", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "ctx", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -4001,14 +3810,18 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -4016,85 +3829,143 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 697, + "column": 1, + "source_line": "extern int stbtt_GetNumberOfFonts(const unsigned char *data);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 697, + "column": 1, + "source_line": "extern int stbtt_GetNumberOfFonts(const unsigned char *data);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetFontOffsetForIndex", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "dx", + "name": "data", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx" + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx" + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "dy", + "name": "index", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy" + "source_text": "int index" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy" + "source_text": "int index" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1950, + "line": 704, "column": 1, - "source_line": "static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy)" + "source_line": "extern int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1950, - "column": 1, - "source_line": "static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1955, + "line": 704, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__csctx_rccurve_to", + "name": "stbtt_InitFont", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "ctx", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -4102,14 +3973,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -4117,7 +3988,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, @@ -4125,205 +3996,173 @@ "callback_policy": null }, { - "name": "dx1", + "name": "data", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx3", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx3" + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dx3" + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "dy3", + "name": "offset", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy3" + "source_text": "int offset" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy3" + "source_text": "int offset" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1957, + "line": 733, "column": 1, - "source_line": "static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)" + "source_line": "extern int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1957, - "column": 1, - "source_line": "static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1966, + "line": 733, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__get_subr", + "name": "stbtt_FindGlyphIndex", "result_type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" }, "parameters": [ { - "name": "idx", + "name": "info", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf idx", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "unicode_codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int unicode_codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int unicode_codepoint" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1968, + "line": 745, "column": 1, - "source_line": "static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n)" + "source_line": "extern int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1968, - "column": 1, - "source_line": "static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1980, + "line": 745, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__cid_get_glyph_subrs", + "name": "stbtt_ScaleForPixelHeight", "result_type": { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf", - "name": "stbtt__buf", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" }, "parameters": [ { @@ -4339,15 +4178,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, @@ -4370,54 +4201,49 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "pixels", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1982, + "line": 758, "column": 1, - "source_line": "static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index)" + "source_line": "extern float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1982, - "column": 1, - "source_line": "static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2008, + "line": 758, "column": 1, - "source_line": "}" + "source_line": "extern float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__run_charstring", + "name": "stbtt_ScaleForMappingEmToPixels", "result_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" }, "parameters": [ { @@ -4433,15 +4259,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, @@ -4464,89 +4282,49 @@ "callback_policy": null }, { - "name": "glyph_index", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph_index" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph_index" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c", + "name": "pixels", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__csctx *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__csctx" - } - ] + "source_text": "float pixels" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__csctx *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__csctx" - } - ] + "source_text": "float pixels" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2010, + "line": 766, "column": 1, - "source_line": "static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c)" + "source_line": "extern float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2010, - "column": 1, - "source_line": "static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2267, + "line": 766, "column": 1, - "source_line": "}" + "source_line": "extern float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__GetGlyphShapeT2", + "name": "stbtt_GetFontVMetrics", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -4562,15 +4340,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, @@ -4593,26 +4363,50 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "ascent", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *ascent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *ascent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "pvertices", + "name": "descent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *descent", "components": [ { "model": "CPointer", @@ -4620,25 +4414,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *descent", "components": [ { "model": "CPointer", @@ -4646,60 +4431,21 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2269, - "column": 1, - "source_line": "static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2269, - "column": 1, - "source_line": "static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2284, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__GetGlyphKernInfoAdvance", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "info", + "name": "lineGap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *lineGap", "components": [ { "model": "CPointer", @@ -4707,22 +4453,16 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *lineGap", "components": [ { "model": "CPointer", @@ -4730,83 +4470,52 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "glyph1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "glyph2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph2" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2359, + "line": 771, "column": 1, - "source_line": "static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" + "source_line": "extern void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2359, - "column": 1, - "source_line": "static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2387, + "line": 771, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__GetCoverageIndex", + "name": "stbtt_GetFontVMetricsOS2", "result_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "coverageTable", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *coverageTable", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -4814,14 +4523,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *coverageTable", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -4829,7 +4538,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -4837,60 +4546,50 @@ "callback_policy": null }, { - "name": "glyph", + "name": "typoAscent", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *typoAscent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *typoAscent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2389, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2389, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2445, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__GetGlyphClass", - "result_type": { - "reference": "stbtt_int32" - }, - "parameters": [ + }, { - "name": "classDefTable", + "name": "typoDescent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *classDefTable", + "source_text": "int *typoDescent", "components": [ { "model": "CPointer", @@ -4898,14 +4597,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *classDefTable", + "source_text": "int *typoDescent", "components": [ { "model": "CPointer", @@ -4913,7 +4614,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -4921,52 +4624,73 @@ "callback_policy": null }, { - "name": "glyph", + "name": "typoLineGap", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *typoLineGap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *typoLineGap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2447, + "line": 779, "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph)" + "source_line": "extern int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2447, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2491, + "line": 779, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__GetGlyphGPOSInfoAdvance", + "name": "stbtt_GetFontBoundingBox", "result_type": { - "reference": "stbtt_int32" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { @@ -4982,15 +4706,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stbtt_fontinfo", - "name": "stbtt_fontinfo", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, @@ -5013,89 +4729,89 @@ "callback_policy": null }, { - "name": "glyph1", + "name": "x0", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph1" + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph1" + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "glyph2", + "name": "y0", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph2" + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph2" + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2496, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2496, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2608, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__hheap_alloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ + }, { - "name": "hh", + "name": "x1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *x1", "components": [ { "model": "CPointer", @@ -5103,161 +4819,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__hheap", - "name": "stbtt__hheap", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbtt__hheap", - "members": [ - { - "name": "head", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct stbtt__hheap_chunk *head", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbtt__hheap_chunk", - "members": [ - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct stbtt__hheap_chunk *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct stbtt__hheap_chunk" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2760, - "column": 4, - "source_line": " struct stbtt__hheap_chunk *next;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2758, - "column": 1, - "source_line": "typedef struct stbtt__hheap_chunk" - } - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2765, - "column": 4, - "source_line": " struct stbtt__hheap_chunk *head;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "first_free", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *first_free", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2766, - "column": 4, - "source_line": " void *first_free;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "num_remaining_in_head_chunk", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_remaining_in_head_chunk" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2767, - "column": 4, - "source_line": " int num_remaining_in_head_chunk;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2763, - "column": 1, - "source_line": "typedef struct stbtt__hheap" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2763, - "column": 1, - "source_line": "typedef struct stbtt__hheap" - }, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *x1", "components": [ { "model": "CPointer", @@ -5265,7 +4836,9 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -5273,28 +4846,11 @@ "callback_policy": null }, { - "name": "size", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t size", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "userdata", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -5302,16 +4858,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -5319,9 +4875,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -5330,34 +4886,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2770, + "line": 785, "column": 1, - "source_line": "static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata)" + "source_line": "extern void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2770, - "column": 1, - "source_line": "static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2789, + "line": 785, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__hheap_free", + "name": "stbtt_GetCodepointHMetrics", "result_type": { "model": "CVoid", "qualifiers": [], @@ -5365,11 +4916,11 @@ }, "parameters": [ { - "name": "hh", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -5377,14 +4928,14 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -5392,7 +4943,7 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, @@ -5400,86 +4951,26 @@ "callback_policy": null }, { - "name": "p", + "name": "codepoint", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int codepoint" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2791, - "column": 1, - "source_line": "static void stbtt__hheap_free(stbtt__hheap *hh, void *p)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2791, - "column": 1, - "source_line": "static void stbtt__hheap_free(stbtt__hheap *hh, void *p)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2795, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__hheap_cleanup", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "hh", + "name": "advanceWidth", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *advanceWidth", "components": [ { "model": "CPointer", @@ -5487,14 +4978,16 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *advanceWidth", "components": [ { "model": "CPointer", @@ -5502,7 +4995,9 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -5510,11 +5005,11 @@ "callback_policy": null }, { - "name": "userdata", + "name": "leftSideBearing", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *leftSideBearing", "components": [ { "model": "CPointer", @@ -5522,16 +5017,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *leftSideBearing", "components": [ { "model": "CPointer", @@ -5539,9 +5034,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -5550,301 +5045,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2797, + "line": 788, "column": 1, - "source_line": "static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata)" + "source_line": "extern void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2797, + "line": 788, "column": 1, - "source_line": "static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2805, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__new_active", + "name": "stbtt_GetCodepointKernAdvance", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt__active_edge", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", + "source_text": "int" + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge", - "name": "stbtt__active_edge", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbtt__active_edge", - "members": [ - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "struct stbtt__active_edge *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "struct stbtt__active_edge" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2815, - "column": 4, - "source_line": " struct stbtt__active_edge *next;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2817, - "column": 4, - "source_line": " int x,dx;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "dx", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2817, - "column": 4, - "source_line": " int x,dx;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ey", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ey" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2818, - "column": 4, - "source_line": " float ey;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "direction", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int direction" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2819, - "column": 4, - "source_line": " int direction;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float fx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2821, - "column": 4, - "source_line": " float fx,fdx,fdy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fdx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float fdx" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2821, - "column": 4, - "source_line": " float fx,fdx,fdy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "fdy", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float fdy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2821, - "column": 4, - "source_line": " float fx,fdx,fdy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "direction", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float direction" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2822, - "column": 4, - "source_line": " float direction;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "sy", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float sy" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2823, - "column": 4, - "source_line": " float sy;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ey", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float ey" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2824, - "column": 4, - "source_line": " float ey;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2813, - "column": 1, - "source_line": "typedef struct stbtt__active_edge" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2813, - "column": 1, - "source_line": "typedef struct stbtt__active_edge" - }, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "hh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -5852,14 +5087,14 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -5867,7 +5102,7 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, @@ -5875,11 +5110,72 @@ "callback_policy": null }, { - "name": "e", + "name": "ch1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ch2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch2" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 793, + "column": 1, + "source_line": "extern int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 793, + "column": 1, + "source_line": "extern int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetCodepointBox", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -5887,135 +5183,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__edge", - "name": "stbtt__edge", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbtt__edge", - "members": [ - { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2808, - "column": 4, - "source_line": " float x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2808, - "column": 4, - "source_line": " float x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2808, - "column": 4, - "source_line": " float x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2808, - "column": 4, - "source_line": " float x0,y0, x1,y1;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "invert", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int invert" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2809, - "column": 4, - "source_line": " int invert;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2807, - "column": 1, - "source_line": "typedef struct stbtt__edge {" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2807, - "column": 1, - "source_line": "typedef struct stbtt__edge {" - }, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6023,7 +5198,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -6031,41 +5206,65 @@ "callback_policy": null }, { - "name": "off_x", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "start_point", + "name": "x0", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float start_point" + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float start_point" + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "userdata", + "name": "y0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -6073,16 +5272,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -6090,71 +5289,60 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2835, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2835, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2855, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g28:b0" - ] - }, - { - "name": "stbtt__new_active", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge", - "components": [ - { - "model": "CPointer", + }, + { + "name": "x1", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "" + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "reference": "stbtt__active_edge" - } - ] - }, - "parameters": [ + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "hh", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -6162,14 +5350,16 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -6177,19 +5367,52 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 796, + "column": 1, + "source_line": "extern int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 796, + "column": 1, + "source_line": "extern int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetGlyphHMetrics", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "e", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6197,14 +5420,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6212,7 +5435,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -6220,41 +5443,65 @@ "callback_policy": null }, { - "name": "off_x", + "name": "glyph_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int glyph_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null }, { - "name": "start_point", + "name": "advanceWidth", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float start_point" + "source_text": "int *advanceWidth", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float start_point" + "source_text": "int *advanceWidth", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "userdata", + "name": "leftSideBearing", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *leftSideBearing", "components": [ { "model": "CPointer", @@ -6262,16 +5509,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *leftSideBearing", "components": [ { "model": "CPointer", @@ -6279,9 +5526,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -6290,50 +5537,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2857, + "line": 799, "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" + "source_line": "extern void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2857, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2873, + "line": 799, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing);" }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g28:b1" - ] + "end": null, + "declaration_locations": [] }, { - "name": "stbtt__fill_active_edges", + "name": "stbtt_GetGlyphKernAdvance", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "scanline", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6341,16 +5579,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6358,9 +5594,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, @@ -6368,112 +5602,72 @@ "callback_policy": null }, { - "name": "len", + "name": "glyph1", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int glyph1" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__active_edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__active_edge" - } - ] + "source_text": "int glyph1" }, "source_location": null, "callback_policy": null }, { - "name": "max_weight", + "name": "glyph2", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int max_weight" + "source_text": "int glyph2" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int max_weight" + "source_text": "int glyph2" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2882, + "line": 800, "column": 1, - "source_line": "static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight)" + "source_line": "extern int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2882, - "column": 1, - "source_line": "static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2922, + "line": 800, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__rasterize_sorted_edges", + "name": "stbtt_GetGlyphBox", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "result", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6481,20 +5675,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__bitmap", - "name": "stbtt__bitmap", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -6502,7 +5690,7 @@ "source_text": "" }, { - "reference": "stbtt__bitmap" + "reference": "stbtt_fontinfo" } ] }, @@ -6510,11 +5698,26 @@ "callback_policy": null }, { - "name": "e", + "name": "glyph_index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph_index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph_index" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -6522,14 +5725,16 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -6537,7 +5742,9 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -6545,71 +5752,11 @@ "callback_policy": null }, { - "name": "n", + "name": "y0", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vsubsample", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "userdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -6617,16 +5764,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -6634,61 +5781,21 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2924, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2924, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g29:b0" - ] - }, - { - "name": "stbtt__handle_clipped_edge", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "scanline", + "name": "x1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "int *x1", "components": [ { "model": "CPointer", @@ -6696,16 +5803,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "int *x1", "components": [ { "model": "CPointer", @@ -6713,9 +5820,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -6723,26 +5830,11 @@ "callback_policy": null }, { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -6750,14 +5842,16 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -6765,412 +5859,398 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3028, + "line": 801, "column": 1, - "source_line": "static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1)" + "source_line": "extern int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3028, - "column": 1, - "source_line": "static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3063, + "line": 801, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__sized_trapezoid_area", + "name": "stbtt_GetKerningTableLength", "result_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" }, "parameters": [ { - "name": "height", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "top_width", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float top_width" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float top_width" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bottom_width", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bottom_width" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bottom_width" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3065, + "line": 811, "column": 1, - "source_line": "static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width)" + "source_line": "extern int stbtt_GetKerningTableLength(const stbtt_fontinfo *info);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3065, - "column": 1, - "source_line": "static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3070, + "line": 811, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetKerningTableLength(const stbtt_fontinfo *info);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__position_trapezoid_area", + "name": "stbtt_GetKerningTable", "result_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" }, "parameters": [ { - "name": "height", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx1" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "bx0", + "name": "table", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bx0" + "source_text": "stbtt_kerningentry * table", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbtt_kerningentry", + "name": "stbtt_kerningentry", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbtt_kerningentry", + "members": [ + { + "name": "glyph1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 806, + "column": 4, + "source_line": " int glyph1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "glyph2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph2" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 807, + "column": 4, + "source_line": " int glyph2;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "advance", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int advance" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 808, + "column": 4, + "source_line": " int advance;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 804, + "column": 1, + "source_line": "typedef struct stbtt_kerningentry" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 804, + "column": 1, + "source_line": "typedef struct stbtt_kerningentry" + }, + "declaration_locations": [] + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bx0" + "source_text": "stbtt_kerningentry * table", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_kerningentry" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "bx1", + "name": "table_length", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float bx1" + "source_text": "int table_length" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float bx1" + "source_text": "int table_length" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3072, + "line": 812, "column": 1, - "source_line": "static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1)" + "source_line": "extern int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3072, - "column": 1, - "source_line": "static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3075, + "line": 812, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__sized_triangle_area", + "name": "stbtt_IsGlyphEmpty", "result_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" }, "parameters": [ { - "name": "height", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "width", + "name": "glyph_index", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float width" + "source_text": "int glyph_index" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float width" + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3077, + "line": 842, "column": 1, - "source_line": "static float stbtt__sized_triangle_area(float height, float width)" + "source_line": "extern int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3077, - "column": 1, - "source_line": "static float stbtt__sized_triangle_area(float height, float width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3080, + "line": 842, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__fill_active_edges_new", + "name": "stbtt_GetCodepointShape", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "scanline", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *scanline", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scanline_fill", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline_fill", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7178,16 +6258,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline_fill", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7195,9 +6273,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -7205,113 +6281,32 @@ "callback_policy": null }, { - "name": "len", + "name": "unicode_codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int unicode_codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int unicode_codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "vertices", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, - { - "reference": "stbtt__active_edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__active_edge" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_top", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y_top" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y_top" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3082, - "column": 1, - "source_line": "static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3082, - "column": 1, - "source_line": "static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3294, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__rasterize_sorted_edges", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__bitmap *result", - "components": [ { "model": "CPointer", "qualifiers": [], @@ -7320,10 +6315,182 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "stbtt__bitmap", - "name": "stbtt__bitmap", - "type": null, - "source_location": null, + "source_text": "stbtt_vertex", + "name": "stbtt_vertex", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short x" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "y", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short y" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cx", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short cx" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cy", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short cy" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cx1", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short cx1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "cy1", + "type": { + "model": "CShort", + "qualifiers": [], + "source_text": "short cy1" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 837, + "column": 7, + "source_line": " short x,y,cx,cy,cx1,cy1;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 838, + "column": 7, + "source_line": " unsigned char type,padding;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "padding", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char padding" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 838, + "column": 7, + "source_line": " unsigned char type,padding;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 835, + "column": 4, + "source_line": " typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 835, + "column": 4, + "source_line": " typedef struct" + }, "declaration_locations": [] } ] @@ -7331,7 +6498,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -7339,19 +6506,55 @@ "source_text": "" }, { - "reference": "stbtt__bitmap" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 845, + "column": 1, + "source_line": "extern int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 845, + "column": 1, + "source_line": "extern int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetGlyphShape", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "e", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7359,14 +6562,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *e", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7374,7 +6577,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -7382,71 +6585,26 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vsubsample", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_y", + "name": "glyph_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_y" + "source_text": "int glyph_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_y" + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null }, { - "name": "userdata", + "name": "vertices", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -7454,16 +6612,19 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CPointer", "qualifiers": [], - "source_text": "void" + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -7471,9 +6632,12 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CPointer", "qualifiers": [], - "source_text": "void" + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, @@ -7482,38 +6646,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3297, + "line": 846, "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" + "source_line": "extern int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3297, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3392, + "line": 846, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices);" }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g29:b1" - ] + "end": null, + "declaration_locations": [] }, { - "name": "stbtt__sort_edges_ins_sort", + "name": "stbtt_FreeShape", "result_type": { "model": "CVoid", "qualifiers": [], @@ -7521,11 +6676,11 @@ }, "parameters": [ { - "name": "p", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7533,14 +6688,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7548,7 +6703,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -7556,62 +6711,89 @@ "callback_policy": null }, { - "name": "n", + "name": "vertices", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3399, + "line": 857, "column": 1, - "source_line": "static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n)" + "source_line": "extern void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3399, - "column": 1, - "source_line": "static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3415, + "line": 857, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__sort_edges_quicksort", + "name": "stbtt_FindSVGDoc", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "p", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7619,14 +6801,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7634,7 +6816,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -7642,62 +6824,57 @@ "callback_policy": null }, { - "name": "n", + "name": "gl", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int gl" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int gl" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3417, + "line": 860, "column": 1, - "source_line": "static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n)" + "source_line": "extern unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3417, + "line": 860, "column": 1, - "source_line": "static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3477, - "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__sort_edges", + "name": "stbtt_GetCodepointSVG", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7705,14 +6882,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7720,7 +6897,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -7728,62 +6905,110 @@ "callback_policy": null }, { - "name": "n", + "name": "unicode_codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int unicode_codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int unicode_codepoint" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "svg", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **svg", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char **svg", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3479, + "line": 861, "column": 1, - "source_line": "static void stbtt__sort_edges(stbtt__edge *p, int n)" + "source_line": "extern int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3479, - "column": 1, - "source_line": "static void stbtt__sort_edges(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3483, + "line": 861, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__rasterize", + "name": "stbtt_GetGlyphSVG", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "result", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7791,20 +7016,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__bitmap", - "name": "stbtt__bitmap", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -7812,7 +7031,7 @@ "source_text": "" }, { - "reference": "stbtt__bitmap" + "reference": "stbtt_fontinfo" } ] }, @@ -7820,11 +7039,26 @@ "callback_policy": null }, { - "name": "pts", + "name": "gl", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int gl" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int gl" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "svg", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *pts", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -7832,78 +7066,23 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CPointer", "qualifiers": [], - "source_text": "stbtt__point", - "name": "stbtt__point", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3487, - "column": 4, - "source_line": " float x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3487, - "column": 4, - "source_line": " float x,y;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_truetype.h:3485:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3485, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3485, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *pts", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -7911,19 +7090,59 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 862, + "column": 1, + "source_line": "extern int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 862, + "column": 1, + "source_line": "extern int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_FreeBitmap", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "wcount", + "name": "bitmap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *wcount", + "source_text": "unsigned char *bitmap", "components": [ { "model": "CPointer", @@ -7931,16 +7150,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *wcount", + "source_text": "unsigned char *bitmap", "components": [ { "model": "CPointer", @@ -7948,135 +7167,15 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null }, - { - "name": "windings", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int windings" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int windings" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale_x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scale_y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale_y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shift_x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float shift_x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float shift_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "shift_y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float shift_y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float shift_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "off_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "invert", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int invert" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int invert" - }, - "source_location": null, - "callback_policy": null - }, { "name": "userdata", "type": { @@ -8118,46 +7217,53 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3490, + "line": 871, "column": 1, - "source_line": "static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata)" + "source_line": "extern void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3490, - "column": 1, - "source_line": "static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3545, + "line": 871, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__add_point", + "name": "stbtt_GetCodepointBitmap", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "points", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8165,14 +7271,14 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8180,7 +7286,7 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, @@ -8188,92 +7294,56 @@ "callback_policy": null }, { - "name": "n", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int n" + "source_text": "float scale_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int n" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "x", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "codepoint", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int codepoint" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3547, - "column": 1, - "source_line": "static void stbtt__add_point(stbtt__point *points, int n, float x, float y)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3547, - "column": 1, - "source_line": "static void stbtt__add_point(stbtt__point *points, int n, float x, float y)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3552, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__tesselate_curve", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "points", + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -8281,14 +7351,16 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -8296,7 +7368,9 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -8304,11 +7378,11 @@ "callback_policy": null }, { - "name": "num_points", + "name": "height", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -8325,7 +7399,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -8343,155 +7417,417 @@ "callback_policy": null }, { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", + "name": "xoff", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float y0" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float y0" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "x1", + "name": "yoff", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x1" + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x1" + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 874, + "column": 1, + "source_line": "extern unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 874, + "column": 1, + "source_line": "extern unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetCodepointBitmapSubpixel", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ { - "name": "y1", + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y1" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y1" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "x2", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x2" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x2" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "shift_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float shift_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "objspace_flatness_squared", + "name": "shift_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float shift_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "xoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "yoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3555, + "line": 883, "column": 1, - "source_line": "static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)" + "source_line": "extern unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3555, - "column": 1, - "source_line": "static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3573, + "line": 883, "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__tesselate_cubic", + "name": "stbtt_MakeCodepointBitmap", "result_type": { "model": "CVoid", "qualifiers": [], @@ -8499,11 +7835,11 @@ }, "parameters": [ { - "name": "points", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8511,14 +7847,14 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8526,7 +7862,7 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, @@ -8534,11 +7870,11 @@ "callback_policy": null }, { - "name": "num_points", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -8546,16 +7882,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -8563,9 +7899,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, @@ -8573,207 +7909,357 @@ "callback_policy": null }, { - "name": "x0", + "name": "out_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x0" + "source_text": "int out_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x0" + "source_text": "int out_w" }, "source_location": null, "callback_policy": null }, { - "name": "y0", + "name": "out_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y0" + "source_text": "int out_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y0" + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "x1", + "name": "out_stride", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x1" + "source_text": "int out_stride" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x1" + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "y1", + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y1" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y1" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "x2", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x2" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x2" + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 887, + "column": 1, + "source_line": "extern void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 887, + "column": 1, + "source_line": "extern void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_MakeCodepointBitmapSubpixel", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "x3", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x3" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x3" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "y3", + "name": "shift_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y3" + "source_text": "float shift_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y3" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "objspace_flatness_squared", + "name": "shift_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float shift_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3575, + "line": 893, "column": 1, - "source_line": "static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n)" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3575, - "column": 1, - "source_line": "static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3615, + "line": 893, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_FlattenCurves", + "name": "stbtt_MakeCodepointBitmapSubpixelPrefilter", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "stbtt__point", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__point" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "vertices", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8781,20 +8267,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -8802,7 +8282,7 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_fontinfo" } ] }, @@ -8810,41 +8290,11 @@ "callback_policy": null }, { - "name": "num_verts", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_verts" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_verts" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "objspace_flatness", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float objspace_flatness" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float objspace_flatness" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "contour_lengths", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **contour_lengths", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -8852,21 +8302,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int **contour_lengths", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -8874,14 +8319,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, @@ -8889,293 +8329,185 @@ "callback_policy": null }, { - "name": "num_contours", + "name": "out_w", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *num_contours", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int out_w" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *num_contours", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int out_w" }, "source_location": null, "callback_policy": null }, { - "name": "userdata", + "name": "out_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int out_h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int out_h" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3618, - "column": 1, - "source_line": "static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3618, - "column": 1, - "source_line": "static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3693, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt_BakeFontBitmap_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "data", + "name": "out_stride", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int out_stride" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "offset", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int offset" + "source_text": "float scale_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int offset" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "pixel_height", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float pixel_height" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float pixel_height" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "pixels", + "name": "shift_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float shift_x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "pw", + "name": "shift_y", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int pw" + "source_text": "float shift_y" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int pw" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "ph", + "name": "oversample_x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int ph" + "source_text": "int oversample_x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int ph" + "source_text": "int oversample_x" }, "source_location": null, "callback_policy": null }, { - "name": "first_char", + "name": "oversample_y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int first_char" + "source_text": "int oversample_y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int first_char" + "source_text": "int oversample_y" }, "source_location": null, "callback_policy": null }, { - "name": "num_chars", + "name": "sub_x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_chars" + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_chars" + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "chardata", + "name": "sub_y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_bakedchar *chardata", + "source_text": "float *sub_y", "components": [ { "model": "CPointer", @@ -9183,20 +8515,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt_bakedchar", - "name": "stbtt_bakedchar", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_bakedchar *chardata", + "source_text": "float *sub_y", "components": [ { "model": "CPointer", @@ -9204,43 +8532,55 @@ "source_text": "" }, { - "reference": "stbtt_bakedchar" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3813, + "line": 897, "column": 1, - "source_line": "static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf)" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3813, - "column": 1, - "source_line": "static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3857, + "line": 897, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbrp_init_target", + "name": "stbtt_GetCodepointBitmapBox", "result_type": { "model": "CVoid", "qualifiers": [], @@ -9248,11 +8588,11 @@ }, "parameters": [ { - "name": "con", + "name": "font", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -9260,143 +8600,22 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbrp_context", - "name": "stbrp_context", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "width", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int width" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3902, - "column": 4, - "source_line": " int width,height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "height", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int height" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3902, - "column": 4, - "source_line": " int width,height;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3903, - "column": 4, - "source_line": " int x,y,bottom_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3903, - "column": 4, - "source_line": " int x,y,bottom_y;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "bottom_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int bottom_y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3903, - "column": 4, - "source_line": " int x,y,bottom_y;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_truetype.h:3900:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3900, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3900, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbrp_context *con", - "components": [ - { - "model": "CPointer", + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "stbrp_context" + "reference": "stbtt_fontinfo" } ] }, @@ -9404,41 +8623,56 @@ "callback_policy": null }, { - "name": "pw", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int pw" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int pw" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "ph", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int ph" + "source_text": "float scale_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int ph" + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "nodes", + "name": "ix0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *nodes", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -9446,59 +8680,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbrp_node", - "name": "stbrp_node", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3908, - "column": 4, - "source_line": " unsigned char x;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_truetype.h:3906:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3906, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3906, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *nodes", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -9506,7 +8697,9 @@ "source_text": "" }, { - "reference": "stbrp_node" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -9514,62 +8707,11 @@ "callback_policy": null }, { - "name": "num_nodes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_nodes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_nodes" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3917, - "column": 1, - "source_line": "static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3917, - "column": 1, - "source_line": "static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3926, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbrp_pack_rects", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "con", + "name": "iy0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "int *iy0", "components": [ { "model": "CPointer", @@ -9577,14 +8719,16 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "int *iy0", "components": [ { "model": "CPointer", @@ -9592,7 +8736,9 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -9600,11 +8746,11 @@ "callback_policy": null }, { - "name": "rects", + "name": "ix1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_rect *rects", + "source_text": "int *ix1", "components": [ { "model": "CPointer", @@ -9612,20 +8758,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stbrp_rect", - "name": "stbrp_rect", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_rect *rects", + "source_text": "int *ix1", "components": [ { "model": "CPointer", @@ -9633,7 +8775,9 @@ "source_text": "" }, { - "reference": "stbrp_rect" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -9641,50 +8785,69 @@ "callback_policy": null }, { - "name": "num_rects", + "name": "iy1", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_rects" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_rects" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3928, + "line": 901, "column": 1, - "source_line": "static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects)" + "source_line": "extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3928, - "column": 1, - "source_line": "static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3947, + "line": 901, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__h_prefilter", + "name": "stbtt_GetCodepointBitmapBoxSubpixel", "result_type": { "model": "CVoid", "qualifiers": [], @@ -9692,11 +8855,11 @@ }, "parameters": [ { - "name": "pixels", + "name": "font", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -9704,16 +8867,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -9721,9 +8882,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, @@ -9731,293 +8890,86 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int h" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "stride_in_bytes", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "kernel_width", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int kernel_width" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int kernel_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4012, - "column": 1, - "source_line": "static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4012, - "column": 1, - "source_line": "static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4072, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__v_prefilter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "pixels", + "name": "scale_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float scale_x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "w", + "name": "scale_y", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int w" + "source_text": "float scale_y" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int w" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "h", + "name": "shift_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int h" + "source_text": "float shift_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int h" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "stride_in_bytes", + "name": "shift_y", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "float shift_y" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "kernel_width", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int kernel_width" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int kernel_width" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4074, - "column": 1, - "source_line": "static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4074, - "column": 1, - "source_line": "static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4134, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__oversample_shift", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "oversample", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int oversample" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int oversample" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4136, - "column": 1, - "source_line": "static float stbtt__oversample_shift(int oversample)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4136, - "column": 1, - "source_line": "static float stbtt__oversample_shift(int oversample)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4146, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__ray_intersect_bezier", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "orig", + "name": "ix0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float orig[2]", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -10025,30 +8977,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float orig[2]", + "source_text": "int *ix0", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -10056,11 +9004,11 @@ "callback_policy": null }, { - "name": "ray", + "name": "iy0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ray[2]", + "source_text": "int *iy0", "components": [ { "model": "CPointer", @@ -10068,30 +9016,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ray[2]", + "source_text": "int *iy0", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -10099,11 +9043,11 @@ "callback_policy": null }, { - "name": "q0", + "name": "ix1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q0[2]", + "source_text": "int *ix1", "components": [ { "model": "CPointer", @@ -10111,30 +9055,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q0[2]", + "source_text": "int *ix1", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -10142,11 +9082,11 @@ "callback_policy": null }, { - "name": "q1", + "name": "iy1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q1[2]", + "source_text": "int *iy1", "components": [ { "model": "CPointer", @@ -10154,73 +9094,104 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q1[2]", + "source_text": "int *iy1", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "q2", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float q2[2]", - "components": [ - { - "model": "CPointer", + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 908, + "column": 1, + "source_line": "extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 908, + "column": 1, + "source_line": "extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbtt_GetGlyphBitmap", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q2[2]", + "source_text": "const stbtt_fontinfo *info", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -10228,11 +9199,56 @@ "callback_policy": null }, { - "name": "hits", + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float hits[2][2]", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -10240,96 +9256,77 @@ "source_text": "" }, { - "model": "CArray", + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float hits[2][2]", + "source_text": "int *height", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CArray", + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4398, - "column": 1, - "source_line": "static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2])" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4398, - "column": 1, - "source_line": "static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2])" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4460, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "equal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "a", + "name": "xoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *a", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -10337,16 +9334,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *a", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -10354,9 +9351,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -10364,11 +9361,11 @@ "callback_policy": null }, { - "name": "b", + "name": "yoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *b", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -10376,16 +9373,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *b", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -10393,9 +9390,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -10404,264 +9401,202 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4462, + "line": 914, "column": 1, - "source_line": "static int equal(float *a, float *b)" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4462, + "line": 914, "column": 1, - "source_line": "static int equal(float *a, float *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4465, - "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__compute_crossings_x", + "name": "stbtt_GetGlyphBitmapSubpixel", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "x", + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "nverts", + "name": "shift_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int nverts" + "source_text": "float shift_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int nverts" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "verts", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_vertex *verts", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_vertex", - "name": "stbtt_vertex", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_vertex *verts", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4467, - "column": 1, - "source_line": "static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4467, - "column": 1, - "source_line": "static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4533, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__cuberoot", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4535, - "column": 1, - "source_line": "static float stbtt__cuberoot( float x )" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4535, - "column": 1, - "source_line": "static float stbtt__cuberoot( float x )" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4541, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__solve_cubic", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", + "name": "shift_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float shift_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float a" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "glyph", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float b" + "source_text": "int glyph" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float b" + "source_text": "int glyph" }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "width", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float c" + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float c" + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "r", + "name": "height", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * r", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -10669,16 +9604,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * r", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -10686,55 +9621,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4544, - "column": 1, - "source_line": "static int stbtt__solve_cubic(float a, float b, float c, float* r)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4544, - "column": 1, - "source_line": "static int stbtt__solve_cubic(float a, float b, float c, float* r)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4573, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__CompareUTF8toUTF16_bigendian_prefix", - "result_type": { - "reference": "stbtt_int32" - }, - "parameters": [ + }, { - "name": "s1", + "name": "xoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s1", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -10742,14 +9643,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s1", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -10757,7 +9660,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -10765,22 +9670,11 @@ "callback_policy": null }, { - "name": "len1", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s2", + "name": "yoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s2", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -10788,14 +9682,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s2", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -10803,66 +9699,52 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len2", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4778, + "line": 915, "column": 1, - "source_line": "static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2)" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4778, - "column": 1, - "source_line": "static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4815, + "line": 915, "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_CompareUTF8toUTF16_bigendian_internal", + "name": "stbtt_MakeGlyphBitmap", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "s1", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *s1", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -10870,16 +9752,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *s1", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -10887,9 +9767,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [], - "source_text": "char" + "reference": "stbtt_fontinfo" } ] }, @@ -10897,26 +9775,11 @@ "callback_policy": null }, { - "name": "len1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s2", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *s2", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -10924,16 +9787,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *s2", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -10941,9 +9804,9 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, @@ -10951,212 +9814,132 @@ "callback_policy": null }, { - "name": "len2", + "name": "out_w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len2" + "source_text": "int out_w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len2" + "source_text": "int out_w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4817, - "column": 1, - "source_line": "static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4817, - "column": 1, - "source_line": "static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4820, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbtt__matchpair", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "fc", + "name": "out_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int out_h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "nm", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "name", + "name": "out_stride", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *name", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int out_stride" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbtt_uint8 *name", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_uint8" - } - ] + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "nlen", + "name": "scale_x", "type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "target_id", + "name": "scale_y", "type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "next_id", + "name": "glyph", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4845, + "line": 916, "column": 1, - "source_line": "static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id)" + "source_line": "extern void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4845, - "column": 1, - "source_line": "static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4890, + "line": 916, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt__matches", + "name": "stbtt_MakeGlyphBitmapSubpixel", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "fc", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -11164,14 +9947,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -11179,7 +9962,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -11187,22 +9970,11 @@ "callback_policy": null }, { - "name": "offset", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "name", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -11210,14 +9982,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -11225,7 +9999,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -11233,58 +10009,162 @@ "callback_policy": null }, { - "name": "flags", + "name": "out_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4892, + "line": 917, "column": 1, - "source_line": "static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags)" + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4892, - "column": 1, - "source_line": "static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4919, + "line": 917, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbtt_FindMatchingFont_internal", + "name": "stbtt_MakeGlyphBitmapSubpixelPrefilter", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "font_collection", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -11292,16 +10172,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -11309,9 +10187,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, @@ -11319,11 +10195,11 @@ "callback_policy": null }, { - "name": "name_utf8", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *name_utf8", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -11331,16 +10207,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *name_utf8", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -11348,9 +10224,9 @@ "source_text": "" }, { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, @@ -11358,3969 +10234,3503 @@ "callback_policy": null }, { - "name": "flags", + "name": "out_w", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4921, - "column": 1, - "source_line": "static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4921, - "column": 1, - "source_line": "static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4930, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_truetype.h:1897:1" - }, - { - "reference": "struct stbtt__hheap_chunk" - }, - { - "reference": "struct stbtt__hheap" - }, - { - "reference": "struct stbtt__edge" - }, - { - "reference": "struct stbtt__active_edge" - }, - { - "reference": "struct@stb/stb_truetype.h:3485:1" - }, - { - "reference": "struct@stb/stb_truetype.h:3900:1" - }, - { - "reference": "struct@stb/stb_truetype.h:3906:1" - }, - { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "stbrp_rect", - "members": [ - { - "name": "x", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbrp_coord", - "name": "stbrp_coord", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "typedef int stbrp_coord" - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3887, - "column": 1, - "source_line": "typedef int stbrp_coord;" - }, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3913, - "column": 4, - "source_line": " stbrp_coord x,y;" - }, - "callback_policy": null, - "declaration_locations": [] }, { - "name": "y", + "name": "out_h", "type": { - "reference": "stbrp_coord" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3913, - "column": 4, - "source_line": " stbrp_coord x,y;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "id", + "name": "out_stride", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int id" + "source_text": "int out_stride" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3914, - "column": 4, - "source_line": " int id,w,h,was_packed;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" }, - "callback_policy": null, - "declaration_locations": [] + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null }, { - "name": "w", + "name": "oversample_x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int oversample_x" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3914, - "column": 4, - "source_line": " int id,w,h,was_packed;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int oversample_x" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "h", + "name": "oversample_y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int h" + "source_text": "int oversample_y" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3914, - "column": 4, - "source_line": " int id,w,h,was_packed;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int oversample_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sub_x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sub_y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "was_packed", + "name": "glyph", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int was_packed" + "source_text": "int glyph" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3914, - "column": 4, - "source_line": " int id,w,h,was_packed;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null } ], - "anonymous_id": null, - "is_incomplete": false, + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3911, + "line": 918, "column": 1, - "source_line": "struct stbrp_rect" - } - } - ], - "unions": [], - "enums": [], - "typedefs": [ - { - "reference": "stbtt_uint8" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_int8", - "name": "stbtt_int8", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "typedef signed char stbtt_int8" + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph);" }, - "source_location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 429, - "column": 4, - "source_line": " typedef signed char stbtt_int8;" + "line": 918, + "column": 1, + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph);" }, + "end": null, "declaration_locations": [] }, { - "reference": "stbtt_uint16" - }, - { - "reference": "stbtt_int16" - }, - { - "reference": "stbtt_uint32" - }, - { - "reference": "stbtt_int32" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__check_size32", - "name": "stbtt__check_size32", - "type": { - "model": "CComposedType", + "name": "stbtt_GetGlyphBitmapBox", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "sizeof(stbtt_int32)==4 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 436, - "column": 4, - "source_line": " typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1];" + "source_text": "void" }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__check_size16", - "name": "stbtt__check_size16", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]", - "components": [ - { - "model": "CArray", + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "sizeof(stbtt_int16)==2 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 437, - "column": 4, - "source_line": " typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1];" - }, - "declaration_locations": [] - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__test_oversample_pow2", - "name": "stbtt__test_oversample_pow2", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, - { + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { "model": "CInt", "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1116, - "column": 1, - "source_line": "typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1];" - }, - "declaration_locations": [] - }, - { - "reference": "stbtt__csctx" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt__hheap_chunk", - "name": "stbtt__hheap_chunk", - "type": { - "reference": "struct stbtt__hheap_chunk" - }, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2758, - "column": 1, - "source_line": "typedef struct stbtt__hheap_chunk" - }, - "declaration_locations": [] - }, - { - "reference": "stbtt__hheap" - }, - { - "reference": "stbtt__edge" - }, - { - "reference": "stbtt__active_edge" - }, - { - "reference": "stbtt__point" - }, - { - "reference": "stbrp_coord" - }, - { - "reference": "stbrp_context" - }, - { - "reference": "stbrp_node" - } - ], - "variables": [ - { - "name": "ttf_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char ttf_buffer[1<<20]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "1<<20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int glyph" }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 281, - "column": 1, - "source_line": "unsigned char ttf_buffer[1<<20];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "temp_bitmap", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char temp_bitmap[512*512]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "512*512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int glyph" }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 282, - "column": 1, - "source_line": "unsigned char temp_bitmap[512*512];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "cdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_bakedchar cdata[96]", - "components": [ - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "96", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float scale_x" }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbtt_bakedchar", - "name": "stbtt_bakedchar", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 284, - "column": 1, - "source_line": "stbtt_bakedchar cdata[96]; // ASCII 32..126 is 95 glyphs" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ftex", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "GLuint ftex", - "name": "GLuint", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 285, - "column": 1, - "source_line": "GLuint ftex;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char buffer[24<<20]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "24<<20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float scale_x" }, - { - "model": "CChar", + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 372, - "column": 1, - "source_line": "char buffer[24<<20];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "screen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char screen[20][79]", - "components": [ - { - "model": "CArray", + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float scale_y" }, - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "ix0", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "79", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "model": "CUnsignedChar", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 373, - "column": 1, - "source_line": "unsigned char screen[20][79];" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_TRUETYPE_IMPLEMENTATION", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 278, - "column": 1, - "source_line": "#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation" - } - }, - { - "name": "STB_TRUETYPE_IMPLEMENTATION", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 329, - "column": 1, - "source_line": "#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation" - } - }, - { - "name": "STBTT_ifloor", - "value": "((int) floor(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 442, - "column": 4, - "source_line": " #define STBTT_ifloor(x) ((int) floor(x))" - } - }, - { - "name": "STBTT_iceil", - "value": "((int) ceil(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 443, - "column": 4, - "source_line": " #define STBTT_iceil(x) ((int) ceil(x))" - } - }, - { - "name": "STBTT_sqrt", - "value": "sqrt(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 448, - "column": 4, - "source_line": " #define STBTT_sqrt(x) sqrt(x)" - } - }, - { - "name": "STBTT_pow", - "value": "pow(x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 449, - "column": 4, - "source_line": " #define STBTT_pow(x,y) pow(x,y)" - } - }, - { - "name": "STBTT_fmod", - "value": "fmod(x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 454, - "column": 4, - "source_line": " #define STBTT_fmod(x,y) fmod(x,y)" - } - }, - { - "name": "STBTT_cos", - "value": "cos(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 459, - "column": 4, - "source_line": " #define STBTT_cos(x) cos(x)" - } - }, - { - "name": "STBTT_acos", - "value": "acos(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 460, - "column": 4, - "source_line": " #define STBTT_acos(x) acos(x)" - } - }, - { - "name": "STBTT_fabs", - "value": "fabs(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 465, - "column": 4, - "source_line": " #define STBTT_fabs(x) fabs(x)" - } - }, - { - "name": "STBTT_malloc", - "value": "((void)(u),malloc(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 471, - "column": 4, - "source_line": " #define STBTT_malloc(x,u) ((void)(u),malloc(x))" - } - }, - { - "name": "STBTT_free", - "value": "((void)(u),free(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 472, - "column": 4, - "source_line": " #define STBTT_free(x,u) ((void)(u),free(x))" - } - }, - { - "name": "STBTT_assert", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 477, - "column": 4, - "source_line": " #define STBTT_assert(x) assert(x)" - } - }, - { - "name": "STBTT_strlen", - "value": "strlen(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 482, - "column": 4, - "source_line": " #define STBTT_strlen(x) strlen(x)" - } - }, - { - "name": "STBTT_memcpy", - "value": "memcpy", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 487, - "column": 4, - "source_line": " #define STBTT_memcpy memcpy" - } - }, - { - "name": "STBTT_memset", - "value": "memset", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 488, - "column": 4, - "source_line": " #define STBTT_memset memset" - } - }, - { - "name": "__STB_INCLUDE_STB_TRUETYPE_H__", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 500, - "column": 1, - "source_line": "#define __STB_INCLUDE_STB_TRUETYPE_H__" - } - }, - { - "name": "STBTT_DEF", - "value": "static", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 503, - "column": 1, - "source_line": "#define STBTT_DEF static" - } - }, - { - "name": "STBTT_DEF", - "value": "extern", - "function_like": false, - "directive": "define", + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 505, + "line": 919, "column": 1, - "source_line": "#define STBTT_DEF extern" - } - }, - { - "name": "STBTT_POINT_SIZE", - "value": "(-(x))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "extern void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 602, + "line": 919, "column": 1, - "source_line": "#define STBTT_POINT_SIZE(x) (-(x))" - } - }, - { - "name": "stbtt_vertex_type", - "value": "short", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 834, - "column": 4, - "source_line": " #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file" - } + "source_line": "extern void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "end": null, + "declaration_locations": [] }, { - "name": "STBTT_MACSTYLE_DONTCARE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1026, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_DONTCARE 0" - } - }, - { - "name": "STBTT_MACSTYLE_BOLD", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1027, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_BOLD 1" - } - }, - { - "name": "STBTT_MACSTYLE_ITALIC", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1028, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_ITALIC 2" - } - }, - { - "name": "STBTT_MACSTYLE_UNDERSCORE", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1029, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_UNDERSCORE 4" - } - }, - { - "name": "STBTT_MACSTYLE_NONE", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1030, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0" - } - }, - { - "name": "STBTT_MAX_OVERSAMPLE", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1109, - "column": 1, - "source_line": "#define STBTT_MAX_OVERSAMPLE 8" - } - }, - { - "name": "STBTT_RASTERIZER_VERSION", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1119, - "column": 1, - "source_line": "#define STBTT_RASTERIZER_VERSION 2" - } - }, - { - "name": "STBTT__NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1123, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBTT__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1125, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "stbtt__buf_get16", - "value": "stbtt__buf_get((b), 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1178, - "column": 1, - "source_line": "#define stbtt__buf_get16(b) stbtt__buf_get((b), 2)" - } - }, - { - "name": "stbtt__buf_get32", - "value": "stbtt__buf_get((b), 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1179, - "column": 1, - "source_line": "#define stbtt__buf_get32(b) stbtt__buf_get((b), 4)" - } - }, - { - "name": "ttBYTE", - "value": "(* (stbtt_uint8 *) (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1282, - "column": 1, - "source_line": "#define ttBYTE(p) (* (stbtt_uint8 *) (p))" - } - }, - { - "name": "ttCHAR", - "value": "(* (stbtt_int8 *) (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1283, - "column": 1, - "source_line": "#define ttCHAR(p) (* (stbtt_int8 *) (p))" - } - }, - { - "name": "ttFixed", - "value": "ttLONG(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1284, - "column": 1, - "source_line": "#define ttFixed(p) ttLONG(p)" - } - }, - { - "name": "stbtt_tag4", - "value": "((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1291, - "column": 1, - "source_line": "#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))" - } - }, - { - "name": "stbtt_tag", - "value": "stbtt_tag4(p,str[0],str[1],str[2],str[3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1292, - "column": 1, - "source_line": "#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3])" - } - }, - { - "name": "STBTT__CSCTX_INIT", - "value": "{bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1909, - "column": 1, - "source_line": "#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}" - } - }, - { - "name": "STBTT__CSERR", - "value": "(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2018, - "column": 1, - "source_line": "#define STBTT__CSERR(s) (0)" - } - }, - { - "name": "STBTT__CSERR", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2266, - "column": 1, - "source_line": "#undef STBTT__CSERR" - } - }, - { - "name": "STBTT_GPOS_TODO_assert", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2494, - "column": 1, - "source_line": "#define STBTT_GPOS_TODO_assert(x)" - } - }, - { - "name": "STBTT_FIXSHIFT", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2831, - "column": 1, - "source_line": "#define STBTT_FIXSHIFT 10" - } - }, - { - "name": "STBTT_FIX", - "value": "(1 << STBTT_FIXSHIFT)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2832, - "column": 1, - "source_line": "#define STBTT_FIX (1 << STBTT_FIXSHIFT)" - } - }, - { - "name": "STBTT_FIXMASK", - "value": "(STBTT_FIX-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2833, - "column": 1, - "source_line": "#define STBTT_FIXMASK (STBTT_FIX-1)" - } - }, - { - "name": "STBTT__COMPARE", - "value": "((a)->y0 < (b)->y0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3397, - "column": 1, - "source_line": "#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0)" - } - }, - { - "name": "STBTT__OVER_MASK", - "value": "(STBTT_MAX_OVERSAMPLE-1)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4010, - "column": 1, - "source_line": "#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1)" - } - }, - { - "name": "STBTT_min", - "value": "((a) < (b) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4395, - "column": 1, - "source_line": "#define STBTT_min(a,b) ((a) < (b) ? (a) : (b))" - } - }, - { - "name": "STBTT_max", - "value": "((a) < (b) ? (b) : (a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4396, - "column": 1, - "source_line": "#define STBTT_max(a,b) ((a) < (b) ? (b) : (a))" - } - } - ], - "includes": [ - { - "target": "stb_truetype.h", - "kind": "local", - "resolved_path": "stb/stb_truetype.h", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 279, - "column": 1, - "source_line": "#include \"stb_truetype.h\"" - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 328, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stb_truetype.h", - "kind": "local", - "resolved_path": "stb/stb_truetype.h", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 330, - "column": 1, - "source_line": "#include \"stb_truetype.h\"" - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 441, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 447, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 453, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 458, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 464, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 470, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 476, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 481, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 486, - "column": 4, - "source_line": " #include " - } - } - ], - "raw_directives": [ - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 277, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 320, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 327, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 352, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 371, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 413, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_TRUETYPE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 425, - "column": 1, - "source_line": "#ifdef STB_TRUETYPE_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "stbtt_uint8", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 427, - "column": 4, - "source_line": " #ifndef stbtt_uint8" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 434, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_ifloor", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 440, - "column": 4, - "source_line": " #ifndef STBTT_ifloor" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 444, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_sqrt", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 446, - "column": 4, - "source_line": " #ifndef STBTT_sqrt" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 450, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_fmod", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 452, - "column": 4, - "source_line": " #ifndef STBTT_fmod" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 455, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_cos", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 457, - "column": 4, - "source_line": " #ifndef STBTT_cos" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 461, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_fabs", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 463, - "column": 4, - "source_line": " #ifndef STBTT_fabs" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 466, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_malloc", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 469, - "column": 4, - "source_line": " #ifndef STBTT_malloc" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 473, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_assert", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 475, - "column": 4, - "source_line": " #ifndef STBTT_assert" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 478, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_strlen", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 480, - "column": 4, - "source_line": " #ifndef STBTT_strlen" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 483, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_memcpy", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 485, - "column": 4, - "source_line": " #ifndef STBTT_memcpy" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 489, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 490, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "__STB_INCLUDE_STB_TRUETYPE_H__", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 499, - "column": 1, - "source_line": "#ifndef __STB_INCLUDE_STB_TRUETYPE_H__" - } - }, - { - "directive": "ifdef", - "argument": "STBTT_STATIC", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 502, - "column": 1, - "source_line": "#ifdef STBTT_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 504, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 506, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 508, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 510, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_RECT_PACK_VERSION", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 584, - "column": 1, - "source_line": "#ifndef STB_RECT_PACK_VERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 586, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_vmove", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 823, - "column": 1, - "source_line": "#ifndef STBTT_vmove // you can predefine these to use different values (but why?)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 830, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "stbtt_vertex", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 832, - "column": 1, - "source_line": "#ifndef stbtt_vertex // you can predefine this to use different values" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 840, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1093, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1095, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1097, - "column": 1, - "source_line": "#endif // __STB_INCLUDE_STB_TRUETYPE_H__" - } - }, - { - "directive": "ifdef", - "argument": "STB_TRUETYPE_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1106, - "column": 1, - "source_line": "#ifdef STB_TRUETYPE_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_MAX_OVERSAMPLE", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1108, - "column": 1, - "source_line": "#ifndef STBTT_MAX_OVERSAMPLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1110, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTT_MAX_OVERSAMPLE > 255", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1112, - "column": 1, - "source_line": "#if STBTT_MAX_OVERSAMPLE > 255" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1114, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBTT_RASTERIZER_VERSION", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1118, - "column": 1, - "source_line": "#ifndef STBTT_RASTERIZER_VERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1120, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1122, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1124, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1126, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTT_RASTERIZER_VERSION==1", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2816, - "column": 4, - "source_line": " #if STBTT_RASTERIZER_VERSION==1" - } - }, - { - "directive": "elif", - "argument": "STBTT_RASTERIZER_VERSION==2", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2820, - "column": 4, - "source_line": " #elif STBTT_RASTERIZER_VERSION==2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2825, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2827, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "STBTT_RASTERIZER_VERSION == 1", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2830, - "column": 1, - "source_line": "#if STBTT_RASTERIZER_VERSION == 1" - } - }, - { - "directive": "elif", - "argument": "STBTT_RASTERIZER_VERSION == 2", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2856, - "column": 1, - "source_line": "#elif STBTT_RASTERIZER_VERSION == 2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2874, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2876, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTT_RASTERIZER_VERSION == 1", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2878, - "column": 1, - "source_line": "#if STBTT_RASTERIZER_VERSION == 1" - } - }, - { - "directive": "elif", - "argument": "STBTT_RASTERIZER_VERSION == 2", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3024, - "column": 1, - "source_line": "#elif STBTT_RASTERIZER_VERSION == 2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3393, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3395, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBTT_RASTERIZER_VERSION == 1", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3495, - "column": 1, - "source_line": "#if STBTT_RASTERIZER_VERSION == 1" - } - }, - { - "directive": "elif", - "argument": "STBTT_RASTERIZER_VERSION == 2", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3497, - "column": 1, - "source_line": "#elif STBTT_RASTERIZER_VERSION == 2" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3499, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3501, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_RECT_PACK_VERSION", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3885, - "column": 1, - "source_line": "#ifndef STB_RECT_PACK_VERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3948, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) || defined(__clang__)", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4932, - "column": 1, - "source_line": "#if defined(__GNUC__) || defined(__clang__)" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic push", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4933, - "column": 1, - "source_line": "#pragma GCC diagnostic push" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic ignored \"-Wcast-qual\"", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4934, - "column": 1, - "source_line": "#pragma GCC diagnostic ignored \"-Wcast-qual\"" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4935, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(__GNUC__) || defined(__clang__)", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4969, - "column": 1, - "source_line": "#if defined(__GNUC__) || defined(__clang__)" - } - }, - { - "directive": "pragma", - "argument": "GCC diagnostic pop", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4970, - "column": 1, - "source_line": "#pragma GCC diagnostic pop" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4971, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4973, - "column": 1, - "source_line": "#endif // STB_TRUETYPE_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1496, - "column": 1, - "source_line": "STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)" - }, - "source_text": "STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1589, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices)" - }, - "source_text": "STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1625, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" - }, - "source_text": "STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1641, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1)" - }, - "source_text": "STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1646, - "column": 1, - "source_line": "STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index)" - }, - "source_text": "STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2297, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "source_text": "STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2305, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing)" - }, - "source_text": "STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2317, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info)" - }, - "source_text": "STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2332, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length)" - }, - "source_text": "STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2610, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2)" - }, - "source_text": "STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2622, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2)" - }, - "source_text": "STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2629, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing)" - }, - "source_text": "STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2634, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap)" - }, - "source_text": "STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2641, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap)" - }, - "source_text": "STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2652, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1)" - }, - "source_text": "STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2660, - "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height)" - }, - "source_text": "STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2666, - "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels)" - }, - "source_text": "STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2672, - "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v)" - }, - "source_text": "STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2677, - "column": 1, - "source_line": "STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)" - }, - "source_text": "STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2694, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg)" - }, - "source_text": "STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2711, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg)" - }, - "source_text": "STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2721, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "source_text": "STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2739, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "source_text": "STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2744, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "source_text": "STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2749, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "source_text": "STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3695, - "column": 1, - "source_line": "STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata)" - }, - "source_text": "STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3708, - "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata)" - }, - "source_text": "STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3713, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3753, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3758, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph)" - }, - "source_text": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3777, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph)" - }, - "source_text": "STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3782, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3787, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint)" - }, - "source_text": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3792, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint)" - }, - "source_text": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3797, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3802, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint)" - }, - "source_text": "STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3859, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule)" - }, - "source_text": "STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3957, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context)" - }, - "source_text": "STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3989, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc)" - }, - "source_text": "STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3995, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample)" - }, - "source_text": "STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4005, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)" - }, - "source_text": "STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4149, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - "source_text": "STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4184, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph)" - }, - "source_text": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4208, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - "source_text": "STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4297, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects)" - }, - "source_text": "STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4302, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges)" - }, - "source_text": "STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4338, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," - }, - "source_text": "STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size,\n int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4350, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap)" - }, - "source_text": "STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4363, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer)" - }, - "source_text": "STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4575, - "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4762, - "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - "source_text": "STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4767, - "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata)" - }, - "source_text": "STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4824, - "column": 1, - "source_line": "STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)" - }, - "source_text": "STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4937, - "column": 1, - "source_line": "STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset," - }, - "source_text": "STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset,\n float pixel_height, unsigned char *pixels, int pw, int ph,\n int first_char, int num_chars, stbtt_bakedchar *chardata)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4944, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index)" + "name": "stbtt_GetGlyphBitmapBoxSubpixel", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "source_text": "STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4949, + "line": 920, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data)" + "source_line": "extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, - "source_text": "STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 4954, + "line": 920, "column": 1, - "source_line": "STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset)" + "source_line": "extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, - "source_text": "STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset)" + "end": null, + "declaration_locations": [] }, { - "name": "STBTT_DEF", - "context": "declaration", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4959, - "column": 1, - "source_line": "STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags)" + "name": "stbtt_Rasterize", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "source_text": "STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags)" - }, - { - "name": "STBTT_DEF", - "context": "declaration", + "parameters": [ + { + "name": "result", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt__bitmap *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbtt__bitmap", + "name": "stbtt__bitmap", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int w" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 926, + "column": 4, + "source_line": " int w,h,stride;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int h" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 926, + "column": 4, + "source_line": " int w,h,stride;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 926, + "column": 4, + "source_line": " int w,h,stride;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 927, + "column": 4, + "source_line": " unsigned char *pixels;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 924, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 924, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt__bitmap *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt__bitmap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "flatness_in_pixels", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float flatness_in_pixels" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float flatness_in_pixels" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertices", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_verts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_verts" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_verts" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "invert", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int invert" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int invert" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "userdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4964, - "column": 1, - "source_line": "STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2)" - }, - "source_text": "STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_ifloor' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 442, - "column": 4, - "source_line": " #define STBTT_ifloor(x) ((int) floor(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_ifloor" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_iceil' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 443, - "column": 4, - "source_line": " #define STBTT_iceil(x) ((int) ceil(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_iceil" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_sqrt' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 448, - "column": 4, - "source_line": " #define STBTT_sqrt(x) sqrt(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_sqrt" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_pow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 449, - "column": 4, - "source_line": " #define STBTT_pow(x,y) pow(x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_pow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_fmod' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 454, - "column": 4, - "source_line": " #define STBTT_fmod(x,y) fmod(x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_fmod" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_cos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 459, - "column": 4, - "source_line": " #define STBTT_cos(x) cos(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_cos" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_acos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 460, - "column": 4, - "source_line": " #define STBTT_acos(x) acos(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_acos" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_fabs' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 465, - "column": 4, - "source_line": " #define STBTT_fabs(x) fabs(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_fabs" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_malloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 471, - "column": 4, - "source_line": " #define STBTT_malloc(x,u) ((void)(u),malloc(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_malloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 472, - "column": 4, - "source_line": " #define STBTT_free(x,u) ((void)(u),free(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_assert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 477, - "column": 4, - "source_line": " #define STBTT_assert(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_assert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_strlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 482, - "column": 4, - "source_line": " #define STBTT_strlen(x) strlen(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_strlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_POINT_SIZE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 602, - "column": 1, - "source_line": "#define STBTT_POINT_SIZE(x) (-(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_POINT_SIZE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1123, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1125, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt__buf_get16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1178, - "column": 1, - "source_line": "#define stbtt__buf_get16(b) stbtt__buf_get((b), 2)" - }, - "unit_kind": "macro", - "unit_name": "stbtt__buf_get16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt__buf_get32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1179, - "column": 1, - "source_line": "#define stbtt__buf_get32(b) stbtt__buf_get((b), 4)" - }, - "unit_kind": "macro", - "unit_name": "stbtt__buf_get32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttBYTE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1282, - "column": 1, - "source_line": "#define ttBYTE(p) (* (stbtt_uint8 *) (p))" - }, - "unit_kind": "macro", - "unit_name": "ttBYTE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttCHAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1283, - "column": 1, - "source_line": "#define ttCHAR(p) (* (stbtt_int8 *) (p))" - }, - "unit_kind": "macro", - "unit_name": "ttCHAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttFixed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1284, - "column": 1, - "source_line": "#define ttFixed(p) ttLONG(p)" - }, - "unit_kind": "macro", - "unit_name": "ttFixed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt_tag4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1291, - "column": 1, - "source_line": "#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))" - }, - "unit_kind": "macro", - "unit_name": "stbtt_tag4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt_tag' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1292, + "line": 931, "column": 1, - "source_line": "#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3])" + "source_line": "extern void stbtt_Rasterize(stbtt__bitmap *result," }, - "unit_kind": "macro", - "unit_name": "stbtt_tag" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__CSCTX_INIT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1909, - "column": 1, - "source_line": "#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}" - }, - "unit_kind": "macro", - "unit_name": "STBTT__CSCTX_INIT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__CSERR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2018, - "column": 1, - "source_line": "#define STBTT__CSERR(s) (0)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__CSERR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_GPOS_TODO_assert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2494, - "column": 1, - "source_line": "#define STBTT_GPOS_TODO_assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_GPOS_TODO_assert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__COMPARE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3397, - "column": 1, - "source_line": "#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__COMPARE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4395, - "column": 1, - "source_line": "#define STBTT_min(a,b) ((a) < (b) ? (a) : (b))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4396, - "column": 1, - "source_line": "#define STBTT_max(a,b) ((a) < (b) ? (b) : (a))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_max" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 509, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1496, - "column": 1, - "source_line": "STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1589, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 1625, + "line": 931, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern void stbtt_Rasterize(stbtt__bitmap *result," }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1641, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1)" + "name": "stbtt_FreeSDF", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "bitmap", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *bitmap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *bitmap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "userdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 1646, + "line": 945, "column": 1, - "source_line": "STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index)" + "source_line": "extern void stbtt_FreeSDF(unsigned char *bitmap, void *userdata);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2297, + "line": 945, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" + "source_line": "extern void stbtt_FreeSDF(unsigned char *bitmap, void *userdata);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2305, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing)" + "name": "stbtt_GetGlyphSDF", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "onedge_value", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "declared_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_dist_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "xoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "yoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2317, + "line": 948, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info)" + "source_line": "extern unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2332, + "line": 948, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length)" + "source_line": "extern unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2610, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2)" + "name": "stbtt_GetCodepointSDF", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "onedge_value", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "declared_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_dist_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "xoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "yoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2622, + "line": 949, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2)" + "source_line": "extern unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2629, + "line": 949, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing)" + "source_line": "extern unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2634, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap)" + "name": "stbtt_FindMatchingFont", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "fontdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "flags", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flags" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flags" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2641, + "line": 1021, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap)" + "source_line": "extern int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2652, + "line": 1021, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2660, - "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height)" + "name": "stbtt_CompareUTF8toUTF16_bigendian", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len2" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2666, + "line": 1032, "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels)" + "source_line": "extern int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2672, + "line": 1032, "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v)" + "source_line": "extern int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2677, - "column": 1, - "source_line": "STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)" + "name": "stbtt_GetFontNameString", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "length", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *length", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *length", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "platformID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int platformID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int platformID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "encodingID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int encodingID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int encodingID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "languageID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int languageID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int languageID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "nameID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nameID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nameID" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2694, + "line": 1036, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg)" + "source_line": "extern const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2711, + "line": 1036, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg)" + "source_line": "extern const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, + "end": null, + "declaration_locations": [] + } + ], + "structs": [], + "unions": [], + "enums": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_vmove", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 824, + "column": 4, + "source_line": " enum {" + } + }, + { + "name": "STBTT_vline", + "value": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 824, + "column": 4, + "source_line": " enum {" + } + }, + { + "name": "STBTT_vcurve", + "value": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 824, + "column": 4, + "source_line": " enum {" + } + }, + { + "name": "STBTT_vcubic", + "value": null, + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 824, + "column": 4, + "source_line": " enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2721, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "line": 824, + "column": 4, + "source_line": " enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_PLATFORM_ID_UNICODE", + "value": "0", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1044, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_PLATFORM_ID_MAC", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1044, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_PLATFORM_ID_ISO", + "value": "2", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1044, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_PLATFORM_ID_MICROSOFT", + "value": "3", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1044, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2739, + "line": 1044, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_UNICODE_EID_UNICODE_1_0", + "value": "0", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1051, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_UNICODE_EID_UNICODE_1_1", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1051, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_UNICODE_EID_ISO_10646", + "value": "2", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1051, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_UNICODE_EID_UNICODE_2_0_BMP", + "value": "3", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1051, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_UNICODE_EID_UNICODE_2_0_FULL", + "value": "4", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1051, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2744, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_MS_EID_SYMBOL", + "value": "0", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1059, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_EID_UNICODE_BMP", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1059, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_EID_SHIFTJIS", + "value": "2", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1059, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_EID_UNICODE_FULL", + "value": "10", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1059, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2749, + "line": 1059, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_MAC_EID_ROMAN", + "value": "0", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_ARABIC", + "value": "4", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_JAPANESE", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_HEBREW", + "value": "5", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_CHINESE_TRAD", + "value": "2", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_GREEK", + "value": "6", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_KOREAN", + "value": "3", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_EID_RUSSIAN", + "value": "7", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1066, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3695, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_MS_LANG_ENGLISH", + "value": "0x0409", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_ITALIAN", + "value": "0x0410", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_CHINESE", + "value": "0x0804", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_JAPANESE", + "value": "0x0411", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_DUTCH", + "value": "0x0413", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_KOREAN", + "value": "0x0412", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_FRENCH", + "value": "0x040c", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_RUSSIAN", + "value": "0x0419", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_GERMAN", + "value": "0x0407", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_SPANISH", + "value": "0x0409", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_HEBREW", + "value": "0x040d", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MS_LANG_SWEDISH", + "value": "0x041D", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1073, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3708, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBTT_MAC_LANG_ENGLISH", + "value": "0", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_JAPANESE", + "value": "11", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_ARABIC", + "value": "12", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_KOREAN", + "value": "23", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_DUTCH", + "value": "4", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_RUSSIAN", + "value": "32", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_FRENCH", + "value": "1", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_SPANISH", + "value": "6", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_GERMAN", + "value": "2", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_SWEDISH", + "value": "5", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_HEBREW", + "value": "10", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_CHINESE_SIMPLIFIED", + "value": "33", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_ITALIAN", + "value": "3", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "STBTT_MAC_LANG_CHINESE_TRAD", + "value": "19", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 1083, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3713, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, + "source_line": "enum {" + } + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbtt_BakeFontBitmap": { + "name": "stbtt_BakeFontBitmap", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3753, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff)" + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3758, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3777, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph)" + "name": "offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3782, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3787, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint)" + "name": "pixel_height", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_height" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3792, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint)" + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_height" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3797, - "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" + "name": "pixels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3802, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *pixels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3859, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule)" + "name": "pw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3957, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3989, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc)" + "name": "ph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ph" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3995, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ph" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4005, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)" + "name": "first_char", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_char" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4149, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int first_char" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4184, - "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph)" + "name": "num_chars", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4208, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4297, - "column": 1, - "source_line": "STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects)" + "name": "chardata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_bakedchar *chardata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_bakedchar" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4302, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_bakedchar *chardata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_bakedchar" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 533, + "column": 1, + "source_line": "extern int stbtt_BakeFontBitmap(const unsigned char *data, int offset," + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 533, + "column": 1, + "source_line": "extern int stbtt_BakeFontBitmap(const unsigned char *data, int offset," + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_GetBakedQuad": { + "name": "stbtt_GetBakedQuad", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4338, - "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," + "name": "chardata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_bakedchar *chardata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_bakedchar" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4350, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_bakedchar *chardata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_bakedchar" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4363, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer)" + "name": "pw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4575, - "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4762, - "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" + "name": "ph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ph" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4767, - "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata)" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ph" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4824, - "column": 1, - "source_line": "STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)" + "name": "char_index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int char_index" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4937, - "column": 1, - "source_line": "STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset," + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int char_index" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4944, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index)" + "name": "xpos", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *xpos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4949, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *xpos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4954, - "column": 1, - "source_line": "STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset)" + "name": "ypos", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *ypos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4959, - "column": 1, - "source_line": "STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *ypos", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_location": null, + "callback_policy": null }, { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4964, - "column": 1, - "source_line": "STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2)" + "name": "q", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_aligned_quad *q", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_aligned_quad" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_CONFLICTING_VARIABLE_DECLARATION", - "message": "Conflicting declarations for variable 'ttf_buffer'.", - "severity": "error", - "location": { - "filename": "stb/stb_truetype.h", - "line": 332, - "column": 1, - "source_line": "char ttf_buffer[1<<25];" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_aligned_quad *q", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_aligned_quad" + } + ] }, - "unit_kind": "variable", - "unit_name": "ttf_buffer" + "source_location": null, + "callback_policy": null }, { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'main'.", - "severity": "error", - "location": { - "filename": "stb/stb_truetype.h", - "line": 375, - "column": 1, - "source_line": "int main(int arg, char **argv)" + "name": "opengl_fillrule", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int opengl_fillrule" }, - "unit_kind": "function", - "unit_name": "main" - } - ] - } - }, - "functions": { - "my_stbtt_initfont": { - "name": "my_stbtt_initfont", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [], + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int opengl_fillrule" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 287, + "line": 549, "column": 1, - "source_line": "void my_stbtt_initfont(void)" + "source_line": "extern void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph," }, "start": { "filename": "stb/stb_truetype.h", - "line": 287, + "line": 549, "column": 1, - "source_line": "void my_stbtt_initfont(void)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 297, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph," }, + "end": null, "declaration_locations": [] }, - "my_stbtt_print": { - "name": "my_stbtt_print", + "stbtt_GetScaledFontVMetrics": { + "name": "stbtt_GetScaledFontVMetrics", "result_type": { "model": "CVoid", "qualifiers": [], @@ -15328,41 +13738,84 @@ }, "parameters": [ { - "name": "x", + "name": "fontdata", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x" + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "float x" + "source_text": "int index" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "size", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float size" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float size" }, "source_location": null, "callback_policy": null }, { - "name": "text", + "name": "ascent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "float *ascent", "components": [ { "model": "CPointer", @@ -15370,16 +13823,16 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", "qualifiers": [], - "source_text": "char" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *text", + "source_text": "float *ascent", "components": [ { "model": "CPointer", @@ -15387,9 +13840,87 @@ "source_text": "" }, { - "model": "CChar", + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "descent", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *descent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *descent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "lineGap", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *lineGap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *lineGap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", "qualifiers": [], - "source_text": "char" + "source_text": "float" } ] }, @@ -15397,33 +13928,30 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 299, + "line": 564, "column": 1, - "source_line": "void my_stbtt_print(float x, float y, char *text)" + "source_line": "extern void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 299, - "column": 1, - "source_line": "void my_stbtt_print(float x, float y, char *text)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 319, + "line": 564, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);" }, + "end": null, "declaration_locations": [] }, - "main": { - "name": "main", + "stbtt_PackBegin": { + "name": "stbtt_PackBegin", "result_type": { "model": "CInt", "qualifiers": [], @@ -15431,26 +13959,46 @@ }, "parameters": [ { - "name": "argc", + "name": "spc", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int argc" + "source_text": "stbtt_pack_context *spc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_context" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int argc" + "source_text": "stbtt_pack_context *spc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_context" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "argv", + "name": "pixels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **argv", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -15458,21 +14006,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char **argv", + "source_text": "unsigned char *pixels", "components": [ { "model": "CPointer", @@ -15480,58 +14023,81 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "char" + "source_text": "unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 334, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 334, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 351, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__buf_get8": { - "name": "stbtt__buf_get8", - "result_type": { - "reference": "stbtt_uint8" - }, - "parameters": [ + }, + { + "name": "width", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int width" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int height" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "stride_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int stride_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "b", + "name": "alloc_context", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "void *alloc_context", "components": [ { "model": "CPointer", @@ -15539,14 +14105,16 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "void *alloc_context", "components": [ { "model": "CPointer", @@ -15554,7 +14122,9 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -15563,44 +14133,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1133, + "line": 588, "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b)" + "source_line": "extern int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1133, - "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1138, + "line": 588, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context);" }, + "end": null, "declaration_locations": [] }, - "stbtt__buf_peek8": { - "name": "stbtt__buf_peek8", + "stbtt_PackEnd": { + "name": "stbtt_PackEnd", "result_type": { - "reference": "stbtt_uint8" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -15608,14 +14175,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -15623,7 +14190,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, @@ -15632,46 +14199,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1140, + "line": 599, "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b)" + "source_line": "extern void stbtt_PackEnd (stbtt_pack_context *spc);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1140, + "line": 599, "column": 1, - "source_line": "static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1145, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackEnd (stbtt_pack_context *spc);" }, + "end": null, "declaration_locations": [] }, - "stbtt__buf_seek": { - "name": "stbtt__buf_seek", + "stbtt_PackFontRange": { + "name": "stbtt_PackFontRange", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -15679,14 +14241,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -15694,7 +14256,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, @@ -15702,62 +14264,11 @@ "callback_policy": null }, { - "name": "o", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int o" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int o" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1147, - "column": 1, - "source_line": "static void stbtt__buf_seek(stbtt__buf *b, int o)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1147, - "column": 1, - "source_line": "static void stbtt__buf_seek(stbtt__buf *b, int o)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1151, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__buf_skip": { - "name": "stbtt__buf_skip", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "b", + "name": "fontdata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -15765,14 +14276,18 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -15780,7 +14295,11 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -15788,144 +14307,71 @@ "callback_policy": null }, { - "name": "o", + "name": "font_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int font_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int o" + "source_text": "int font_index" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1153, - "column": 1, - "source_line": "static void stbtt__buf_skip(stbtt__buf *b, int o)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1153, - "column": 1, - "source_line": "static void stbtt__buf_skip(stbtt__buf *b, int o)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1156, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__buf_get": { - "name": "stbtt__buf_get", - "result_type": { - "reference": "stbtt_uint32" - }, - "parameters": [ + }, { - "name": "b", + "name": "font_size", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] + "source_text": "float font_size" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt__buf *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__buf" - } - ] + "source_text": "float font_size" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "first_unicode_char_in_range", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int first_unicode_char_in_range" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int first_unicode_char_in_range" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1158, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1158, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1166, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__new_buf": { - "name": "stbtt__new_buf", - "result_type": { - "reference": "stbtt__buf" - }, - "parameters": [ + }, + { + "name": "num_chars_in_range", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars_in_range" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_chars_in_range" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "p", + "name": "chardata_for_range", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void *p", + "source_text": "stbtt_packedchar *chardata_for_range", "components": [ { "model": "CPointer", @@ -15933,18 +14379,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "reference": "stbtt_packedchar" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const void *p", + "source_text": "stbtt_packedchar *chardata_for_range", "components": [ { "model": "CPointer", @@ -15952,68 +14394,50 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" + "reference": "stbtt_packedchar" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "size", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1168, + "line": 604, "column": 1, - "source_line": "static stbtt__buf stbtt__new_buf(const void *p, size_t size)" + "source_line": "extern int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," }, "start": { "filename": "stb/stb_truetype.h", - "line": 1168, - "column": 1, - "source_line": "static stbtt__buf stbtt__new_buf(const void *p, size_t size)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1176, + "line": 604, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," }, + "end": null, "declaration_locations": [] }, - "stbtt__buf_range": { - "name": "stbtt__buf_range", + "stbtt_PackFontRanges": { + "name": "stbtt_PackFontRanges", "result_type": { - "reference": "stbtt__buf" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16021,14 +14445,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16036,7 +14460,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, @@ -16044,75 +14468,11 @@ "callback_policy": null }, { - "name": "o", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int o" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int o" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int s" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int s" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1181, - "column": 1, - "source_line": "static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1181, - "column": 1, - "source_line": "static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1188, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__cff_get_index": { - "name": "stbtt__cff_get_index", - "result_type": { - "reference": "stbtt__buf" - }, - "parameters": [ - { - "name": "b", + "name": "fontdata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -16120,14 +14480,18 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const unsigned char *fontdata", "components": [ { "model": "CPointer", @@ -16135,53 +14499,38 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1190, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_get_index(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1190, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_get_index(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1202, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__cff_int": { - "name": "stbtt__cff_int", - "result_type": { - "reference": "stbtt_uint32" - }, - "parameters": [ + }, + { + "name": "font_index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int font_index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int font_index" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "b", + "name": "ranges", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -16189,14 +14538,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_range" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -16204,43 +14553,53 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_range" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_ranges", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1204, + "line": 629, "column": 1, - "source_line": "static stbtt_uint32 stbtt__cff_int(stbtt__buf *b)" + "source_line": "extern int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1204, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__cff_int(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1214, + "line": 629, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges);" }, + "end": null, "declaration_locations": [] }, - "stbtt__cff_skip_operand": { - "name": "stbtt__cff_skip_operand", + "stbtt_PackSetOversampling": { + "name": "stbtt_PackSetOversampling", "result_type": { "model": "CVoid", "qualifiers": [], @@ -16248,11 +14607,11 @@ }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16260,14 +14619,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16275,53 +14634,80 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "h_oversample", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int h_oversample" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int h_oversample" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "v_oversample", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v_oversample" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int v_oversample" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1216, + "line": 635, "column": 1, - "source_line": "static void stbtt__cff_skip_operand(stbtt__buf *b) {" + "source_line": "extern void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1216, - "column": 1, - "source_line": "static void stbtt__cff_skip_operand(stbtt__buf *b) {" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1229, + "line": 635, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample);" }, + "end": null, "declaration_locations": [] }, - "stbtt__dict_get": { - "name": "stbtt__dict_get", + "stbtt_PackSetSkipMissingCodepoints": { + "name": "stbtt_PackSetSkipMissingCodepoints", "result_type": { - "reference": "stbtt__buf" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "b", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16329,14 +14715,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16344,7 +14730,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_pack_context" } ] }, @@ -16352,50 +14738,45 @@ "callback_policy": null }, { - "name": "key", + "name": "skip", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int key" + "source_text": "int skip" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int key" + "source_text": "int skip" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1231, + "line": 651, "column": 1, - "source_line": "static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key)" + "source_line": "extern void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1231, + "line": 651, "column": 1, - "source_line": "static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1244, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip);" }, + "end": null, "declaration_locations": [] }, - "stbtt__dict_get_ints": { - "name": "stbtt__dict_get_ints", + "stbtt_GetPackedQuad": { + "name": "stbtt_GetPackedQuad", "result_type": { "model": "CVoid", "qualifiers": [], @@ -16403,11 +14784,11 @@ }, "parameters": [ { - "name": "b", + "name": "chardata", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const stbtt_packedchar *chardata", "components": [ { "model": "CPointer", @@ -16415,14 +14796,14 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_packedchar" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "const stbtt_packedchar *chardata", "components": [ { "model": "CPointer", @@ -16430,7 +14811,7 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "reference": "stbtt_packedchar" } ] }, @@ -16438,41 +14819,56 @@ "callback_policy": null }, { - "name": "key", + "name": "pw", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int pw" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ph", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int key" + "source_text": "int ph" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int key" + "source_text": "int ph" }, "source_location": null, "callback_policy": null }, { - "name": "outcount", + "name": "char_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int outcount" + "source_text": "int char_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int outcount" + "source_text": "int char_index" }, "source_location": null, "callback_policy": null }, { - "name": "out", + "name": "xpos", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint32 *out", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -16480,14 +14876,16 @@ "source_text": "" }, { - "reference": "stbtt_uint32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint32 *out", + "source_text": "float *xpos", "components": [ { "model": "CPointer", @@ -16495,55 +14893,21 @@ "source_text": "" }, { - "reference": "stbtt_uint32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1246, - "column": 1, - "source_line": "static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1246, - "column": 1, - "source_line": "static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1252, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__cff_index_count": { - "name": "stbtt__cff_index_count", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "b", + "name": "ypos", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *ypos", "components": [ { "model": "CPointer", @@ -16551,14 +14915,16 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__buf *b", + "source_text": "float *ypos", "components": [ { "model": "CPointer", @@ -16566,113 +14932,102 @@ "source_text": "" }, { - "reference": "stbtt__buf" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1254, - "column": 1, - "source_line": "static int stbtt__cff_index_count(stbtt__buf *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1254, - "column": 1, - "source_line": "static int stbtt__cff_index_count(stbtt__buf *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1258, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__cff_index_get": { - "name": "stbtt__cff_index_get", - "result_type": { - "reference": "stbtt__buf" - }, - "parameters": [ + }, { - "name": "b", + "name": "q", "type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_aligned_quad *q", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_aligned_quad" + } + ] }, "declared_type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_aligned_quad *q", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_aligned_quad" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "i", + "name": "align_to_integer", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int align_to_integer" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int align_to_integer" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1260, + "line": 657, "column": 1, - "source_line": "static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i)" + "source_line": "extern void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph," }, "start": { "filename": "stb/stb_truetype.h", - "line": 1260, - "column": 1, - "source_line": "static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1272, + "line": 657, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph," }, + "end": null, "declaration_locations": [] }, - "ttUSHORT": { - "name": "ttUSHORT", + "stbtt_PackFontRangesGatherRects": { + "name": "stbtt_PackFontRangesGatherRects", "result_type": { - "reference": "stbtt_uint16" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16680,14 +15035,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16695,53 +15050,19 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 1, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 1, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1286, - "column": 72, - "source_line": "static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "declaration_locations": [] - }, - "ttSHORT": { - "name": "ttSHORT", - "result_type": { - "reference": "stbtt_int16" - }, - "parameters": [ + }, { - "name": "p", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -16749,14 +15070,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -16764,53 +15085,69 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 1, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 1, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1287, - "column": 72, - "source_line": "static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; }" - }, - "declaration_locations": [] - }, - "ttULONG": { - "name": "ttULONG", - "result_type": { - "reference": "stbtt_uint32" - }, - "parameters": [ + }, + { + "name": "ranges", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_pack_range *ranges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_range" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_pack_range *ranges", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_pack_range" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_ranges", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_ranges" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "p", + "name": "rects", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -16818,14 +15155,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbrp_rect" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -16833,7 +15170,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbrp_rect" } ] }, @@ -16842,44 +15179,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1288, + "line": 663, "column": 1, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" + "source_line": "extern int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1288, + "line": 663, "column": 1, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1288, - "column": 99, - "source_line": "static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" + "source_line": "extern int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, + "end": null, "declaration_locations": [] }, - "ttLONG": { - "name": "ttLONG", + "stbtt_PackFontRangesPackRects": { + "name": "stbtt_PackFontRangesPackRects", "result_type": { - "reference": "stbtt_int32" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "p", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16887,14 +15221,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *p", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -16902,55 +15236,19 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1289, - "column": 1, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1289, - "column": 1, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1289, - "column": 99, - "source_line": "static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }" - }, - "declaration_locations": [] - }, - "stbtt__isfont": { - "name": "stbtt__isfont", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "font", + "name": "rects", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *font", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -16958,14 +15256,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbrp_rect" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *font", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -16973,53 +15271,65 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbrp_rect" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_rects", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_rects" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1294, + "line": 664, "column": 1, - "source_line": "static int stbtt__isfont(stbtt_uint8 *font)" + "source_line": "extern void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1294, - "column": 1, - "source_line": "static int stbtt__isfont(stbtt_uint8 *font)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1303, + "line": 664, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects);" }, + "end": null, "declaration_locations": [] }, - "stbtt__find_table": { - "name": "stbtt__find_table", + "stbtt_PackFontRangesRenderIntoRects": { + "name": "stbtt_PackFontRangesRenderIntoRects", "result_type": { - "reference": "stbtt_uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "spc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *data", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -17027,14 +15337,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *data", + "source_text": "stbtt_pack_context *spc", "components": [ { "model": "CPointer", @@ -17042,7 +15352,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_pack_context" } ] }, @@ -17050,22 +15360,11 @@ "callback_policy": null }, { - "name": "fontstart", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tag", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *tag", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17073,18 +15372,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *tag", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17092,59 +15387,19 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stbtt_fontinfo" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1306, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1306, - "column": 1, - "source_line": "static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1317, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_GetFontOffsetForIndex_internal": { - "name": "stbtt_GetFontOffsetForIndex_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "font_collection", + "name": "ranges", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -17152,16 +15407,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_pack_range" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbtt_pack_range *ranges", "components": [ { "model": "CPointer", @@ -17169,9 +15422,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_pack_range" } ] }, @@ -17179,62 +15430,26 @@ "callback_policy": null }, { - "name": "index", + "name": "num_ranges", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int index" + "source_text": "int num_ranges" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int index" + "source_text": "int num_ranges" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1319, - "column": 1, - "source_line": "static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1319, - "column": 1, - "source_line": "static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1336, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_GetNumberOfFonts_internal": { - "name": "stbtt_GetNumberOfFonts_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "font_collection", + "name": "rects", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -17242,16 +15457,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbrp_rect" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *font_collection", + "source_text": "stbrp_rect *rects", "components": [ { "model": "CPointer", @@ -17259,9 +15472,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbrp_rect" } ] }, @@ -17270,90 +15481,103 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1338, + "line": 665, "column": 1, - "source_line": "static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection)" + "source_line": "extern int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1338, - "column": 1, - "source_line": "static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1352, + "line": 665, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects);" }, + "end": null, "declaration_locations": [] }, - "stbtt__get_subrs": { - "name": "stbtt__get_subrs", + "stbtt_GetNumberOfFonts": { + "name": "stbtt_GetNumberOfFonts", "result_type": { - "reference": "stbtt__buf" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "cff", - "type": { - "reference": "stbtt__buf" - }, - "declared_type": { - "reference": "stbtt__buf" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "fontdict", + "name": "data", "type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "reference": "stbtt__buf" + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1354, + "line": 697, "column": 1, - "source_line": "static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict)" + "source_line": "extern int stbtt_GetNumberOfFonts(const unsigned char *data);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1354, + "line": 697, "column": 1, - "source_line": "static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1365, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetNumberOfFonts(const unsigned char *data);" }, + "end": null, "declaration_locations": [] }, - "stbtt__get_svg": { - "name": "stbtt__get_svg", + "stbtt_GetFontOffsetForIndex": { + "name": "stbtt_GetFontOffsetForIndex", "result_type": { "model": "CInt", "qualifiers": [], @@ -17361,11 +15585,11 @@ }, "parameters": [ { - "name": "info", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -17373,14 +15597,18 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_fontinfo *info", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -17388,43 +15616,57 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "index", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int index" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1368, + "line": 704, "column": 1, - "source_line": "static int stbtt__get_svg(stbtt_fontinfo *info)" + "source_line": "extern int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1368, + "line": 704, "column": 1, - "source_line": "static int stbtt__get_svg(stbtt_fontinfo *info)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1381, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index);" }, + "end": null, "declaration_locations": [] }, - "stbtt_InitFont_internal": { - "name": "stbtt_InitFont_internal", + "stbtt_InitFont": { + "name": "stbtt_InitFont", "result_type": { "model": "CInt", "qualifiers": [], @@ -17471,7 +15713,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -17480,15 +15722,17 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -17497,8 +15741,10 @@ }, { "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -17506,62 +15752,57 @@ "callback_policy": null }, { - "name": "fontstart", + "name": "offset", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int fontstart" + "source_text": "int offset" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int fontstart" + "source_text": "int offset" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1383, - "column": 1, - "source_line": "static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1383, + "line": 733, "column": 1, - "source_line": "static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart)" + "source_line": "extern int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset);" }, - "end": { + "start": { "filename": "stb/stb_truetype.h", - "line": 1494, + "line": 733, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset);" }, + "end": null, "declaration_locations": [] }, - "stbtt_setvertex": { - "name": "stbtt_setvertex", + "stbtt_FindGlyphIndex": { + "name": "stbtt_FindGlyphIndex", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "v", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *v", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17569,14 +15810,14 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *v", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17584,7 +15825,7 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_fontinfo" } ] }, @@ -17592,94 +15833,49 @@ "callback_policy": null }, { - "name": "type", - "type": { - "reference": "stbtt_uint8" - }, - "declared_type": { - "reference": "stbtt_uint8" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", + "name": "unicode_codepoint", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int unicode_codepoint" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int unicode_codepoint" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1594, + "line": 745, "column": 1, - "source_line": "static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy)" + "source_line": "extern int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1594, + "line": 745, "column": 1, - "source_line": "static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1601, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint);" }, + "end": null, "declaration_locations": [] }, - "stbtt__GetGlyfOffset": { - "name": "stbtt__GetGlyfOffset", + "stbtt_ScaleForPixelHeight": { + "name": "stbtt_ScaleForPixelHeight", "result_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" }, "parameters": [ { @@ -17718,54 +15914,49 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "pixels", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1603, + "line": 758, "column": 1, - "source_line": "static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index)" + "source_line": "extern float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1603, - "column": 1, - "source_line": "static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1621, + "line": 758, "column": 1, - "source_line": "}" + "source_line": "extern float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels);" }, + "end": null, "declaration_locations": [] }, - "stbtt__GetGlyphInfoT2": { - "name": "stbtt__GetGlyphInfoT2", + "stbtt_ScaleForMappingEmToPixels": { + "name": "stbtt_ScaleForMappingEmToPixels", "result_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" }, "parameters": [ { @@ -17804,26 +15995,57 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "pixels", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "float pixels" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 766, + "column": 1, + "source_line": "extern float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 766, + "column": 1, + "source_line": "extern float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels);" + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_GetFontVMetrics": { + "name": "stbtt_GetFontVMetrics", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "x0", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x0", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17831,16 +16053,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x0", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -17848,9 +16068,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stbtt_fontinfo" } ] }, @@ -17858,11 +16076,11 @@ "callback_policy": null }, { - "name": "y0", + "name": "ascent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y0", + "source_text": "int *ascent", "components": [ { "model": "CPointer", @@ -17879,7 +16097,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y0", + "source_text": "int *ascent", "components": [ { "model": "CPointer", @@ -17897,11 +16115,11 @@ "callback_policy": null }, { - "name": "x1", + "name": "descent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x1", + "source_text": "int *descent", "components": [ { "model": "CPointer", @@ -17918,7 +16136,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *x1", + "source_text": "int *descent", "components": [ { "model": "CPointer", @@ -17936,11 +16154,11 @@ "callback_policy": null }, { - "name": "y1", + "name": "lineGap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y1", + "source_text": "int *lineGap", "components": [ { "model": "CPointer", @@ -17957,7 +16175,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *y1", + "source_text": "int *lineGap", "components": [ { "model": "CPointer", @@ -17976,41 +16194,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2286, + "line": 771, "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2286, - "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2295, + "line": 771, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap);" }, - "declaration_locations": [ - { - "filename": "stb/stb_truetype.h", - "line": 1623, - "column": 1, - "source_line": "static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" - } - ] + "end": null, + "declaration_locations": [] }, - "stbtt__close_shape": { - "name": "stbtt__close_shape", + "stbtt_GetFontVMetricsOS2": { + "name": "stbtt_GetFontVMetricsOS2", "result_type": { "model": "CInt", "qualifiers": [], @@ -18018,11 +16224,11 @@ }, "parameters": [ { - "name": "vertices", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18030,14 +16236,14 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18045,166 +16251,19 @@ "source_text": "" }, { - "reference": "stbtt_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_vertices", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vertices" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_vertices" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "was_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int was_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int was_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "start_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int start_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "scy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1658, - "column": 1, - "source_line": "static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off," - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1658, - "column": 1, - "source_line": "static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off," - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1672, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__GetGlyphShapeTT": { - "name": "stbtt__GetGlyphShapeTT", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "info", + "name": "typoAscent", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *typoAscent", "components": [ { "model": "CPointer", @@ -18212,14 +16271,16 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *typoAscent", "components": [ { "model": "CPointer", @@ -18227,7 +16288,9 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -18235,26 +16298,50 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "typoDescent", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *typoDescent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *typoDescent", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "pvertices", + "name": "typoLineGap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *typoLineGap", "components": [ { "model": "CPointer", @@ -18262,19 +16349,16 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *typoLineGap", "components": [ { "model": "CPointer", @@ -18282,12 +16366,9 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" + "source_text": "int" } ] }, @@ -18296,34 +16377,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1674, + "line": 779, "column": 1, - "source_line": "static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" + "source_line": "extern int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1674, - "column": 1, - "source_line": "static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1895, + "line": 779, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap);" }, + "end": null, "declaration_locations": [] }, - "stbtt__track_vertex": { - "name": "stbtt__track_vertex", + "stbtt_GetFontBoundingBox": { + "name": "stbtt_GetFontBoundingBox", "result_type": { "model": "CVoid", "qualifiers": [], @@ -18331,11 +16407,11 @@ }, "parameters": [ { - "name": "c", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18343,14 +16419,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18358,7 +16434,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, @@ -18366,69 +16442,11 @@ "callback_policy": null }, { - "name": "x", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1911, - "column": 1, - "source_line": "static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1911, - "column": 1, - "source_line": "static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1918, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__csctx_v": { - "name": "stbtt__csctx_v", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", + "name": "x0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -18436,14 +16454,16 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -18451,7 +16471,9 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -18459,124 +16481,89 @@ "callback_policy": null }, { - "name": "type", - "type": { - "reference": "stbtt_uint8" - }, - "declared_type": { - "reference": "stbtt_uint8" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cx", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "cy", + "name": "y0", "type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "cx1", + "name": "x1", "type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "reference": "stbtt_int32" + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "cy1", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1920, - "column": 1, - "source_line": "static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1920, - "column": 1, - "source_line": "static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1934, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__csctx_close_shape": { - "name": "stbtt__csctx_close_shape", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "ctx", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -18584,14 +16571,16 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -18599,7 +16588,9 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -18608,34 +16599,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1936, + "line": 785, "column": 1, - "source_line": "static void stbtt__csctx_close_shape(stbtt__csctx *ctx)" + "source_line": "extern void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1936, + "line": 785, "column": 1, - "source_line": "static void stbtt__csctx_close_shape(stbtt__csctx *ctx)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1940, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1);" }, + "end": null, "declaration_locations": [] }, - "stbtt__csctx_rmove_to": { - "name": "stbtt__csctx_rmove_to", + "stbtt_GetCodepointHMetrics": { + "name": "stbtt_GetCodepointHMetrics", "result_type": { "model": "CVoid", "qualifiers": [], @@ -18643,11 +16629,11 @@ }, "parameters": [ { - "name": "ctx", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18655,14 +16641,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18670,7 +16656,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, @@ -18678,77 +16664,26 @@ "callback_policy": null }, { - "name": "dx", + "name": "codepoint", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dx" + "source_text": "int codepoint" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dx" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "dy", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1942, - "column": 1, - "source_line": "static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1942, - "column": 1, - "source_line": "static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1948, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__csctx_rline_to": { - "name": "stbtt__csctx_rline_to", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "ctx", + "name": "advanceWidth", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "int *advanceWidth", "components": [ { "model": "CPointer", @@ -18756,14 +16691,16 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "int *advanceWidth", "components": [ { "model": "CPointer", @@ -18771,7 +16708,9 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -18779,77 +16718,81 @@ "callback_policy": null }, { - "name": "dx", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy", + "name": "leftSideBearing", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dy" + "source_text": "int *leftSideBearing", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float dy" + "source_text": "int *leftSideBearing", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1950, + "line": 788, "column": 1, - "source_line": "static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy)" + "source_line": "extern void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1950, - "column": 1, - "source_line": "static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1955, + "line": 788, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing);" }, + "end": null, "declaration_locations": [] }, - "stbtt__csctx_rccurve_to": { - "name": "stbtt__csctx_rccurve_to", + "stbtt_GetCodepointKernAdvance": { + "name": "stbtt_GetCodepointKernAdvance", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "ctx", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18857,14 +16800,14 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *ctx", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -18872,7 +16815,7 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "reference": "stbtt_fontinfo" } ] }, @@ -18880,187 +16823,64 @@ "callback_policy": null }, { - "name": "dx1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dy2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dx3", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx3" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float dx3" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dy3", + "name": "ch1", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy3" + "source_text": "int ch1" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float dy3" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1957, - "column": 1, - "source_line": "static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1957, - "column": 1, - "source_line": "static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1966, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__get_subr": { - "name": "stbtt__get_subr", - "result_type": { - "reference": "stbtt__buf" - }, - "parameters": [ - { - "name": "idx", - "type": { - "reference": "stbtt__buf" - }, - "declared_type": { - "reference": "stbtt__buf" + "source_text": "int ch1" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "ch2", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int ch2" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int ch2" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 1968, + "line": 793, "column": 1, - "source_line": "static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n)" + "source_line": "extern int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 1968, - "column": 1, - "source_line": "static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 1980, + "line": 793, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2);" }, + "end": null, "declaration_locations": [] }, - "stbtt__cid_get_glyph_subrs": { - "name": "stbtt__cid_get_glyph_subrs", + "stbtt_GetCodepointBox": { + "name": "stbtt_GetCodepointBox", "result_type": { - "reference": "stbtt__buf" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { @@ -19099,62 +16919,65 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1982, - "column": 1, - "source_line": "static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 1982, - "column": 1, - "source_line": "static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2008, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__run_charstring": { - "name": "stbtt__run_charstring", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, + { + "name": "x0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "info", + "name": "y0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -19162,14 +16985,16 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *y0", "components": [ { "model": "CPointer", @@ -19177,7 +17002,9 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -19185,26 +17012,50 @@ "callback_policy": null }, { - "name": "glyph_index", + "name": "x1", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph_index" + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -19212,14 +17063,16 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__csctx *c", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -19227,7 +17080,9 @@ "source_text": "" }, { - "reference": "stbtt__csctx" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -19236,38 +17091,33 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2010, + "line": 796, "column": 1, - "source_line": "static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c)" + "source_line": "extern int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2010, - "column": 1, - "source_line": "static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2267, + "line": 796, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1);" }, + "end": null, "declaration_locations": [] }, - "stbtt__GetGlyphShapeT2": { - "name": "stbtt__GetGlyphShapeT2", + "stbtt_GetGlyphHMetrics": { + "name": "stbtt_GetGlyphHMetrics", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -19321,44 +17171,77 @@ "callback_policy": null }, { - "name": "pvertices", + "name": "advanceWidth", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *advanceWidth", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *advanceWidth", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "stbtt_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "leftSideBearing", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex **pvertices", + "source_text": "int *leftSideBearing", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *leftSideBearing", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "stbtt_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -19367,34 +17250,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2269, + "line": 799, "column": 1, - "source_line": "static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" + "source_line": "extern void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2269, + "line": 799, "column": 1, - "source_line": "static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2284, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing);" }, + "end": null, "declaration_locations": [] }, - "stbtt__GetGlyphKernInfoAdvance": { - "name": "stbtt__GetGlyphKernInfoAdvance", + "stbtt_GetGlyphKernAdvance": { + "name": "stbtt_GetGlyphKernAdvance", "result_type": { "model": "CInt", "qualifiers": [], @@ -19468,44 +17346,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2359, + "line": 800, "column": 1, - "source_line": "static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" + "source_line": "extern int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2359, - "column": 1, - "source_line": "static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2387, + "line": 800, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2);" }, + "end": null, "declaration_locations": [] }, - "stbtt__GetCoverageIndex": { - "name": "stbtt__GetCoverageIndex", + "stbtt_GetGlyphBox": { + "name": "stbtt_GetGlyphBox", "result_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "coverageTable", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *coverageTable", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19513,14 +17388,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *coverageTable", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19528,7 +17403,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -19536,60 +17411,26 @@ "callback_policy": null }, { - "name": "glyph", + "name": "glyph_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int glyph_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2389, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2389, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2445, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__GetGlyphClass": { - "name": "stbtt__GetGlyphClass", - "result_type": { - "reference": "stbtt_int32" - }, - "parameters": [ + }, { - "name": "classDefTable", + "name": "x0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *classDefTable", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -19597,14 +17438,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *classDefTable", + "source_text": "int *x0", "components": [ { "model": "CPointer", @@ -19612,7 +17455,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -19620,60 +17465,89 @@ "callback_policy": null }, { - "name": "glyph", + "name": "y0", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int glyph" + "source_text": "int *y0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2447, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2447, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2491, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__GetGlyphGPOSInfoAdvance": { - "name": "stbtt__GetGlyphGPOSInfoAdvance", - "result_type": { - "reference": "stbtt_int32" - }, - "parameters": [ + }, + { + "name": "x1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *x1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "info", + "name": "y1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -19681,14 +17555,16 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stbtt_fontinfo *info", + "source_text": "int *y1", "components": [ { "model": "CPointer", @@ -19696,143 +17572,52 @@ "source_text": "" }, { - "reference": "stbtt_fontinfo" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "glyph1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "glyph2", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph2" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int glyph2" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2496, + "line": 801, "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" + "source_line": "extern int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2496, - "column": 1, - "source_line": "static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2608, + "line": 801, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1);" }, + "end": null, "declaration_locations": [] }, - "stbtt__hheap_alloc": { - "name": "stbtt__hheap_alloc", + "stbtt_GetKerningTableLength": { + "name": "stbtt_GetKerningTableLength", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "hh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "userdata", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19840,16 +17625,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19857,9 +17640,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_fontinfo" } ] }, @@ -19868,46 +17649,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2770, + "line": 811, "column": 1, - "source_line": "static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata)" + "source_line": "extern int stbtt_GetKerningTableLength(const stbtt_fontinfo *info);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2770, - "column": 1, - "source_line": "static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2789, + "line": 811, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetKerningTableLength(const stbtt_fontinfo *info);" }, + "end": null, "declaration_locations": [] }, - "stbtt__hheap_free": { - "name": "stbtt__hheap_free", + "stbtt_GetKerningTable": { + "name": "stbtt_GetKerningTable", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "hh", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19915,14 +17691,14 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -19930,7 +17706,7 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, @@ -19938,11 +17714,11 @@ "callback_policy": null }, { - "name": "p", + "name": "table", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "stbtt_kerningentry * table", "components": [ { "model": "CPointer", @@ -19950,16 +17726,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_kerningentry" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "stbtt_kerningentry * table", "components": [ { "model": "CPointer", @@ -19967,57 +17741,65 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_kerningentry" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "table_length", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int table_length" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int table_length" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2791, + "line": 812, "column": 1, - "source_line": "static void stbtt__hheap_free(stbtt__hheap *hh, void *p)" + "source_line": "extern int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2791, - "column": 1, - "source_line": "static void stbtt__hheap_free(stbtt__hheap *hh, void *p)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2795, + "line": 812, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length);" }, + "end": null, "declaration_locations": [] }, - "stbtt__hheap_cleanup": { - "name": "stbtt__hheap_cleanup", + "stbtt_IsGlyphEmpty": { + "name": "stbtt_IsGlyphEmpty", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "hh", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20025,14 +17807,14 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__hheap *hh", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20040,7 +17822,7 @@ "source_text": "" }, { - "reference": "stbtt__hheap" + "reference": "stbtt_fontinfo" } ] }, @@ -20048,86 +17830,57 @@ "callback_policy": null }, { - "name": "userdata", + "name": "glyph_index", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int glyph_index" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2797, + "line": 842, "column": 1, - "source_line": "static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata)" + "source_line": "extern int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2797, - "column": 1, - "source_line": "static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2805, + "line": 842, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index);" }, + "end": null, "declaration_locations": [] }, - "stbtt__fill_active_edges": { - "name": "stbtt__fill_active_edges", + "stbtt_GetCodepointShape": { + "name": "stbtt_GetCodepointShape", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "scanline", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20135,16 +17888,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20152,9 +17903,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, @@ -20162,26 +17911,26 @@ "callback_policy": null }, { - "name": "len", + "name": "unicode_codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int unicode_codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int unicode_codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "vertices", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -20189,14 +17938,19 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -20204,70 +17958,55 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "max_weight", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_weight" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int max_weight" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2882, + "line": 845, "column": 1, - "source_line": "static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight)" + "source_line": "extern int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 2882, + "line": 845, "column": 1, - "source_line": "static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2922, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices);" }, + "end": null, "declaration_locations": [] }, - "stbtt__handle_clipped_edge": { - "name": "stbtt__handle_clipped_edge", + "stbtt_GetGlyphShape": { + "name": "stbtt_GetGlyphShape", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "scanline", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20275,16 +18014,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20292,9 +18029,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -20302,26 +18037,26 @@ "callback_policy": null }, { - "name": "x", + "name": "glyph_index", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int glyph_index" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int x" + "source_text": "int glyph_index" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "vertices", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -20329,14 +18064,19 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "stbtt_vertex **vertices", "components": [ { "model": "CPointer", @@ -20344,373 +18084,299 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3028, + "line": 846, "column": 1, - "source_line": "static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1)" + "source_line": "extern int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3028, - "column": 1, - "source_line": "static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3063, + "line": 846, "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices);" }, + "end": null, "declaration_locations": [] }, - "stbtt__sized_trapezoid_area": { - "name": "stbtt__sized_trapezoid_area", + "stbtt_FreeShape": { + "name": "stbtt_FreeShape", "result_type": { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" }, "parameters": [ { - "name": "height", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "top_width", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float top_width" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float top_width" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "bottom_width", + "name": "vertices", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bottom_width" + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bottom_width" + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3065, + "line": 857, "column": 1, - "source_line": "static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width)" + "source_line": "extern void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3065, + "line": 857, "column": 1, - "source_line": "static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3070, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices);" }, + "end": null, "declaration_locations": [] }, - "stbtt__position_trapezoid_area": { - "name": "stbtt__position_trapezoid_area", + "stbtt_FindSVGDoc": { + "name": "stbtt_FindSVGDoc", "result_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "height", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float height" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float tx0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "tx1", - "type": { - "model": "CFloat", + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float tx1" + "source_text": "" }, - "declared_type": { - "model": "CFloat", + { + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "float tx1" - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "unsigned char" + } + ] + }, + "parameters": [ { - "name": "bx0", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bx0" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float bx0" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "bx1", + "name": "gl", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float bx1" + "source_text": "int gl" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float bx1" + "source_text": "int gl" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3072, + "line": 860, "column": 1, - "source_line": "static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1)" + "source_line": "extern unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3072, + "line": 860, "column": 1, - "source_line": "static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3075, - "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl);" }, + "end": null, "declaration_locations": [] }, - "stbtt__sized_triangle_area": { - "name": "stbtt__sized_triangle_area", + "stbtt_GetCodepointSVG": { + "name": "stbtt_GetCodepointSVG", "result_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" }, "parameters": [ { - "name": "height", + "name": "info", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float height" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "width", + "name": "unicode_codepoint", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float width" + "source_text": "int unicode_codepoint" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float width" + "source_text": "int unicode_codepoint" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3077, - "column": 1, - "source_line": "static float stbtt__sized_triangle_area(float height, float width)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3077, - "column": 1, - "source_line": "static float stbtt__sized_triangle_area(float height, float width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3080, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__fill_active_edges_new": { - "name": "stbtt__fill_active_edges_new", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "scanline", + "name": "svg", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -20718,16 +18384,23 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -20735,21 +18408,59 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 861, + "column": 1, + "source_line": "extern int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 861, + "column": 1, + "source_line": "extern int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg);" + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_GetGlyphSVG": { + "name": "stbtt_GetGlyphSVG", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "scanline_fill", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline_fill", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20757,16 +18468,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *scanline_fill", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20774,9 +18483,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -20784,26 +18491,26 @@ "callback_policy": null }, { - "name": "len", + "name": "gl", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int gl" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int gl" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "svg", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -20811,14 +18518,23 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__active_edge *e", + "source_text": "const char **svg", "components": [ { "model": "CPointer", @@ -20826,58 +18542,47 @@ "source_text": "" }, { - "reference": "stbtt__active_edge" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "y_top", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y_top" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y_top" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3082, + "line": 862, "column": 1, - "source_line": "static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top)" + "source_line": "extern int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3082, + "line": 862, "column": 1, - "source_line": "static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3294, - "column": 1, - "source_line": "}" + "source_line": "extern int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg);" }, + "end": null, "declaration_locations": [] }, - "stbtt__sort_edges_ins_sort": { - "name": "stbtt__sort_edges_ins_sort", + "stbtt_FreeBitmap": { + "name": "stbtt_FreeBitmap", "result_type": { "model": "CVoid", "qualifiers": [], @@ -20885,11 +18590,11 @@ }, "parameters": [ { - "name": "p", + "name": "bitmap", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "unsigned char *bitmap", "components": [ { "model": "CPointer", @@ -20897,14 +18602,16 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "unsigned char *bitmap", "components": [ { "model": "CPointer", @@ -20912,7 +18619,9 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -20920,62 +18629,93 @@ "callback_policy": null }, { - "name": "n", + "name": "userdata", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3399, + "line": 871, "column": 1, - "source_line": "static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n)" + "source_line": "extern void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3399, + "line": 871, "column": 1, - "source_line": "static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3415, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata);" }, + "end": null, "declaration_locations": [] }, - "stbtt__sort_edges_quicksort": { - "name": "stbtt__sort_edges_quicksort", + "stbtt_GetCodepointBitmap": { + "name": "stbtt_GetCodepointBitmap", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "p", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20983,14 +18723,14 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -20998,7 +18738,7 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "reference": "stbtt_fontinfo" } ] }, @@ -21006,62 +18746,56 @@ "callback_policy": null }, { - "name": "n", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int n" + "source_text": "float scale_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int n" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3417, - "column": 1, - "source_line": "static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3417, - "column": 1, - "source_line": "static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3477, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__sort_edges": { - "name": "stbtt__sort_edges", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "p", + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -21069,14 +18803,16 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__edge *p", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -21084,7 +18820,9 @@ "source_text": "" }, { - "reference": "stbtt__edge" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -21092,62 +18830,11 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3479, - "column": 1, - "source_line": "static void stbtt__sort_edges(stbtt__edge *p, int n)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3479, - "column": 1, - "source_line": "static void stbtt__sort_edges(stbtt__edge *p, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3483, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__rasterize": { - "name": "stbtt__rasterize", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "result", + "name": "height", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -21155,14 +18842,16 @@ "source_text": "" }, { - "reference": "stbtt__bitmap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__bitmap *result", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -21170,7 +18859,9 @@ "source_text": "" }, { - "reference": "stbtt__bitmap" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -21178,11 +18869,11 @@ "callback_policy": null }, { - "name": "pts", + "name": "xoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *pts", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -21190,14 +18881,16 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *pts", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -21205,7 +18898,9 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -21213,11 +18908,11 @@ "callback_policy": null }, { - "name": "wcount", + "name": "yoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *wcount", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -21234,7 +18929,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *wcount", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -21250,18 +18945,81 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 874, + "column": 1, + "source_line": "extern unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 874, + "column": 1, + "source_line": "extern unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_GetCodepointBitmapSubpixel": { + "name": "stbtt_GetCodepointBitmapSubpixel", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ { - "name": "windings", + "name": "info", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int windings" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int windings" + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, "source_location": null, "callback_policy": null @@ -21327,56 +19085,26 @@ "callback_policy": null }, { - "name": "off_x", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int off_x" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "off_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "invert", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int invert" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int invert" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "userdata", + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -21384,16 +19112,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -21401,57 +19129,21 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3490, - "column": 1, - "source_line": "static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3490, - "column": 1, - "source_line": "static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3545, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__add_point": { - "name": "stbtt__add_point", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "points", + "name": "height", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -21459,14 +19151,16 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -21474,7 +19168,9 @@ "source_text": "" }, { - "reference": "stbtt__point" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -21482,92 +19178,120 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", + "name": "xoff", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float x" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "yoff", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float y" + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float y" + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3547, + "line": 883, "column": 1, - "source_line": "static void stbtt__add_point(stbtt__point *points, int n, float x, float y)" + "source_line": "extern unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3547, - "column": 1, - "source_line": "static void stbtt__add_point(stbtt__point *points, int n, float x, float y)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3552, + "line": 883, "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, - "stbtt__tesselate_curve": { - "name": "stbtt__tesselate_curve", + "stbtt_MakeCodepointBitmap": { + "name": "stbtt_MakeCodepointBitmap", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "points", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -21575,14 +19299,14 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -21590,7 +19314,7 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, @@ -21598,11 +19322,11 @@ "callback_policy": null }, { - "name": "num_points", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -21610,16 +19334,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -21627,9 +19351,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, @@ -21637,155 +19361,120 @@ "callback_policy": null }, { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", + "name": "out_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x1" + "source_text": "int out_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x1" + "source_text": "int out_w" }, "source_location": null, "callback_policy": null }, { - "name": "y1", + "name": "out_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y1" + "source_text": "int out_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y1" + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "x2", + "name": "out_stride", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x2" + "source_text": "int out_stride" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float x2" + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "y2", + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y2" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "objspace_flatness_squared", + "name": "scale_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float scale_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3555, + "line": 887, "column": 1, - "source_line": "static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)" + "source_line": "extern void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3555, - "column": 1, - "source_line": "static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3573, + "line": 887, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint);" }, + "end": null, "declaration_locations": [] }, - "stbtt__tesselate_cubic": { - "name": "stbtt__tesselate_cubic", + "stbtt_MakeCodepointBitmapSubpixel": { + "name": "stbtt_MakeCodepointBitmapSubpixel", "result_type": { "model": "CVoid", "qualifiers": [], @@ -21793,11 +19482,11 @@ }, "parameters": [ { - "name": "points", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -21805,14 +19494,14 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt__point *points", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -21820,7 +19509,7 @@ "source_text": "" }, { - "reference": "stbtt__point" + "reference": "stbtt_fontinfo" } ] }, @@ -21828,11 +19517,11 @@ "callback_policy": null }, { - "name": "num_points", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -21840,16 +19529,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *num_points", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -21857,9 +19546,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" } ] }, @@ -21867,360 +19556,162 @@ "callback_policy": null }, { - "name": "x0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y2", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y2" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y2" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x3", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x3" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x3" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y3", + "name": "out_w", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y3" + "source_text": "int out_w" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float y3" + "source_text": "int out_w" }, "source_location": null, "callback_policy": null }, { - "name": "objspace_flatness_squared", + "name": "out_h", "type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "int out_h" }, "declared_type": { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float objspace_flatness_squared" + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "out_stride", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int out_stride" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3575, - "column": 1, - "source_line": "static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3575, - "column": 1, - "source_line": "static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3615, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_FlattenCurves": { - "name": "stbtt_FlattenCurves", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__point", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__point" - } - ] - }, - "parameters": [ + }, { - "name": "vertices", + "name": "scale_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "stbtt_vertex *vertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" - } - ] + "source_text": "float scale_x" }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_vertex *vertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt_vertex" - } - ] + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "num_verts", + "name": "scale_y", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int num_verts" + "source_text": "float scale_y" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int num_verts" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "objspace_flatness", + "name": "shift_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness" + "source_text": "float shift_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float objspace_flatness" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "contour_lengths", + "name": "shift_y", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "int **contour_lengths", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "float shift_y" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "int **contour_lengths", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "num_contours", + "name": "codepoint", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *num_contours", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int codepoint" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *num_contours", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 893, + "column": 1, + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 893, + "column": 1, + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint);" + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_MakeCodepointBitmapSubpixelPrefilter": { + "name": "stbtt_MakeCodepointBitmapSubpixelPrefilter", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "userdata", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -22228,16 +19719,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *userdata", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -22245,57 +19734,19 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stbtt_fontinfo" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3618, - "column": 1, - "source_line": "static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3618, - "column": 1, - "source_line": "static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3693, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_BakeFontBitmap_internal": { - "name": "stbtt_BakeFontBitmap_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "data", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -22312,7 +19763,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *data", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -22330,140 +19781,185 @@ "callback_policy": null }, { - "name": "offset", + "name": "out_w", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int offset" + "source_text": "int out_w" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int offset" + "source_text": "int out_w" }, "source_location": null, "callback_policy": null }, { - "name": "pixel_height", + "name": "out_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float pixel_height" + "source_text": "float scale_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float pixel_height" + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "pixels", + "name": "scale_y", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float scale_y" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char *pixels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "pw", + "name": "shift_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int pw" + "source_text": "float shift_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int pw" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "ph", + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "oversample_x", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int ph" + "source_text": "int oversample_x" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int ph" + "source_text": "int oversample_x" }, "source_location": null, "callback_policy": null }, { - "name": "first_char", + "name": "oversample_y", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int first_char" + "source_text": "int oversample_y" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int first_char" + "source_text": "int oversample_y" }, "source_location": null, "callback_policy": null }, { - "name": "num_chars", + "name": "sub_x", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_chars" + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_chars" + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "chardata", + "name": "sub_y", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_bakedchar *chardata", + "source_text": "float *sub_y", "components": [ { "model": "CPointer", @@ -22471,14 +19967,16 @@ "source_text": "" }, { - "reference": "stbtt_bakedchar" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_bakedchar *chardata", + "source_text": "float *sub_y", "components": [ { "model": "CPointer", @@ -22486,43 +19984,55 @@ "source_text": "" }, { - "reference": "stbtt_bakedchar" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3813, + "line": 897, "column": 1, - "source_line": "static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf)" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3813, + "line": 897, "column": 1, - "source_line": "static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3857, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint);" }, + "end": null, "declaration_locations": [] }, - "stbrp_init_target": { - "name": "stbrp_init_target", + "stbtt_GetCodepointBitmapBox": { + "name": "stbtt_GetCodepointBitmapBox", "result_type": { "model": "CVoid", "qualifiers": [], @@ -22530,11 +20040,11 @@ }, "parameters": [ { - "name": "con", + "name": "font", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -22542,14 +20052,14 @@ "source_text": "" }, { - "reference": "stbrp_context" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -22557,7 +20067,7 @@ "source_text": "" }, { - "reference": "stbrp_context" + "reference": "stbtt_fontinfo" } ] }, @@ -22565,41 +20075,56 @@ "callback_policy": null }, { - "name": "pw", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int pw" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int pw" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "ph", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int ph" + "source_text": "float scale_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int ph" + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "nodes", + "name": "ix0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *nodes", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -22607,14 +20132,16 @@ "source_text": "" }, { - "reference": "stbrp_node" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_node *nodes", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -22622,7 +20149,9 @@ "source_text": "" }, { - "reference": "stbrp_node" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -22630,62 +20159,11 @@ "callback_policy": null }, { - "name": "num_nodes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_nodes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_nodes" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3917, - "column": 1, - "source_line": "static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3917, - "column": 1, - "source_line": "static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3926, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbrp_pack_rects": { - "name": "stbrp_pack_rects", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "con", + "name": "iy0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "int *iy0", "components": [ { "model": "CPointer", @@ -22693,14 +20171,16 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_context *con", + "source_text": "int *iy0", "components": [ { "model": "CPointer", @@ -22708,7 +20188,9 @@ "source_text": "" }, { - "reference": "stbrp_context" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -22716,11 +20198,11 @@ "callback_policy": null }, { - "name": "rects", + "name": "ix1", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_rect *rects", + "source_text": "int *ix1", "components": [ { "model": "CPointer", @@ -22728,14 +20210,16 @@ "source_text": "" }, { - "reference": "stbrp_rect" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbrp_rect *rects", + "source_text": "int *ix1", "components": [ { "model": "CPointer", @@ -22743,7 +20227,9 @@ "source_text": "" }, { - "reference": "stbrp_rect" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -22751,50 +20237,69 @@ "callback_policy": null }, { - "name": "num_rects", + "name": "iy1", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_rects" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_rects" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 3928, + "line": 901, "column": 1, - "source_line": "static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects)" + "source_line": "extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 3928, - "column": 1, - "source_line": "static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3947, + "line": 901, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, + "end": null, "declaration_locations": [] }, - "stbtt__h_prefilter": { - "name": "stbtt__h_prefilter", + "stbtt_GetCodepointBitmapBoxSubpixel": { + "name": "stbtt_GetCodepointBitmapBoxSubpixel", "result_type": { "model": "CVoid", "qualifiers": [], @@ -22802,11 +20307,11 @@ }, "parameters": [ { - "name": "pixels", + "name": "font", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -22814,16 +20319,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "const stbtt_fontinfo *font", "components": [ { "model": "CPointer", @@ -22831,9 +20334,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbtt_fontinfo" } ] }, @@ -22841,107 +20342,86 @@ "callback_policy": null }, { - "name": "w", + "name": "codepoint", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int codepoint" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int w" + "source_text": "int codepoint" }, "source_location": null, "callback_policy": null }, { - "name": "h", + "name": "scale_x", "type": { - "model": "CInt", + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "int h" + "source_text": "float scale_y" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int h" + "source_text": "float scale_y" }, "source_location": null, "callback_policy": null }, { - "name": "stride_in_bytes", + "name": "shift_x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "float shift_x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "kernel_width", + "name": "shift_y", "type": { - "model": "CUnsignedInt", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned int kernel_width" + "source_text": "float shift_y" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned int kernel_width" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4012, - "column": 1, - "source_line": "static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4012, - "column": 1, - "source_line": "static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4072, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__v_prefilter": { - "name": "stbtt__v_prefilter", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "pixels", + "name": "ix0", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -22949,16 +20429,16 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *pixels", + "source_text": "int *ix0", "components": [ { "model": "CPointer", @@ -22966,9 +20446,9 @@ "source_text": "" }, { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" + "source_text": "int" } ] }, @@ -22976,158 +20456,171 @@ "callback_policy": null }, { - "name": "w", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int w" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "h", + "name": "iy0", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int h" + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "stride_in_bytes", + "name": "ix1", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int stride_in_bytes" + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "kernel_width", + "name": "iy1", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int kernel_width" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int kernel_width" + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4074, + "line": 908, "column": 1, - "source_line": "static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" + "source_line": "extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4074, + "line": 908, "column": 1, - "source_line": "static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4134, - "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" }, + "end": null, "declaration_locations": [] }, - "stbtt__oversample_shift": { - "name": "stbtt__oversample_shift", + "stbtt_GetGlyphBitmap": { + "name": "stbtt_GetGlyphBitmap", "result_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "oversample", - "type": { - "model": "CInt", + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int oversample" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "int oversample" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4136, - "column": 1, - "source_line": "static float stbtt__oversample_shift(int oversample)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4136, - "column": 1, - "source_line": "static float stbtt__oversample_shift(int oversample)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4146, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__ray_intersect_bezier": { - "name": "stbtt__ray_intersect_bezier", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "orig", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float orig[2]", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -23135,30 +20628,22 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float orig[2]", + "source_text": "const stbtt_fontinfo *info", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -23166,54 +20651,56 @@ "callback_policy": null }, { - "name": "ray", + "name": "scale_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float ray[2]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float scale_x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float ray[2]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "source_location": null, "callback_policy": null }, { - "name": "q0", + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q0[2]", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -23221,30 +20708,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q0[2]", + "source_text": "int *width", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23252,11 +20735,11 @@ "callback_policy": null }, { - "name": "q1", + "name": "height", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q1[2]", + "source_text": "int *height", "components": [ { "model": "CPointer", @@ -23264,30 +20747,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q1[2]", + "source_text": "int *height", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23295,11 +20774,11 @@ "callback_policy": null }, { - "name": "q2", + "name": "xoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q2[2]", + "source_text": "int *xoff", "components": [ { "model": "CPointer", @@ -23307,30 +20786,26 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float q2[2]", + "source_text": "int *xoff", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23338,11 +20813,11 @@ "callback_policy": null }, { - "name": "hits", + "name": "yoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float hits[2][2]", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -23350,48 +20825,26 @@ "source_text": "" }, { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float hits[2][2]", + "source_text": "int *yoff", "components": [ { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23400,46 +20853,53 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4398, + "line": 914, "column": 1, - "source_line": "static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2])" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4398, - "column": 1, - "source_line": "static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2])" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4460, + "line": 914, "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, - "equal": { - "name": "equal", + "stbtt_GetGlyphBitmapSubpixel": { + "name": "stbtt_GetGlyphBitmapSubpixel", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] }, "parameters": [ { - "name": "a", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *a", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -23447,16 +20907,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *a", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -23464,9 +20922,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stbtt_fontinfo" } ] }, @@ -23474,131 +20930,86 @@ "callback_policy": null }, { - "name": "b", + "name": "scale_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float scale_x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "float *b", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4462, - "column": 1, - "source_line": "static int equal(float *a, float *b)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4462, - "column": 1, - "source_line": "static int equal(float *a, float *b)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4465, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__compute_crossings_x": { - "name": "stbtt__compute_crossings_x", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "x", + "name": "shift_x", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float shift_x" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float x" + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "y", + "name": "shift_y", "type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float shift_y" }, "declared_type": { "model": "CFloat", "qualifiers": [], - "source_text": "float y" + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "nverts", + "name": "glyph", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int nverts" + "source_text": "int glyph" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int nverts" + "source_text": "int glyph" }, "source_location": null, "callback_policy": null }, { - "name": "verts", + "name": "width", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *verts", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -23606,14 +21017,16 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_vertex *verts", + "source_text": "int *width", "components": [ { "model": "CPointer", @@ -23621,151 +21034,99 @@ "source_text": "" }, { - "reference": "stbtt_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4467, - "column": 1, - "source_line": "static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4467, - "column": 1, - "source_line": "static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4533, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__cuberoot": { - "name": "stbtt__cuberoot", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4535, - "column": 1, - "source_line": "static float stbtt__cuberoot( float x )" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4535, - "column": 1, - "source_line": "static float stbtt__cuberoot( float x )" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4541, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt__solve_cubic": { - "name": "stbtt__solve_cubic", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float a" - }, - "source_location": null, - "callback_policy": null }, { - "name": "b", + "name": "height", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float b" + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float b" + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "c", + "name": "xoff", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float c" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float c" + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "r", + "name": "yoff", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * r", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -23773,16 +21134,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float * r", + "source_text": "int *yoff", "components": [ { "model": "CPointer", @@ -23790,9 +21151,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -23801,44 +21162,41 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4544, + "line": 915, "column": 1, - "source_line": "static int stbtt__solve_cubic(float a, float b, float c, float* r)" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4544, + "line": 915, "column": 1, - "source_line": "static int stbtt__solve_cubic(float a, float b, float c, float* r)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4573, - "column": 1, - "source_line": "}" + "source_line": "extern unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff);" }, + "end": null, "declaration_locations": [] }, - "stbtt__CompareUTF8toUTF16_bigendian_prefix": { - "name": "stbtt__CompareUTF8toUTF16_bigendian_prefix", + "stbtt_MakeGlyphBitmap": { + "name": "stbtt_MakeGlyphBitmap", "result_type": { - "reference": "stbtt_int32" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "s1", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s1", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -23846,14 +21204,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s1", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -23861,7 +21219,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -23869,22 +21227,11 @@ "callback_policy": null }, { - "name": "len1", - "type": { - "reference": "stbtt_int32" - }, - "declared_type": { - "reference": "stbtt_int32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "s2", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s2", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -23892,14 +21239,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *s2", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -23907,7 +21256,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -23915,202 +21266,132 @@ "callback_policy": null }, { - "name": "len2", + "name": "out_w", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4778, - "column": 1, - "source_line": "static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4778, - "column": 1, - "source_line": "static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4815, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_CompareUTF8toUTF16_bigendian_internal": { - "name": "stbtt_CompareUTF8toUTF16_bigendian_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "s1", + "name": "out_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char *s1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int out_h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char *s1", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "len1", + "name": "out_stride", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len1" + "source_text": "int out_stride" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len1" + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "s2", + "name": "scale_x", "type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "char *s2", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "float scale_x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "char *s2", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null }, { - "name": "len2", + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len2" + "source_text": "int glyph" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len2" + "source_text": "int glyph" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4817, + "line": 916, "column": 1, - "source_line": "static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2)" + "source_line": "extern void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4817, - "column": 1, - "source_line": "static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4820, + "line": 916, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph);" }, + "end": null, "declaration_locations": [] }, - "stbtt__matchpair": { - "name": "stbtt__matchpair", + "stbtt_MakeGlyphBitmapSubpixel": { + "name": "stbtt_MakeGlyphBitmapSubpixel", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "fc", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -24118,14 +21399,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -24133,7 +21414,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -24141,22 +21422,11 @@ "callback_policy": null }, { - "name": "nm", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "name", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -24164,14 +21434,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -24179,7 +21451,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -24187,80 +21461,162 @@ "callback_policy": null }, { - "name": "nlen", + "name": "out_w", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_h", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_h" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "out_stride", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int out_stride" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", "type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" }, "source_location": null, "callback_policy": null }, { - "name": "target_id", + "name": "shift_y", "type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" }, "source_location": null, "callback_policy": null }, { - "name": "next_id", + "name": "glyph", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4845, + "line": 917, "column": 1, - "source_line": "static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id)" + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph);" }, "start": { "filename": "stb/stb_truetype.h", - "line": 4845, - "column": 1, - "source_line": "static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4890, + "line": 917, "column": 1, - "source_line": "}" + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph);" }, + "end": null, "declaration_locations": [] }, - "stbtt__matches": { - "name": "stbtt__matches", + "stbtt_MakeGlyphBitmapSubpixelPrefilter": { + "name": "stbtt_MakeGlyphBitmapSubpixelPrefilter", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "fc", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -24268,14 +21624,14 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *fc", + "source_text": "const stbtt_fontinfo *info", "components": [ { "model": "CPointer", @@ -24283,7 +21639,7 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "reference": "stbtt_fontinfo" } ] }, @@ -24291,22 +21647,11 @@ "callback_policy": null }, { - "name": "offset", - "type": { - "reference": "stbtt_uint32" - }, - "declared_type": { - "reference": "stbtt_uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "name", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -24314,14 +21659,16 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbtt_uint8 *name", + "source_text": "unsigned char *output", "components": [ { "model": "CPointer", @@ -24329,7 +21676,9 @@ "source_text": "" }, { - "reference": "stbtt_uint8" + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } ] }, @@ -24337,3125 +21686,2874 @@ "callback_policy": null }, { - "name": "flags", + "name": "out_w", "type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CInt", + "qualifiers": [], + "source_text": "int out_w" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4892, - "column": 1, - "source_line": "static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4892, - "column": 1, - "source_line": "static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4919, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbtt_FindMatchingFont_internal": { - "name": "stbtt_FindMatchingFont_internal", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "font_collection", + "name": "out_h", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *font_collection", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int out_h" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *font_collection", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int out_h" }, "source_location": null, "callback_policy": null }, { - "name": "name_utf8", + "name": "out_stride", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char *name_utf8", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int out_stride" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "char *name_utf8", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] + "source_text": "int out_stride" }, "source_location": null, "callback_policy": null }, { - "name": "flags", + "name": "scale_x", "type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" }, "declared_type": { - "reference": "stbtt_int32" + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4921, - "column": 1, - "source_line": "static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 4921, - "column": 1, - "source_line": "static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 4930, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stbtt__hheap_chunk": { - "reference": "struct stbtt__hheap_chunk" - }, - "stbtt__hheap": { - "reference": "struct stbtt__hheap" - }, - "stbtt__edge": { - "reference": "struct stbtt__edge" - }, - "stbtt__active_edge": { - "reference": "struct stbtt__active_edge" - }, - "stbrp_rect": { - "reference": "struct stbrp_rect" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "stbtt_uint8": { - "reference": "stbtt_uint8" - }, - "stbtt_int8": { - "reference": "stbtt_int8" - }, - "stbtt_uint16": { - "reference": "stbtt_uint16" - }, - "stbtt_int16": { - "reference": "stbtt_int16" - }, - "stbtt_uint32": { - "reference": "stbtt_uint32" - }, - "stbtt_int32": { - "reference": "stbtt_int32" - }, - "stbtt__check_size32": { - "reference": "stbtt__check_size32" - }, - "stbtt__check_size16": { - "reference": "stbtt__check_size16" - }, - "stbtt__test_oversample_pow2": { - "reference": "stbtt__test_oversample_pow2" - }, - "stbtt__csctx": { - "reference": "stbtt__csctx" - }, - "stbtt__hheap_chunk": { - "reference": "stbtt__hheap_chunk" - }, - "stbtt__hheap": { - "reference": "stbtt__hheap" - }, - "stbtt__edge": { - "reference": "stbtt__edge" - }, - "stbtt__active_edge": { - "reference": "stbtt__active_edge" - }, - "stbtt__point": { - "reference": "stbtt__point" - }, - "stbrp_coord": { - "reference": "stbrp_coord" - }, - "stbrp_context": { - "reference": "stbrp_context" - }, - "stbrp_node": { - "reference": "stbrp_node" - } - }, - "variables": { - "ttf_buffer": { - "name": "ttf_buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char ttf_buffer[1<<20]", - "components": [ - { - "model": "CArray", + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "1<<20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float scale_y" }, - { - "model": "CUnsignedChar", + "declared_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 281, - "column": 1, - "source_line": "unsigned char ttf_buffer[1<<20];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "temp_bitmap": { - "name": "temp_bitmap", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char temp_bitmap[512*512]", - "components": [ - { - "model": "CArray", + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "512*512", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float shift_x" }, - { - "model": "CUnsignedChar", + "declared_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 282, - "column": 1, - "source_line": "unsigned char temp_bitmap[512*512];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "cdata": { - "name": "cdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt_bakedchar cdata[96]", - "components": [ - { - "model": "CArray", + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "96", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float shift_y" }, - { - "reference": "stbtt_bakedchar" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 284, - "column": 1, - "source_line": "stbtt_bakedchar cdata[96]; // ASCII 32..126 is 95 glyphs" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "ftex": { - "name": "ftex", - "type": { - "reference": "GLuint" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 285, - "column": 1, - "source_line": "GLuint ftex;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "buffer": { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char buffer[24<<20]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CFloat", "qualifiers": [], - "source_text": "", - "bound": "24<<20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "float shift_y" }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 372, - "column": 1, - "source_line": "char buffer[24<<20];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "screen": { - "name": "screen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char screen[20][79]", - "components": [ - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "oversample_x", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "20", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int oversample_x" }, - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "79", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int oversample_x" }, - { - "model": "CUnsignedChar", + "source_location": null, + "callback_policy": null + }, + { + "name": "oversample_y", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 373, - "column": 1, - "source_line": "unsigned char screen[20][79];" - }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_TRUETYPE_IMPLEMENTATION": { - "name": "STB_TRUETYPE_IMPLEMENTATION", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 329, - "column": 1, - "source_line": "#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation" - } - }, - "STBTT_ifloor": { - "name": "STBTT_ifloor", - "value": "((int) floor(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 442, - "column": 4, - "source_line": " #define STBTT_ifloor(x) ((int) floor(x))" - } - }, - "STBTT_iceil": { - "name": "STBTT_iceil", - "value": "((int) ceil(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 443, - "column": 4, - "source_line": " #define STBTT_iceil(x) ((int) ceil(x))" - } - }, - "STBTT_sqrt": { - "name": "STBTT_sqrt", - "value": "sqrt(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 448, - "column": 4, - "source_line": " #define STBTT_sqrt(x) sqrt(x)" - } - }, - "STBTT_pow": { - "name": "STBTT_pow", - "value": "pow(x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 449, - "column": 4, - "source_line": " #define STBTT_pow(x,y) pow(x,y)" - } - }, - "STBTT_fmod": { - "name": "STBTT_fmod", - "value": "fmod(x,y)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 454, - "column": 4, - "source_line": " #define STBTT_fmod(x,y) fmod(x,y)" - } - }, - "STBTT_cos": { - "name": "STBTT_cos", - "value": "cos(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 459, - "column": 4, - "source_line": " #define STBTT_cos(x) cos(x)" - } - }, - "STBTT_acos": { - "name": "STBTT_acos", - "value": "acos(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 460, - "column": 4, - "source_line": " #define STBTT_acos(x) acos(x)" - } - }, - "STBTT_fabs": { - "name": "STBTT_fabs", - "value": "fabs(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 465, - "column": 4, - "source_line": " #define STBTT_fabs(x) fabs(x)" - } - }, - "STBTT_malloc": { - "name": "STBTT_malloc", - "value": "((void)(u),malloc(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 471, - "column": 4, - "source_line": " #define STBTT_malloc(x,u) ((void)(u),malloc(x))" - } - }, - "STBTT_free": { - "name": "STBTT_free", - "value": "((void)(u),free(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 472, - "column": 4, - "source_line": " #define STBTT_free(x,u) ((void)(u),free(x))" - } - }, - "STBTT_assert": { - "name": "STBTT_assert", - "value": "assert(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 477, - "column": 4, - "source_line": " #define STBTT_assert(x) assert(x)" - } - }, - "STBTT_strlen": { - "name": "STBTT_strlen", - "value": "strlen(x)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 482, - "column": 4, - "source_line": " #define STBTT_strlen(x) strlen(x)" - } - }, - "STBTT_memcpy": { - "name": "STBTT_memcpy", - "value": "memcpy", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 487, - "column": 4, - "source_line": " #define STBTT_memcpy memcpy" - } - }, - "STBTT_memset": { - "name": "STBTT_memset", - "value": "memset", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 488, - "column": 4, - "source_line": " #define STBTT_memset memset" - } - }, - "__STB_INCLUDE_STB_TRUETYPE_H__": { - "name": "__STB_INCLUDE_STB_TRUETYPE_H__", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 500, - "column": 1, - "source_line": "#define __STB_INCLUDE_STB_TRUETYPE_H__" - } - }, - "STBTT_DEF": { - "name": "STBTT_DEF", - "value": "extern", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 505, - "column": 1, - "source_line": "#define STBTT_DEF extern" - } - }, - "STBTT_POINT_SIZE": { - "name": "STBTT_POINT_SIZE", - "value": "(-(x))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 602, - "column": 1, - "source_line": "#define STBTT_POINT_SIZE(x) (-(x))" - } - }, - "stbtt_vertex_type": { - "name": "stbtt_vertex_type", - "value": "short", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 834, - "column": 4, - "source_line": " #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file" - } - }, - "STBTT_MACSTYLE_DONTCARE": { - "name": "STBTT_MACSTYLE_DONTCARE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1026, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_DONTCARE 0" - } - }, - "STBTT_MACSTYLE_BOLD": { - "name": "STBTT_MACSTYLE_BOLD", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1027, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_BOLD 1" - } - }, - "STBTT_MACSTYLE_ITALIC": { - "name": "STBTT_MACSTYLE_ITALIC", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1028, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_ITALIC 2" - } - }, - "STBTT_MACSTYLE_UNDERSCORE": { - "name": "STBTT_MACSTYLE_UNDERSCORE", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1029, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_UNDERSCORE 4" - } - }, - "STBTT_MACSTYLE_NONE": { - "name": "STBTT_MACSTYLE_NONE", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1030, - "column": 1, - "source_line": "#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0" - } - }, - "STBTT_MAX_OVERSAMPLE": { - "name": "STBTT_MAX_OVERSAMPLE", - "value": "8", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1109, - "column": 1, - "source_line": "#define STBTT_MAX_OVERSAMPLE 8" - } - }, - "STBTT_RASTERIZER_VERSION": { - "name": "STBTT_RASTERIZER_VERSION", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1119, - "column": 1, - "source_line": "#define STBTT_RASTERIZER_VERSION 2" - } - }, - "STBTT__NOTUSED": { - "name": "STBTT__NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1125, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)sizeof(v)" - } - }, - "stbtt__buf_get16": { - "name": "stbtt__buf_get16", - "value": "stbtt__buf_get((b), 2)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1178, - "column": 1, - "source_line": "#define stbtt__buf_get16(b) stbtt__buf_get((b), 2)" - } - }, - "stbtt__buf_get32": { - "name": "stbtt__buf_get32", - "value": "stbtt__buf_get((b), 4)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1179, - "column": 1, - "source_line": "#define stbtt__buf_get32(b) stbtt__buf_get((b), 4)" - } - }, - "ttBYTE": { - "name": "ttBYTE", - "value": "(* (stbtt_uint8 *) (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1282, - "column": 1, - "source_line": "#define ttBYTE(p) (* (stbtt_uint8 *) (p))" - } - }, - "ttCHAR": { - "name": "ttCHAR", - "value": "(* (stbtt_int8 *) (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1283, - "column": 1, - "source_line": "#define ttCHAR(p) (* (stbtt_int8 *) (p))" - } - }, - "ttFixed": { - "name": "ttFixed", - "value": "ttLONG(p)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1284, - "column": 1, - "source_line": "#define ttFixed(p) ttLONG(p)" - } - }, - "stbtt_tag4": { - "name": "stbtt_tag4", - "value": "((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1291, - "column": 1, - "source_line": "#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))" - } - }, - "stbtt_tag": { - "name": "stbtt_tag", - "value": "stbtt_tag4(p,str[0],str[1],str[2],str[3])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1292, - "column": 1, - "source_line": "#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3])" - } - }, - "STBTT__CSCTX_INIT": { - "name": "STBTT__CSCTX_INIT", - "value": "{bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 1909, - "column": 1, - "source_line": "#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}" - } - }, - "STBTT__CSERR": { - "name": "STBTT__CSERR", - "value": null, - "function_like": false, - "directive": "undef", + "source_text": "int oversample_y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int oversample_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sub_x", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_x", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sub_y", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *sub_y", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2266, + "line": 918, "column": 1, - "source_line": "#undef STBTT__CSERR" - } - }, - "STBTT_GPOS_TODO_assert": { - "name": "STBTT_GPOS_TODO_assert", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph);" + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 2494, + "line": 918, "column": 1, - "source_line": "#define STBTT_GPOS_TODO_assert(x)" - } + "source_line": "extern void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph);" + }, + "end": null, + "declaration_locations": [] }, - "STBTT_FIXSHIFT": { - "name": "STBTT_FIXSHIFT", - "value": "10", - "function_like": false, - "directive": "define", + "stbtt_GetGlyphBitmapBox": { + "name": "stbtt_GetGlyphBitmapBox", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2831, + "line": 919, "column": 1, - "source_line": "#define STBTT_FIXSHIFT 10" - } - }, - "STBTT_FIX": { - "name": "STBTT_FIX", - "value": "(1 << STBTT_FIXSHIFT)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "extern void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 2832, + "line": 919, "column": 1, - "source_line": "#define STBTT_FIX (1 << STBTT_FIXSHIFT)" - } + "source_line": "extern void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "end": null, + "declaration_locations": [] }, - "STBTT_FIXMASK": { - "name": "STBTT_FIXMASK", - "value": "(STBTT_FIX-1)", - "function_like": false, - "directive": "define", + "stbtt_GetGlyphBitmapBoxSubpixel": { + "name": "stbtt_GetGlyphBitmapBoxSubpixel", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy0", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy0", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "ix1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *ix1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "iy1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *iy1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 2833, + "line": 920, "column": 1, - "source_line": "#define STBTT_FIXMASK (STBTT_FIX-1)" - } - }, - "STBTT__COMPARE": { - "name": "STBTT__COMPARE", - "value": "((a)->y0 < (b)->y0)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 3397, + "line": 920, "column": 1, - "source_line": "#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0)" - } + "source_line": "extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);" + }, + "end": null, + "declaration_locations": [] }, - "STBTT__OVER_MASK": { - "name": "STBTT__OVER_MASK", - "value": "(STBTT_MAX_OVERSAMPLE-1)", - "function_like": false, - "directive": "define", + "stbtt_Rasterize": { + "name": "stbtt_Rasterize", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "result", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt__bitmap *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt__bitmap" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt__bitmap *result", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt__bitmap" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "flatness_in_pixels", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float flatness_in_pixels" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float flatness_in_pixels" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "vertices", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbtt_vertex *vertices", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_vertex" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_verts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_verts" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_verts" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_x", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "shift_y", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float shift_y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "invert", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int invert" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int invert" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "userdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 4010, + "line": 931, "column": 1, - "source_line": "#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1)" - } - }, - "STBTT_min": { - "name": "STBTT_min", - "value": "((a) < (b) ? (a) : (b))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "extern void stbtt_Rasterize(stbtt__bitmap *result," + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 4395, + "line": 931, "column": 1, - "source_line": "#define STBTT_min(a,b) ((a) < (b) ? (a) : (b))" - } + "source_line": "extern void stbtt_Rasterize(stbtt__bitmap *result," + }, + "end": null, + "declaration_locations": [] }, - "STBTT_max": { - "name": "STBTT_max", - "value": "((a) < (b) ? (b) : (a))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 4396, - "column": 1, - "source_line": "#define STBTT_max(a,b) ((a) < (b) ? (b) : (a))" - } - } - }, - "includes": { - "stb/stb_truetype.h:stb_truetype.h": { - "target": "stb_truetype.h", - "kind": "local", - "resolved_path": "stb/stb_truetype.h", + "stbtt_FreeSDF": { + "name": "stbtt_FreeSDF", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "bitmap", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *bitmap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char *bitmap", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "userdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *userdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_truetype.h", - "line": 330, + "line": 945, "column": 1, - "source_line": "#include \"stb_truetype.h\"" - } - }, - "stb/stb_truetype.h:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "extern void stbtt_FreeSDF(unsigned char *bitmap, void *userdata);" + }, + "start": { "filename": "stb/stb_truetype.h", - "line": 328, + "line": 945, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_truetype.h:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 464, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_truetype.h:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 470, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_truetype.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 476, - "column": 4, - "source_line": " #include " - } + "source_line": "extern void stbtt_FreeSDF(unsigned char *bitmap, void *userdata);" + }, + "end": null, + "declaration_locations": [] }, - "stb/stb_truetype.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 486, - "column": 4, - "source_line": " #include " - } - } - }, - "functions_by_file": { - "stb/stb_truetype.h": [ - "my_stbtt_initfont", - "my_stbtt_print", - "main", - "stbtt__buf_get8", - "stbtt__buf_peek8", - "stbtt__buf_seek", - "stbtt__buf_skip", - "stbtt__buf_get", - "stbtt__new_buf", - "stbtt__buf_range", - "stbtt__cff_get_index", - "stbtt__cff_int", - "stbtt__cff_skip_operand", - "stbtt__dict_get", - "stbtt__dict_get_ints", - "stbtt__cff_index_count", - "stbtt__cff_index_get", - "ttUSHORT", - "ttSHORT", - "ttULONG", - "ttLONG", - "stbtt__isfont", - "stbtt__find_table", - "stbtt_GetFontOffsetForIndex_internal", - "stbtt_GetNumberOfFonts_internal", - "stbtt__get_subrs", - "stbtt__get_svg", - "stbtt_InitFont_internal", - "stbtt_setvertex", - "stbtt__GetGlyfOffset", - "stbtt__GetGlyphInfoT2", - "stbtt__close_shape", - "stbtt__GetGlyphShapeTT", - "stbtt__track_vertex", - "stbtt__csctx_v", - "stbtt__csctx_close_shape", - "stbtt__csctx_rmove_to", - "stbtt__csctx_rline_to", - "stbtt__csctx_rccurve_to", - "stbtt__get_subr", - "stbtt__cid_get_glyph_subrs", - "stbtt__run_charstring", - "stbtt__GetGlyphShapeT2", - "stbtt__GetGlyphKernInfoAdvance", - "stbtt__GetCoverageIndex", - "stbtt__GetGlyphClass", - "stbtt__GetGlyphGPOSInfoAdvance", - "stbtt__hheap_alloc", - "stbtt__hheap_free", - "stbtt__hheap_cleanup", - "stbtt__new_active", - "stbtt__new_active", - "stbtt__fill_active_edges", - "stbtt__rasterize_sorted_edges", - "stbtt__handle_clipped_edge", - "stbtt__sized_trapezoid_area", - "stbtt__position_trapezoid_area", - "stbtt__sized_triangle_area", - "stbtt__fill_active_edges_new", - "stbtt__rasterize_sorted_edges", - "stbtt__sort_edges_ins_sort", - "stbtt__sort_edges_quicksort", - "stbtt__sort_edges", - "stbtt__rasterize", - "stbtt__add_point", - "stbtt__tesselate_curve", - "stbtt__tesselate_cubic", - "stbtt_FlattenCurves", - "stbtt_BakeFontBitmap_internal", - "stbrp_init_target", - "stbrp_pack_rects", - "stbtt__h_prefilter", - "stbtt__v_prefilter", - "stbtt__oversample_shift", - "stbtt__ray_intersect_bezier", - "equal", - "stbtt__compute_crossings_x", - "stbtt__cuberoot", - "stbtt__solve_cubic", - "stbtt__CompareUTF8toUTF16_bigendian_prefix", - "stbtt_CompareUTF8toUTF16_bigendian_internal", - "stbtt__matchpair", - "stbtt__matches", - "stbtt_FindMatchingFont_internal" - ] - }, - "enum_constants": {}, - "include_graph": { - "stb/stb_truetype.h": [ - "stb/stb_truetype.h" - ] - }, - "system_includes": { - "stb/stb_truetype.h": [ - "assert.h", - "math.h", - "stdio.h", - "stdlib.h", - "string.h" - ] - }, - "unresolved_includes": { - "stb/stb_truetype.h": [] - }, - "header_source_pairs": { - "stb/stb_truetype.h": [] - }, - "conditional_function_variants": { - "stbtt__new_active": [ - { - "name": "stbtt__new_active", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__active_edge" - } - ] - }, - "parameters": [ + "stbtt_GetGlyphSDF": { + "name": "stbtt_GetGlyphSDF", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ { - "name": "hh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "source_location": null, - "callback_policy": null + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "source_location": null, - "callback_policy": null + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" + } + ] + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "glyph", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int glyph" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "onedge_value", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "declared_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_dist_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "width", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "xoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "yoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_truetype.h", + "line": 948, + "column": 1, + "source_line": "extern unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" + }, + "start": { + "filename": "stb/stb_truetype.h", + "line": 948, + "column": 1, + "source_line": "extern unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" + }, + "end": null, + "declaration_locations": [] + }, + "stbtt_GetCodepointSDF": { + "name": "stbtt_GetCodepointSDF", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "unsigned char", + "components": [ { - "name": "start_point", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float start_point" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float start_point" - }, - "source_location": null, - "callback_policy": null + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, { - "name": "userdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char" } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2835, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2835, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2855, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g28:b0" ] }, - { - "name": "stbtt__new_active", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__active_edge", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__active_edge" - } - ] + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null }, - "parameters": [ - { - "name": "hh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__hheap *hh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__hheap" - } - ] - }, - "source_location": null, - "callback_policy": null + { + "name": "scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float scale" }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null + "source_location": null, + "callback_policy": null + }, + { + "name": "codepoint", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" }, - { - "name": "start_point", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float start_point" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float start_point" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int codepoint" }, - { - "name": "userdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2857, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2857, - "column": 1, - "source_line": "static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 2873, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g28:b1" - ] - } - ], - "stbtt__rasterize_sorted_edges": [ - { - "name": "stbtt__rasterize_sorted_edges", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "source_location": null, + "callback_policy": null }, - "parameters": [ - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__bitmap *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__bitmap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__bitmap *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__bitmap" - } - ] - }, - "source_location": null, - "callback_policy": null + { + "name": "padding", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int padding" }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null + "source_location": null, + "callback_policy": null + }, + { + "name": "onedge_value", + "type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" }, - { - "name": "vsubsample", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CUnsignedChar", + "qualifiers": [], + "source_text": "unsigned char onedge_value" }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null + "source_location": null, + "callback_policy": null + }, + { + "name": "pixel_dist_scale", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" }, - { - "name": "off_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float pixel_dist_scale" }, - { - "name": "userdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 2924, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 2924, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g29:b0" - ] - }, - { - "name": "stbtt__rasterize_sorted_edges", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "source_location": null, + "callback_policy": null }, - "parameters": [ - { - "name": "result", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__bitmap *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__bitmap" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__bitmap *result", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__bitmap" - } - ] - }, - "source_location": null, - "callback_policy": null + { + "name": "width", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "e", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbtt__edge *e", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbtt__edge" - } - ] - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *width", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null + "source_location": null, + "callback_policy": null + }, + { + "name": "height", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "vsubsample", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int vsubsample" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *height", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "xoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *xoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "off_x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_x" - }, - "source_location": null, - "callback_policy": null + "source_location": null, + "callback_policy": null + }, + { + "name": "yoff", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "off_y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int off_y" - }, - "source_location": null, - "callback_policy": null + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *yoff", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - { - "name": "userdata", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *userdata", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_truetype.h", - "line": 3297, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "start": { - "filename": "stb/stb_truetype.h", - "line": 3297, - "column": 1, - "source_line": "static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)" - }, - "end": { - "filename": "stb/stb_truetype.h", - "line": 3392, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g22:b0", - "g29:b1" - ] - } - ] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_ifloor' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 442, - "column": 4, - "source_line": " #define STBTT_ifloor(x) ((int) floor(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_ifloor" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_iceil' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 443, - "column": 4, - "source_line": " #define STBTT_iceil(x) ((int) ceil(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_iceil" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_sqrt' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 448, - "column": 4, - "source_line": " #define STBTT_sqrt(x) sqrt(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_sqrt" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_pow' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 449, - "column": 4, - "source_line": " #define STBTT_pow(x,y) pow(x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_pow" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_fmod' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 454, - "column": 4, - "source_line": " #define STBTT_fmod(x,y) fmod(x,y)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_fmod" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_cos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 459, - "column": 4, - "source_line": " #define STBTT_cos(x) cos(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_cos" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_acos' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 460, - "column": 4, - "source_line": " #define STBTT_acos(x) acos(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_acos" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_fabs' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 465, - "column": 4, - "source_line": " #define STBTT_fabs(x) fabs(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_fabs" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_malloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 471, - "column": 4, - "source_line": " #define STBTT_malloc(x,u) ((void)(u),malloc(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_malloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 472, - "column": 4, - "source_line": " #define STBTT_free(x,u) ((void)(u),free(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_assert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 477, - "column": 4, - "source_line": " #define STBTT_assert(x) assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_assert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_strlen' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 482, - "column": 4, - "source_line": " #define STBTT_strlen(x) strlen(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_strlen" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_POINT_SIZE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 602, - "column": 1, - "source_line": "#define STBTT_POINT_SIZE(x) (-(x))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_POINT_SIZE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1123, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1125, - "column": 1, - "source_line": "#define STBTT__NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt__buf_get16' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1178, - "column": 1, - "source_line": "#define stbtt__buf_get16(b) stbtt__buf_get((b), 2)" - }, - "unit_kind": "macro", - "unit_name": "stbtt__buf_get16" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt__buf_get32' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1179, - "column": 1, - "source_line": "#define stbtt__buf_get32(b) stbtt__buf_get((b), 4)" - }, - "unit_kind": "macro", - "unit_name": "stbtt__buf_get32" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttBYTE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1282, - "column": 1, - "source_line": "#define ttBYTE(p) (* (stbtt_uint8 *) (p))" - }, - "unit_kind": "macro", - "unit_name": "ttBYTE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttCHAR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1283, - "column": 1, - "source_line": "#define ttCHAR(p) (* (stbtt_int8 *) (p))" - }, - "unit_kind": "macro", - "unit_name": "ttCHAR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ttFixed' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1284, - "column": 1, - "source_line": "#define ttFixed(p) ttLONG(p)" - }, - "unit_kind": "macro", - "unit_name": "ttFixed" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt_tag4' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1291, - "column": 1, - "source_line": "#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3))" - }, - "unit_kind": "macro", - "unit_name": "stbtt_tag4" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbtt_tag' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1292, - "column": 1, - "source_line": "#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3])" - }, - "unit_kind": "macro", - "unit_name": "stbtt_tag" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__CSCTX_INIT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1909, - "column": 1, - "source_line": "#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0}" - }, - "unit_kind": "macro", - "unit_name": "STBTT__CSCTX_INIT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__CSERR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2018, - "column": 1, - "source_line": "#define STBTT__CSERR(s) (0)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__CSERR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_GPOS_TODO_assert' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2494, - "column": 1, - "source_line": "#define STBTT_GPOS_TODO_assert(x)" - }, - "unit_kind": "macro", - "unit_name": "STBTT_GPOS_TODO_assert" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT__COMPARE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 3397, - "column": 1, - "source_line": "#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0)" - }, - "unit_kind": "macro", - "unit_name": "STBTT__COMPARE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_min' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4395, - "column": 1, - "source_line": "#define STBTT_min(a,b) ((a) < (b) ? (a) : (b))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_min" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBTT_max' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 4396, - "column": 1, - "source_line": "#define STBTT_max(a,b) ((a) < (b) ? (b) : (a))" - }, - "unit_kind": "macro", - "unit_name": "STBTT_max" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 509, + "line": 949, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "extern unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 1496, + "line": 949, "column": 1, - "source_line": "STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)" + "source_line": "extern unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1589, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices)" + "stbtt_FindMatchingFont": { + "name": "stbtt_FindMatchingFont", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "fontdata", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *fontdata", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "flags", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flags" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int flags" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 1625, + "line": 1021, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 1641, + "line": 1021, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1)" + "source_line": "extern int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 1646, - "column": 1, - "source_line": "STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index)" + "stbtt_CompareUTF8toUTF16_bigendian": { + "name": "stbtt_CompareUTF8toUTF16_bigendian", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "s1", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s1", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "s2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *s2", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len2", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len2" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len2" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2297, + "line": 1032, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices)" + "source_line": "extern int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2305, + "line": 1032, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing)" + "source_line": "extern int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "end": null, + "declaration_locations": [] }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_truetype.h", - "line": 2317, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info)" + "stbtt_GetFontNameString": { + "name": "stbtt_GetFontNameString", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "parameters": [ + { + "name": "font", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stbtt_fontinfo *font", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbtt_fontinfo" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "length", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *length", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *length", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "platformID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int platformID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int platformID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "encodingID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int encodingID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int encodingID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "languageID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int languageID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int languageID" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "nameID", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nameID" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int nameID" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2332, + "line": 1036, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length)" + "source_line": "extern const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "start": { "filename": "stb/stb_truetype.h", - "line": 2610, + "line": 1036, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2)" + "source_line": "extern const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID);" }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "end": null, + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_truetype.h": [ + "stbtt_BakeFontBitmap", + "stbtt_GetBakedQuad", + "stbtt_GetScaledFontVMetrics", + "stbtt_PackBegin", + "stbtt_PackEnd", + "stbtt_PackFontRange", + "stbtt_PackFontRanges", + "stbtt_PackSetOversampling", + "stbtt_PackSetSkipMissingCodepoints", + "stbtt_GetPackedQuad", + "stbtt_PackFontRangesGatherRects", + "stbtt_PackFontRangesPackRects", + "stbtt_PackFontRangesRenderIntoRects", + "stbtt_GetNumberOfFonts", + "stbtt_GetFontOffsetForIndex", + "stbtt_InitFont", + "stbtt_FindGlyphIndex", + "stbtt_ScaleForPixelHeight", + "stbtt_ScaleForMappingEmToPixels", + "stbtt_GetFontVMetrics", + "stbtt_GetFontVMetricsOS2", + "stbtt_GetFontBoundingBox", + "stbtt_GetCodepointHMetrics", + "stbtt_GetCodepointKernAdvance", + "stbtt_GetCodepointBox", + "stbtt_GetGlyphHMetrics", + "stbtt_GetGlyphKernAdvance", + "stbtt_GetGlyphBox", + "stbtt_GetKerningTableLength", + "stbtt_GetKerningTable", + "stbtt_IsGlyphEmpty", + "stbtt_GetCodepointShape", + "stbtt_GetGlyphShape", + "stbtt_FreeShape", + "stbtt_FindSVGDoc", + "stbtt_GetCodepointSVG", + "stbtt_GetGlyphSVG", + "stbtt_FreeBitmap", + "stbtt_GetCodepointBitmap", + "stbtt_GetCodepointBitmapSubpixel", + "stbtt_MakeCodepointBitmap", + "stbtt_MakeCodepointBitmapSubpixel", + "stbtt_MakeCodepointBitmapSubpixelPrefilter", + "stbtt_GetCodepointBitmapBox", + "stbtt_GetCodepointBitmapBoxSubpixel", + "stbtt_GetGlyphBitmap", + "stbtt_GetGlyphBitmapSubpixel", + "stbtt_MakeGlyphBitmap", + "stbtt_MakeGlyphBitmapSubpixel", + "stbtt_MakeGlyphBitmapSubpixelPrefilter", + "stbtt_GetGlyphBitmapBox", + "stbtt_GetGlyphBitmapBoxSubpixel", + "stbtt_Rasterize", + "stbtt_FreeSDF", + "stbtt_GetGlyphSDF", + "stbtt_GetCodepointSDF", + "stbtt_FindMatchingFont", + "stbtt_CompareUTF8toUTF16_bigendian", + "stbtt_GetFontNameString" + ] + }, + "enum_constants": { + "STBTT_vmove": { + "name": "STBTT_vmove", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2622, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "line": 824, + "column": 4, + "source_line": " enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_vline": { + "name": "STBTT_vline", + "value": null, + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2629, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "line": 824, + "column": 4, + "source_line": " enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_vcurve": { + "name": "STBTT_vcurve", + "value": null, + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2634, - "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "line": 824, + "column": 4, + "source_line": " enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_vcubic": { + "name": "STBTT_vcubic", + "value": null, + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2641, - "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "line": 824, + "column": 4, + "source_line": " enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_PLATFORM_ID_UNICODE": { + "name": "STBTT_PLATFORM_ID_UNICODE", + "value": "0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2652, + "line": 1044, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_PLATFORM_ID_MAC": { + "name": "STBTT_PLATFORM_ID_MAC", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2660, + "line": 1044, "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_PLATFORM_ID_ISO": { + "name": "STBTT_PLATFORM_ID_ISO", + "value": "2", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2666, + "line": 1044, "column": 1, - "source_line": "STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_PLATFORM_ID_MICROSOFT": { + "name": "STBTT_PLATFORM_ID_MICROSOFT", + "value": "3", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2672, + "line": 1044, "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_UNICODE_EID_UNICODE_1_0": { + "name": "STBTT_UNICODE_EID_UNICODE_1_0", + "value": "0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2677, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_UNICODE_EID_UNICODE_1_1": { + "name": "STBTT_UNICODE_EID_UNICODE_1_1", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2694, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_UNICODE_EID_ISO_10646": { + "name": "STBTT_UNICODE_EID_ISO_10646", + "value": "2", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2711, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_UNICODE_EID_UNICODE_2_0_BMP": { + "name": "STBTT_UNICODE_EID_UNICODE_2_0_BMP", + "value": "3", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2721, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_UNICODE_EID_UNICODE_2_0_FULL": { + "name": "STBTT_UNICODE_EID_UNICODE_2_0_FULL", + "value": "4", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2739, + "line": 1051, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_EID_SYMBOL": { + "name": "STBTT_MS_EID_SYMBOL", + "value": "0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2744, + "line": 1059, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_EID_UNICODE_BMP": { + "name": "STBTT_MS_EID_UNICODE_BMP", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 2749, + "line": 1059, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_EID_SHIFTJIS": { + "name": "STBTT_MS_EID_SHIFTJIS", + "value": "2", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3695, + "line": 1059, "column": 1, - "source_line": "STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_EID_UNICODE_FULL": { + "name": "STBTT_MS_EID_UNICODE_FULL", + "value": "10", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3708, + "line": 1059, "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_ROMAN": { + "name": "STBTT_MAC_EID_ROMAN", + "value": "0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3713, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_ARABIC": { + "name": "STBTT_MAC_EID_ARABIC", + "value": "4", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3753, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_JAPANESE": { + "name": "STBTT_MAC_EID_JAPANESE", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3758, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_HEBREW": { + "name": "STBTT_MAC_EID_HEBREW", + "value": "5", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3777, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_CHINESE_TRAD": { + "name": "STBTT_MAC_EID_CHINESE_TRAD", + "value": "2", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3782, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_GREEK": { + "name": "STBTT_MAC_EID_GREEK", + "value": "6", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3787, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_KOREAN": { + "name": "STBTT_MAC_EID_KOREAN", + "value": "3", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3792, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_EID_RUSSIAN": { + "name": "STBTT_MAC_EID_RUSSIAN", + "value": "7", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3797, + "line": 1066, "column": 1, - "source_line": "STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_ENGLISH": { + "name": "STBTT_MS_LANG_ENGLISH", + "value": "0x0409", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3802, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_ITALIAN": { + "name": "STBTT_MS_LANG_ITALIAN", + "value": "0x0410", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3859, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_CHINESE": { + "name": "STBTT_MS_LANG_CHINESE", + "value": "0x0804", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3957, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_JAPANESE": { + "name": "STBTT_MS_LANG_JAPANESE", + "value": "0x0411", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3989, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_DUTCH": { + "name": "STBTT_MS_LANG_DUTCH", + "value": "0x0413", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 3995, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_KOREAN": { + "name": "STBTT_MS_LANG_KOREAN", + "value": "0x0412", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4005, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_FRENCH": { + "name": "STBTT_MS_LANG_FRENCH", + "value": "0x040c", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4149, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_RUSSIAN": { + "name": "STBTT_MS_LANG_RUSSIAN", + "value": "0x0419", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4184, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_GERMAN": { + "name": "STBTT_MS_LANG_GERMAN", + "value": "0x0407", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4208, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_SPANISH": { + "name": "STBTT_MS_LANG_SPANISH", + "value": "0x0409", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4297, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_HEBREW": { + "name": "STBTT_MS_LANG_HEBREW", + "value": "0x040d", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4302, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MS_LANG_SWEDISH": { + "name": "STBTT_MS_LANG_SWEDISH", + "value": "0x041D", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4338, + "line": 1073, "column": 1, - "source_line": "STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_ENGLISH": { + "name": "STBTT_MAC_LANG_ENGLISH", + "value": "0", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4350, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_JAPANESE": { + "name": "STBTT_MAC_LANG_JAPANESE", + "value": "11", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4363, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_ARABIC": { + "name": "STBTT_MAC_LANG_ARABIC", + "value": "12", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4575, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_KOREAN": { + "name": "STBTT_MAC_LANG_KOREAN", + "value": "23", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4762, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_DUTCH": { + "name": "STBTT_MAC_LANG_DUTCH", + "value": "4", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4767, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_RUSSIAN": { + "name": "STBTT_MAC_LANG_RUSSIAN", + "value": "32", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4824, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_FRENCH": { + "name": "STBTT_MAC_LANG_FRENCH", + "value": "1", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4937, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset," - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_SPANISH": { + "name": "STBTT_MAC_LANG_SPANISH", + "value": "6", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4944, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_GERMAN": { + "name": "STBTT_MAC_LANG_GERMAN", + "value": "2", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4949, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_SWEDISH": { + "name": "STBTT_MAC_LANG_SWEDISH", + "value": "5", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4954, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_HEBREW": { + "name": "STBTT_MAC_LANG_HEBREW", + "value": "10", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4959, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBTT_DEF'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "STBTT_MAC_LANG_CHINESE_SIMPLIFIED": { + "name": "STBTT_MAC_LANG_CHINESE_SIMPLIFIED", + "value": "33", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 4964, + "line": 1083, "column": 1, - "source_line": "STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBTT_DEF" + "source_line": "enum {" + } }, - { - "code": "C_CONFLICTING_VARIABLE_DECLARATION", - "message": "Conflicting declarations for variable 'ttf_buffer'.", - "severity": "error", - "location": { + "STBTT_MAC_LANG_ITALIAN": { + "name": "STBTT_MAC_LANG_ITALIAN", + "value": "3", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 332, + "line": 1083, "column": 1, - "source_line": "char ttf_buffer[1<<25];" - }, - "unit_kind": "variable", - "unit_name": "ttf_buffer" + "source_line": "enum {" + } }, - { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'main'.", - "severity": "error", - "location": { + "STBTT_MAC_LANG_CHINESE_TRAD": { + "name": "STBTT_MAC_LANG_CHINESE_TRAD", + "value": "19", + "source_location": { "filename": "stb/stb_truetype.h", - "line": 375, + "line": 1083, "column": 1, - "source_line": "int main(int arg, char **argv)" - }, - "unit_kind": "function", - "unit_name": "main" + "source_line": "enum {" + } } - ] + }, + "include_graph": { + "stb/stb_truetype.h": [] + }, + "system_includes": { + "stb/stb_truetype.h": [] + }, + "unresolved_includes": { + "stb/stb_truetype.h": [] + }, + "header_source_pairs": { + "stb/stb_truetype.h": [] + }, + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/stb/stb_vorbis.json b/tests/parser/c/fixtures/stb/stb_vorbis.json index 4dab52f36..8916e8d27 100644 --- a/tests/parser/c/fixtures/stb/stb_vorbis.json +++ b/tests/parser/c/fixtures/stb/stb_vorbis.json @@ -3,15 +3,155 @@ "stb/stb_vorbis.c": { "filename": "stb/stb_vorbis.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_vorbis.c" + ], "functions": [ { - "name": "error", + "name": "stb_vorbis_get_info", "result_type": { - "model": "CInt", + "model": "CTypedef", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis_info", + "name": "stb_vorbis_info", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "sample_rate", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int sample_rate" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 131, + "column": 4, + "source_line": " unsigned int sample_rate;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 132, + "column": 4, + "source_line": " int channels;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "setup_memory_required", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int setup_memory_required" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 134, + "column": 4, + "source_line": " unsigned int setup_memory_required;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "setup_temp_memory_required", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int setup_temp_memory_required" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 135, + "column": 4, + "source_line": " unsigned int setup_temp_memory_required;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "temp_memory_required", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int temp_memory_required" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 136, + "column": 4, + "source_line": " unsigned int temp_memory_required;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "max_frame_size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int max_frame_size" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 138, + "column": 4, + "source_line": " int max_frame_size;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 129, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 129, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] }, "parameters": [ { @@ -19,7 +159,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -29,8 +169,8 @@ { "model": "CTypedef", "qualifiers": [], - "source_text": "vorb", - "name": "vorb", + "source_text": "stb_vorbis", + "name": "stb_vorbis", "type": { "model": "CStruct", "qualifiers": [], @@ -231,13 +371,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "FILE" } ] }, @@ -269,7 +403,7 @@ "filename": "stb/stb_vorbis.c", "line": 648, "column": 1, - "source_line": "typedef unsigned int uint32;" + "source_line": "typedef unsigned int uint32;" }, "declaration_locations": [] }, @@ -330,7 +464,7 @@ "filename": "stb/stb_vorbis.c", "line": 644, "column": 1, - "source_line": "typedef unsigned char uint8;" + "source_line": "typedef unsigned char uint8;" }, "declaration_locations": [] } @@ -435,7 +569,7 @@ "filename": "stb/stb_vorbis.c", "line": 812, "column": 4, - "source_line": " uint8 push_mode;" + "source_line": " uint8 push_mode;" }, "callback_policy": null, "declaration_locations": [] @@ -522,7 +656,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:779:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -573,10 +707,80 @@ "type": { "model": "CTypedef", "qualifiers": [], - "source_text": "stb_vorbis_alloc alloc", + "source_text": "stb_vorbis_alloc", "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "alloc_buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *alloc_buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 120, + "column": 4, + "source_line": " char *alloc_buffer;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "alloc_buffer_length_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int alloc_buffer_length_in_bytes" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 121, + "column": 4, + "source_line": " int alloc_buffer_length_in_bytes;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 118, + "column": 1, + "source_line": "typedef struct" + } + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 118, + "column": 1, + "source_line": "typedef struct" + }, "declaration_locations": [] }, "storage": [], @@ -653,11 +857,227 @@ "type": { "model": "CEnum", "qualifiers": [], - "source_text": "enum STBVorbisError error", + "source_text": "", "name": "STBVorbisError", - "constants": [], + "constants": [ + { + "name": "VORBIS__no_error", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_need_more_data", + "value": "1", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_invalid_api_mixing", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_outofmem", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_feature_not_supported", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_too_many_channels", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_file_open_failure", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_seek_without_length", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_unexpected_eof", + "value": "10", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_seek_invalid", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_invalid_setup", + "value": "20", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_invalid_stream", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_missing_capture_pattern", + "value": "30", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_invalid_stream_structure_version", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_continued_packet_flag_invalid", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_incorrect_stream_serial_number", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_invalid_first_page", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_bad_packet_type", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_cant_find_last_page", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_seek_failed", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + }, + { + "name": "VORBIS_ogg_skeleton_not_supported", + "value": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } + } + ], "anonymous_id": null, - "source_location": null + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 374, + "column": 1, + "source_line": "enum STBVorbisError" + } }, "storage": [], "initializer": null, @@ -867,7 +1287,7 @@ "filename": "stb/stb_vorbis.c", "line": 684, "column": 4, - "source_line": " float minimum_value;" + "source_line": " float minimum_value;" }, "callback_policy": null, "declaration_locations": [] @@ -886,7 +1306,7 @@ "filename": "stb/stb_vorbis.c", "line": 685, "column": 4, - "source_line": " float delta_value;" + "source_line": " float delta_value;" }, "callback_policy": null, "declaration_locations": [] @@ -903,7 +1323,7 @@ "filename": "stb/stb_vorbis.c", "line": 686, "column": 4, - "source_line": " uint8 value_bits;" + "source_line": " uint8 value_bits;" }, "callback_policy": null, "declaration_locations": [] @@ -920,7 +1340,7 @@ "filename": "stb/stb_vorbis.c", "line": 687, "column": 4, - "source_line": " uint8 lookup_type;" + "source_line": " uint8 lookup_type;" }, "callback_policy": null, "declaration_locations": [] @@ -937,7 +1357,7 @@ "filename": "stb/stb_vorbis.c", "line": 688, "column": 4, - "source_line": " uint8 sequence_p;" + "source_line": " uint8 sequence_p;" }, "callback_policy": null, "declaration_locations": [] @@ -954,7 +1374,7 @@ "filename": "stb/stb_vorbis.c", "line": 689, "column": 4, - "source_line": " uint8 sparse;" + "source_line": " uint8 sparse;" }, "callback_policy": null, "declaration_locations": [] @@ -1054,13 +1474,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int16 fast_huffman[FAST_HUFFMAN_TABLE_SIZE]", + "source_text": "int16 fast_huffman[(1 << 10)]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "FAST_HUFFMAN_TABLE_SIZE", + "bound": "(1 << 10)", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -1073,13 +1493,13 @@ "type": { "model": "CShort", "qualifiers": [], - "source_text": "typedef signed short int16" + "source_text": "typedef signed short int16" }, "source_location": { "filename": "stb/stb_vorbis.c", "line": 647, "column": 1, - "source_line": "typedef signed short int16;" + "source_line": "typedef signed short int16;" }, "declaration_locations": [] } @@ -1092,44 +1512,25 @@ "filename": "stb/stb_vorbis.c", "line": 694, "column": 5, - "source_line": " int16 fast_huffman[FAST_HUFFMAN_TABLE_SIZE];" + "source_line": " int16 fast_huffman[(1 << 10)];" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "fast_huffman", + "name": "sorted_codewords", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int32 fast_huffman[FAST_HUFFMAN_TABLE_SIZE]", + "source_text": "uint32 *sorted_codewords", "components": [ { - "model": "CArray", + "model": "CPointer", "qualifiers": [], - "source_text": "", - "bound": "FAST_HUFFMAN_TABLE_SIZE", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "int32", - "name": "int32", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "typedef signed int int32" - }, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 649, - "column": 1, - "source_line": "typedef signed int int32;" - }, - "declaration_locations": [] + "reference": "uint32" } ] }, @@ -1138,19 +1539,19 @@ "bit_width": null, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 696, - "column": 5, - "source_line": " int32 fast_huffman[FAST_HUFFMAN_TABLE_SIZE];" + "line": 698, + "column": 4, + "source_line": " uint32 *sorted_codewords;" }, "callback_policy": null, "declaration_locations": [] }, { - "name": "sorted_codewords", + "name": "sorted_values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *sorted_codewords", + "source_text": "int *sorted_values", "components": [ { "model": "CPointer", @@ -1158,38 +1559,9 @@ "source_text": "" }, { - "reference": "uint32" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 698, - "column": 4, - "source_line": " uint32 *sorted_codewords;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "sorted_values", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *sorted_values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -1200,7 +1572,7 @@ "filename": "stb/stb_vorbis.c", "line": 699, "column": 4, - "source_line": " int *sorted_values;" + "source_line": " int *sorted_values;" }, "callback_policy": null, "declaration_locations": [] @@ -1219,13 +1591,13 @@ "filename": "stb/stb_vorbis.c", "line": 700, "column": 4, - "source_line": " int sorted_entries;" + "source_line": " int sorted_entries;" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:680:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -1318,7 +1690,7 @@ "filename": "stb/stb_vorbis.c", "line": 838, "column": 4, - "source_line": " uint16 floor_types[64]; // varies" + "source_line": " uint16 floor_types[64];" }, "callback_policy": null, "declaration_locations": [] @@ -1489,13 +1861,13 @@ "filename": "stb/stb_vorbis.c", "line": 711, "column": 4, - "source_line": " uint8 book_list[16]; // varies" + "source_line": " uint8 book_list[16];" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:703:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -1582,7 +1954,7 @@ "filename": "stb/stb_vorbis.c", "line": 717, "column": 4, - "source_line": " uint8 partition_class_list[32]; // varies" + "source_line": " uint8 partition_class_list[32];" }, "callback_policy": null, "declaration_locations": [] @@ -1615,7 +1987,7 @@ "filename": "stb/stb_vorbis.c", "line": 718, "column": 4, - "source_line": " uint8 class_dimensions[16]; // varies" + "source_line": " uint8 class_dimensions[16];" }, "callback_policy": null, "declaration_locations": [] @@ -1648,7 +2020,7 @@ "filename": "stb/stb_vorbis.c", "line": 719, "column": 4, - "source_line": " uint8 class_subclasses[16]; // varies" + "source_line": " uint8 class_subclasses[16];" }, "callback_policy": null, "declaration_locations": [] @@ -1681,7 +2053,7 @@ "filename": "stb/stb_vorbis.c", "line": 720, "column": 4, - "source_line": " uint8 class_masterbooks[16]; // varies" + "source_line": " uint8 class_masterbooks[16];" }, "callback_policy": null, "declaration_locations": [] @@ -1723,7 +2095,7 @@ "filename": "stb/stb_vorbis.c", "line": 721, "column": 4, - "source_line": " int16 subclass_books[16][8]; // varies" + "source_line": " int16 subclass_books[16][8];" }, "callback_policy": null, "declaration_locations": [] @@ -1756,7 +2128,7 @@ "filename": "stb/stb_vorbis.c", "line": 722, "column": 4, - "source_line": " uint16 Xlist[31*8+2]; // varies" + "source_line": " uint16 Xlist[31*8+2];" }, "callback_policy": null, "declaration_locations": [] @@ -1890,7 +2262,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:714:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -1920,7 +2292,7 @@ "declaration_locations": [] } ], - "anonymous_id": "union@stb/stb_vorbis.c:730:1", + "anonymous_id": "union@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -1998,7 +2370,7 @@ "filename": "stb/stb_vorbis.c", "line": 841, "column": 4, - "source_line": " uint16 residue_types[64]; // varies" + "source_line": " uint16 residue_types[64];" }, "callback_policy": null, "declaration_locations": [] @@ -2184,7 +2556,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:736:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -2349,7 +2721,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:746:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -2392,7 +2764,7 @@ "filename": "stb/stb_vorbis.c", "line": 757, "column": 4, - "source_line": " uint8 submaps;" + "source_line": " uint8 submaps;" }, "callback_policy": null, "declaration_locations": [] @@ -2425,7 +2797,7 @@ "filename": "stb/stb_vorbis.c", "line": 758, "column": 4, - "source_line": " uint8 submap_floor[15]; // varies" + "source_line": " uint8 submap_floor[15];" }, "callback_policy": null, "declaration_locations": [] @@ -2458,13 +2830,13 @@ "filename": "stb/stb_vorbis.c", "line": 759, "column": 4, - "source_line": " uint8 submap_residue[15]; // varies" + "source_line": " uint8 submap_residue[15];" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:753:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -2610,7 +2982,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:762:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -2636,7 +3008,7 @@ "filename": "stb/stb_vorbis.c", "line": 846, "column": 4, - "source_line": " Mode mode_config[64]; // varies" + "source_line": " Mode mode_config[64];" }, "callback_policy": null, "declaration_locations": [] @@ -2663,13 +3035,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *channel_buffers[STB_VORBIS_MAX_CHANNELS]", + "source_text": "float *channel_buffers[16]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_VORBIS_MAX_CHANNELS", + "bound": "16", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2693,7 +3065,7 @@ "filename": "stb/stb_vorbis.c", "line": 851, "column": 4, - "source_line": " float *channel_buffers[STB_VORBIS_MAX_CHANNELS];" + "source_line": " float *channel_buffers[16];" }, "callback_policy": null, "declaration_locations": [] @@ -2703,13 +3075,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *outputs [STB_VORBIS_MAX_CHANNELS]", + "source_text": "float *outputs [16]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_VORBIS_MAX_CHANNELS", + "bound": "16", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2733,7 +3105,7 @@ "filename": "stb/stb_vorbis.c", "line": 852, "column": 4, - "source_line": " float *outputs [STB_VORBIS_MAX_CHANNELS];" + "source_line": " float *outputs [16];" }, "callback_policy": null, "declaration_locations": [] @@ -2743,13 +3115,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *previous_window[STB_VORBIS_MAX_CHANNELS]", + "source_text": "float *previous_window[16]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_VORBIS_MAX_CHANNELS", + "bound": "16", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2773,7 +3145,7 @@ "filename": "stb/stb_vorbis.c", "line": 854, "column": 4, - "source_line": " float *previous_window[STB_VORBIS_MAX_CHANNELS];" + "source_line": " float *previous_window[16];" }, "callback_policy": null, "declaration_locations": [] @@ -2802,13 +3174,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int16 *finalY[STB_VORBIS_MAX_CHANNELS]", + "source_text": "int16 *finalY[16]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_VORBIS_MAX_CHANNELS", + "bound": "16", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2830,47 +3202,7 @@ "filename": "stb/stb_vorbis.c", "line": 858, "column": 4, - "source_line": " int16 *finalY[STB_VORBIS_MAX_CHANNELS];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "floor_buffers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *floor_buffers[STB_VORBIS_MAX_CHANNELS]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STB_VORBIS_MAX_CHANNELS", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 860, - "column": 4, - "source_line": " float *floor_buffers[STB_VORBIS_MAX_CHANNELS];" + "source_line": " int16 *finalY[16];" }, "callback_policy": null, "declaration_locations": [] @@ -2887,7 +3219,7 @@ "filename": "stb/stb_vorbis.c", "line": 863, "column": 4, - "source_line": " uint32 current_loc; // sample location of next frame to decode" + "source_line": " uint32 current_loc;" }, "callback_policy": null, "declaration_locations": [] @@ -2906,7 +3238,7 @@ "filename": "stb/stb_vorbis.c", "line": 864, "column": 4, - "source_line": " int current_loc_valid;" + "source_line": " int current_loc_valid;" }, "callback_policy": null, "declaration_locations": [] @@ -3121,7 +3453,7 @@ "filename": "stb/stb_vorbis.c", "line": 874, "column": 4, - "source_line": " uint32 serial; // stream serial number for verification" + "source_line": " uint32 serial;" }, "callback_policy": null, "declaration_locations": [] @@ -3281,7 +3613,7 @@ "filename": "stb/stb_vorbis.c", "line": 882, "column": 4, - "source_line": " int last_seg; // flag that we're on the last segment" + "source_line": " int last_seg;" }, "callback_policy": null, "declaration_locations": [] @@ -3300,7 +3632,7 @@ "filename": "stb/stb_vorbis.c", "line": 883, "column": 4, - "source_line": " int last_seg_which; // what was the segment number of the last seg?" + "source_line": " int last_seg_which;" }, "callback_policy": null, "declaration_locations": [] @@ -3446,7 +3778,7 @@ "filename": "stb/stb_vorbis.c", "line": 893, "column": 4, - "source_line": " int page_crc_tests; // only in push_mode: number of tests active; -1 if not searching" + "source_line": " int page_crc_tests;" }, "callback_policy": null, "declaration_locations": [] @@ -3456,13 +3788,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "CRCscan scan[STB_VORBIS_PUSHDATA_CRC_COUNT]", + "source_text": "CRCscan scan[4]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STB_VORBIS_PUSHDATA_CRC_COUNT", + "bound": "4", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -3490,7 +3822,7 @@ "filename": "stb/stb_vorbis.c", "line": 772, "column": 4, - "source_line": " uint32 goal_crc; // expected crc if match" + "source_line": " uint32 goal_crc;" }, "callback_policy": null, "declaration_locations": [] @@ -3509,7 +3841,7 @@ "filename": "stb/stb_vorbis.c", "line": 773, "column": 4, - "source_line": " int bytes_left; // bytes left in packet" + "source_line": " int bytes_left;" }, "callback_policy": null, "declaration_locations": [] @@ -3526,7 +3858,7 @@ "filename": "stb/stb_vorbis.c", "line": 774, "column": 4, - "source_line": " uint32 crc_so_far; // running crc" + "source_line": " uint32 crc_so_far;" }, "callback_policy": null, "declaration_locations": [] @@ -3545,7 +3877,7 @@ "filename": "stb/stb_vorbis.c", "line": 775, "column": 4, - "source_line": " int bytes_done; // bytes processed in _current_ chunk" + "source_line": " int bytes_done;" }, "callback_policy": null, "declaration_locations": [] @@ -3562,13 +3894,13 @@ "filename": "stb/stb_vorbis.c", "line": 776, "column": 4, - "source_line": " uint32 sample_loc; // granule pos encoded in page" + "source_line": " uint32 sample_loc;" }, "callback_policy": null, "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_vorbis.c:770:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", @@ -3594,7 +3926,7 @@ "filename": "stb/stb_vorbis.c", "line": 895, "column": 4, - "source_line": " CRCscan scan[STB_VORBIS_PUSHDATA_CRC_COUNT];" + "source_line": " CRCscan scan[4];" }, "callback_policy": null, "declaration_locations": [] @@ -3649,9 +3981,9 @@ }, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 911, + "line": 127, "column": 1, - "source_line": "typedef struct stb_vorbis vorb;" + "source_line": "typedef struct stb_vorbis stb_vorbis;" }, "declaration_locations": [] } @@ -3660,7 +3992,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3668,84 +4000,170 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "e", - "type": { - "model": "CEnum", - "qualifiers": [], - "source_text": "enum STBVorbisError e", - "name": "STBVorbisError", - "constants": [], - "anonymous_id": null, - "source_location": null - }, - "declared_type": { - "reference": "enum STBVorbisError" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 913, + "line": 4305, "column": 1, - "source_line": "static int error(vorb *f, enum STBVorbisError e)" + "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 913, + "line": 4305, "column": 1, - "source_line": "static int error(vorb *f, enum STBVorbisError e)" + "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 920, + "line": 4315, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 150, + "column": 1, + "source_line": "extern stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f);" + } + ] }, { - "name": "make_block_array", + "name": "stb_vorbis_get_comment", "result_type": { - "model": "CComposedType", + "model": "CTypedef", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "source_text": "stb_vorbis_comment", + "name": "stb_vorbis_comment", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "vendor", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *vendor", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 143, + "column": 4, + "source_line": " char *vendor;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "comment_list_length", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int comment_list_length" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 145, + "column": 4, + "source_line": " int comment_list_length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "comment_list", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char **comment_list", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 146, + "column": 4, + "source_line": " char **comment_list;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 141, + "column": 1, + "source_line": "typedef struct" } - ] + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 141, + "column": 1, + "source_line": "typedef struct" + }, + "declaration_locations": [] }, "parameters": [ { - "name": "mem", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *mem", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3753,16 +4171,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *mem", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3770,91 +4186,52 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 938, + "line": 4317, "column": 1, - "source_line": "static void *make_block_array(void *mem, int count, int size)" + "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 938, + "line": 4317, "column": 1, - "source_line": "static void *make_block_array(void *mem, int count, int size)" + "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 948, + "line": 4324, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 153, + "column": 1, + "source_line": "extern stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f);" + } + ] }, { - "name": "setup_malloc", + "name": "stb_vorbis_get_error", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "int" }, "parameters": [ { @@ -3862,7 +4239,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3870,14 +4247,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3885,58 +4262,48 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 950, + "line": 4326, "column": 1, - "source_line": "static void *setup_malloc(vorb *f, int sz)" + "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 950, + "line": 4326, "column": 1, - "source_line": "static void *setup_malloc(vorb *f, int sz)" + "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 961, + "line": 4331, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 156, + "column": 1, + "source_line": "extern int stb_vorbis_get_error(stb_vorbis *f);" + } + ] }, { - "name": "setup_free", + "name": "stb_vorbis_close", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3944,11 +4311,11 @@ }, "parameters": [ { - "name": "f", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -3956,14 +4323,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -3971,19 +4338,60 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4271, + "column": 1, + "source_line": "void stb_vorbis_close(stb_vorbis *p)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4271, + "column": 1, + "source_line": "void stb_vorbis_close(stb_vorbis *p)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4276, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "p", + "filename": "stb/stb_vorbis.c", + "line": 159, + "column": 1, + "source_line": "extern void stb_vorbis_close(stb_vorbis *f);" + } + ] + }, + { + "name": "stb_vorbis_get_sample_offset", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -3991,16 +4399,14 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4008,9 +4414,7 @@ "source_text": "" }, { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "stb_vorbis" } ] }, @@ -4018,51 +4422,44 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 963, + "line": 4297, "column": 1, - "source_line": "static void setup_free(vorb *f, void *p)" + "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 963, + "line": 4297, "column": 1, - "source_line": "static void setup_free(vorb *f, void *p)" + "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 967, + "line": 4303, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 166, + "column": 1, + "source_line": "extern int stb_vorbis_get_sample_offset(stb_vorbis *f);" + } + ] }, { - "name": "setup_temp_malloc", + "name": "stb_vorbis_get_file_offset", "result_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] + "source_text": "unsigned int" }, "parameters": [ { @@ -4070,7 +4467,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4078,14 +4475,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4093,70 +4490,70 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 969, + "line": 4545, "column": 1, - "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" + "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 969, + "line": 4545, "column": 1, - "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" + "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 978, + "line": 4554, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 170, + "column": 1, + "source_line": "extern unsigned int stb_vorbis_get_file_offset(stb_vorbis *f);" + } + ] }, { - "name": "setup_temp_free", + "name": "stb_vorbis_open_pushdata", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -4164,14 +4561,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -4179,7 +4580,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -4187,11 +4592,26 @@ "callback_policy": null }, { - "name": "p", + "name": "data_len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_used", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "int *data_used", "components": [ { "model": "CPointer", @@ -4199,16 +4619,16 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "void *p", + "source_text": "int *data_used", "components": [ { "model": "CPointer", @@ -4216,9 +4636,9 @@ "source_text": "" }, { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" } ] }, @@ -4226,187 +4646,114 @@ "callback_policy": null }, { - "name": "sz", + "name": "error", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int sz" + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int sz" + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 980, - "column": 1, - "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 980, - "column": 1, - "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 987, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "crc32_init", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 992, - "column": 1, - "source_line": "static void crc32_init(void)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 992, - "column": 1, - "source_line": "static void crc32_init(void)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1001, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "bit_reverse", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ + }, { - "name": "n", + "name": "alloc", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int n" + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int n" + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1010, + "line": 4514, "column": 1, - "source_line": "static unsigned int bit_reverse(unsigned int n)" + "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1010, + "line": 4514, "column": 1, - "source_line": "static unsigned int bit_reverse(unsigned int n)" + "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1017, + "line": 4542, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - { - "name": "square", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + "declaration_locations": [ { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null + "filename": "stb/stb_vorbis.c", + "line": 183, + "column": 1, + "source_line": "extern stb_vorbis *stb_vorbis_open_pushdata(" } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1019, - "column": 1, - "source_line": "static float square(float x)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1019, - "column": 1, - "source_line": "static float square(float x)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + ] }, { - "name": "ilog", + "name": "stb_vorbis_decode_frame_pushdata", "result_type": { "model": "CInt", "qualifiers": [], @@ -4414,105 +4761,11 @@ }, "parameters": [ { - "name": "n", - "type": { - "reference": "int32" - }, - "declared_type": { - "reference": "int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1027, - "column": 1, - "source_line": "static int ilog(int32 n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1027, - "column": 1, - "source_line": "static int ilog(int32 n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1043, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "float32_unpack", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "reference": "uint32" - }, - "declared_type": { - "reference": "uint32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1057, - "column": 1, - "source_line": "static float float32_unpack(uint32 x)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1057, - "column": 1, - "source_line": "static float float32_unpack(uint32 x)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1065, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "add_entry", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4520,14 +4773,14 @@ "source_text": "" }, { - "reference": "Codebook" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4535,7 +4788,7 @@ "source_text": "" }, { - "reference": "Codebook" + "reference": "stb_vorbis" } ] }, @@ -4543,67 +4796,69 @@ "callback_policy": null }, { - "name": "huff_code", - "type": { - "reference": "uint32" - }, - "declared_type": { - "reference": "uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "symbol", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int symbol" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int symbol" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", + "name": "datablock", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int count" + "source_text": "const unsigned char *datablock", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int count" + "source_text": "const unsigned char *datablock", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "len", + "name": "datablock_length_in_bytes", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int datablock_length_in_bytes" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int datablock_length_in_bytes" }, "source_location": null, "callback_policy": null }, { - "name": "values", + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -4611,14 +4866,16 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -4626,55 +4883,21 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1075, - "column": 1, - "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1075, - "column": 1, - "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "compute_codewords", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "c", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "float ***output", "components": [ { "model": "CPointer", @@ -4682,34 +4905,26 @@ "source_text": "" }, { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "Codebook" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { + "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *len", + "source_text": "float ***output", "components": [ { "model": "CPointer", @@ -4717,22 +4932,19 @@ "source_text": "" }, { - "reference": "uint8" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *len", - "components": [ + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "uint8" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -4740,26 +4952,11 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "values", + "name": "samples", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "int *samples", "components": [ { "model": "CPointer", @@ -4767,14 +4964,16 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "int *samples", "components": [ { "model": "CPointer", @@ -4782,7 +4981,9 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -4791,34 +4992,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1086, + "line": 197, "column": 1, - "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" + "source_line": "extern int stb_vorbis_decode_frame_pushdata(" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1086, - "column": 1, - "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1130, + "line": 197, "column": 1, - "source_line": "}" + "source_line": "extern int stb_vorbis_decode_frame_pushdata(" }, + "end": null, "declaration_locations": [] }, { - "name": "compute_accelerated_huffman", + "name": "stb_vorbis_flush_pushdata", "result_type": { "model": "CVoid", "qualifiers": [], @@ -4826,11 +5022,11 @@ }, "parameters": [ { - "name": "c", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4838,14 +5034,14 @@ "source_text": "" }, { - "reference": "Codebook" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -4853,7 +5049,7 @@ "source_text": "" }, { - "reference": "Codebook" + "reference": "stb_vorbis" } ] }, @@ -4861,35 +5057,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1134, + "line": 4341, "column": 1, - "source_line": "static void compute_accelerated_huffman(Codebook *c)" + "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1134, + "line": 4341, "column": 1, - "source_line": "static void compute_accelerated_huffman(Codebook *c)" + "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1154, + "line": 4351, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 233, + "column": 1, + "source_line": "extern void stb_vorbis_flush_pushdata(stb_vorbis *f);" + } + ] }, { - "name": "include_in_sort", + "name": "stb_vorbis_decode_filename", "result_type": { "model": "CInt", "qualifiers": [], @@ -4897,11 +5098,11 @@ }, "parameters": [ { - "name": "c", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -4909,14 +5110,18 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -4924,7 +5129,11 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -4932,58 +5141,11 @@ "callback_policy": null }, { - "name": "len", - "type": { - "reference": "uint8" - }, - "declared_type": { - "reference": "uint8" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1169, - "column": 1, - "source_line": "static int include_in_sort(Codebook *c, uint8 len)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1169, - "column": 1, - "source_line": "static int include_in_sort(Codebook *c, uint8 len)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1175, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "compute_sorted_huffman", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -4991,14 +5153,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -5006,7 +5170,9 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -5014,11 +5180,11 @@ "callback_policy": null }, { - "name": "lengths", + "name": "sample_rate", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *lengths", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -5026,14 +5192,16 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *lengths", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -5041,7 +5209,9 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -5049,11 +5219,11 @@ "callback_policy": null }, { - "name": "values", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -5061,14 +5231,21 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *values", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -5076,7 +5253,14 @@ "source_text": "" }, { - "reference": "uint32" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -5084,35 +5268,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1179, + "line": 5346, "column": 1, - "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" + "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1179, + "line": 5346, "column": 1, - "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" + "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1230, + "line": 5383, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 258, + "column": 1, + "source_line": "extern int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output);" + } + ] }, { - "name": "vorbis_validate", + "name": "stb_vorbis_decode_memory", "result_type": { "model": "CInt", "qualifiers": [], @@ -5120,11 +5309,11 @@ }, "parameters": [ { - "name": "data", + "name": "mem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "const unsigned char *mem", "components": [ { "model": "CPointer", @@ -5132,14 +5321,18 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "const unsigned char *mem", "components": [ { "model": "CPointer", @@ -5147,136 +5340,38 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1233, - "column": 1, - "source_line": "static int vorbis_validate(uint8 *data)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1233, - "column": 1, - "source_line": "static int vorbis_validate(uint8 *data)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1237, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "lookup1_values", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int entries" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int entries" - }, - "source_location": null, - "callback_policy": null }, { - "name": "dim", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dim" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dim" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1241, - "column": 1, - "source_line": "static int lookup1_values(int entries, int dim)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1241, - "column": 1, - "source_line": "static int lookup1_values(int entries, int dim)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1251, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "compute_twiddle_factors", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "A", + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -5284,16 +5379,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -5301,9 +5396,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -5311,11 +5406,11 @@ "callback_policy": null }, { - "name": "B", + "name": "sample_rate", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *B", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -5323,16 +5418,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *B", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -5340,9 +5435,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -5350,11 +5445,11 @@ "callback_policy": null }, { - "name": "C", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *C", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -5362,16 +5457,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *C", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -5379,9 +5479,14 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -5390,61 +5495,109 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1254, + "line": 261, "column": 1, - "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" + "source_line": "extern int stb_vorbis_decode_memory(const unsigned char *mem, int len, int *channels, int *sample_rate, short **output);" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1254, - "column": 1, - "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1269, + "line": 261, "column": 1, - "source_line": "}" + "source_line": "extern int stb_vorbis_decode_memory(const unsigned char *mem, int len, int *channels, int *sample_rate, short **output);" }, + "end": null, "declaration_locations": [] }, { - "name": "compute_window", + "name": "stb_vorbis_open_memory", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "n", + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const unsigned char *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "window", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *window", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5452,16 +5605,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *window", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5469,72 +5622,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1271, - "column": 1, - "source_line": "static void compute_window(int n, float *window)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1271, - "column": 1, - "source_line": "static void compute_window(int n, float *window)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1276, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "compute_bitreverse", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null }, { - "name": "rev", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint16 *rev", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -5542,14 +5644,14 @@ "source_text": "" }, { - "reference": "uint16" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint16 *rev", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -5557,7 +5659,7 @@ "source_text": "" }, { - "reference": "uint16" + "reference": "stb_vorbis_alloc" } ] }, @@ -5565,47 +5667,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1278, + "line": 5099, "column": 1, - "source_line": "static void compute_bitreverse(int n, uint16 *rev)" + "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1278, + "line": 5099, "column": 1, - "source_line": "static void compute_bitreverse(int n, uint16 *rev)" + "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1284, + "line": 5124, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 268, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len," + } + ] }, { - "name": "init_blocksize", + "name": "stb_vorbis_open_filename", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -5613,14 +5730,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -5628,7 +5749,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -5636,77 +5761,136 @@ "callback_policy": null }, { - "name": "b", + "name": "error", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int b" + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "alloc", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1286, + "line": 5083, "column": 1, - "source_line": "static int init_blocksize(vorb *f, int b, int n)" + "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1286, + "line": 5083, "column": 1, - "source_line": "static int init_blocksize(vorb *f, int b, int n)" + "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1301, + "line": 5096, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 274, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_filename(const char *filename," + } + ] }, { - "name": "neighbors", + "name": "stb_vorbis_open_file", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "x", + "name": "file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint16 *x", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -5714,14 +5898,14 @@ "source_text": "" }, { - "reference": "uint16" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint16 *x", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -5729,7 +5913,7 @@ "source_text": "" }, { - "reference": "uint16" + "reference": "FILE" } ] }, @@ -5737,26 +5921,26 @@ "callback_policy": null }, { - "name": "n", + "name": "close_on_free", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int close_on_free" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int close_on_free" }, "source_location": null, "callback_policy": null }, { - "name": "plow", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *plow", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5773,7 +5957,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *plow", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5791,11 +5975,11 @@ "callback_policy": null }, { - "name": "phigh", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *phigh", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -5803,16 +5987,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *phigh", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -5820,9 +6002,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis_alloc" } ] }, @@ -5830,45 +6010,62 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1303, + "line": 5073, "column": 1, - "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" + "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1303, + "line": 5073, "column": 1, - "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" + "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1312, + "line": 5081, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 279, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_file(FILE *f, int close_handle_on_close," + } + ] }, { - "name": "get8", + "name": "stb_vorbis_open_file_section", "result_type": { - "reference": "uint8" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "z", + "name": "file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -5876,14 +6073,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -5891,53 +6088,34 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "FILE" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1337, - "column": 1, - "source_line": "static uint8 get8(vorb *z)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1337, - "column": 1, - "source_line": "static uint8 get8(vorb *z)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1351, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "get32", - "result_type": { - "reference": "uint32" - }, - "parameters": [ + }, { - "name": "f", + "name": "close_on_free", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int close_on_free" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int close_on_free" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5945,14 +6123,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -5960,78 +6140,9 @@ "source_text": "" }, { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1353, - "column": 1, - "source_line": "static uint32 get32(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1353, - "column": 1, - "source_line": "static uint32 get32(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1361, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "getn", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -6039,11 +6150,11 @@ "callback_policy": null }, { - "name": "data", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -6051,14 +6162,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -6066,7 +6177,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis_alloc" } ] }, @@ -6074,62 +6185,67 @@ "callback_policy": null }, { - "name": "n", + "name": "length", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int n" + "source_text": "unsigned int length" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int n" + "source_text": "unsigned int length" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1363, + "line": 5052, "column": 1, - "source_line": "static int getn(vorb *z, uint8 *data, int n)" + "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1363, + "line": 5052, "column": 1, - "source_line": "static int getn(vorb *z, uint8 *data, int n)" + "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1380, + "line": 5071, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 289, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_file_section(FILE *f, int close_handle_on_close," + } + ] }, { - "name": "skip", + "name": "stb_vorbis_seek_frame", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "z", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6137,14 +6253,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6152,7 +6268,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -6160,50 +6276,55 @@ "callback_policy": null }, { - "name": "n", + "name": "sample_number", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int n" + "source_text": "unsigned int sample_number" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int n" + "source_text": "unsigned int sample_number" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1382, + "line": 4880, "column": 1, - "source_line": "static void skip(vorb *z, int n)" + "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1382, + "line": 4880, "column": 1, - "source_line": "static void skip(vorb *z, int n)" + "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1395, + "line": 4917, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 298, + "column": 1, + "source_line": "extern int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number);" + } + ] }, { - "name": "set_file_offset", + "name": "stb_vorbis_seek", "result_type": { "model": "CInt", "qualifiers": [], @@ -6223,13 +6344,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stb_vorbis" } ] }, @@ -6252,50 +6367,55 @@ "callback_policy": null }, { - "name": "loc", + "name": "sample_number", "type": { "model": "CUnsignedInt", "qualifiers": [], - "source_text": "unsigned int loc" + "source_text": "unsigned int sample_number" }, "declared_type": { "model": "CUnsignedInt", "qualifiers": [], - "source_text": "unsigned int loc" + "source_text": "unsigned int sample_number" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1397, + "line": 4919, "column": 1, - "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" + "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1397, + "line": 4919, "column": 1, - "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" + "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1426, + "line": 4934, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 299, + "column": 1, + "source_line": "extern int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number);" + } + ] }, { - "name": "capture_pattern", + "name": "stb_vorbis_seek_start", "result_type": { "model": "CInt", "qualifiers": [], @@ -6307,7 +6427,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6315,14 +6435,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6330,7 +6450,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -6338,39 +6458,44 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1431, + "line": 4936, "column": 1, - "source_line": "static int capture_pattern(vorb *f)" + "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1431, + "line": 4936, "column": 1, - "source_line": "static int capture_pattern(vorb *f)" + "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1438, + "line": 4944, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 307, + "column": 1, + "source_line": "extern int stb_vorbis_seek_start(stb_vorbis *f);" + } + ] }, { - "name": "start_page_no_capturepattern", + "name": "stb_vorbis_stream_length_in_samples", "result_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int" + "source_text": "unsigned int" }, "parameters": [ { @@ -6378,7 +6503,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6386,14 +6511,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6401,7 +6526,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -6409,39 +6534,44 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1444, + "line": 4946, "column": 1, - "source_line": "static int start_page_no_capturepattern(vorb *f)" + "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1444, + "line": 4946, "column": 1, - "source_line": "static int start_page_no_capturepattern(vorb *f)" + "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1495, + "line": 5019, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 310, + "column": 1, + "source_line": "extern unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f);" + } + ] }, { - "name": "start_page", + "name": "stb_vorbis_stream_length_in_seconds", "result_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" }, "parameters": [ { @@ -6449,7 +6579,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6457,14 +6587,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6472,7 +6602,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -6480,35 +6610,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1497, + "line": 5021, "column": 1, - "source_line": "static int start_page(vorb *f)" + "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1497, + "line": 5021, "column": 1, - "source_line": "static int start_page(vorb *f)" + "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1501, + "line": 5024, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 311, + "column": 1, + "source_line": "extern float stb_vorbis_stream_length_in_seconds(stb_vorbis *f);" + } + ] }, { - "name": "start_packet", + "name": "stb_vorbis_get_frame_float", "result_type": { "model": "CInt", "qualifiers": [], @@ -6520,7 +6655,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6528,14 +6663,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6543,55 +6678,19 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1503, - "column": 1, - "source_line": "static int start_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1503, - "column": 1, - "source_line": "static int start_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1516, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "maybe_start_packet", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -6599,14 +6698,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -6614,55 +6715,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1518, - "column": 1, - "source_line": "static int maybe_start_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1518, - "column": 1, - "source_line": "static int maybe_start_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1537, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "next_segment", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float ***output", "components": [ { "model": "CPointer", @@ -6670,14 +6737,26 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float ***output", "components": [ { "model": "CPointer", @@ -6685,7 +6764,19 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -6693,35 +6784,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1539, + "line": 5028, "column": 1, - "source_line": "static int next_segment(vorb *f)" + "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1539, + "line": 5028, "column": 1, - "source_line": "static int next_segment(vorb *f)" + "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1558, + "line": 5048, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 314, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output);" + } + ] }, { - "name": "get8_packet_raw", + "name": "stb_vorbis_get_frame_short_interleaved", "result_type": { "model": "CInt", "qualifiers": [], @@ -6733,7 +6829,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6741,14 +6837,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6756,55 +6852,34 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1563, - "column": 1, - "source_line": "static int get8_packet_raw(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1563, - "column": 1, - "source_line": "static int get8_packet_raw(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1573, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "get8_packet", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "num_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -6812,14 +6887,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -6827,43 +6904,65 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_shorts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1575, + "line": 5296, "column": 1, - "source_line": "static int get8_packet(vorb *f)" + "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1575, + "line": 5296, "column": 1, - "source_line": "static int get8_packet(vorb *f)" + "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1580, + "line": 5307, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 325, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts);" + } + ] }, { - "name": "get32_packet", + "name": "stb_vorbis_get_frame_short", "result_type": { "model": "CInt", "qualifiers": [], @@ -6875,7 +6974,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6883,14 +6982,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -6898,124 +6997,34 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1582, - "column": 1, - "source_line": "static int get32_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1582, - "column": 1, - "source_line": "static int get32_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1590, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "flush_packet", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "f", + "name": "num_c", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "source_text": "int num_c" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "source_text": "int num_c" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1592, - "column": 1, - "source_line": "static void flush_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1592, - "column": 1, - "source_line": "static void flush_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1595, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "get_bits", - "result_type": { - "reference": "uint32" - }, - "parameters": [ + }, { - "name": "f", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -7023,14 +7032,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -7038,7 +7054,14 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -7046,50 +7069,55 @@ "callback_policy": null }, { - "name": "n", + "name": "num_samples", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int num_samples" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int num_samples" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1599, + "line": 5260, "column": 1, - "source_line": "static uint32 get_bits(vorb *f, int n)" + "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1599, + "line": 5260, "column": 1, - "source_line": "static uint32 get_bits(vorb *f, int n)" + "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1628, + "line": 5268, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 326, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_short (stb_vorbis *f, int num_c, short **buffer, int num_samples);" + } + ] }, { - "name": "codebook_decode_scalar_raw", + "name": "stb_vorbis_get_samples_float_interleaved", "result_type": { "model": "CInt", "qualifiers": [], @@ -7101,7 +7129,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7109,14 +7137,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7124,7 +7152,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -7132,11 +7160,26 @@ "callback_policy": null }, { - "name": "c", + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -7144,14 +7187,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -7159,43 +7204,65 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_floats", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_floats" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_floats" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1656, + "line": 5426, "column": 1, - "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1656, + "line": 5426, "column": 1, - "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1713, + "line": 5451, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 353, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats);" + } + ] }, { - "name": "codebook_decode_scalar", + "name": "stb_vorbis_get_samples_float", "result_type": { "model": "CInt", "qualifiers": [], @@ -7207,7 +7274,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7215,14 +7282,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7230,7 +7297,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -7238,11 +7305,26 @@ "callback_policy": null }, { - "name": "c", + "name": "channels", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **buffer", "components": [ { "model": "CPointer", @@ -7250,14 +7332,21 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "float **buffer", "components": [ { "model": "CPointer", @@ -7265,43 +7354,70 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1733, + "line": 5453, "column": 1, - "source_line": "static int codebook_decode_scalar(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1733, + "line": 5453, "column": 1, - "source_line": "static int codebook_decode_scalar(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1748, + "line": 5477, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 354, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples);" + } + ] }, { - "name": "codebook_decode_start", + "name": "stb_vorbis_get_samples_short_interleaved", "result_type": { "model": "CInt", "qualifiers": [], @@ -7313,7 +7429,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7321,14 +7437,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7336,7 +7452,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -7344,11 +7460,26 @@ "callback_policy": null }, { - "name": "c", + "name": "channels", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int channels" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -7356,14 +7487,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -7371,43 +7504,65 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_shorts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1775, + "line": 5309, "column": 1, - "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1775, + "line": 5309, "column": 1, - "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1793, + "line": 5326, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 361, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts);" + } + ] }, { - "name": "codebook_decode", + "name": "stb_vorbis_get_samples_short", "result_type": { "model": "CInt", "qualifiers": [], @@ -7419,7 +7574,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7427,14 +7582,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -7442,7 +7597,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -7450,46 +7605,26 @@ "callback_policy": null }, { - "name": "c", + "name": "channels", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "int channels" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "int channels" }, "source_location": null, "callback_policy": null }, { - "name": "output", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -7497,16 +7632,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -7514,9 +7654,14 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -7539,35 +7684,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1795, + "line": 5328, "column": 1, - "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" + "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1795, + "line": 5328, "column": 1, - "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" + "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1832, + "line": 5343, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 362, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int num_samples);" + } + ] }, { - "name": "codebook_decode_step", + "name": "error", "result_type": { "model": "CInt", "qualifiers": [], @@ -7587,7 +7737,20 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CTypedef", + "qualifiers": [], + "source_text": "vorb", + "name": "vorb", + "type": { + "reference": "struct stb_vorbis" + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 911, + "column": 1, + "source_line": "typedef struct stb_vorbis vorb;" + }, + "declaration_locations": [] } ] }, @@ -7610,46 +7773,70 @@ "callback_policy": null }, { - "name": "c", + "name": "e", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "reference": "enum STBVorbisError" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "reference": "enum STBVorbisError" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 913, + "column": 1, + "source_line": "static int error(vorb *f, enum STBVorbisError e)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 913, + "column": 1, + "source_line": "static int error(vorb *f, enum STBVorbisError e)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 920, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "make_block_array", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "output", + "name": "mem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "void *mem", "components": [ { "model": "CPointer", @@ -7657,16 +7844,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "void *mem", "components": [ { "model": "CPointer", @@ -7674,9 +7861,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -7684,31 +7871,31 @@ "callback_policy": null }, { - "name": "len", + "name": "count", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int count" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int count" }, "source_location": null, "callback_policy": null }, { - "name": "step", + "name": "size", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int step" + "source_text": "int size" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int step" + "source_text": "int size" }, "source_location": null, "callback_policy": null @@ -7723,30 +7910,42 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1834, + "line": 938, "column": 1, - "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + "source_line": "static void *make_block_array(void *mem, int count, int size)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1834, + "line": 938, "column": 1, - "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + "source_line": "static void *make_block_array(void *mem, int count, int size)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1863, + "line": 948, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "codebook_decode_deinterleave_repeat", + "name": "setup_malloc", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "parameters": [ { @@ -7785,46 +7984,62 @@ "callback_policy": null }, { - "name": "c", + "name": "sz", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "int sz" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "int sz" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 950, + "column": 1, + "source_line": "static void *setup_malloc(vorb *f, int sz)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 950, + "column": 1, + "source_line": "static void *setup_malloc(vorb *f, int sz)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 961, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "setup_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "outputs", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **outputs", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -7832,21 +8047,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **outputs", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -7854,14 +8062,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, @@ -7869,26 +8070,11 @@ "callback_policy": null }, { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "c_inter_p", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *c_inter_p", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -7896,16 +8082,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *c_inter_p", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -7913,83 +8099,14 @@ "source_text": "" }, { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "p_inter_p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_inter_p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_inter_p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "total_decode", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int total_decode" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int total_decode" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -8001,103 +8118,90 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1865, + "line": 963, "column": 1, - "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" + "source_line": "static void setup_free(vorb *f, void *p)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1865, + "line": 963, "column": 1, - "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" + "source_line": "static void setup_free(vorb *f, void *p)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1933, + "line": 967, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "predict_point", + "name": "setup_temp_malloc", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", + "source_text": "void", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x1" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CVoid", "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "y0", + "name": "f", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y0" + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int y0" + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "y1", + "name": "sz", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int y1" + "source_text": "int sz" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int y1" + "source_text": "int sz" }, "source_location": null, "callback_policy": null @@ -8112,30 +8216,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1935, + "line": 969, "column": 1, - "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" + "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1935, + "line": 969, "column": 1, - "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" + "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1943, + "line": 978, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "residue_decode", + "name": "setup_temp_free", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -8174,46 +8278,11 @@ "callback_policy": null }, { - "name": "book", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *book", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *book", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "target", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -8221,16 +8290,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -8238,9 +8307,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -8248,46 +8317,16 @@ "callback_policy": null }, { - "name": "offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rtype", + "name": "sz", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int rtype" + "source_text": "int sz" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int rtype" + "source_text": "int sz" }, "source_location": null, "callback_policy": null @@ -8302,201 +8341,32 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2083, + "line": 980, "column": 1, - "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" + "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2083, + "line": 980, "column": 1, - "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" + "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2100, + "line": 987, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "decode_residue", + "name": "crc32_init", "result_type": { "model": "CVoid", "qualifiers": [], "source_text": "void" }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "residue_buffers", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *residue_buffers[]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *residue_buffers[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rn", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rn" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rn" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "do_not_decode", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *do_not_decode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *do_not_decode", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], + "parameters": [], "storage": [ "static" ], @@ -8506,348 +8376,295 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2104, + "line": 992, "column": 1, - "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + "source_line": "static void crc32_init(void)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2104, + "line": 992, "column": 1, - "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + "source_line": "static void crc32_init(void)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2284, + "line": 1001, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "inverse_mdct_slow", + "name": "crc32_update", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "uint32" }, "parameters": [ { - "name": "buffer", + "name": "crc", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "reference": "uint32" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "reference": "uint32" }, "source_location": null, "callback_policy": null }, { - "name": "n", + "name": "byte", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint8" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint8" }, "source_location": null, "callback_policy": null } ], - "storage": [], - "specifiers": [], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2289, + "line": 1003, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n)" + "source_line": "static inline uint32 crc32_update(uint32 crc, uint8 byte)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2289, + "line": 1003, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n)" + "source_line": "static inline uint32 crc32_update(uint32 crc, uint8 byte)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2309, + "line": 1006, "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b0" - ] + "declaration_locations": [] }, { - "name": "inverse_mdct_slow", + "name": "bit_reverse", "result_type": { - "model": "CVoid", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int" }, "parameters": [ { - "name": "buffer", + "name": "n", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", - "type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "source_text": "unsigned int n" }, "declared_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "source_text": "unsigned int n" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1010, + "column": 1, + "source_line": "static unsigned int bit_reverse(unsigned int n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1010, + "column": 1, + "source_line": "static unsigned int bit_reverse(unsigned int n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1017, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "square", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ { - "name": "blocktype", + "name": "x", "type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int blocktype" + "source_text": "float x" }, "declared_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int blocktype" + "source_text": "float x" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2312, + "line": 1019, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static float square(float x)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2312, + "line": 1019, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static float square(float x)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2329, + "line": 1022, "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b1" - ] + "declaration_locations": [] }, { - "name": "dct_iv_slow", + "name": "ilog", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buffer", + "name": "n", "type": { - "model": "CComposedType", + "model": "CTypedef", "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int32", + "name": "int32", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "typedef signed int int32" + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 649, + "column": 1, + "source_line": "typedef signed int int32;" + }, + "declaration_locations": [] }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "reference": "int32" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1027, + "column": 1, + "source_line": "static int ilog(int32 n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1027, + "column": 1, + "source_line": "static int ilog(int32 n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1043, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "float32_unpack", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ { - "name": "n", + "name": "x", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint32" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint32" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2333, + "line": 1057, "column": 1, - "source_line": "void dct_iv_slow(float *buffer, int n)" + "source_line": "static float float32_unpack(uint32 x)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2333, + "line": 1057, "column": 1, - "source_line": "void dct_iv_slow(float *buffer, int n)" + "source_line": "static float float32_unpack(uint32 x)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2348, + "line": 1065, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "inverse_mdct_slow", + "name": "add_entry", "result_type": { "model": "CVoid", "qualifiers": [], @@ -8855,11 +8672,11 @@ }, "parameters": [ { - "name": "buffer", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -8867,16 +8684,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -8884,9 +8699,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, @@ -8894,26 +8707,67 @@ "callback_policy": null }, { - "name": "n", + "name": "huff_code", + "type": { + "reference": "uint32" + }, + "declared_type": { + "reference": "uint32" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "symbol", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int symbol" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int symbol" }, "source_location": null, "callback_policy": null }, { - "name": "f", + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -8921,14 +8775,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -8936,72 +8790,55 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "uint32" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "blocktype", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2350, + "line": 1075, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2350, + "line": 1075, "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2361, + "line": 1084, "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b2" - ] + "declaration_locations": [] }, { - "name": "mdct_init", + "name": "compute_codewords", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "lookup", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *lookup", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9009,159 +8846,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "mdct_lookup", - "name": "mdct_lookup", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2373, - "column": 3, - "source_line": " int n;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "log2n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int log2n" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2374, - "column": 3, - "source_line": " int log2n;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "trig", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *trig", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2376, - "column": 3, - "source_line": " float *trig;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "bitrev", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *bitrev", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2377, - "column": 3, - "source_line": " int *bitrev;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "scale", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float scale" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2379, - "column": 3, - "source_line": " float scale;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_vorbis.c:2371:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2371, - "column": 1, - "source_line": "typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2371, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *lookup", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9169,7 +8861,7 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "Codebook" } ] }, @@ -9177,57 +8869,11 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "extern" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": false, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2382, - "column": 1, - "source_line": "extern void mdct_init(mdct_lookup *lookup, int n);" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2382, - "column": 1, - "source_line": "extern void mdct_init(mdct_lookup *lookup, int n);" - }, - "end": null, - "declaration_locations": [] - }, - { - "name": "mdct_clear", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "l", + "name": "len", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *l", + "source_text": "uint8 *len", "components": [ { "model": "CPointer", @@ -9235,14 +8881,14 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *l", + "source_text": "uint8 *len", "components": [ { "model": "CPointer", @@ -9250,85 +8896,34 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "uint8" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "extern" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": false, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2383, - "column": 1, - "source_line": "extern void mdct_clear(mdct_lookup *l);" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2383, - "column": 1, - "source_line": "extern void mdct_clear(mdct_lookup *l);" - }, - "end": null, - "declaration_locations": [] - }, - { - "name": "mdct_backward", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "init", + "name": "n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "mdct_lookup *init", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "mdct_lookup" - } - ] + "source_text": "int n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "mdct_lookup *init", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "mdct_lookup" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "in", + "name": "values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *in", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -9336,16 +8931,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *in", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -9353,21 +8946,55 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint32" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1086, + "column": 1, + "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1086, + "column": 1, + "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "compute_accelerated_huffman", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "out", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *out", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9375,16 +9002,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *out", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9392,9 +9017,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, @@ -9403,41 +9026,46 @@ } ], "storage": [ - "extern" + "static" ], "specifiers": [], "is_variadic": false, - "is_definition": false, + "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2384, + "line": 1134, "column": 1, - "source_line": "extern void mdct_backward(mdct_lookup *init, float *in, float *out);" + "source_line": "static void compute_accelerated_huffman(Codebook *c)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2384, + "line": 1134, "column": 1, - "source_line": "extern void mdct_backward(mdct_lookup *init, float *in, float *out);" + "source_line": "static void compute_accelerated_huffman(Codebook *c)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1154, + "column": 1, + "source_line": "}" }, - "end": null, "declaration_locations": [] }, { - "name": "inverse_mdct", + "name": "uint32_compare", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buffer", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "const void *p", "components": [ { "model": "CPointer", @@ -9445,16 +9073,18 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "const void *p", "components": [ { "model": "CPointer", @@ -9462,9 +9092,11 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -9472,26 +9104,11 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "f", + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -9499,14 +9116,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -9514,83 +9135,59 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "blocktype", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2388, + "line": 1162, "column": 1, - "source_line": "void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static int uint32_compare(const void *p, const void *q)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2388, + "line": 1162, "column": 1, - "source_line": "void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "static int uint32_compare(const void *p, const void *q)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2401, + "line": 1167, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "imdct_step3_iter0_loop", + "name": "include_in_sort", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9598,16 +9195,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9615,9 +9210,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, @@ -9625,70 +9218,12 @@ "callback_policy": null }, { - "name": "i_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k_off", + "name": "len", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" + "reference": "uint8" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "A", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "reference": "uint8" }, "source_location": null, "callback_policy": null @@ -9703,26 +9238,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2408, + "line": 1169, "column": 1, - "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" + "source_line": "static int include_in_sort(Codebook *c, uint8 len)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2408, + "line": 1169, "column": 1, - "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" + "source_line": "static int include_in_sort(Codebook *c, uint8 len)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2451, + "line": 1175, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "imdct_step3_inner_r_loop", + "name": "compute_sorted_huffman", "result_type": { "model": "CVoid", "qualifiers": [], @@ -9730,26 +9265,11 @@ }, "parameters": [ { - "name": "lim", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lim" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lim" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9757,16 +9277,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -9774,9 +9292,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "Codebook" } ] }, @@ -9784,41 +9300,11 @@ "callback_policy": null }, { - "name": "d0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "A", + "name": "lengths", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "uint8 *lengths", "components": [ { "model": "CPointer", @@ -9826,16 +9312,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "uint8 *lengths", "components": [ { "model": "CPointer", @@ -9843,9 +9327,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint8" } ] }, @@ -9853,16 +9335,36 @@ "callback_policy": null }, { - "name": "k1", + "name": "values", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int k1" + "source_text": "uint32 *values", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int k1" + "source_text": "uint32 *values", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] }, "source_location": null, "callback_policy": null @@ -9877,53 +9379,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2453, + "line": 1179, "column": 1, - "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" + "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2453, + "line": 1179, "column": 1, - "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" + "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2501, + "line": 1230, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "imdct_step3_inner_s_loop", + "name": "vorbis_validate", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -9931,16 +9418,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -9948,110 +9433,75 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint8" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1233, + "column": 1, + "source_line": "static int vorbis_validate(uint8 *data)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1233, + "column": 1, + "source_line": "static int vorbis_validate(uint8 *data)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1237, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "lookup1_values", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "i_off", + "name": "entries", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int entries" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int entries" }, "source_location": null, "callback_policy": null }, { - "name": "k_off", + "name": "dim", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" + "source_text": "int dim" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "A", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "a_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k0" + "source_text": "int dim" }, "source_location": null, "callback_policy": null @@ -10066,26 +9516,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2503, + "line": 1241, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" + "source_line": "static int lookup1_values(int entries, int dim)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2503, + "line": 1241, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" + "source_line": "static int lookup1_values(int entries, int dim)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2552, + "line": 1251, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "imdct_step3_inner_s_loop_ld654", + "name": "compute_twiddle_factors", "result_type": { "model": "CVoid", "qualifiers": [], @@ -10108,11 +9558,11 @@ "callback_policy": null }, { - "name": "e", + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -10129,7 +9579,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -10147,26 +9597,11 @@ "callback_policy": null }, { - "name": "i_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "A", + "name": "B", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "float *B", "components": [ { "model": "CPointer", @@ -10183,7 +9618,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "float *B", "components": [ { "model": "CPointer", @@ -10201,16 +9636,40 @@ "callback_policy": null }, { - "name": "base_n", + "name": "C", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int base_n" + "source_text": "float *C", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int base_n" + "source_text": "float *C", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null @@ -10225,26 +9684,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2586, + "line": 1254, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" + "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2586, + "line": 1254, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" + "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2627, + "line": 1269, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "inverse_mdct_naive", + "name": "compute_window", "result_type": { "model": "CVoid", "qualifiers": [], @@ -10252,11 +9711,26 @@ }, "parameters": [ { - "name": "buffer", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "window", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "float *window", "components": [ { "model": "CPointer", @@ -10273,7 +9747,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "float *window", "components": [ { "model": "CPointer", @@ -10289,74 +9763,64 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2933, + "line": 1271, "column": 1, - "source_line": "void inverse_mdct_naive(float *buffer, int n)" + "source_line": "static void compute_window(int n, float *window)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2933, + "line": 1271, "column": 1, - "source_line": "void inverse_mdct_naive(float *buffer, int n)" + "source_line": "static void compute_window(int n, float *window)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3056, + "line": 1276, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "get_window", + "name": "compute_bitreverse", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "float", - "components": [ - { - "model": "CPointer", + "source_text": "void" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int n" }, - { - "model": "CFloat", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "float" - } - ] - }, - "parameters": [ + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "f", + "name": "rev", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "uint16 *rev", "components": [ { "model": "CPointer", @@ -10364,14 +9828,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "uint16 *rev", "components": [ { "model": "CPointer", @@ -10379,27 +9843,12 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "uint16" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -10411,26 +9860,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3059, + "line": 1278, "column": 1, - "source_line": "static float *get_window(vorb *f, int len)" + "source_line": "static void compute_bitreverse(int n, uint16 *rev)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3059, + "line": 1278, "column": 1, - "source_line": "static float *get_window(vorb *f, int len)" + "source_line": "static void compute_bitreverse(int n, uint16 *rev)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3065, + "line": 1284, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "do_floor", + "name": "init_blocksize", "result_type": { "model": "CInt", "qualifiers": [], @@ -10473,51 +9922,16 @@ "callback_policy": null }, { - "name": "map", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Mapping *map", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Mapping" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Mapping *map", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Mapping" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "i", + "name": "b", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int b" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int b" }, "source_location": null, "callback_policy": null @@ -10536,13 +9950,49 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1286, + "column": 1, + "source_line": "static int init_blocksize(vorb *f, int b, int n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1286, + "column": 1, + "source_line": "static int init_blocksize(vorb *f, int b, int n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1301, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "neighbors", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "target", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "uint16 *x", "components": [ { "model": "CPointer", @@ -10550,16 +10000,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "uint16 *x", "components": [ { "model": "CPointer", @@ -10567,9 +10015,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "uint16" } ] }, @@ -10577,11 +10023,26 @@ "callback_policy": null }, { - "name": "finalY", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "plow", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "YTYPE *finalY", + "source_text": "int *plow", "components": [ { "model": "CPointer", @@ -10589,27 +10050,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "YTYPE", - "name": "YTYPE", - "type": { - "reference": "int16" - }, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3068, - "column": 1, - "source_line": "typedef int16 YTYPE;" - }, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "YTYPE *finalY", + "source_text": "int *plow", "components": [ { "model": "CPointer", @@ -10617,7 +10067,9 @@ "source_text": "" }, { - "reference": "YTYPE" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -10625,11 +10077,11 @@ "callback_policy": null }, { - "name": "step2_flag", + "name": "phigh", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *step2_flag", + "source_text": "int *phigh", "components": [ { "model": "CPointer", @@ -10637,14 +10089,16 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *step2_flag", + "source_text": "int *phigh", "components": [ { "model": "CPointer", @@ -10652,7 +10106,9 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -10669,26 +10125,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3072, + "line": 1303, "column": 1, - "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" + "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3072, + "line": 1303, "column": 1, - "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" + "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3108, + "line": 1312, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_decode_initial", + "name": "point_compare", "result_type": { "model": "CInt", "qualifiers": [], @@ -10696,11 +10152,11 @@ }, "parameters": [ { - "name": "f", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const void *p", "components": [ { "model": "CPointer", @@ -10708,14 +10164,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const void *p", "components": [ { "model": "CPointer", @@ -10723,7 +10183,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -10731,11 +10195,11 @@ "callback_policy": null }, { - "name": "p_left_start", + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -10743,16 +10207,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -10760,21 +10226,57 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1320, + "column": 1, + "source_line": "static int point_compare(const void *p, const void *q)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1320, + "column": 1, + "source_line": "static int point_compare(const void *p, const void *q)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1325, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get8", + "result_type": { + "reference": "uint8" + }, + "parameters": [ { - "name": "p_left_end", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_end", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10782,16 +10284,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_end", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10799,38 +10299,53 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "p_right_start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_right_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1337, + "column": 1, + "source_line": "static uint8 get8(vorb *z)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1337, + "column": 1, + "source_line": "static uint8 get8(vorb *z)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1351, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get32", + "result_type": { + "reference": "uint32" + }, + "parameters": [ + { + "name": "f", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_start", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -10838,21 +10353,70 @@ "source_text": "" }, { - "model": "CInt", + "reference": "vorb" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int" + "source_text": "" + }, + { + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1353, + "column": 1, + "source_line": "static uint32 get32(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1353, + "column": 1, + "source_line": "static uint32 get32(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1361, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "getn", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "p_right_end", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_end", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10860,16 +10424,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_end", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10877,9 +10439,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, @@ -10887,11 +10447,11 @@ "callback_policy": null }, { - "name": "mode", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -10899,16 +10459,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -10916,14 +10474,27 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -10935,38 +10506,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3124, + "line": 1363, "column": 1, - "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static int getn(vorb *z, uint8 *data, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3124, + "line": 1363, "column": 1, - "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static int getn(vorb *z, uint8 *data, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3178, + "line": 1380, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_decode_packet_rest", + "name": "skip", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10981,7 +10552,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -10997,50 +10568,62 @@ "callback_policy": null }, { - "name": "len", + "name": "n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1382, + "column": 1, + "source_line": "static void skip(vorb *z, int n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1382, + "column": 1, + "source_line": "static void skip(vorb *z, int n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1395, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "set_file_offset", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "m", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mode *m", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -11048,14 +10631,14 @@ "source_text": "" }, { - "reference": "Mode" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mode *m", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -11063,7 +10646,7 @@ "source_text": "" }, { - "reference": "Mode" + "reference": "stb_vorbis" } ] }, @@ -11071,100 +10654,16 @@ "callback_policy": null }, { - "name": "left_start", + "name": "loc", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int left_start" + "source_text": "unsigned int loc" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int left_start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "left_end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right_start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right_start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right_end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right_end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right_end" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p_left", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "unsigned int loc" }, "source_location": null, "callback_policy": null @@ -11179,26 +10678,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3180, + "line": 1397, "column": 1, - "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" + "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3180, + "line": 1397, "column": 1, - "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" + "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3447, + "line": 1426, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_decode_packet", + "name": "capture_pattern", "result_type": { "model": "CInt", "qualifiers": [], @@ -11239,52 +10738,49 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1431, + "column": 1, + "source_line": "static int capture_pattern(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1431, + "column": 1, + "source_line": "static int capture_pattern(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1438, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "start_page_no_capturepattern", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "p_left", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11292,16 +10788,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11309,21 +10803,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1444, + "column": 1, + "source_line": "static int start_page_no_capturepattern(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1444, + "column": 1, + "source_line": "static int start_page_no_capturepattern(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1495, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "start_page", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "p_right", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11331,16 +10859,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11348,9 +10874,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, @@ -11367,26 +10891,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3449, + "line": 1497, "column": 1, - "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" + "source_line": "static int start_page(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3449, + "line": 1497, "column": 1, - "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" + "source_line": "static int start_page(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3454, + "line": 1501, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_finish_frame", + "name": "start_packet", "result_type": { "model": "CInt", "qualifiers": [], @@ -11398,7 +10922,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11406,20 +10930,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11427,57 +10945,12 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "left", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -11489,26 +10962,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3456, + "line": 1503, "column": 1, - "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" + "source_line": "static int start_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3456, + "line": 1503, "column": 1, - "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" + "source_line": "static int start_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3507, + "line": 1516, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_pump_first_frame", + "name": "maybe_start_packet", "result_type": { "model": "CInt", "qualifiers": [], @@ -11520,7 +10993,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11528,20 +11001,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11549,7 +11016,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -11566,26 +11033,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3509, + "line": 1518, "column": 1, - "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + "source_line": "static int maybe_start_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3509, + "line": 1518, "column": 1, - "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + "source_line": "static int maybe_start_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3516, + "line": 1537, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "is_whole_packet_present", + "name": "next_segment", "result_type": { "model": "CInt", "qualifiers": [], @@ -11597,7 +11064,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11605,20 +11072,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11626,7 +11087,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -11643,26 +11104,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3519, + "line": 1539, "column": 1, - "source_line": "static int is_whole_packet_present(stb_vorbis *f)" + "source_line": "static int next_segment(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3519, + "line": 1539, "column": 1, - "source_line": "static int is_whole_packet_present(stb_vorbis *f)" + "source_line": "static int next_segment(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3577, + "line": 1558, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "start_decoder", + "name": "get8_packet_raw", "result_type": { "model": "CInt", "qualifiers": [], @@ -11714,38 +11175,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3580, + "line": 1563, "column": 1, - "source_line": "static int start_decoder(vorb *f)" + "source_line": "static int get8_packet_raw(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3580, + "line": 1563, "column": 1, - "source_line": "static int start_decoder(vorb *f)" + "source_line": "static int get8_packet_raw(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4206, + "line": 1573, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_deinit", + "name": "get8_packet", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11753,20 +11214,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11774,7 +11229,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -11791,38 +11246,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4208, + "line": 1575, "column": 1, - "source_line": "static void vorbis_deinit(stb_vorbis *p)" + "source_line": "static int get8_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4208, + "line": 1575, "column": 1, - "source_line": "static void vorbis_deinit(stb_vorbis *p)" + "source_line": "static int get8_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4269, + "line": 1580, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_close", + "name": "get32_packet", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "p", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11830,20 +11285,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11851,7 +11300,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -11859,33 +11308,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4271, + "line": 1582, "column": 1, - "source_line": "void stb_vorbis_close(stb_vorbis *p)" + "source_line": "static int get32_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4271, + "line": 1582, "column": 1, - "source_line": "void stb_vorbis_close(stb_vorbis *p)" + "source_line": "static int get32_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4276, + "line": 1590, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_init", + "name": "flush_packet", "result_type": { "model": "CVoid", "qualifiers": [], @@ -11893,52 +11344,11 @@ }, "parameters": [ { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *z", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11946,22 +11356,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *z", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -11969,7 +11371,7 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "vorb" } ] }, @@ -11986,30 +11388,28 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4278, + "line": 1592, "column": 1, - "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + "source_line": "static void flush_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4278, + "line": 1592, "column": 1, - "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + "source_line": "static void flush_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4295, + "line": 1595, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_sample_offset", + "name": "get_bits", "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" }, "parameters": [ { @@ -12017,7 +11417,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12025,20 +11425,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12046,49 +11440,62 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4297, + "line": 1599, "column": 1, - "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" + "source_line": "static uint32 get_bits(vorb *f, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4297, + "line": 1599, "column": 1, - "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" + "source_line": "static uint32 get_bits(vorb *f, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4303, + "line": 1628, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_info", + "name": "prep_huffman", "result_type": { - "model": "CTypedef", + "model": "CVoid", "qualifiers": [], - "source_text": "stb_vorbis_info", - "name": "stb_vorbis_info", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "void" }, "parameters": [ { @@ -12096,7 +11503,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12104,20 +11511,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12125,7 +11526,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -12133,41 +11534,41 @@ "callback_policy": null } ], - "storage": [], - "specifiers": [], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4305, + "line": 1634, "column": 1, - "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" + "source_line": "static inline void prep_huffman(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4305, + "line": 1634, "column": 1, - "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" + "source_line": "static inline void prep_huffman(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4315, + "line": 1647, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_comment", + "name": "codebook_decode_scalar_raw", "result_type": { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis_comment", - "name": "stb_vorbis_comment", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" }, "parameters": [ { @@ -12175,7 +11576,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12183,20 +11584,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12204,53 +11599,19 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4317, - "column": 1, - "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4317, - "column": 1, - "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4324, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_get_error", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12258,20 +11619,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12279,7 +11634,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Codebook" } ] }, @@ -12287,53 +11642,39 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4326, + "line": 1656, "column": 1, - "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" + "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4326, + "line": 1656, "column": 1, - "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" + "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4331, + "line": 1713, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_alloc", + "name": "codebook_decode_start", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int" }, "parameters": [ { @@ -12341,7 +11682,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12349,20 +11690,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12370,55 +11705,19 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4333, - "column": 1, - "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4333, - "column": 1, - "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4337, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_flush_pushdata", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "f", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12426,20 +11725,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12447,7 +11740,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Codebook" } ] }, @@ -12455,33 +11748,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4341, + "line": 1775, "column": 1, - "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" + "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4341, + "line": 1775, "column": 1, - "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" + "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4351, + "line": 1793, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "vorbis_search_for_page_pushdata", + "name": "codebook_decode", "result_type": { "model": "CInt", "qualifiers": [], @@ -12524,11 +11819,11 @@ "callback_policy": null }, { - "name": "data", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12536,14 +11831,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12551,7 +11846,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "Codebook" } ] }, @@ -12559,16 +11854,55 @@ "callback_policy": null }, { - "name": "data_len", + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int len" }, "source_location": null, "callback_policy": null @@ -12583,26 +11917,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4353, + "line": 1795, "column": 1, - "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4353, + "line": 1795, "column": 1, - "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4441, + "line": 1832, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_decode_frame_pushdata", + "name": "codebook_decode_step", "result_type": { "model": "CInt", "qualifiers": [], @@ -12614,7 +11948,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12622,20 +11956,49 @@ "source_text": "" }, { - "model": "CTypedef", + "reference": "vorb" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -12643,7 +12006,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Codebook" } ] }, @@ -12651,11 +12014,11 @@ "callback_policy": null }, { - "name": "data", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *data", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -12663,14 +12026,16 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *data", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -12678,7 +12043,9 @@ "source_text": "" }, { - "reference": "uint8" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -12686,26 +12053,77 @@ "callback_policy": null }, { - "name": "data_len", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "channels", + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1834, + "column": 1, + "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1834, + "column": 1, + "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1863, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "codebook_decode_deinterleave_repeat", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12713,16 +12131,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -12730,9 +12146,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, @@ -12740,17 +12154,47 @@ "callback_policy": null }, { - "name": "output", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "Codebook *c", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "reference": "Codebook" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "outputs", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **outputs", + "components": [ { "model": "CPointer", "qualifiers": [], @@ -12771,7 +12215,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "float **outputs", "components": [ { "model": "CPointer", @@ -12783,11 +12227,6 @@ "qualifiers": [], "source_text": "" }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CFloat", "qualifiers": [], @@ -12799,11 +12238,26 @@ "callback_policy": null }, { - "name": "samples", + "name": "ch", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int ch" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "c_inter_p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *samples", + "source_text": "int *c_inter_p", "components": [ { "model": "CPointer", @@ -12820,7 +12274,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *samples", + "source_text": "int *c_inter_p", "components": [ { "model": "CPointer", @@ -12836,121 +12290,13 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4444, - "column": 1, - "source_line": "int stb_vorbis_decode_frame_pushdata(" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4444, - "column": 1, - "source_line": "int stb_vorbis_decode_frame_pushdata(" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4512, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_open_pushdata", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const unsigned char *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_len" - }, - "source_location": null, - "callback_policy": null }, { - "name": "data_used", + "name": "p_inter_p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *data_used", + "source_text": "int *p_inter_p", "components": [ { "model": "CPointer", @@ -12967,7 +12313,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *data_used", + "source_text": "int *p_inter_p", "components": [ { "model": "CPointer", @@ -12985,301 +12331,142 @@ "callback_policy": null }, { - "name": "error", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "alloc", + "name": "total_decode", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int total_decode" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis_alloc" - } - ] + "source_text": "int total_decode" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4514, + "line": 1865, "column": 1, - "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" + "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4514, + "line": 1865, "column": 1, - "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" + "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4542, + "line": 1933, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_file_offset", + "name": "predict_point", "result_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "int" }, "parameters": [ { - "name": "f", + "name": "x", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int x" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int x" }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4545, - "column": 1, - "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4545, - "column": 1, - "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4554, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "vorbis_find_page", - "result_type": { - "reference": "uint32" - }, - "parameters": [ + }, { - "name": "f", + "name": "x0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int x0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int x0" }, "source_location": null, "callback_policy": null }, { - "name": "end", + "name": "x1", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "uint32 *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] + "source_text": "int x1" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "uint32 *end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] + "source_text": "int x1" }, "source_location": null, "callback_policy": null }, { - "name": "last", + "name": "y0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "uint32 *last", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] + "source_text": "int y0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "uint32 *last", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] + "source_text": "int y0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" }, "source_location": null, "callback_policy": null @@ -13294,38 +12481,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4561, + "line": 1935, "column": 1, - "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4561, + "line": 1935, "column": 1, - "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4629, + "line": 1943, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "get_seek_page_info", + "name": "draw_line", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -13333,20 +12520,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -13354,7 +12537,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -13362,36 +12547,76 @@ "callback_policy": null }, { - "name": "z", + "name": "x0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "ProbedPage *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "ProbedPage" - } - ] + "source_text": "int x0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "ProbedPage *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "ProbedPage" - } - ] + "source_text": "int x0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -13400,32 +12625,34 @@ "storage": [ "static" ], - "specifiers": [], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4643, + "line": 2034, "column": 1, - "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + "source_line": "static inline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4643, + "line": 2034, "column": 1, - "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + "source_line": "static inline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4671, + "line": 2081, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "go_to_page_before", + "name": "residue_decode", "result_type": { "model": "CInt", "qualifiers": [], @@ -13437,7 +12664,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -13445,20 +12672,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -13466,7 +12687,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -13474,62 +12695,46 @@ "callback_policy": null }, { - "name": "limit_offset", + "name": "book", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int limit_offset" + "source_text": "Codebook *book", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int limit_offset" + "source_text": "Codebook *book", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4675, - "column": 1, - "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4675, - "column": 1, - "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4694, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "seek_to_sample_coarse", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "target", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -13537,20 +12742,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -13558,7 +12759,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -13566,12 +12769,46 @@ "callback_policy": null }, { - "name": "sample_number", + "name": "offset", "type": { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" }, "declared_type": { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "rtype", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rtype" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rtype" }, "source_location": null, "callback_policy": null @@ -13586,30 +12823,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4700, + "line": 2083, "column": 1, - "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4700, + "line": 2083, "column": 1, - "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4852, + "line": 2100, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "peek_decode_initial", + "name": "decode_residue", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -13648,11 +12885,11 @@ "callback_policy": null }, { - "name": "p_left_start", + "name": "residue_buffers", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "float *residue_buffers[]", "components": [ { "model": "CPointer", @@ -13660,26 +12897,40 @@ "source_text": "" }, { - "model": "CInt", + "model": "CPointer", "qualifiers": [], - "source_text": "int" + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "float *residue_buffers[]", "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": null, + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -13687,50 +12938,56 @@ "callback_policy": null }, { - "name": "p_left_end", + "name": "ch", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int ch" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int ch" }, "source_location": null, "callback_policy": null }, { - "name": "p_right_start", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "rn", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rn" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rn" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "do_not_decode", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_start", + "source_text": "uint8 *do_not_decode", "components": [ { "model": "CPointer", @@ -13738,16 +12995,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_start", + "source_text": "uint8 *do_not_decode", "components": [ { "model": "CPointer", @@ -13755,21 +13010,70 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "p_right_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_right_end", + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 2104, + "column": 1, + "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 2104, + "column": 1, + "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 2284, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "imdct_step3_iter0_loop", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "e", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -13777,16 +13081,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_end", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -13794,9 +13098,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -13804,11 +13108,41 @@ "callback_policy": null }, { - "name": "mode", + "name": "i_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "k_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -13816,16 +13150,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -13833,9 +13167,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -13852,38 +13186,53 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4855, + "line": 2408, "column": 1, - "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4855, + "line": 2408, "column": 1, - "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4878, + "line": 2451, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_seek_frame", + "name": "imdct_step3_inner_r_loop", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "lim", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lim" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lim" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -13891,20 +13240,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -13912,7 +13257,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -13920,60 +13267,41 @@ "callback_policy": null }, { - "name": "sample_number", + "name": "d0", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int d0" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int d0" }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4880, - "column": 1, - "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4880, - "column": 1, - "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4917, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_seek", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "k_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -13981,20 +13309,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -14002,7 +13326,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -14010,60 +13336,77 @@ "callback_policy": null }, { - "name": "sample_number", + "name": "k1", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int k1" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int k1" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4919, + "line": 2453, "column": 1, - "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" + "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4919, + "line": 2453, "column": 1, - "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" + "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4934, + "line": 2501, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_seek_start", + "name": "imdct_step3_inner_s_loop", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -14071,20 +13414,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -14092,53 +13431,51 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4936, - "column": 1, - "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4936, - "column": 1, - "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4944, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_stream_length_in_samples", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ + }, { - "name": "f", + "name": "i_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "k_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -14146,20 +13483,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -14167,53 +13500,87 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "a_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int a_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "k0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k0" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4946, + "line": 2503, "column": 1, - "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" + "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4946, + "line": 2503, "column": 1, - "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" + "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5019, + "line": 2552, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_stream_length_in_seconds", + "name": "iter_54", "result_type": { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *z", "components": [ { "model": "CPointer", @@ -14221,20 +13588,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *z", "components": [ { "model": "CPointer", @@ -14242,7 +13605,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -14250,86 +13615,64 @@ "callback_policy": null } ], - "storage": [], - "specifiers": [], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5021, + "line": 2554, "column": 1, - "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" + "source_line": "static inline void iter_54(float *z)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5021, + "line": 2554, "column": 1, - "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" + "source_line": "static inline void iter_54(float *z)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5024, + "line": 2584, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_frame_float", + "name": "imdct_step3_inner_s_loop_ld654", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "channels", + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -14337,16 +13680,16 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -14354,9 +13697,9 @@ "source_text": "" }, { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" } ] }, @@ -14364,22 +13707,27 @@ "callback_policy": null }, { - "name": "output", + "name": "i_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -14395,18 +13743,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -14421,63 +13759,64 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "base_n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int base_n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int base_n" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5028, + "line": 2586, "column": 1, - "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" + "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5028, + "line": 2586, "column": 1, - "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" + "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5048, + "line": 2627, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_open_file_section", + "name": "inverse_mdct", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "void" }, "parameters": [ { - "name": "file", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *file", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -14485,20 +13824,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *file", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -14506,7 +13841,9 @@ "source_text": "" }, { - "reference": "FILE" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -14514,65 +13851,26 @@ "callback_policy": null }, { - "name": "close_on_free", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "alloc", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14580,22 +13878,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14603,7 +13893,7 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "vorb" } ] }, @@ -14611,52 +13901,54 @@ "callback_policy": null }, { - "name": "length", + "name": "blocktype", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int length" + "source_text": "int blocktype" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int length" + "source_text": "int blocktype" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5052, + "line": 2629, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" + "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5052, + "line": 2629, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" + "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5071, + "line": 2929, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_open_file", + "name": "get_window", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis", + "source_text": "float", "components": [ { "model": "CPointer", @@ -14664,23 +13956,19 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CFloat", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "float" } ] }, "parameters": [ { - "name": "file", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *file", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14688,20 +13976,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "FILE", - "name": "FILE", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "FILE *file", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14709,7 +13991,7 @@ "source_text": "" }, { - "reference": "FILE" + "reference": "vorb" } ] }, @@ -14717,26 +13999,62 @@ "callback_policy": null }, { - "name": "close_on_free", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int len" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 3059, + "column": 1, + "source_line": "static float *get_window(vorb *f, int len)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 3059, + "column": 1, + "source_line": "static float *get_window(vorb *f, int len)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 3065, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "do_floor", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "error", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14744,16 +14062,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -14761,9 +14077,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, @@ -14771,11 +14085,11 @@ "callback_policy": null }, { - "name": "alloc", + "name": "map", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "Mapping *map", "components": [ { "model": "CPointer", @@ -14783,22 +14097,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "Mapping" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "Mapping *map", "components": [ { "model": "CPointer", @@ -14806,69 +14112,49 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "Mapping" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5073, - "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5073, - "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5081, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_open_filename", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", + }, + { + "name": "i", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int i" }, - { - "model": "CTypedef", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "parameters": [ + "source_text": "int i" + }, + "source_location": null, + "callback_policy": null + }, { - "name": "filename", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "target", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -14876,18 +14162,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -14895,11 +14179,9 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -14907,11 +14189,11 @@ "callback_policy": null }, { - "name": "error", + "name": "finalY", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "YTYPE *finalY", "components": [ { "model": "CPointer", @@ -14919,16 +14201,27 @@ "source_text": "" }, { - "model": "CInt", + "model": "CTypedef", "qualifiers": [], - "source_text": "int" + "source_text": "YTYPE", + "name": "YTYPE", + "type": { + "reference": "int16" + }, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 3068, + "column": 1, + "source_line": "typedef int16 YTYPE;" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "YTYPE *finalY", "components": [ { "model": "CPointer", @@ -14936,9 +14229,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "YTYPE" } ] }, @@ -14946,11 +14237,11 @@ "callback_policy": null }, { - "name": "alloc", + "name": "step2_flag", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "uint8 *step2_flag", "components": [ { "model": "CPointer", @@ -14958,22 +14249,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "uint8 *step2_flag", "components": [ { "model": "CPointer", @@ -14981,7 +14264,7 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "uint8" } ] }, @@ -14989,61 +14272,47 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5083, + "line": 3072, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5083, + "line": 3072, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5096, + "line": 3108, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_open_memory", + "name": "vorbis_decode_initial", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -15051,18 +14320,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -15070,11 +14335,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, @@ -15082,26 +14343,50 @@ "callback_policy": null }, { - "name": "len", + "name": "p_left_start", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "int *p_left_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "int *p_left_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "error", + "name": "p_left_end", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -15118,7 +14403,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -15136,11 +14421,11 @@ "callback_policy": null }, { - "name": "alloc", + "name": "p_right_start", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "int *p_right_start", "components": [ { "model": "CPointer", @@ -15148,22 +14433,16 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const stb_vorbis_alloc", - "name": "stb_vorbis_alloc", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "int *p_right_start", "components": [ { "model": "CPointer", @@ -15171,53 +14450,21 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5099, - "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5099, - "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5124, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "copy_samples", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "dest", + "name": "p_right_end", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *dest", + "source_text": "int *p_right_end", "components": [ { "model": "CPointer", @@ -15225,16 +14472,16 @@ "source_text": "" }, { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *dest", + "source_text": "int *p_right_end", "components": [ { "model": "CPointer", @@ -15242,9 +14489,9 @@ "source_text": "" }, { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, @@ -15252,11 +14499,11 @@ "callback_policy": null }, { - "name": "src", + "name": "mode", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *src", + "source_text": "int *mode", "components": [ { "model": "CPointer", @@ -15264,16 +14511,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *src", + "source_text": "int *mode", "components": [ { "model": "CPointer", @@ -15281,29 +14528,14 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -15315,53 +14547,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5165, + "line": 3124, "column": 1, - "source_line": "static void copy_samples(short *dest, float *src, int len)" + "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5165, + "line": 3124, "column": 1, - "source_line": "static void copy_samples(short *dest, float *src, int len)" + "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5176, + "line": 3178, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "compute_samples", + "name": "vorbis_decode_packet_rest", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "mask", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mask" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mask" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "output", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -15369,16 +14586,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -15386,9 +14601,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, @@ -15396,26 +14609,11 @@ "callback_policy": null }, { - "name": "num_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", + "name": "len", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "int *len", "components": [ { "model": "CPointer", @@ -15423,21 +14621,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "int *len", "components": [ { "model": "CPointer", @@ -15445,14 +14638,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -15460,77 +14648,11 @@ "callback_policy": null }, { - "name": "d_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5178, - "column": 1, - "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5178, - "column": 1, - "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5202, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "compute_stereo_samples", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "output", + "name": "m", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "Mode *m", "components": [ { "model": "CPointer", @@ -15538,16 +14660,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "Mode" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "Mode *m", "components": [ { "model": "CPointer", @@ -15555,9 +14675,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "Mode" } ] }, @@ -15565,95 +14683,100 @@ "callback_policy": null }, { - "name": "num_c", + "name": "left_start", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int left_start" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int left_start" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "left_end", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int left_end" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float **data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int left_end" }, "source_location": null, "callback_policy": null }, { - "name": "d_offset", + "name": "right_start", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int d_offset" + "source_text": "int right_start" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int d_offset" + "source_text": "int right_start" }, "source_location": null, "callback_policy": null }, { - "name": "len", + "name": "right_end", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int right_end" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int right_end" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_left", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -15668,53 +14791,73 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5204, + "line": 3180, "column": 1, - "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5204, + "line": 3180, "column": 1, - "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5242, + "line": 3447, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "convert_samples_short", + "name": "vorbis_decode_packet", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buf_c", + "name": "f", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "len", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "int *len", "components": [ { "model": "CPointer", @@ -15722,21 +14865,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "int *len", "components": [ { "model": "CPointer", @@ -15744,14 +14882,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, @@ -15759,41 +14892,11 @@ "callback_policy": null }, { - "name": "b_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", + "name": "p_left", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -15801,21 +14904,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -15823,14 +14921,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -15838,31 +14931,40 @@ "callback_policy": null }, { - "name": "d_offset", + "name": "p_right", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d_offset" + "source_text": "int *p_right", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "samples", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int samples" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int samples" + "source_text": "int *p_right", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null @@ -15877,26 +14979,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5244, + "line": 3449, "column": 1, - "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5244, + "line": 3449, "column": 1, - "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5258, + "line": 3454, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_frame_short", + "name": "vorbis_finish_frame", "result_type": { "model": "CInt", "qualifiers": [], @@ -15916,13 +15018,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stb_vorbis" } ] }, @@ -15945,139 +15041,92 @@ "callback_policy": null }, { - "name": "num_c", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "left", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short **buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int left" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "short **buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "source_text": "int left" }, "source_location": null, "callback_policy": null }, { - "name": "num_samples", + "name": "right", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int right" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int right" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5260, + "line": 3456, "column": 1, - "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" + "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5260, + "line": 3456, "column": 1, - "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" + "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5268, + "line": 3507, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "convert_channels_short_interleaved", + "name": "vorbis_pump_first_frame", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buf_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int buf_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int buf_c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16085,16 +15134,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16102,36 +15149,55 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "data_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_c" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 3509, + "column": 1, + "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 3509, + "column": 1, + "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 3516, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "is_whole_packet_present", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "data", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16139,21 +15205,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16161,49 +15220,12 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "d_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -16215,26 +15237,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5270, + "line": 3519, "column": 1, - "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + "source_line": "static int is_whole_packet_present(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5270, + "line": 3519, "column": 1, - "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + "source_line": "static int is_whole_packet_present(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5294, + "line": 3577, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_frame_short_interleaved", + "name": "start_decoder", "result_type": { "model": "CInt", "qualifiers": [], @@ -16246,7 +15268,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -16254,20 +15276,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -16275,34 +15291,55 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "num_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 3580, + "column": 1, + "source_line": "static int start_decoder(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 3580, + "column": 1, + "source_line": "static int start_decoder(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4206, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "vorbis_deinit", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "buffer", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -16310,16 +15347,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -16327,70 +15362,55 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "num_shorts", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_shorts" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_shorts" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5296, + "line": 4208, "column": 1, - "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" + "source_line": "static void vorbis_deinit(stb_vorbis *p)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5296, + "line": 4208, "column": 1, - "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" + "source_line": "static void vorbis_deinit(stb_vorbis *p)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5307, + "line": 4269, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_samples_short_interleaved", + "name": "vorbis_init", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -16398,20 +15418,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -16427,26 +15441,11 @@ "callback_policy": null }, { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "const stb_vorbis_alloc *z", "components": [ { "model": "CPointer", @@ -16454,16 +15453,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "const stb_vorbis_alloc *z", "components": [ { "model": "CPointer", @@ -16471,58 +15468,124 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis_alloc" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4278, + "column": 1, + "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4278, + "column": 1, + "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4295, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "vorbis_alloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "parameters": [ { - "name": "num_shorts", + "name": "f", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_shorts" + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_shorts" + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5309, + "line": 4333, "column": 1, - "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" + "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5309, + "line": 4333, "column": 1, - "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" + "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5326, + "line": 4337, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_samples_short", + "name": "vorbis_search_for_page_pushdata", "result_type": { "model": "CInt", "qualifiers": [], @@ -16534,7 +15597,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -16542,20 +15605,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -16563,7 +15620,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -16571,26 +15628,11 @@ "callback_policy": null }, { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -16598,21 +15640,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -16620,14 +15655,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "uint8" } ] }, @@ -16635,60 +15663,60 @@ "callback_policy": null }, { - "name": "len", + "name": "data_len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int data_len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int data_len" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5328, + "line": 4353, "column": 1, - "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5328, + "line": 4353, "column": 1, - "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5343, + "line": 4441, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_decode_filename", + "name": "vorbis_find_page", "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" }, "parameters": [ { - "name": "filename", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16696,18 +15724,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16715,11 +15739,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "stb_vorbis" } ] }, @@ -16727,11 +15747,11 @@ "callback_policy": null }, { - "name": "channels", + "name": "end", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "uint32 *end", "components": [ { "model": "CPointer", @@ -16739,16 +15759,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "uint32 *end", "components": [ { "model": "CPointer", @@ -16756,9 +15774,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, @@ -16766,11 +15782,11 @@ "callback_policy": null }, { - "name": "sample_rate", + "name": "last", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "uint32 *last", "components": [ { "model": "CPointer", @@ -16778,16 +15794,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "uint32 *last", "components": [ { "model": "CPointer", @@ -16795,58 +15809,113 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4561, + "column": 1, + "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4561, + "column": 1, + "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4629, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "get_seek_page_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "output", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "stb_vorbis" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "ProbedPage *z", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "reference": "ProbedPage" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ProbedPage *z", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "ProbedPage" } ] }, @@ -16854,33 +15923,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5346, + "line": 4643, "column": 1, - "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" + "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5346, + "line": 4643, "column": 1, - "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" + "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5383, + "line": 4671, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_decode_memory", + "name": "go_to_page_before", "result_type": { "model": "CInt", "qualifiers": [], @@ -16888,11 +15959,11 @@ }, "parameters": [ { - "name": "mem", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *mem", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16900,14 +15971,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *mem", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16915,7 +15986,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, @@ -16923,65 +15994,62 @@ "callback_policy": null }, { - "name": "len", + "name": "limit_offset", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int len" + "source_text": "unsigned int limit_offset" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int len" + "source_text": "unsigned int limit_offset" }, "source_location": null, "callback_policy": null - }, - { - "name": "channels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *channels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *channels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4675, + "column": 1, + "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4675, + "column": 1, + "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4694, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "seek_to_sample_coarse", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "sample_rate", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -16989,16 +16057,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -17006,9 +16072,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis" } ] }, @@ -17016,82 +16080,46 @@ "callback_policy": null }, { - "name": "output", + "name": "sample_number", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short **output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "reference": "uint32" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "short **output", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", - "qualifiers": [], - "source_text": "short" - } - ] + "reference": "uint32" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5386, + "line": 4700, "column": 1, - "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" + "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5386, + "line": 4700, "column": 1, - "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" + "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5423, + "line": 4852, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "stb_vorbis_get_samples_float_interleaved", + "name": "peek_decode_initial", "result_type": { "model": "CInt", "qualifiers": [], @@ -17103,7 +16131,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -17111,20 +16139,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -17132,7 +16154,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -17140,26 +16162,11 @@ "callback_policy": null }, { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "p_left_start", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "int *p_left_start", "components": [ { "model": "CPointer", @@ -17167,16 +16174,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "int *p_left_start", "components": [ { "model": "CPointer", @@ -17184,9 +16191,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -17194,60 +16201,11 @@ "callback_policy": null }, { - "name": "num_floats", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_floats" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_floats" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5426, - "column": 1, - "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5426, - "column": 1, - "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5451, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stb_vorbis_get_samples_float", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", + "name": "p_left_end", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -17255,20 +16213,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "name": "stb_vorbis", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -17276,7 +16230,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -17284,26 +16240,11 @@ "callback_policy": null }, { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "p_right_start", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **buffer", + "source_text": "int *p_right_start", "components": [ { "model": "CPointer", @@ -17311,21 +16252,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **buffer", + "source_text": "int *p_right_start", "components": [ { "model": "CPointer", @@ -17333,14 +16269,48 @@ "source_text": "" }, { - "model": "CPointer", + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_right_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -17348,6915 +16318,1545 @@ "callback_policy": null }, { - "name": "num_samples", + "name": "mode", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5453, + "line": 4855, "column": 1, - "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" + "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5453, + "line": 4855, "column": 1, - "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" + "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5477, + "line": 4878, "column": 1, "source_line": "}" }, "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_vorbis.c:680:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:703:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:714:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:736:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:746:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:753:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:762:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:770:1" - }, - { - "reference": "struct@stb/stb_vorbis.c:779:1" - }, - { - "reference": "struct stb_vorbis" }, { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ + "name": "copy_samples", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "x", + "name": "dest", "type": { - "reference": "uint16" + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1317, - "column": 4, - "source_line": " uint16 x,id;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "id", - "type": { - "reference": "uint16" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1317, - "column": 4, - "source_line": " uint16 x,id;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_vorbis.c:1315:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1315, - "column": 1, - "source_line": "typedef struct" - } - }, - { - "reference": "struct@stb/stb_vorbis.c:2371:1" - } - ], - "unions": [ - { - "reference": "union@stb/stb_vorbis.c:730:1" - }, - { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "f", + "name": "src", "type": { - "model": "CFloat", + "model": "CComposedType", "qualifiers": [], - "source_text": "float f" + "source_text": "float *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5149, - "column": 7, - "source_line": " float f;" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null }, { - "name": "i", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int len" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5150, - "column": 7, - "source_line": " int i;" + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" }, - "callback_policy": null, - "declaration_locations": [] + "source_location": null, + "callback_policy": null } ], - "anonymous_id": "union@stb/stb_vorbis.c:5148:4", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5148, - "column": 4, - "source_line": " typedef union {" - } - } - ], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "VORBIS_packet_id", - "value": "1", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1649, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "VORBIS_packet_comment", - "value": "3", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1649, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "VORBIS_packet_setup", - "value": "5", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1649, - "column": 1, - "source_line": "enum" - } - } + "storage": [ + "static" ], - "anonymous_id": "enum@stb/stb_vorbis.c:1649:1", + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1649, + "line": 5165, "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "reference": "uint8" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "int8", - "name": "int8", - "type": { - "model": "CSignedChar", - "qualifiers": [], - "source_text": "typedef signed char int8" + "source_line": "static void copy_samples(short *dest, float *src, int len)" }, - "source_location": { + "start": { "filename": "stb/stb_vorbis.c", - "line": 645, + "line": 5165, "column": 1, - "source_line": "typedef signed char int8;" - }, - "declaration_locations": [] - }, - { - "reference": "uint16" - }, - { - "reference": "int16" - }, - { - "reference": "uint32" - }, - { - "reference": "int32" - }, - { - "reference": "codetype" - }, - { - "reference": "Codebook" - }, - { - "reference": "Floor0" - }, - { - "reference": "Floor1" - }, - { - "reference": "Floor" - }, - { - "reference": "Residue" - }, - { - "reference": "MappingChannel" - }, - { - "reference": "Mapping" - }, - { - "reference": "Mode" - }, - { - "reference": "CRCscan" - }, - { - "reference": "ProbedPage" - }, - { - "reference": "vorb" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbv__floor_ordering", - "name": "stbv__floor_ordering", - "type": { - "reference": "struct@stb/stb_vorbis.c:1315:1" + "source_line": "static void copy_samples(short *dest, float *src, int len)" }, - "source_location": { + "end": { "filename": "stb/stb_vorbis.c", - "line": 1315, + "line": 5176, "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - { - "reference": "mdct_lookup" - }, - { - "reference": "YTYPE" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "float_conv", - "name": "float_conv", - "type": { - "reference": "union@stb/stb_vorbis.c:5148:4" - }, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5148, - "column": 4, - "source_line": " typedef union {" + "source_line": "}" }, "declaration_locations": [] }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stb_vorbis_float_size_test", - "name": "stb_vorbis_float_size_test", - "type": { - "model": "CComposedType", + "name": "compute_samples", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "typedef char stb_vorbis_float_size_test[sizeof(float)==4 && sizeof(int) == 4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "sizeof(float)==4 && sizeof(int) == 4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5152, - "column": 4, - "source_line": " typedef char stb_vorbis_float_size_test[sizeof(float)==4 && sizeof(int) == 4];" + "source_text": "void" }, - "declaration_locations": [] - } - ], - "variables": [ - { - "name": "crc_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static uint32 crc_table[256]", - "components": [ - { - "model": "CArray", + "parameters": [ + { + "name": "mask", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int mask" }, - { - "reference": "uint32" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 991, - "column": 1, - "source_line": "static uint32 crc_table[256];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ogg_page_header", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static uint8 ogg_page_header[4]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int mask" }, - { - "reference": "uint8" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0x4f, 0x67, 0x67, 0x53 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1429, - "column": 1, - "source_line": "static uint8 ogg_page_header[4] = { 0x4f, 0x67, 0x67, 0x53 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "inverse_db_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float inverse_db_table[256]", - "components": [ - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "output", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, - { - "model": "CFloat", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n 1.0649863e-07f, 1.1341951e-07f, 1.2079015e-07f, 1.2863978e-07f,\n 1.3699951e-07f, 1.4590251e-07f, 1.5538408e-07f, 1.6548181e-07f,\n 1.7623575e-07f, 1.8768855e-07f, 1.9988561e-07f, 2.1287530e-07f,\n 2.2670913e-07f, 2.4144197e-07f, 2.5713223e-07f, 2.7384213e-07f,\n 2.9163793e-07f, 3.1059021e-07f, 3.3077411e-07f, 3.5226968e-07f,\n 3.7516214e-07f, 3.9954229e-07f, 4.2550680e-07f, 4.5315863e-07f,\n 4.8260743e-07f, 5.1396998e-07f, 5.4737065e-07f, 5.8294187e-07f,\n 6.2082472e-07f, 6.6116941e-07f, 7.0413592e-07f, 7.4989464e-07f,\n 7.9862701e-07f, 8.5052630e-07f, 9.0579828e-07f, 9.6466216e-07f,\n 1.0273513e-06f, 1.0941144e-06f, 1.1652161e-06f, 1.2409384e-06f,\n 1.3215816e-06f, 1.4074654e-06f, 1.4989305e-06f, 1.5963394e-06f,\n 1.7000785e-06f, 1.8105592e-06f, 1.9282195e-06f, 2.0535261e-06f,\n 2.1869758e-06f, 2.3290978e-06f, 2.4804557e-06f, 2.6416497e-06f,\n 2.8133190e-06f, 2.9961443e-06f, 3.1908506e-06f, 3.3982101e-06f,\n 3.6190449e-06f, 3.8542308e-06f, 4.1047004e-06f, 4.3714470e-06f,\n 4.6555282e-06f, 4.9580707e-06f, 5.2802740e-06f, 5.6234160e-06f,\n 5.9888572e-06f, 6.3780469e-06f, 6.7925283e-06f, 7.2339451e-06f,\n 7.7040476e-06f, 8.2047000e-06f, 8.7378876e-06f, 9.3057248e-06f,\n 9.9104632e-06f, 1.0554501e-05f, 1.1240392e-05f, 1.1970856e-05f,\n 1.2748789e-05f, 1.3577278e-05f, 1.4459606e-05f, 1.5399272e-05f,\n 1.6400004e-05f, 1.7465768e-05f, 1.8600792e-05f, 1.9809576e-05f,\n 2.1096914e-05f, 2.2467911e-05f, 2.3928002e-05f, 2.5482978e-05f,\n 2.7139006e-05f, 2.8902651e-05f, 3.0780908e-05f, 3.2781225e-05f,\n 3.4911534e-05f, 3.7180282e-05f, 3.9596466e-05f, 4.2169667e-05f,\n 4.4910090e-05f, 4.7828601e-05f, 5.0936773e-05f, 5.4246931e-05f,\n 5.7772202e-05f, 6.1526565e-05f, 6.5524908e-05f, 6.9783085e-05f,\n 7.4317983e-05f, 7.9147585e-05f, 8.4291040e-05f, 8.9768747e-05f,\n 9.5602426e-05f, 0.00010181521f, 0.00010843174f, 0.00011547824f,\n 0.00012298267f, 0.00013097477f, 0.00013948625f, 0.00014855085f,\n 0.00015820453f, 0.00016848555f, 0.00017943469f, 0.00019109536f,\n 0.00020351382f, 0.00021673929f, 0.00023082423f, 0.00024582449f,\n 0.00026179955f, 0.00027881276f, 0.00029693158f, 0.00031622787f,\n 0.00033677814f, 0.00035866388f, 0.00038197188f, 0.00040679456f,\n 0.00043323036f, 0.00046138411f, 0.00049136745f, 0.00052329927f,\n 0.00055730621f, 0.00059352311f, 0.00063209358f, 0.00067317058f,\n 0.00071691700f, 0.00076350630f, 0.00081312324f, 0.00086596457f,\n 0.00092223983f, 0.00098217216f, 0.0010459992f, 0.0011139742f,\n 0.0011863665f, 0.0012634633f, 0.0013455702f, 0.0014330129f,\n 0.0015261382f, 0.0016253153f, 0.0017309374f, 0.0018434235f,\n 0.0019632195f, 0.0020908006f, 0.0022266726f, 0.0023713743f,\n 0.0025254795f, 0.0026895994f, 0.0028643847f, 0.0030505286f,\n 0.0032487691f, 0.0034598925f, 0.0036847358f, 0.0039241906f,\n 0.0041792066f, 0.0044507950f, 0.0047400328f, 0.0050480668f,\n 0.0053761186f, 0.0057254891f, 0.0060975636f, 0.0064938176f,\n 0.0069158225f, 0.0073652516f, 0.0078438871f, 0.0083536271f,\n 0.0088964928f, 0.009474637f, 0.010090352f, 0.010746080f,\n 0.011444421f, 0.012188144f, 0.012980198f, 0.013823725f,\n 0.014722068f, 0.015678791f, 0.016697687f, 0.017782797f,\n 0.018938423f, 0.020169149f, 0.021479854f, 0.022875735f,\n 0.024362330f, 0.025945531f, 0.027631618f, 0.029427276f,\n 0.031339626f, 0.033376252f, 0.035545228f, 0.037855157f,\n 0.040315199f, 0.042935108f, 0.045725273f, 0.048696758f,\n 0.051861348f, 0.055231591f, 0.058820850f, 0.062643361f,\n 0.066714279f, 0.071049749f, 0.075666962f, 0.080584227f,\n 0.085821044f, 0.091398179f, 0.097337747f, 0.10366330f,\n 0.11039993f, 0.11757434f, 0.12521498f, 0.13335215f,\n 0.14201813f, 0.15124727f, 0.16107617f, 0.17154380f,\n 0.18269168f, 0.19456402f, 0.20720788f, 0.22067342f,\n 0.23501402f, 0.25028656f, 0.26655159f, 0.28387361f,\n 0.30232132f, 0.32196786f, 0.34289114f, 0.36517414f,\n 0.38890521f, 0.41417847f, 0.44109412f, 0.46975890f,\n 0.50028648f, 0.53279791f, 0.56742212f, 0.60429640f,\n 0.64356699f, 0.68538959f, 0.72993007f, 0.77736504f,\n 0.82788260f, 0.88168307f, 0.9389798f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1946, - "column": 1, - "source_line": "static float inverse_db_table[256] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "integer_divide_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int8 integer_divide_table[DIVTAB_NUMER][DIVTAB_DENOM]", - "components": [ - { - "model": "CArray", + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_c", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "DIVTAB_NUMER", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int num_c" }, - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "DIVTAB_DENOM", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int num_c" }, - { - "reference": "int8" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2031, + "line": 5178, "column": 1, - "source_line": "int8 integer_divide_table[DIVTAB_NUMER][DIVTAB_DENOM]; // 2KB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "M1", - "type": { - "reference": "mdct_lookup" + "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_vorbis.c", - "line": 2386, + "line": 5178, "column": 1, - "source_line": "mdct_lookup M1,M2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "M2", - "type": { - "reference": "mdct_lookup" + "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { + "end": { "filename": "stb/stb_vorbis.c", - "line": 2386, + "line": 5202, "column": 1, - "source_line": "mdct_lookup M1,M2;" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, { - "name": "channel_position", - "type": { - "model": "CComposedType", + "name": "compute_stereo_samples", + "result_type": { + "model": "CVoid", "qualifiers": [], - "source_text": "static int8 channel_position[7][6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "7", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "void" + }, + "parameters": [ + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] }, - { - "reference": "int8" - } - ] - }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n { 0 },\n { C },\n { L, R },\n { L, C, R },\n { L, R, L, R },\n { L, C, R, L, R },\n { L, C, R, L, R, C },\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5135, + "line": 5204, "column": 1, - "source_line": "static int8 channel_position[7][6] =" + "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "STB_VORBIS_INCLUDE_STB_VORBIS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 75, - "column": 1, - "source_line": "#define STB_VORBIS_INCLUDE_STB_VORBIS_H" - } - }, - { - "name": "STB_VORBIS_NO_STDIO", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 78, - "column": 1, - "source_line": "#define STB_VORBIS_NO_STDIO 1" - } - }, - { - "name": "STB_VORBIS_MAX_CHANNELS", - "value": "16", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 461, - "column": 1, - "source_line": "#define STB_VORBIS_MAX_CHANNELS 16 // enough for anyone?" - } - }, - { - "name": "STB_VORBIS_PUSHDATA_CRC_COUNT", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 477, - "column": 1, - "source_line": "#define STB_VORBIS_PUSHDATA_CRC_COUNT 4" - } - }, - { - "name": "STB_VORBIS_FAST_HUFFMAN_LENGTH", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { + "start": { "filename": "stb/stb_vorbis.c", - "line": 486, + "line": 5204, "column": 1, - "source_line": "#define STB_VORBIS_FAST_HUFFMAN_LENGTH 10" - } - }, - { - "name": "STB_VORBIS_FAST_HUFFMAN_SHORT", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 500, + "line": 5242, "column": 1, - "source_line": "#define STB_VORBIS_FAST_HUFFMAN_SHORT" - } - }, - { - "name": "STB_VORBIS_NO_INTEGER_CONVERSION", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 553, - "column": 4, - "source_line": " #define STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "name": "STB_VORBIS_NO_STDIO", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 554, - "column": 4, - "source_line": " #define STB_VORBIS_NO_STDIO" - } - }, - { - "name": "STB_VORBIS_NO_STDIO", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 558, - "column": 4, - "source_line": " #define STB_VORBIS_NO_STDIO 1" - } - }, - { - "name": "STB_VORBIS_ENDIAN", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 568, - "column": 6, - "source_line": " #define STB_VORBIS_ENDIAN 0" - } - }, - { - "name": "STB_VORBIS_ENDIAN", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 570, - "column": 6, - "source_line": " #define STB_VORBIS_ENDIAN 1" - } - }, - { - "name": "NULL", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 595, - "column": 4, - "source_line": " #define NULL 0" - } - }, - { - "name": "malloc", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 596, - "column": 4, - "source_line": " #define malloc(s) 0" - } - }, - { - "name": "free", - "value": "((void) 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 597, - "column": 4, - "source_line": " #define free(s) ((void) 0)" - } - }, - { - "name": "realloc", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 598, - "column": 4, - "source_line": " #define realloc(s) 0" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "__forceinline", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 610, - "column": 4, - "source_line": " #undef __forceinline" - } - }, - { - "name": "__forceinline", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 612, - "column": 4, - "source_line": " #define __forceinline" - } - }, - { - "name": "alloca", - "value": "__builtin_alloca", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 614, - "column": 4, - "source_line": " #define alloca __builtin_alloca" - } - }, - { - "name": "__forceinline", - "value": "inline", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 618, - "column": 7, - "source_line": " #define __forceinline inline" - } - }, - { - "name": "__forceinline", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 620, - "column": 7, - "source_line": " #define __forceinline" - } - }, - { - "name": "CHECK", - "value": "_CrtIsValidHeapPointer(f->channel_buffers[1])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 635, - "column": 1, - "source_line": "#define CHECK(f) _CrtIsValidHeapPointer(f->channel_buffers[1])" - } - }, - { - "name": "CHECK", - "value": "((void) 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 637, - "column": 1, - "source_line": "#define CHECK(f) ((void) 0)" - } - }, - { - "name": "MAX_BLOCKSIZE_LOG", - "value": "13", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 640, - "column": 1, - "source_line": "#define MAX_BLOCKSIZE_LOG 13 // from specification" - } - }, - { - "name": "MAX_BLOCKSIZE", - "value": "(1 << MAX_BLOCKSIZE_LOG)", - "function_like": false, - "directive": "define", + "name": "convert_samples_short", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "buf_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short **buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short **buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int samples" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 641, + "line": 5244, "column": 1, - "source_line": "#define MAX_BLOCKSIZE (1 << MAX_BLOCKSIZE_LOG)" - } - }, - { - "name": "TRUE", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 652, + "line": 5244, "column": 1, - "source_line": "#define TRUE 1" - } - }, - { - "name": "FALSE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 653, + "line": 5258, "column": 1, - "source_line": "#define FALSE 0" - } + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "STBV_NOTUSED", - "value": "(void)(v)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 659, - "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)(v)" - } - }, - { - "name": "STBV_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", + "name": "convert_channels_short_interleaved", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "buf_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 661, + "line": 5270, "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)sizeof(v)" - } - }, - { - "name": "FAST_HUFFMAN_TABLE_SIZE", - "value": "(1 << STB_VORBIS_FAST_HUFFMAN_LENGTH)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 677, + "line": 5270, "column": 1, - "source_line": "#define FAST_HUFFMAN_TABLE_SIZE (1 << STB_VORBIS_FAST_HUFFMAN_LENGTH)" - } - }, - { - "name": "FAST_HUFFMAN_TABLE_MASK", - "value": "(FAST_HUFFMAN_TABLE_SIZE - 1)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 678, + "line": 5294, "column": 1, - "source_line": "#define FAST_HUFFMAN_TABLE_MASK (FAST_HUFFMAN_TABLE_SIZE - 1)" - } - }, - { - "name": "IS_PUSH_MODE", - "value": "FALSE", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 904, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) FALSE" - } - }, - { - "name": "IS_PUSH_MODE", - "value": "TRUE", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 906, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) TRUE" - } - }, - { - "name": "IS_PUSH_MODE", - "value": "((f)->push_mode)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 908, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) ((f)->push_mode)" - } - }, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [ { - "name": "array_size_required", - "value": "(count*(sizeof(void *)+(size)))", - "function_like": true, - "directive": "define", + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "x", + "type": { + "reference": "uint16" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1317, + "column": 4, + "source_line": " uint16 x,id;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "id", + "type": { + "reference": "uint16" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1317, + "column": 4, + "source_line": " uint16 x,id;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "struct@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 928, + "line": 1315, "column": 1, - "source_line": "#define array_size_required(count,size) (count*(sizeof(void *)+(size)))" + "source_line": "typedef struct" } - }, + } + ], + "unions": [ { - "name": "temp_alloc", - "value": "(f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 930, - "column": 1, - "source_line": "#define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))" - } - }, - { - "name": "temp_free", - "value": "(void)0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 931, - "column": 1, - "source_line": "#define temp_free(f,p) (void)0" - } - }, - { - "name": "temp_alloc_save", - "value": "((f)->temp_offset)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 932, - "column": 1, - "source_line": "#define temp_alloc_save(f) ((f)->temp_offset)" - } - }, - { - "name": "temp_alloc_restore", - "value": "((f)->temp_offset = (p))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 933, - "column": 1, - "source_line": "#define temp_alloc_restore(f,p) ((f)->temp_offset = (p))" - } - }, - { - "name": "temp_block_array", - "value": "make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 935, - "column": 1, - "source_line": "#define temp_block_array(f,count,size) make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)" - } - }, - { - "name": "CRC32_POLY", - "value": "0x04c11db7", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 989, - "column": 1, - "source_line": "#define CRC32_POLY 0x04c11db7 // from spec" - } - }, - { - "name": "M_PI", - "value": "3.14159265358979323846264f", - "function_like": false, - "directive": "define", + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "f", + "type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float f" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 5149, + "column": 7, + "source_line": " float f;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "i", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int i" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 5150, + "column": 7, + "source_line": " int i;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1046, - "column": 3, - "source_line": " #define M_PI 3.14159265358979323846264f // from CRC" + "line": 5148, + "column": 4, + "source_line": " typedef union {" } - }, + } + ], + "enums": [ { - "name": "NO_CODE", - "value": "255", - "function_like": false, - "directive": "define", + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "VORBIS_packet_id", + "value": "1", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1649, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "VORBIS_packet_comment", + "value": "3", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1649, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "VORBIS_packet_setup", + "value": "5", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1649, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1050, + "line": 1649, "column": 1, - "source_line": "#define NO_CODE 255" + "source_line": "enum" } - }, + } + ], + "typedefs": [ { - "name": "STBV_CDECL", - "value": "__cdecl", - "function_like": false, - "directive": "define", + "model": "CTypedef", + "qualifiers": [], + "source_text": "int8", + "name": "int8", + "type": { + "model": "CSignedChar", + "qualifiers": [], + "source_text": "typedef signed char int8" + }, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1157, + "line": 645, "column": 1, - "source_line": "#define STBV_CDECL __cdecl" - } + "source_line": "typedef signed char int8;" + }, + "declaration_locations": [] }, { - "name": "STBV_CDECL", - "value": null, - "function_like": false, - "directive": "define", + "model": "CTypedef", + "qualifiers": [], + "source_text": "stbv__floor_ordering", + "name": "stbv__floor_ordering", + "type": { + "reference": "struct@:0:0" + }, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1159, + "line": 1315, "column": 1, - "source_line": "#define STBV_CDECL" - } + "source_line": "typedef struct" + }, + "declaration_locations": [] }, { - "name": "USE_MEMORY", - "value": "TRUE", - "function_like": true, - "directive": "define", + "model": "CTypedef", + "qualifiers": [], + "source_text": "float_conv", + "name": "float_conv", + "type": { + "reference": "union@:0:0" + }, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1332, + "line": 5148, "column": 4, - "source_line": " #define USE_MEMORY(z) TRUE" - } + "source_line": " typedef union {" + }, + "declaration_locations": [] }, { - "name": "USE_MEMORY", - "value": "((z)->stream)", - "function_like": true, - "directive": "define", + "model": "CTypedef", + "qualifiers": [], + "source_text": "stb_vorbis_float_size_test", + "name": "stb_vorbis_float_size_test", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef char stb_vorbis_float_size_test[sizeof(float)==4 && sizeof(int) == 4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "sizeof(float)==4 && sizeof(int) == 4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1334, + "line": 5152, "column": 4, - "source_line": " #define USE_MEMORY(z) ((z)->stream)" - } - }, + "source_line": " typedef char stb_vorbis_float_size_test[sizeof(float)==4 && sizeof(int) == 4];" + }, + "declaration_locations": [] + } + ], + "variables": [ { - "name": "PAGEFLAG_continued_packet", - "value": "1", - "function_like": false, - "directive": "define", + "name": "crc_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static uint32 crc_table[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "uint32" + } + ] + }, + "storage": [ + "static" + ], + "initializer": null, + "bit_width": null, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1440, + "line": 991, "column": 1, - "source_line": "#define PAGEFLAG_continued_packet 1" - } + "source_line": "static uint32 crc_table[256];" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "PAGEFLAG_first_page", - "value": "2", - "function_like": false, - "directive": "define", + "name": "ogg_page_header", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static uint8 ogg_page_header[4]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "uint8" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0x4f, 0x67, 0x67, 0x53 }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1441, + "line": 1429, "column": 1, - "source_line": "#define PAGEFLAG_first_page 2" - } + "source_line": "static uint8 ogg_page_header[4] = { 0x4f, 0x67, 0x67, 0x53 };" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "PAGEFLAG_last_page", - "value": "4", - "function_like": false, - "directive": "define", + "name": "inverse_db_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static float inverse_db_table[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 1.0649863e-07f, 1.1341951e-07f, 1.2079015e-07f, 1.2863978e-07f, 1.3699951e-07f, 1.4590251e-07f, 1.5538408e-07f, 1.6548181e-07f, 1.7623575e-07f, 1.8768855e-07f, 1.9988561e-07f, 2.1287530e-07f, 2.2670913e-07f, 2.4144197e-07f, 2.5713223e-07f, 2.7384213e-07f, 2.9163793e-07f, 3.1059021e-07f, 3.3077411e-07f, 3.5226968e-07f, 3.7516214e-07f, 3.9954229e-07f, 4.2550680e-07f, 4.5315863e-07f, 4.8260743e-07f, 5.1396998e-07f, 5.4737065e-07f, 5.8294187e-07f, 6.2082472e-07f, 6.6116941e-07f, 7.0413592e-07f, 7.4989464e-07f, 7.9862701e-07f, 8.5052630e-07f, 9.0579828e-07f, 9.6466216e-07f, 1.0273513e-06f, 1.0941144e-06f, 1.1652161e-06f, 1.2409384e-06f, 1.3215816e-06f, 1.4074654e-06f, 1.4989305e-06f, 1.5963394e-06f, 1.7000785e-06f, 1.8105592e-06f, 1.9282195e-06f, 2.0535261e-06f, 2.1869758e-06f, 2.3290978e-06f, 2.4804557e-06f, 2.6416497e-06f, 2.8133190e-06f, 2.9961443e-06f, 3.1908506e-06f, 3.3982101e-06f, 3.6190449e-06f, 3.8542308e-06f, 4.1047004e-06f, 4.3714470e-06f, 4.6555282e-06f, 4.9580707e-06f, 5.2802740e-06f, 5.6234160e-06f, 5.9888572e-06f, 6.3780469e-06f, 6.7925283e-06f, 7.2339451e-06f, 7.7040476e-06f, 8.2047000e-06f, 8.7378876e-06f, 9.3057248e-06f, 9.9104632e-06f, 1.0554501e-05f, 1.1240392e-05f, 1.1970856e-05f, 1.2748789e-05f, 1.3577278e-05f, 1.4459606e-05f, 1.5399272e-05f, 1.6400004e-05f, 1.7465768e-05f, 1.8600792e-05f, 1.9809576e-05f, 2.1096914e-05f, 2.2467911e-05f, 2.3928002e-05f, 2.5482978e-05f, 2.7139006e-05f, 2.8902651e-05f, 3.0780908e-05f, 3.2781225e-05f, 3.4911534e-05f, 3.7180282e-05f, 3.9596466e-05f, 4.2169667e-05f, 4.4910090e-05f, 4.7828601e-05f, 5.0936773e-05f, 5.4246931e-05f, 5.7772202e-05f, 6.1526565e-05f, 6.5524908e-05f, 6.9783085e-05f, 7.4317983e-05f, 7.9147585e-05f, 8.4291040e-05f, 8.9768747e-05f, 9.5602426e-05f, 0.00010181521f, 0.00010843174f, 0.00011547824f, 0.00012298267f, 0.00013097477f, 0.00013948625f, 0.00014855085f, 0.00015820453f, 0.00016848555f, 0.00017943469f, 0.00019109536f, 0.00020351382f, 0.00021673929f, 0.00023082423f, 0.00024582449f, 0.00026179955f, 0.00027881276f, 0.00029693158f, 0.00031622787f, 0.00033677814f, 0.00035866388f, 0.00038197188f, 0.00040679456f, 0.00043323036f, 0.00046138411f, 0.00049136745f, 0.00052329927f, 0.00055730621f, 0.00059352311f, 0.00063209358f, 0.00067317058f, 0.00071691700f, 0.00076350630f, 0.00081312324f, 0.00086596457f, 0.00092223983f, 0.00098217216f, 0.0010459992f, 0.0011139742f, 0.0011863665f, 0.0012634633f, 0.0013455702f, 0.0014330129f, 0.0015261382f, 0.0016253153f, 0.0017309374f, 0.0018434235f, 0.0019632195f, 0.0020908006f, 0.0022266726f, 0.0023713743f, 0.0025254795f, 0.0026895994f, 0.0028643847f, 0.0030505286f, 0.0032487691f, 0.0034598925f, 0.0036847358f, 0.0039241906f, 0.0041792066f, 0.0044507950f, 0.0047400328f, 0.0050480668f, 0.0053761186f, 0.0057254891f, 0.0060975636f, 0.0064938176f, 0.0069158225f, 0.0073652516f, 0.0078438871f, 0.0083536271f, 0.0088964928f, 0.009474637f, 0.010090352f, 0.010746080f, 0.011444421f, 0.012188144f, 0.012980198f, 0.013823725f, 0.014722068f, 0.015678791f, 0.016697687f, 0.017782797f, 0.018938423f, 0.020169149f, 0.021479854f, 0.022875735f, 0.024362330f, 0.025945531f, 0.027631618f, 0.029427276f, 0.031339626f, 0.033376252f, 0.035545228f, 0.037855157f, 0.040315199f, 0.042935108f, 0.045725273f, 0.048696758f, 0.051861348f, 0.055231591f, 0.058820850f, 0.062643361f, 0.066714279f, 0.071049749f, 0.075666962f, 0.080584227f, 0.085821044f, 0.091398179f, 0.097337747f, 0.10366330f, 0.11039993f, 0.11757434f, 0.12521498f, 0.13335215f, 0.14201813f, 0.15124727f, 0.16107617f, 0.17154380f, 0.18269168f, 0.19456402f, 0.20720788f, 0.22067342f, 0.23501402f, 0.25028656f, 0.26655159f, 0.28387361f, 0.30232132f, 0.32196786f, 0.34289114f, 0.36517414f, 0.38890521f, 0.41417847f, 0.44109412f, 0.46975890f, 0.50028648f, 0.53279791f, 0.56742212f, 0.60429640f, 0.64356699f, 0.68538959f, 0.72993007f, 0.77736504f, 0.82788260f, 0.88168307f, 0.9389798f, 1.0f }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1442, + "line": 1946, "column": 1, - "source_line": "#define PAGEFLAG_last_page 4" - } + "source_line": "static float inverse_db_table[256] =" + }, + "callback_policy": null, + "declaration_locations": [] }, { - "name": "EOP", - "value": "(-1)", - "function_like": false, - "directive": "define", + "name": "channel_position", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static int8 channel_position[7][6]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "7", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "int8" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ { 0 }, { (2 | 4 | 1) }, { (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1) }, { (2 | 1), (4 | 1), (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1), (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1), (2 | 1), (4 | 1), (2 | 4 | 1) }, }" + }, + "bit_width": null, "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1560, + "line": 5135, "column": 1, - "source_line": "#define EOP (-1)" - } - }, + "source_line": "static int8 channel_position[7][6] =" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [ { - "name": "INVALID_BITS", - "value": "(-1)", - "function_like": false, - "directive": "define", - "source_location": { + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stb_vorbis_decode_frame_pushdata'.", + "severity": "error", + "location": { "filename": "stb/stb_vorbis.c", - "line": 1561, + "line": 4444, "column": 1, - "source_line": "#define INVALID_BITS (-1)" - } + "source_line": "int stb_vorbis_decode_frame_pushdata(" + }, + "unit_kind": "function", + "unit_name": "stb_vorbis_decode_frame_pushdata" }, { - "name": "DECODE_RAW", - "value": "if (f->valid_bits < STB_VORBIS_FAST_HUFFMAN_LENGTH) prep_huffman(f); var = f->acc & FAST_HUFFMAN_TABLE_MASK; var = c->fast_huffman[var]; if (var >= 0) { int n = c->codeword_lengths[var]; f->acc >>= n; f->valid_bits -= n; if (f->valid_bits < 0) { f->valid_bits = 0; var = -1; } } else { var = codebook_decode_scalar_raw(f,c); }", - "function_like": true, - "directive": "define", - "source_location": { + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stb_vorbis_decode_memory'.", + "severity": "error", + "location": { "filename": "stb/stb_vorbis.c", - "line": 1717, + "line": 5386, "column": 1, - "source_line": "#define DECODE_RAW(var, f,c) \\" - } - }, + "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" + }, + "unit_kind": "function", + "unit_name": "stb_vorbis_decode_memory" + } + ] + } + }, + "functions": { + "stb_vorbis_get_info": { + "name": "stb_vorbis_get_info", + "result_type": { + "reference": "stb_vorbis_info" + }, + "parameters": [ { - "name": "DECODE_RAW", - "value": "var = codebook_decode_scalar(f,c);", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1750, - "column": 1, - "source_line": "#define DECODE_RAW(var,f,c) var = codebook_decode_scalar(f,c);" - } - }, + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4305, + "column": 1, + "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4305, + "column": 1, + "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4315, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "DECODE", - "value": "DECODE_RAW(var,f,c) if (c->sparse) var = c->sorted_values[var];", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1754, - "column": 1, - "source_line": "#define DECODE(var,f,c) \\" - } - }, + "filename": "stb/stb_vorbis.c", + "line": 150, + "column": 1, + "source_line": "extern stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f);" + } + ] + }, + "stb_vorbis_get_comment": { + "name": "stb_vorbis_get_comment", + "result_type": { + "reference": "stb_vorbis_comment" + }, + "parameters": [ { - "name": "DECODE_VQ", - "value": "DECODE_RAW(var,f,c)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1759, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE_RAW(var,f,c)" - } - }, + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4317, + "column": 1, + "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4317, + "column": 1, + "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4324, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "DECODE_VQ", - "value": "DECODE(var,f,c)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1761, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE(var,f,c)" - } - }, - { - "name": "CODEBOOK_ELEMENT", - "value": "(c->multiplicands[off])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1771, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT(c,off) (c->multiplicands[off])" - } - }, - { - "name": "CODEBOOK_ELEMENT_FAST", - "value": "(c->multiplicands[off])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1772, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off])" - } - }, - { - "name": "CODEBOOK_ELEMENT_BASE", - "value": "(0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1773, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_BASE(c) (0)" - } - }, - { - "name": "LINE_OP", - "value": "a *= b", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2023, - "column": 1, - "source_line": "#define LINE_OP(a,b) a *= b" - } - }, - { - "name": "LINE_OP", - "value": "a = b", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2025, - "column": 1, - "source_line": "#define LINE_OP(a,b) a = b" - } - }, - { - "name": "DIVTAB_NUMER", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2029, - "column": 1, - "source_line": "#define DIVTAB_NUMER 32" - } - }, - { - "name": "DIVTAB_DENOM", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2030, - "column": 1, - "source_line": "#define DIVTAB_DENOM 64" - } - }, - { - "name": "LIBVORBIS_MDCT", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2365, - "column": 1, - "source_line": "#define LIBVORBIS_MDCT 0" - } - }, - { - "name": "SAMPLE_unknown", - "value": "0xffffffff", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4632, - "column": 1, - "source_line": "#define SAMPLE_unknown 0xffffffff" - } - }, - { - "name": "PLAYBACK_MONO", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5127, - "column": 1, - "source_line": "#define PLAYBACK_MONO 1" - } - }, - { - "name": "PLAYBACK_LEFT", - "value": "2", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5128, - "column": 1, - "source_line": "#define PLAYBACK_LEFT 2" - } - }, - { - "name": "PLAYBACK_RIGHT", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5129, - "column": 1, - "source_line": "#define PLAYBACK_RIGHT 4" - } - }, - { - "name": "L", - "value": "(PLAYBACK_LEFT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5131, - "column": 1, - "source_line": "#define L (PLAYBACK_LEFT | PLAYBACK_MONO)" - } - }, - { - "name": "C", - "value": "(PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5132, - "column": 1, - "source_line": "#define C (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO)" - } - }, - { - "name": "R", - "value": "(PLAYBACK_RIGHT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5133, - "column": 1, - "source_line": "#define R (PLAYBACK_RIGHT | PLAYBACK_MONO)" - } - }, - { - "name": "FASTDEF", - "value": "float_conv x", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5153, - "column": 4, - "source_line": " #define FASTDEF(x) float_conv x" - } - }, - { - "name": "MAGIC", - "value": "(1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5155, - "column": 4, - "source_line": " #define MAGIC(SHIFT) (1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))" - } - }, - { - "name": "ADDEND", - "value": "(((150-SHIFT) << 23) + (1 << 22))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5156, - "column": 4, - "source_line": " #define ADDEND(SHIFT) (((150-SHIFT) << 23) + (1 << 22))" - } - }, - { - "name": "FAST_SCALED_FLOAT_TO_INT", - "value": "(temp.f = (x) + MAGIC(s), temp.i - ADDEND(s))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5157, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) (temp.f = (x) + MAGIC(s), temp.i - ADDEND(s))" - } - }, - { - "name": "check_endianness", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5158, - "column": 4, - "source_line": " #define check_endianness()" - } - }, - { - "name": "FAST_SCALED_FLOAT_TO_INT", - "value": "((int) ((x) * (1 << (s))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5160, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) ((int) ((x) * (1 << (s))))" - } - }, - { - "name": "check_endianness", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5161, - "column": 4, - "source_line": " #define check_endianness()" - } - }, - { - "name": "FASTDEF", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5162, - "column": 4, - "source_line": " #define FASTDEF(x)" - } - }, - { - "name": "STB_BUFFER_SIZE", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5180, - "column": 4, - "source_line": " #define STB_BUFFER_SIZE 32" - } - }, - { - "name": "STB_BUFFER_SIZE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5201, - "column": 4, - "source_line": " #undef STB_BUFFER_SIZE" - } - }, - { - "name": "STB_BUFFER_SIZE", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5206, - "column": 4, - "source_line": " #define STB_BUFFER_SIZE 32" - } - }, - { - "name": "STB_BUFFER_SIZE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5241, - "column": 4, - "source_line": " #undef STB_BUFFER_SIZE" - } - } - ], - "includes": [ - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 82, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 578, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 582, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 583, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 584, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 585, - "column": 4, - "source_line": " #include " - } - }, - { - "target": "malloc.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 589, - "column": 7, - "source_line": " #include " - } - }, - { - "target": "alloca.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 592, - "column": 7, - "source_line": " #include " - } - }, - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 601, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "crtdbg.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 634, - "column": 1, - "source_line": "#include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "STB_VORBIS_INCLUDE_STB_VORBIS_H", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 74, - "column": 1, - "source_line": "#ifndef STB_VORBIS_INCLUDE_STB_VORBIS_H" - } - }, - { - "directive": "if", - "argument": "defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 77, - "column": 1, - "source_line": "#if defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 79, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 81, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 83, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 85, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 87, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 174, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 244, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PULLDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 249, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PULLDATA_API" - } - }, - { - "directive": "if", - "argument": "!defined(STB_VORBIS_NO_STDIO) && !defined(STB_VORBIS_NO_INTEGER_CONVERSION)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 257, - "column": 1, - "source_line": "#if !defined(STB_VORBIS_NO_STDIO) && !defined(STB_VORBIS_NO_INTEGER_CONVERSION)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 259, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "!defined(STB_VORBIS_NO_INTEGER_CONVERSION)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 260, - "column": 1, - "source_line": "#if !defined(STB_VORBIS_NO_INTEGER_CONVERSION)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 262, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 273, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 296, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_INTEGER_CONVERSION", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 324, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 327, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_INTEGER_CONVERSION", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 360, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 363, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 370, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 410, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 412, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 414, - "column": 1, - "source_line": "#endif // STB_VORBIS_INCLUDE_STB_VORBIS_H" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_HEADER_ONLY", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 420, - "column": 1, - "source_line": "#ifndef STB_VORBIS_HEADER_ONLY" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_MAX_CHANNELS", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 460, - "column": 1, - "source_line": "#ifndef STB_VORBIS_MAX_CHANNELS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 462, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_PUSHDATA_CRC_COUNT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 476, - "column": 1, - "source_line": "#ifndef STB_VORBIS_PUSHDATA_CRC_COUNT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 478, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_FAST_HUFFMAN_LENGTH", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 485, - "column": 1, - "source_line": "#ifndef STB_VORBIS_FAST_HUFFMAN_LENGTH" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 487, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_FAST_HUFFMAN_INT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 499, - "column": 1, - "source_line": "#ifndef STB_VORBIS_FAST_HUFFMAN_INT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 501, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_CODEBOOK_SHORTS", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 527, - "column": 1, - "source_line": "#ifdef STB_VORBIS_CODEBOOK_SHORTS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 529, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_NO_PULLDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 552, - "column": 1, - "source_line": "#ifdef STB_VORBIS_NO_PULLDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 555, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 557, - "column": 1, - "source_line": "#if defined(STB_VORBIS_NO_CRT) && !defined(STB_VORBIS_NO_STDIO)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 559, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_INTEGER_CONVERSION", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 561, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_FAST_SCALED_FLOAT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 562, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_FAST_SCALED_FLOAT" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_BIG_ENDIAN", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 567, - "column": 4, - "source_line": " #ifndef STB_VORBIS_BIG_ENDIAN" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 569, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 571, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 573, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 574, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 577, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 579, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_CRT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 581, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_CRT" - } - }, - { - "directive": "if", - "argument": "defined(_MSC_VER) || defined(__MINGW32__)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 588, - "column": 4, - "source_line": " #if defined(_MSC_VER) || defined(__MINGW32__)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 590, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 591, - "column": 4, - "source_line": " #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 593, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 594, - "column": 1, - "source_line": "#else // STB_VORBIS_NO_CRT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 599, - "column": 1, - "source_line": "#endif // STB_VORBIS_NO_CRT" - } - }, - { - "directive": "ifdef", - "argument": "__MINGW32__", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 603, - "column": 1, - "source_line": "#ifdef __MINGW32__" - } - }, - { - "directive": "ifdef", - "argument": "__forceinline", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 609, - "column": 4, - "source_line": " #ifdef __forceinline" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 611, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "alloca", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 613, - "column": 4, - "source_line": " #ifndef alloca" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 615, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "elif", - "argument": "!defined(_MSC_VER)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 616, - "column": 1, - "source_line": "#elif !defined(_MSC_VER)" - } - }, - { - "directive": "if", - "argument": "__GNUC__", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 617, - "column": 4, - "source_line": " #if __GNUC__" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 619, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 621, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 622, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_VORBIS_MAX_CHANNELS > 256", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 624, - "column": 1, - "source_line": "#if STB_VORBIS_MAX_CHANNELS > 256" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 626, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STB_VORBIS_FAST_HUFFMAN_LENGTH > 24", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 628, - "column": 1, - "source_line": "#if STB_VORBIS_FAST_HUFFMAN_LENGTH > 24" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 630, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 633, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 636, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 638, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "TRUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 651, - "column": 1, - "source_line": "#ifndef TRUE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 654, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 658, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 660, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 662, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_FAST_HUFFMAN_SHORT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 693, - "column": 4, - "source_line": " #ifdef STB_VORBIS_FAST_HUFFMAN_SHORT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 695, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 697, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 800, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 804, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 857, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 859, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 861, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 894, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 896, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STB_VORBIS_NO_PUSHDATA_API)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 903, - "column": 1, - "source_line": "#if defined(STB_VORBIS_NO_PUSHDATA_API)" - } - }, - { - "directive": "elif", - "argument": "defined(STB_VORBIS_NO_PULLDATA_API)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 905, - "column": 1, - "source_line": "#elif defined(STB_VORBIS_NO_PULLDATA_API)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 907, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 909, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "M_PI", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1045, - "column": 1, - "source_line": "#ifndef M_PI" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1047, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_FAST_HUFFMAN_SHORT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1141, - "column": 4, - "source_line": " #ifdef STB_VORBIS_FAST_HUFFMAN_SHORT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1143, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1156, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1158, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1160, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STB_VORBIS_NO_STDIO)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1331, - "column": 1, - "source_line": "#if defined(STB_VORBIS_NO_STDIO)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1333, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1335, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1344, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1350, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1372, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1379, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1389, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1394, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1399, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1401, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1413, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1425, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_INLINE_DECODE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1715, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_INLINE_DECODE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1731, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1752, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1758, - "column": 1, - "source_line": "#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1760, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1762, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1801, - "column": 1, - "source_line": "#ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1814, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1841, - "column": 1, - "source_line": "#ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1853, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1877, - "column": 7, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1879, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1894, - "column": 4, - "source_line": " #ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1907, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2022, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2024, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2026, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDE_TABLE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2028, - "column": 1, - "source_line": "#ifdef STB_VORBIS_DIVIDE_TABLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2032, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDE_TABLE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2044, - "column": 1, - "source_line": "#ifdef STB_VORBIS_DIVIDE_TABLE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2060, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2066, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2117, - "column": 4, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2119, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2121, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2147, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2149, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2154, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2158, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2160, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2162, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2166, - "column": 22, - "source_line": " #ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2169, - "column": 22, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2173, - "column": 22, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2180, - "column": 16, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2182, - "column": 16, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2193, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2195, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2200, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2204, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2206, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2208, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2220, - "column": 16, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2222, - "column": 16, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2240, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2242, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2247, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2254, - "column": 19, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2256, - "column": 19, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2258, - "column": 19, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2271, - "column": 10, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2273, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2278, - "column": 4, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2280, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2282, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2287, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "elif", - "argument": "0", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2310, - "column": 1, - "source_line": "#elif 0" - } - }, - { - "directive": "elif", - "argument": "0", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2330, - "column": 1, - "source_line": "#elif 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2362, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "LIBVORBIS_MDCT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2364, - "column": 1, - "source_line": "#ifndef LIBVORBIS_MDCT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2366, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "LIBVORBIS_MDCT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2368, - "column": 1, - "source_line": "#if LIBVORBIS_MDCT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2402, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2931, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3057, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3067, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3069, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3071, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3085, - "column": 10, - "source_line": " #ifndef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3088, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3090, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3271, - "column": 1, - "source_line": "#ifdef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3273, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3279, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3353, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3361, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3370, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3518, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3578, - "column": 1, - "source_line": "#endif // !STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3696, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3705, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_HUFFMAN_BINARY_SEARCH", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3790, - "column": 10, - "source_line": " #ifndef STB_VORBIS_NO_HUFFMAN_BINARY_SEARCH" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3794, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3871, - "column": 1, - "source_line": "#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3904, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_CODEBOOK", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3917, - "column": 1, - "source_line": "#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3919, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4137, - "column": 7, - "source_line": " #ifdef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4140, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_DIVIDE_TABLE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4148, - "column": 1, - "source_line": "#ifdef STB_VORBIS_DIVIDE_TABLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4153, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_DIVIDES_IN_RESIDUE", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4172, - "column": 7, - "source_line": " #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4174, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4176, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STB_VORBIS_NO_DEFER_FLOOR", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4254, - "column": 7, - "source_line": " #ifdef STB_VORBIS_NO_DEFER_FLOOR" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4256, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4266, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4268, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4291, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4294, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4339, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4543, - "column": 1, - "source_line": "#endif // STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PUSHDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4547, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_PUSHDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4549, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4551, - "column": 4, - "source_line": " #ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4553, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_PULLDATA_API", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4556, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_PULLDATA_API" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5050, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "if", - "argument": "defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5086, - "column": 1, - "source_line": "#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5089, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5091, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5097, - "column": 1, - "source_line": "#endif // STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_INTEGER_CONVERSION", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5126, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_FAST_SCALED_FLOAT", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5147, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_FAST_SCALED_FLOAT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5159, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5163, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STB_VORBIS_NO_STDIO", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5345, - "column": 1, - "source_line": "#ifndef STB_VORBIS_NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5384, - "column": 1, - "source_line": "#endif // NO_STDIO" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5424, - "column": 1, - "source_line": "#endif // STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5478, - "column": 1, - "source_line": "#endif // STB_VORBIS_NO_PULLDATA_API" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5541, - "column": 1, - "source_line": "#endif // STB_VORBIS_HEADER_ONLY" - } - } - ], - "macro_dependencies": [ - { - "name": "__forceinline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1003, - "column": 1, - "source_line": "static __forceinline uint32 crc32_update(uint32 crc, uint8 byte)" - }, - "source_text": "static __forceinline uint32 crc32_update(uint32 crc, uint8 byte)" - }, - { - "name": "__forceinline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1634, - "column": 1, - "source_line": "static __forceinline void prep_huffman(vorb *f)" - }, - "source_text": "static __forceinline void prep_huffman(vorb *f)" - }, - { - "name": "__forceinline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2034, - "column": 1, - "source_line": "static __forceinline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" - }, - "source_text": "static __forceinline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" - }, - { - "name": "__forceinline", - "context": "declaration", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2554, - "column": 1, - "source_line": "static __forceinline void iter_54(float *z)" - }, - "source_text": "static __forceinline void iter_54(float *z)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'malloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 596, - "column": 4, - "source_line": " #define malloc(s) 0" - }, - "unit_kind": "macro", - "unit_name": "malloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 597, - "column": 4, - "source_line": " #define free(s) ((void) 0)" - }, - "unit_kind": "macro", - "unit_name": "free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'realloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 598, - "column": 4, - "source_line": " #define realloc(s) 0" - }, - "unit_kind": "macro", - "unit_name": "realloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 635, - "column": 1, - "source_line": "#define CHECK(f) _CrtIsValidHeapPointer(f->channel_buffers[1])" - }, - "unit_kind": "macro", - "unit_name": "CHECK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 637, - "column": 1, - "source_line": "#define CHECK(f) ((void) 0)" - }, - "unit_kind": "macro", - "unit_name": "CHECK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBV_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 659, - "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBV_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBV_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 661, - "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBV_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 904, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) FALSE" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 906, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) TRUE" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 908, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) ((f)->push_mode)" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'array_size_required' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 928, - "column": 1, - "source_line": "#define array_size_required(count,size) (count*(sizeof(void *)+(size)))" - }, - "unit_kind": "macro", - "unit_name": "array_size_required" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 930, - "column": 1, - "source_line": "#define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 931, - "column": 1, - "source_line": "#define temp_free(f,p) (void)0" - }, - "unit_kind": "macro", - "unit_name": "temp_free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc_save' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 932, - "column": 1, - "source_line": "#define temp_alloc_save(f) ((f)->temp_offset)" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc_save" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc_restore' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 933, - "column": 1, - "source_line": "#define temp_alloc_restore(f,p) ((f)->temp_offset = (p))" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc_restore" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_block_array' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 935, - "column": 1, - "source_line": "#define temp_block_array(f,count,size) make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)" - }, - "unit_kind": "macro", - "unit_name": "temp_block_array" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'USE_MEMORY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1332, - "column": 4, - "source_line": " #define USE_MEMORY(z) TRUE" - }, - "unit_kind": "macro", - "unit_name": "USE_MEMORY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'USE_MEMORY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1334, - "column": 4, - "source_line": " #define USE_MEMORY(z) ((z)->stream)" - }, - "unit_kind": "macro", - "unit_name": "USE_MEMORY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_RAW' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1717, - "column": 1, - "source_line": "#define DECODE_RAW(var, f,c) \\" - }, - "unit_kind": "macro", - "unit_name": "DECODE_RAW" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_RAW' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1750, - "column": 1, - "source_line": "#define DECODE_RAW(var,f,c) var = codebook_decode_scalar(f,c);" - }, - "unit_kind": "macro", - "unit_name": "DECODE_RAW" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1754, - "column": 1, - "source_line": "#define DECODE(var,f,c) \\" - }, - "unit_kind": "macro", - "unit_name": "DECODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_VQ' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1759, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE_RAW(var,f,c)" - }, - "unit_kind": "macro", - "unit_name": "DECODE_VQ" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_VQ' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1761, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE(var,f,c)" - }, - "unit_kind": "macro", - "unit_name": "DECODE_VQ" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1771, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT(c,off) (c->multiplicands[off])" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT_FAST' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1772, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off])" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT_FAST" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT_BASE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1773, - "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_BASE(c) (0)" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT_BASE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINE_OP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 2023, - "column": 1, - "source_line": "#define LINE_OP(a,b) a *= b" - }, - "unit_kind": "macro", - "unit_name": "LINE_OP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINE_OP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 2025, - "column": 1, - "source_line": "#define LINE_OP(a,b) a = b" - }, - "unit_kind": "macro", - "unit_name": "LINE_OP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FASTDEF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5153, - "column": 4, - "source_line": " #define FASTDEF(x) float_conv x" - }, - "unit_kind": "macro", - "unit_name": "FASTDEF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'MAGIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5155, - "column": 4, - "source_line": " #define MAGIC(SHIFT) (1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))" - }, - "unit_kind": "macro", - "unit_name": "MAGIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ADDEND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5156, - "column": 4, - "source_line": " #define ADDEND(SHIFT) (((150-SHIFT) << 23) + (1 << 22))" - }, - "unit_kind": "macro", - "unit_name": "ADDEND" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FAST_SCALED_FLOAT_TO_INT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5157, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) (temp.f = (x) + MAGIC(s), temp.i - ADDEND(s))" - }, - "unit_kind": "macro", - "unit_name": "FAST_SCALED_FLOAT_TO_INT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'check_endianness' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5158, - "column": 4, - "source_line": " #define check_endianness()" - }, - "unit_kind": "macro", - "unit_name": "check_endianness" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FAST_SCALED_FLOAT_TO_INT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5160, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) ((int) ((x) * (1 << (s))))" - }, - "unit_kind": "macro", - "unit_name": "FAST_SCALED_FLOAT_TO_INT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'check_endianness' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5161, - "column": 4, - "source_line": " #define check_endianness()" - }, - "unit_kind": "macro", - "unit_name": "check_endianness" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FASTDEF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5162, - "column": 4, - "source_line": " #define FASTDEF(x)" - }, - "unit_kind": "macro", - "unit_name": "FASTDEF" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 86, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1003, - "column": 1, - "source_line": "static __forceinline uint32 crc32_update(uint32 crc, uint8 byte)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'uint32_compare(const void *p, const void *q)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1162, - "column": 1, - "source_line": "static int STBV_CDECL uint32_compare(const void *p, const void *q)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'point_compare(const void *p, const void *q)'.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1320, - "column": 1, - "source_line": "static int STBV_CDECL point_compare(const void *p, const void *q)" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1634, - "column": 1, - "source_line": "static __forceinline void prep_huffman(vorb *f)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 2034, - "column": 1, - "source_line": "static __forceinline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 2554, - "column": 1, - "source_line": "static __forceinline void iter_54(float *z)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'YTYPE'.", - "severity": "error", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 3070, - "column": 1, - "source_line": "typedef int YTYPE;" - }, - "unit_kind": "typedef", - "unit_name": "YTYPE" - }, - { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'inverse_mdct'.", - "severity": "error", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 2629, - "column": 1, - "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" - }, - "unit_kind": "function", - "unit_name": "inverse_mdct" - } - ] - } - }, - "functions": { - "error": { - "name": "error", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", - "type": { - "reference": "enum STBVorbisError" - }, - "declared_type": { - "reference": "enum STBVorbisError" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 913, - "column": 1, - "source_line": "static int error(vorb *f, enum STBVorbisError e)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 913, - "column": 1, - "source_line": "static int error(vorb *f, enum STBVorbisError e)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 920, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "make_block_array": { - "name": "make_block_array", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "mem", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *mem", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *mem", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "size", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int size" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 938, - "column": 1, - "source_line": "static void *make_block_array(void *mem, int count, int size)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 938, - "column": 1, - "source_line": "static void *make_block_array(void *mem, int count, int size)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 948, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "setup_malloc": { - "name": "setup_malloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 950, - "column": 1, - "source_line": "static void *setup_malloc(vorb *f, int sz)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 950, - "column": 1, - "source_line": "static void *setup_malloc(vorb *f, int sz)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 961, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "setup_free": { - "name": "setup_free", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 963, - "column": 1, - "source_line": "static void setup_free(vorb *f, void *p)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 963, - "column": 1, - "source_line": "static void setup_free(vorb *f, void *p)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 967, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "setup_temp_malloc": { - "name": "setup_temp_malloc", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 969, - "column": 1, - "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 969, - "column": 1, - "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 978, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "setup_temp_free": { - "name": "setup_temp_free", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "sz", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int sz" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 980, - "column": 1, - "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 980, - "column": 1, - "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 987, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "crc32_init": { - "name": "crc32_init", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 992, - "column": 1, - "source_line": "static void crc32_init(void)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 992, - "column": 1, - "source_line": "static void crc32_init(void)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1001, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "bit_reverse": { - "name": "bit_reverse", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int n" - }, - "declared_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1010, - "column": 1, - "source_line": "static unsigned int bit_reverse(unsigned int n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1010, - "column": 1, - "source_line": "static unsigned int bit_reverse(unsigned int n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1017, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "square": { - "name": "square", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1019, - "column": 1, - "source_line": "static float square(float x)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1019, - "column": 1, - "source_line": "static float square(float x)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1022, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "ilog": { - "name": "ilog", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "n", - "type": { - "reference": "int32" - }, - "declared_type": { - "reference": "int32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1027, - "column": 1, - "source_line": "static int ilog(int32 n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1027, - "column": 1, - "source_line": "static int ilog(int32 n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1043, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "float32_unpack": { - "name": "float32_unpack", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ - { - "name": "x", - "type": { - "reference": "uint32" - }, - "declared_type": { - "reference": "uint32" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1057, - "column": 1, - "source_line": "static float float32_unpack(uint32 x)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1057, - "column": 1, - "source_line": "static float float32_unpack(uint32 x)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1065, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "add_entry": { - "name": "add_entry", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "huff_code", - "type": { - "reference": "uint32" - }, - "declared_type": { - "reference": "uint32" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "symbol", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int symbol" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int symbol" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int count" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "values", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1075, - "column": 1, - "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1075, - "column": 1, - "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1084, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_codewords": { - "name": "compute_codewords", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *len", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "values", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1086, - "column": 1, - "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1086, - "column": 1, - "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1130, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_accelerated_huffman": { - "name": "compute_accelerated_huffman", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1134, - "column": 1, - "source_line": "static void compute_accelerated_huffman(Codebook *c)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1134, - "column": 1, - "source_line": "static void compute_accelerated_huffman(Codebook *c)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1154, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "include_in_sort": { - "name": "include_in_sort", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "reference": "uint8" - }, - "declared_type": { - "reference": "uint8" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1169, - "column": 1, - "source_line": "static int include_in_sort(Codebook *c, uint8 len)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1169, - "column": 1, - "source_line": "static int include_in_sort(Codebook *c, uint8 len)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1175, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_sorted_huffman": { - "name": "compute_sorted_huffman", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "c", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "Codebook *c", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "lengths", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *lengths", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *lengths", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "values", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint32 *values", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint32" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1179, - "column": 1, - "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1179, - "column": 1, - "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1230, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "vorbis_validate": { - "name": "vorbis_validate", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "data", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *data", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1233, - "column": 1, - "source_line": "static int vorbis_validate(uint8 *data)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1233, - "column": 1, - "source_line": "static int vorbis_validate(uint8 *data)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1237, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "lookup1_values": { - "name": "lookup1_values", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "entries", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int entries" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int entries" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "dim", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dim" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int dim" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1241, - "column": 1, - "source_line": "static int lookup1_values(int entries, int dim)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1241, - "column": 1, - "source_line": "static int lookup1_values(int entries, int dim)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1251, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_twiddle_factors": { - "name": "compute_twiddle_factors", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "A", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *A", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "B", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *B", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *B", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "C", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *C", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *C", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1254, - "column": 1, - "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1254, - "column": 1, - "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1269, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_window": { - "name": "compute_window", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "window", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *window", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *window", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1271, - "column": 1, - "source_line": "static void compute_window(int n, float *window)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1271, - "column": 1, - "source_line": "static void compute_window(int n, float *window)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1276, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "compute_bitreverse": { - "name": "compute_bitreverse", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rev", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint16 *rev", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint16 *rev", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1278, - "column": 1, - "source_line": "static void compute_bitreverse(int n, uint16 *rev)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1278, - "column": 1, - "source_line": "static void compute_bitreverse(int n, uint16 *rev)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1284, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "init_blocksize": { - "name": "init_blocksize", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int b" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1286, - "column": 1, - "source_line": "static int init_blocksize(vorb *f, int b, int n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1286, - "column": 1, - "source_line": "static int init_blocksize(vorb *f, int b, int n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1301, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "neighbors": { - "name": "neighbors", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint16 *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint16" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint16 *x", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint16" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "plow", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *plow", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *plow", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "phigh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *phigh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *phigh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null + "filename": "stb/stb_vorbis.c", + "line": 153, + "column": 1, + "source_line": "extern stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f);" } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1303, - "column": 1, - "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1303, - "column": 1, - "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1312, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + ] }, - "get8": { - "name": "get8", + "stb_vorbis_get_error": { + "name": "stb_vorbis_get_error", "result_type": { - "reference": "uint8" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { - "name": "z", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24264,14 +17864,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24279,7 +17879,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -24287,45 +17887,52 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1337, + "line": 4326, "column": 1, - "source_line": "static uint8 get8(vorb *z)" + "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1337, + "line": 4326, "column": 1, - "source_line": "static uint8 get8(vorb *z)" + "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1351, + "line": 4331, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 156, + "column": 1, + "source_line": "extern int stb_vorbis_get_error(stb_vorbis *f);" + } + ] }, - "get32": { - "name": "get32", + "stb_vorbis_close": { + "name": "stb_vorbis_close", "result_type": { - "reference": "uint32" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -24333,14 +17940,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *p", "components": [ { "model": "CPointer", @@ -24348,7 +17955,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -24356,35 +17963,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1353, + "line": 4271, "column": 1, - "source_line": "static uint32 get32(vorb *f)" + "source_line": "void stb_vorbis_close(stb_vorbis *p)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1353, + "line": 4271, "column": 1, - "source_line": "static uint32 get32(vorb *f)" + "source_line": "void stb_vorbis_close(stb_vorbis *p)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1361, + "line": 4276, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 159, + "column": 1, + "source_line": "extern void stb_vorbis_close(stb_vorbis *f);" + } + ] }, - "getn": { - "name": "getn", + "stb_vorbis_get_sample_offset": { + "name": "stb_vorbis_get_sample_offset", "result_type": { "model": "CInt", "qualifiers": [], @@ -24392,46 +18004,11 @@ }, "parameters": [ { - "name": "z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *z", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24439,14 +18016,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *data", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24454,70 +18031,60 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1363, + "line": 4297, "column": 1, - "source_line": "static int getn(vorb *z, uint8 *data, int n)" + "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1363, + "line": 4297, "column": 1, - "source_line": "static int getn(vorb *z, uint8 *data, int n)" + "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1380, + "line": 4303, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 166, + "column": 1, + "source_line": "extern int stb_vorbis_get_sample_offset(stb_vorbis *f);" + } + ] }, - "skip": { - "name": "skip", + "stb_vorbis_get_file_offset": { + "name": "stb_vorbis_get_file_offset", "result_type": { - "model": "CVoid", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "void" + "source_text": "unsigned int" }, "parameters": [ { - "name": "z", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24525,14 +18092,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *z", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24540,70 +18107,70 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1382, + "line": 4545, "column": 1, - "source_line": "static void skip(vorb *z, int n)" + "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1382, + "line": 4545, "column": 1, - "source_line": "static void skip(vorb *z, int n)" + "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1395, + "line": 4554, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 170, + "column": 1, + "source_line": "extern unsigned int stb_vorbis_get_file_offset(stb_vorbis *f);" + } + ] }, - "set_file_offset": { - "name": "set_file_offset", + "stb_vorbis_open_pushdata": { + "name": "stb_vorbis_open_pushdata", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -24611,14 +18178,18 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -24626,7 +18197,11 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -24634,62 +18209,26 @@ "callback_policy": null }, { - "name": "loc", + "name": "data_len", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int loc" + "source_text": "int data_len" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int loc" + "source_text": "int data_len" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1397, - "column": 1, - "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1397, - "column": 1, - "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1426, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "capture_pattern": { - "name": "capture_pattern", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "data_used", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *data_used", "components": [ { "model": "CPointer", @@ -24697,14 +18236,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *data_used", "components": [ { "model": "CPointer", @@ -24712,55 +18253,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1431, - "column": 1, - "source_line": "static int capture_pattern(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1431, - "column": 1, - "source_line": "static int capture_pattern(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1438, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "start_page_no_capturepattern": { - "name": "start_page_no_capturepattern", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -24768,14 +18275,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -24783,55 +18292,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1444, - "column": 1, - "source_line": "static int start_page_no_capturepattern(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1444, - "column": 1, - "source_line": "static int start_page_no_capturepattern(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1495, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "start_page": { - "name": "start_page", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -24839,14 +18314,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -24854,7 +18329,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis_alloc" } ] }, @@ -24862,35 +18337,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1497, + "line": 4514, "column": 1, - "source_line": "static int start_page(vorb *f)" + "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1497, + "line": 4514, "column": 1, - "source_line": "static int start_page(vorb *f)" + "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1501, + "line": 4542, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 183, + "column": 1, + "source_line": "extern stb_vorbis *stb_vorbis_open_pushdata(" + } + ] }, - "start_packet": { - "name": "start_packet", + "stb_vorbis_decode_frame_pushdata": { + "name": "stb_vorbis_decode_frame_pushdata", "result_type": { "model": "CInt", "qualifiers": [], @@ -24902,7 +18382,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24910,14 +18390,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -24925,55 +18405,19 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1503, - "column": 1, - "source_line": "static int start_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1503, - "column": 1, - "source_line": "static int start_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1516, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "maybe_start_packet": { - "name": "maybe_start_packet", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "datablock", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *datablock", "components": [ { "model": "CPointer", @@ -24981,14 +18425,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *datablock", "components": [ { "model": "CPointer", @@ -24996,55 +18444,38 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1518, - "column": 1, - "source_line": "static int maybe_start_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1518, - "column": 1, - "source_line": "static int maybe_start_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1537, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "next_segment": { - "name": "next_segment", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "datablock_length_in_bytes", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int datablock_length_in_bytes" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int datablock_length_in_bytes" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25052,14 +18483,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25067,55 +18500,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1539, - "column": 1, - "source_line": "static int next_segment(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1539, - "column": 1, - "source_line": "static int next_segment(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1558, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "get8_packet_raw": { - "name": "get8_packet_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float ***output", "components": [ { "model": "CPointer", @@ -25123,70 +18522,58 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float ***output", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1563, - "column": 1, - "source_line": "static int get8_packet_raw(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1563, - "column": 1, - "source_line": "static int get8_packet_raw(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1573, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "get8_packet": { - "name": "get8_packet", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, { - "name": "f", + "name": "samples", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *samples", "components": [ { "model": "CPointer", @@ -25194,14 +18581,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *samples", "components": [ { "model": "CPointer", @@ -25209,7 +18598,9 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -25218,38 +18609,33 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1575, + "line": 197, "column": 1, - "source_line": "static int get8_packet(vorb *f)" + "source_line": "extern int stb_vorbis_decode_frame_pushdata(" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1575, - "column": 1, - "source_line": "static int get8_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1580, + "line": 197, "column": 1, - "source_line": "}" + "source_line": "extern int stb_vorbis_decode_frame_pushdata(" }, + "end": null, "declaration_locations": [] }, - "get32_packet": { - "name": "get32_packet", + "stb_vorbis_flush_pushdata": { + "name": "stb_vorbis_flush_pushdata", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -25257,7 +18643,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -25265,14 +18651,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -25280,7 +18666,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -25288,47 +18674,52 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1582, + "line": 4341, "column": 1, - "source_line": "static int get32_packet(vorb *f)" + "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1582, + "line": 4341, "column": 1, - "source_line": "static int get32_packet(vorb *f)" + "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1590, + "line": 4351, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 233, + "column": 1, + "source_line": "extern void stb_vorbis_flush_pushdata(stb_vorbis *f);" + } + ] }, - "flush_packet": { - "name": "flush_packet", + "stb_vorbis_decode_filename": { + "name": "stb_vorbis_decode_filename", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "f", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -25336,14 +18727,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -25351,53 +18746,23 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1592, - "column": 1, - "source_line": "static void flush_packet(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1592, - "column": 1, - "source_line": "static void flush_packet(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1595, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "get_bits": { - "name": "get_bits", - "result_type": { - "reference": "uint32" - }, - "parameters": [ + }, { - "name": "f", + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25405,14 +18770,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25420,7 +18787,9 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -25428,62 +18797,11 @@ "callback_policy": null }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1599, - "column": 1, - "source_line": "static uint32 get_bits(vorb *f, int n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1599, - "column": 1, - "source_line": "static uint32 get_bits(vorb *f, int n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1628, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "codebook_decode_scalar_raw": { - "name": "codebook_decode_scalar_raw", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", + "name": "sample_rate", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -25491,14 +18809,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -25506,7 +18826,9 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -25514,11 +18836,11 @@ "callback_policy": null }, { - "name": "c", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -25526,14 +18848,21 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -25541,7 +18870,14 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -25549,35 +18885,40 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1656, + "line": 5346, "column": 1, - "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1656, + "line": 5346, "column": 1, - "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1713, + "line": 5383, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 258, + "column": 1, + "source_line": "extern int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output);" + } + ] }, - "codebook_decode_scalar": { - "name": "codebook_decode_scalar", + "stb_vorbis_decode_memory": { + "name": "stb_vorbis_decode_memory", "result_type": { "model": "CInt", "qualifiers": [], @@ -25585,11 +18926,11 @@ }, "parameters": [ { - "name": "f", + "name": "mem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *mem", "components": [ { "model": "CPointer", @@ -25597,14 +18938,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *mem", "components": [ { "model": "CPointer", @@ -25612,7 +18957,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -25620,11 +18969,26 @@ "callback_policy": null }, { - "name": "c", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25632,14 +18996,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -25647,55 +19013,21 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1733, - "column": 1, - "source_line": "static int codebook_decode_scalar(vorb *f, Codebook *c)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1733, - "column": 1, - "source_line": "static int codebook_decode_scalar(vorb *f, Codebook *c)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1748, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "codebook_decode_start": { - "name": "codebook_decode_start", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "sample_rate", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -25703,14 +19035,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "int *sample_rate", "components": [ { "model": "CPointer", @@ -25718,7 +19052,9 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -25726,11 +19062,11 @@ "callback_policy": null }, { - "name": "c", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -25738,14 +19074,21 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "short **output", "components": [ { "model": "CPointer", @@ -25753,7 +19096,14 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -25762,46 +19112,51 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1775, + "line": 261, "column": 1, - "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" + "source_line": "extern int stb_vorbis_decode_memory(const unsigned char *mem, int len, int *channels, int *sample_rate, short **output);" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1775, - "column": 1, - "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1793, + "line": 261, "column": 1, - "source_line": "}" + "source_line": "extern int stb_vorbis_decode_memory(const unsigned char *mem, int len, int *channels, int *sample_rate, short **output);" }, + "end": null, "declaration_locations": [] }, - "codebook_decode": { - "name": "codebook_decode", + "stb_vorbis_open_memory": { + "name": "stb_vorbis_open_memory", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -25809,14 +19164,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const unsigned char *data", "components": [ { "model": "CPointer", @@ -25824,7 +19183,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CUnsignedChar", + "qualifiers": [ + "const" + ], + "source_text": "const unsigned char" } ] }, @@ -25832,11 +19195,26 @@ "callback_policy": null }, { - "name": "c", + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -25844,14 +19222,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -25859,7 +19239,9 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -25867,11 +19249,11 @@ "callback_policy": null }, { - "name": "output", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -25879,16 +19261,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -25896,72 +19276,70 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis_alloc" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1795, + "line": 5099, "column": 1, - "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" + "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1795, + "line": 5099, "column": 1, - "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" + "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1832, + "line": 5124, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 268, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len," + } + ] }, - "codebook_decode_step": { - "name": "codebook_decode_step", + "stb_vorbis_open_filename": { + "name": "stb_vorbis_open_filename", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "filename", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -25969,14 +19347,18 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "const char *filename", "components": [ { "model": "CPointer", @@ -25984,7 +19366,11 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, @@ -25992,11 +19378,11 @@ "callback_policy": null }, { - "name": "c", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26004,14 +19390,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26019,7 +19407,9 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -26027,11 +19417,11 @@ "callback_policy": null }, { - "name": "output", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -26039,16 +19429,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *output", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -26056,87 +19444,70 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis_alloc" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "step", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int step" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1834, + "line": 5083, "column": 1, - "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1834, + "line": 5083, "column": 1, - "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" + "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1863, + "line": 5096, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 274, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_filename(const char *filename," + } + ] }, - "codebook_decode_deinterleave_repeat": { - "name": "codebook_decode_deinterleave_repeat", + "stb_vorbis_open_file": { + "name": "stb_vorbis_open_file", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, "parameters": [ { - "name": "f", + "name": "file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -26144,14 +19515,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -26159,7 +19530,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "FILE" } ] }, @@ -26167,11 +19538,26 @@ "callback_policy": null }, { - "name": "c", + "name": "close_on_free", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int close_on_free" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int close_on_free" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26179,14 +19565,16 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Codebook *c", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26194,7 +19582,9 @@ "source_text": "" }, { - "reference": "Codebook" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -26202,11 +19592,97 @@ "callback_policy": null }, { - "name": "outputs", + "name": "alloc", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_vorbis_alloc *alloc", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 5073, + "column": 1, + "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 5073, + "column": 1, + "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 5081, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 279, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_file(FILE *f, int close_handle_on_close," + } + ] + }, + "stb_vorbis_open_file_section": { + "name": "stb_vorbis_open_file_section", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "parameters": [ + { + "name": "file", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **outputs", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -26214,21 +19690,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "FILE" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **outputs", + "source_text": "FILE *file", "components": [ { "model": "CPointer", @@ -26236,14 +19705,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "FILE" } ] }, @@ -26251,26 +19713,26 @@ "callback_policy": null }, { - "name": "ch", + "name": "close_on_free", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int ch" + "source_text": "int close_on_free" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int ch" + "source_text": "int close_on_free" }, "source_location": null, "callback_policy": null }, { - "name": "c_inter_p", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *c_inter_p", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26287,7 +19749,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *c_inter_p", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -26305,11 +19767,11 @@ "callback_policy": null }, { - "name": "p_inter_p", + "name": "alloc", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_inter_p", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -26317,16 +19779,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis_alloc" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_inter_p", + "source_text": "const stb_vorbis_alloc *alloc", "components": [ { "model": "CPointer", @@ -26334,9 +19794,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "stb_vorbis_alloc" } ] }, @@ -26344,176 +19802,55 @@ "callback_policy": null }, { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "total_decode", + "name": "length", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int total_decode" + "source_text": "unsigned int length" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int total_decode" + "source_text": "unsigned int length" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1865, + "line": 5052, "column": 1, - "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" + "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 1865, + "line": 5052, "column": 1, - "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" + "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 1933, + "line": 5071, "column": 1, "source_line": "}" }, - "declaration_locations": [] - }, - "predict_point": { - "name": "predict_point", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, + "declaration_locations": [ { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null + "filename": "stb/stb_vorbis.c", + "line": 289, + "column": 1, + "source_line": "extern stb_vorbis * stb_vorbis_open_file_section(FILE *f, int close_handle_on_close," } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1935, - "column": 1, - "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 1935, - "column": 1, - "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 1943, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + ] }, - "residue_decode": { - "name": "residue_decode", + "stb_vorbis_seek_frame": { + "name": "stb_vorbis_seek_frame", "result_type": { "model": "CInt", "qualifiers": [], @@ -26525,7 +19862,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26533,14 +19870,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26548,7 +19885,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, @@ -26556,46 +19893,67 @@ "callback_policy": null }, { - "name": "book", + "name": "sample_number", "type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "Codebook *book", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "unsigned int sample_number" }, "declared_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "Codebook *book", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "Codebook" - } - ] + "source_text": "unsigned int sample_number" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4880, + "column": 1, + "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4880, + "column": 1, + "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4917, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "target", + "filename": "stb/stb_vorbis.c", + "line": 298, + "column": 1, + "source_line": "extern int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number);" + } + ] + }, + "stb_vorbis_seek": { + "name": "stb_vorbis_seek", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26603,16 +19961,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *target", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26620,9 +19976,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, @@ -26630,84 +19984,59 @@ "callback_policy": null }, { - "name": "offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rtype", + "name": "sample_number", "type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int rtype" + "source_text": "unsigned int sample_number" }, "declared_type": { - "model": "CInt", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int rtype" + "source_text": "unsigned int sample_number" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2083, + "line": 4919, "column": 1, - "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" + "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2083, + "line": 4919, "column": 1, - "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" + "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2100, + "line": 4934, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 299, + "column": 1, + "source_line": "extern int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number);" + } + ] }, - "decode_residue": { - "name": "decode_residue", + "stb_vorbis_seek_start": { + "name": "stb_vorbis_seek_start", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -26715,7 +20044,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26723,14 +20052,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26738,19 +20067,60 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4936, + "column": 1, + "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4936, + "column": 1, + "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 4944, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "residue_buffers", + "filename": "stb/stb_vorbis.c", + "line": 307, + "column": 1, + "source_line": "extern int stb_vorbis_seek_start(stb_vorbis *f);" + } + ] + }, + "stb_vorbis_stream_length_in_samples": { + "name": "stb_vorbis_stream_length_in_samples", + "result_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *residue_buffers[]", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26758,97 +20128,75 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *residue_buffers[]", + "source_text": "stb_vorbis *f", "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "ch", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int ch" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rn", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rn" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int rn" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 4946, + "column": 1, + "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 4946, + "column": 1, + "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 5019, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "do_not_decode", + "filename": "stb/stb_vorbis.c", + "line": 310, + "column": 1, + "source_line": "extern unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f);" + } + ] + }, + "stb_vorbis_stream_length_in_seconds": { + "name": "stb_vorbis_stream_length_in_seconds", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *do_not_decode", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26856,14 +20204,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint8 *do_not_decode", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26871,7 +20219,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "stb_vorbis" } ] }, @@ -26879,47 +20227,52 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2104, + "line": 5021, "column": 1, - "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2104, + "line": 5021, "column": 1, - "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" + "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2284, + "line": 5024, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 311, + "column": 1, + "source_line": "extern float stb_vorbis_stream_length_in_seconds(stb_vorbis *f);" + } + ] }, - "dct_iv_slow": { - "name": "dct_iv_slow", + "stb_vorbis_get_frame_float": { + "name": "stb_vorbis_get_frame_float", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -26927,16 +20280,51 @@ "source_text": "" }, { - "model": "CFloat", + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *channels", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "int *channels", "components": [ { "model": "CPointer", @@ -26944,9 +20332,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -26954,16 +20342,60 @@ "callback_policy": null }, { - "name": "n", + "name": "output", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "float ***output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "float ***output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null @@ -26976,38 +20408,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2333, + "line": 5028, "column": 1, - "source_line": "void dct_iv_slow(float *buffer, int n)" + "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2333, + "line": 5028, "column": 1, - "source_line": "void dct_iv_slow(float *buffer, int n)" + "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2348, + "line": 5048, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 314, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output);" + } + ] }, - "mdct_init": { - "name": "mdct_init", + "stb_vorbis_get_frame_short_interleaved": { + "name": "stb_vorbis_get_frame_short_interleaved", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "lookup", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *lookup", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27015,14 +20454,14 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *lookup", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27030,7 +20469,7 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "stb_vorbis" } ] }, @@ -27038,57 +20477,26 @@ "callback_policy": null }, { - "name": "n", + "name": "num_c", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int num_c" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int num_c" }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "extern" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": false, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2382, - "column": 1, - "source_line": "extern void mdct_init(mdct_lookup *lookup, int n);" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2382, - "column": 1, - "source_line": "extern void mdct_init(mdct_lookup *lookup, int n);" - }, - "end": null, - "declaration_locations": [] - }, - "mdct_clear": { - "name": "mdct_clear", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "l", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *l", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -27096,14 +20504,16 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *l", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -27111,50 +20521,77 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_shorts", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_shorts" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "extern" - ], + "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": false, + "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2383, + "line": 5296, "column": 1, - "source_line": "extern void mdct_clear(mdct_lookup *l);" + "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2383, + "line": 5296, "column": 1, - "source_line": "extern void mdct_clear(mdct_lookup *l);" + "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" }, - "end": null, - "declaration_locations": [] + "end": { + "filename": "stb/stb_vorbis.c", + "line": 5307, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 325, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts);" + } + ] }, - "mdct_backward": { - "name": "mdct_backward", + "stb_vorbis_get_frame_short": { + "name": "stb_vorbis_get_frame_short", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "init", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *init", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27162,14 +20599,14 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "mdct_lookup *init", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27177,7 +20614,7 @@ "source_text": "" }, { - "reference": "mdct_lookup" + "reference": "stb_vorbis" } ] }, @@ -27185,50 +20622,26 @@ "callback_policy": null }, { - "name": "in", + "name": "num_c", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *in", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int num_c" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "float *in", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "int num_c" }, "source_location": null, "callback_policy": null }, { - "name": "out", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *out", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -27236,16 +20649,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *out", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -27253,52 +20671,82 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "num_samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "extern" - ], + "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": false, + "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2384, + "line": 5260, "column": 1, - "source_line": "extern void mdct_backward(mdct_lookup *init, float *in, float *out);" + "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2384, + "line": 5260, "column": 1, - "source_line": "extern void mdct_backward(mdct_lookup *init, float *in, float *out);" + "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" }, - "end": null, - "declaration_locations": [] + "end": { + "filename": "stb/stb_vorbis.c", + "line": 5268, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 326, + "column": 1, + "source_line": "extern int stb_vorbis_get_frame_short (stb_vorbis *f, int num_c, short **buffer, int num_samples);" + } + ] }, - "inverse_mdct": { - "name": "inverse_mdct", + "stb_vorbis_get_samples_float_interleaved": { + "name": "stb_vorbis_get_samples_float_interleaved", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27306,16 +20754,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27323,9 +20769,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, @@ -27333,26 +20777,26 @@ "callback_policy": null }, { - "name": "n", + "name": "channels", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int channels" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int channels" }, "source_location": null, "callback_policy": null }, { - "name": "f", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -27360,14 +20804,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -27375,7 +20821,9 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -27383,16 +20831,16 @@ "callback_policy": null }, { - "name": "blocktype", + "name": "num_floats", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int blocktype" + "source_text": "int num_floats" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int blocktype" + "source_text": "int num_floats" }, "source_location": null, "callback_policy": null @@ -27405,53 +20853,45 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2388, + "line": 5426, "column": 1, - "source_line": "void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2388, + "line": 5426, "column": 1, - "source_line": "void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2401, + "line": 5451, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 353, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats);" + } + ] }, - "imdct_step3_iter0_loop": { - "name": "imdct_step3_iter0_loop", + "stb_vorbis_get_samples_float": { + "name": "stb_vorbis_get_samples_float", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27459,16 +20899,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27476,9 +20914,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, @@ -27486,42 +20922,32 @@ "callback_policy": null }, { - "name": "i_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int i_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k_off", + "name": "channels", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" + "source_text": "int channels" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" + "source_text": "int channels" }, "source_location": null, "callback_policy": null }, { - "name": "A", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "float **buffer", "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], @@ -27537,8 +20963,13 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "float **buffer", "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], @@ -27553,64 +20984,69 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "num_samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_samples" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2408, + "line": 5453, "column": 1, - "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" + "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2408, + "line": 5453, "column": 1, - "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" + "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2451, + "line": 5477, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 354, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples);" + } + ] }, - "imdct_step3_inner_r_loop": { - "name": "imdct_step3_inner_r_loop", + "stb_vorbis_get_samples_short_interleaved": { + "name": "stb_vorbis_get_samples_short_interleaved", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "lim", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lim" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lim" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "e", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27618,16 +21054,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -27635,9 +21069,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, @@ -27645,41 +21077,26 @@ "callback_policy": null }, { - "name": "d0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k_off", + "name": "channels", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" + "source_text": "int channels" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int k_off" + "source_text": "int channels" }, "source_location": null, "callback_policy": null }, { - "name": "A", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -27687,16 +21104,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CShort", "qualifiers": [], - "source_text": "float" + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "short *buffer", "components": [ { "model": "CPointer", @@ -27704,9 +21121,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CShort", "qualifiers": [], - "source_text": "float" + "source_text": "short" } ] }, @@ -27714,77 +21131,117 @@ "callback_policy": null }, { - "name": "k1", + "name": "num_shorts", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int k1" + "source_text": "int num_shorts" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int k1" + "source_text": "int num_shorts" }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2453, + "line": 5309, "column": 1, - "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" + "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2453, + "line": 5309, "column": 1, - "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" + "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2501, + "line": 5326, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "stb/stb_vorbis.c", + "line": 361, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts);" + } + ] }, - "imdct_step3_inner_s_loop": { - "name": "imdct_step3_inner_s_loop", + "stb_vorbis_get_samples_short": { + "name": "stb_vorbis_get_samples_short", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { - "name": "n", + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "channels", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int channels" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int channels" }, "source_location": null, "callback_policy": null }, { - "name": "e", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -27792,16 +21249,21 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "short **buffer", "components": [ { "model": "CPointer", @@ -27809,9 +21271,14 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CPointer", "qualifiers": [], - "source_text": "float" + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" } ] }, @@ -27819,58 +21286,82 @@ "callback_policy": null }, { - "name": "i_off", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int len" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 5328, + "column": 1, + "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 5328, + "column": 1, + "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 5343, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "name": "k_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k_off" - }, - "source_location": null, - "callback_policy": null - }, + "filename": "stb/stb_vorbis.c", + "line": 362, + "column": 1, + "source_line": "extern int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int num_samples);" + } + ] + }, + "error": { + "name": "error", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "A", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "vorb *f", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + }, + { + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -27878,9 +21369,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, @@ -27888,31 +21377,12 @@ "callback_policy": null }, { - "name": "a_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int a_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "k0", + "name": "e", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k0" + "reference": "enum STBVorbisError" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int k0" + "reference": "enum STBVorbisError" }, "source_location": null, "callback_policy": null @@ -27927,53 +21397,50 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2503, + "line": 913, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" + "source_line": "static int error(vorb *f, enum STBVorbisError e)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2503, + "line": 913, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" + "source_line": "static int error(vorb *f, enum STBVorbisError e)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2552, + "line": 920, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "imdct_step3_inner_s_loop_ld654": { - "name": "imdct_step3_inner_s_loop_ld654", + "make_block_array": { + "name": "make_block_array", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CInt", + "source_text": "void", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int n" + "source_text": "" }, - "declared_type": { - "model": "CInt", + { + "model": "CVoid", "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - }, + "source_text": "void" + } + ] + }, + "parameters": [ { - "name": "e", + "name": "mem", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "void *mem", "components": [ { "model": "CPointer", @@ -27981,16 +21448,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *e", + "source_text": "void *mem", "components": [ { "model": "CPointer", @@ -27998,9 +21465,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -28008,26 +21475,89 @@ "callback_policy": null }, { - "name": "i_off", + "name": "count", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int count" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i_off" + "source_text": "int count" }, "source_location": null, "callback_policy": null }, { - "name": "A", + "name": "size", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int size" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 938, + "column": 1, + "source_line": "static void *make_block_array(void *mem, int count, int size)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 938, + "column": 1, + "source_line": "static void *make_block_array(void *mem, int count, int size)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 948, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "setup_malloc": { + "name": "setup_malloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "parameters": [ + { + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -28035,16 +21565,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *A", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -28052,9 +21580,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, @@ -28062,16 +21588,16 @@ "callback_policy": null }, { - "name": "base_n", + "name": "sz", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int base_n" + "source_text": "int sz" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int base_n" + "source_text": "int sz" }, "source_location": null, "callback_policy": null @@ -28086,26 +21612,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2586, + "line": 950, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" + "source_line": "static void *setup_malloc(vorb *f, int sz)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2586, + "line": 950, "column": 1, - "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" + "source_line": "static void *setup_malloc(vorb *f, int sz)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 2627, + "line": 961, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "inverse_mdct_naive": { - "name": "inverse_mdct_naive", + "setup_free": { + "name": "setup_free", "result_type": { "model": "CVoid", "qualifiers": [], @@ -28113,11 +21639,11 @@ }, "parameters": [ { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -28125,16 +21651,14 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -28142,9 +21666,7 @@ "source_text": "" }, { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "vorb" } ] }, @@ -28152,52 +21674,78 @@ "callback_policy": null }, { - "name": "n", + "name": "p", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int n" + "source_text": "void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2933, + "line": 963, "column": 1, - "source_line": "void inverse_mdct_naive(float *buffer, int n)" + "source_line": "static void setup_free(vorb *f, void *p)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 2933, + "line": 963, "column": 1, - "source_line": "void inverse_mdct_naive(float *buffer, int n)" + "source_line": "static void setup_free(vorb *f, void *p)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3056, + "line": 967, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "get_window": { - "name": "get_window", + "setup_temp_malloc": { + "name": "setup_temp_malloc", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float", + "source_text": "void", "components": [ { "model": "CPointer", @@ -28205,9 +21753,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CVoid", "qualifiers": [], - "source_text": "float" + "source_text": "void" } ] }, @@ -28248,16 +21796,16 @@ "callback_policy": null }, { - "name": "len", + "name": "sz", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int sz" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int sz" }, "source_location": null, "callback_policy": null @@ -28272,30 +21820,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3059, + "line": 969, "column": 1, - "source_line": "static float *get_window(vorb *f, int len)" + "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3059, + "line": 969, "column": 1, - "source_line": "static float *get_window(vorb *f, int len)" + "source_line": "static void *setup_temp_malloc(vorb *f, int sz)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3065, + "line": 978, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "do_floor": { - "name": "do_floor", + "setup_temp_free": { + "name": "setup_temp_free", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -28334,11 +21882,11 @@ "callback_policy": null }, { - "name": "map", + "name": "p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mapping *map", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -28346,14 +21894,16 @@ "source_text": "" }, { - "reference": "Mapping" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mapping *map", + "source_text": "void *p", "components": [ { "model": "CPointer", @@ -28361,7 +21911,9 @@ "source_text": "" }, { - "reference": "Mapping" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" } ] }, @@ -28369,140 +21921,258 @@ "callback_policy": null }, { - "name": "i", + "name": "sz", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int sz" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int i" + "source_text": "int sz" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 980, + "column": 1, + "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 980, + "column": 1, + "source_line": "static void setup_temp_free(vorb *f, void *p, int sz)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 987, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "crc32_init": { + "name": "crc32_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 992, + "column": 1, + "source_line": "static void crc32_init(void)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 992, + "column": 1, + "source_line": "static void crc32_init(void)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1001, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "crc32_update": { + "name": "crc32_update", + "result_type": { + "reference": "uint32" + }, + "parameters": [ { - "name": "n", + "name": "crc", "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint32" }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" + "reference": "uint32" }, "source_location": null, "callback_policy": null }, { - "name": "target", + "name": "byte", "type": { - "model": "CComposedType", + "reference": "uint8" + }, + "declared_type": { + "reference": "uint8" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1003, + "column": 1, + "source_line": "static inline uint32 crc32_update(uint32 crc, uint8 byte)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1003, + "column": 1, + "source_line": "static inline uint32 crc32_update(uint32 crc, uint8 byte)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1006, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "bit_reverse": { + "name": "bit_reverse", + "result_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "float *target", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "unsigned int n" }, "declared_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "float *target", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] + "source_text": "unsigned int n" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1010, + "column": 1, + "source_line": "static unsigned int bit_reverse(unsigned int n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1010, + "column": 1, + "source_line": "static unsigned int bit_reverse(unsigned int n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1017, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "square": { + "name": "square", + "result_type": { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + }, + "parameters": [ { - "name": "finalY", + "name": "x", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "YTYPE *finalY", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "YTYPE" - } - ] + "model": "CFloat", + "qualifiers": [], + "source_text": "float x" }, "declared_type": { - "model": "CComposedType", + "model": "CFloat", "qualifiers": [], - "source_text": "YTYPE *finalY", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "YTYPE" - } - ] + "source_text": "float x" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1019, + "column": 1, + "source_line": "static float square(float x)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1019, + "column": 1, + "source_line": "static float square(float x)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1022, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "ilog": { + "name": "ilog", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "step2_flag", + "name": "n", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *step2_flag", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] + "reference": "int32" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "uint8 *step2_flag", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "uint8" - } - ] + "reference": "int32" }, "source_location": null, "callback_policy": null @@ -28517,73 +22187,85 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3072, + "line": 1027, "column": 1, - "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" + "source_line": "static int ilog(int32 n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3072, + "line": 1027, "column": 1, - "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" + "source_line": "static int ilog(int32 n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3108, + "line": 1043, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_decode_initial": { - "name": "vorbis_decode_initial", + "float32_unpack": { + "name": "float32_unpack", "result_type": { - "model": "CInt", + "model": "CFloat", "qualifiers": [], - "source_text": "int" + "source_text": "float" }, "parameters": [ { - "name": "f", + "name": "x", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "reference": "uint32" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] + "reference": "uint32" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1057, + "column": 1, + "source_line": "static float float32_unpack(uint32 x)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1057, + "column": 1, + "source_line": "static float float32_unpack(uint32 x)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1065, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "add_entry": { + "name": "add_entry", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "p_left_start", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -28591,16 +22273,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left_start", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -28608,9 +22288,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, @@ -28618,128 +22296,67 @@ "callback_policy": null }, { - "name": "p_left_end", + "name": "huff_code", "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "reference": "uint32" }, "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "reference": "uint32" }, "source_location": null, "callback_policy": null }, { - "name": "p_right_start", + "name": "symbol", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_right_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int symbol" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_right_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int symbol" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int count" }, "source_location": null, "callback_policy": null }, { - "name": "p_right_end", + "name": "len", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_right_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *p_right_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int len" }, "source_location": null, "callback_policy": null }, { - "name": "mode", + "name": "values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -28747,16 +22364,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -28764,9 +22379,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, @@ -28783,26 +22396,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3124, + "line": 1075, "column": 1, - "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3124, + "line": 1075, "column": 1, - "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static void add_entry(Codebook *c, uint32 huff_code, int symbol, int count, int len, uint32 *values)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3178, + "line": 1084, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_decode_packet_rest": { - "name": "vorbis_decode_packet_rest", + "compute_codewords": { + "name": "compute_codewords", "result_type": { "model": "CInt", "qualifiers": [], @@ -28810,11 +22423,11 @@ }, "parameters": [ { - "name": "f", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -28822,14 +22435,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -28837,7 +22450,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "Codebook" } ] }, @@ -28849,7 +22462,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *len", + "source_text": "uint8 *len", "components": [ { "model": "CPointer", @@ -28857,16 +22470,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *len", + "source_text": "uint8 *len", "components": [ { "model": "CPointer", @@ -28874,9 +22485,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, @@ -28884,11 +22493,26 @@ "callback_policy": null }, { - "name": "m", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mode *m", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -28896,14 +22520,14 @@ "source_text": "" }, { - "reference": "Mode" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "Mode *m", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -28911,79 +22535,169 @@ "source_text": "" }, { - "reference": "Mode" + "reference": "uint32" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "left_start", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_start" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_start" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "left_end", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_end" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left_end" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1086, + "column": 1, + "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1086, + "column": 1, + "source_line": "static int compute_codewords(Codebook *c, uint8 *len, int n, uint32 *values)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1130, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "compute_accelerated_huffman": { + "name": "compute_accelerated_huffman", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "right_start", + "name": "c", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int right_start" + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int right_start" + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1134, + "column": 1, + "source_line": "static void compute_accelerated_huffman(Codebook *c)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1134, + "column": 1, + "source_line": "static void compute_accelerated_huffman(Codebook *c)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1154, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "uint32_compare": { + "name": "uint32_compare", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "right_end", + "name": "p", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int right_end" + "source_text": "const void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int right_end" + "source_text": "const void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "p_left", + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -28991,16 +22705,18 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -29008,9 +22724,11 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -29027,26 +22745,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3180, + "line": 1162, "column": 1, - "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" + "source_line": "static int uint32_compare(const void *p, const void *q)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3180, + "line": 1162, "column": 1, - "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" + "source_line": "static int uint32_compare(const void *p, const void *q)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3447, + "line": 1167, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_decode_packet": { - "name": "vorbis_decode_packet", + "include_in_sort": { + "name": "include_in_sort", "result_type": { "model": "CInt", "qualifiers": [], @@ -29054,11 +22772,11 @@ }, "parameters": [ { - "name": "f", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -29066,14 +22784,14 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -29081,7 +22799,7 @@ "source_text": "" }, { - "reference": "vorb" + "reference": "Codebook" } ] }, @@ -29090,10 +22808,57 @@ }, { "name": "len", + "type": { + "reference": "uint8" + }, + "declared_type": { + "reference": "uint8" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1169, + "column": 1, + "source_line": "static int include_in_sort(Codebook *c, uint8 len)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1169, + "column": 1, + "source_line": "static int include_in_sort(Codebook *c, uint8 len)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1175, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "compute_sorted_huffman": { + "name": "compute_sorted_huffman", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *len", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -29101,16 +22866,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *len", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -29118,9 +22881,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, @@ -29128,11 +22889,11 @@ "callback_policy": null }, { - "name": "p_left", + "name": "lengths", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "uint8 *lengths", "components": [ { "model": "CPointer", @@ -29140,16 +22901,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_left", + "source_text": "uint8 *lengths", "components": [ { "model": "CPointer", @@ -29157,9 +22916,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint8" } ] }, @@ -29167,11 +22924,11 @@ "callback_policy": null }, { - "name": "p_right", + "name": "values", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -29179,16 +22936,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right", + "source_text": "uint32 *values", "components": [ { "model": "CPointer", @@ -29196,9 +22951,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" } ] }, @@ -29215,26 +22968,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3449, + "line": 1179, "column": 1, - "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" + "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3449, + "line": 1179, "column": 1, - "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" + "source_line": "static void compute_sorted_huffman(Codebook *c, uint8 *lengths, uint32 *values)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3454, + "line": 1230, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_finish_frame": { - "name": "vorbis_finish_frame", + "vorbis_validate": { + "name": "vorbis_validate", "result_type": { "model": "CInt", "qualifiers": [], @@ -29242,11 +22995,11 @@ }, "parameters": [ { - "name": "f", + "name": "data", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -29254,14 +23007,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "uint8" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "uint8 *data", "components": [ { "model": "CPointer", @@ -29269,57 +23022,12 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "uint8" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "left", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int left" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "right", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int right" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -29331,26 +23039,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3456, + "line": 1233, "column": 1, - "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" + "source_line": "static int vorbis_validate(uint8 *data)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3456, + "line": 1233, "column": 1, - "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" + "source_line": "static int vorbis_validate(uint8 *data)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3507, + "line": 1237, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_pump_first_frame": { - "name": "vorbis_pump_first_frame", + "lookup1_values": { + "name": "lookup1_values", "result_type": { "model": "CInt", "qualifiers": [], @@ -29358,36 +23066,31 @@ }, "parameters": [ { - "name": "f", + "name": "entries", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int entries" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int entries" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "dim", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int dim" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int dim" }, "source_location": null, "callback_policy": null @@ -29402,38 +23105,53 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 3509, + "line": 1241, "column": 1, - "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + "source_line": "static int lookup1_values(int entries, int dim)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 3509, + "line": 1241, "column": 1, - "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + "source_line": "static int lookup1_values(int entries, int dim)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 3516, + "line": 1251, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "is_whole_packet_present": { - "name": "is_whole_packet_present", + "compute_twiddle_factors": { + "name": "compute_twiddle_factors", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -29441,14 +23159,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *A", "components": [ { "model": "CPointer", @@ -29456,55 +23176,21 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3519, - "column": 1, - "source_line": "static int is_whole_packet_present(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 3519, - "column": 1, - "source_line": "static int is_whole_packet_present(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 3577, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "start_decoder": { - "name": "start_decoder", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "B", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float *B", "components": [ { "model": "CPointer", @@ -29512,14 +23198,16 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "float *B", "components": [ { "model": "CPointer", @@ -29527,55 +23215,21 @@ "source_text": "" }, { - "reference": "vorb" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 3580, - "column": 1, - "source_line": "static int start_decoder(vorb *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 3580, - "column": 1, - "source_line": "static int start_decoder(vorb *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4206, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "vorbis_deinit": { - "name": "vorbis_deinit", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "p", + "name": "C", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "float *C", "components": [ { "model": "CPointer", @@ -29583,14 +23237,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "float *C", "components": [ { "model": "CPointer", @@ -29598,7 +23254,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -29615,26 +23273,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4208, + "line": 1254, "column": 1, - "source_line": "static void vorbis_deinit(stb_vorbis *p)" + "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4208, + "line": 1254, "column": 1, - "source_line": "static void vorbis_deinit(stb_vorbis *p)" + "source_line": "static void compute_twiddle_factors(int n, float *A, float *B, float *C)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4269, + "line": 1269, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_close": { - "name": "stb_vorbis_close", + "compute_window": { + "name": "compute_window", "result_type": { "model": "CVoid", "qualifiers": [], @@ -29642,11 +23300,26 @@ }, "parameters": [ { - "name": "p", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "window", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "float *window", "components": [ { "model": "CPointer", @@ -29654,14 +23327,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *p", + "source_text": "float *window", "components": [ { "model": "CPointer", @@ -29669,7 +23344,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -29677,33 +23354,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4271, + "line": 1271, "column": 1, - "source_line": "void stb_vorbis_close(stb_vorbis *p)" + "source_line": "static void compute_window(int n, float *window)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4271, + "line": 1271, "column": 1, - "source_line": "void stb_vorbis_close(stb_vorbis *p)" + "source_line": "static void compute_window(int n, float *window)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4276, + "line": 1276, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_init": { - "name": "vorbis_init", + "compute_bitreverse": { + "name": "compute_bitreverse", "result_type": { "model": "CVoid", "qualifiers": [], @@ -29711,46 +23390,26 @@ }, "parameters": [ { - "name": "p", + "name": "n", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int n" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *p", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "z", + "name": "rev", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *z", + "source_text": "uint16 *rev", "components": [ { "model": "CPointer", @@ -29758,14 +23417,14 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *z", + "source_text": "uint16 *rev", "components": [ { "model": "CPointer", @@ -29773,7 +23432,7 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "uint16" } ] }, @@ -29790,26 +23449,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4278, + "line": 1278, "column": 1, - "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + "source_line": "static void compute_bitreverse(int n, uint16 *rev)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4278, + "line": 1278, "column": 1, - "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + "source_line": "static void compute_bitreverse(int n, uint16 *rev)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4295, + "line": 1284, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_sample_offset": { - "name": "stb_vorbis_get_sample_offset", + "init_blocksize": { + "name": "init_blocksize", "result_type": { "model": "CInt", "qualifiers": [], @@ -29821,7 +23480,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -29829,14 +23488,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -29844,51 +23503,85 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4297, + "line": 1286, "column": 1, - "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" + "source_line": "static int init_blocksize(vorb *f, int b, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4297, + "line": 1286, "column": 1, - "source_line": "int stb_vorbis_get_sample_offset(stb_vorbis *f)" + "source_line": "static int init_blocksize(vorb *f, int b, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4303, + "line": 1301, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_info": { - "name": "stb_vorbis_get_info", + "neighbors": { + "name": "neighbors", "result_type": { - "reference": "stb_vorbis_info" + "model": "CVoid", + "qualifiers": [], + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "x", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "uint16 *x", "components": [ { "model": "CPointer", @@ -29896,14 +23589,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "uint16" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "uint16 *x", "components": [ { "model": "CPointer", @@ -29911,51 +23604,34 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "uint16" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4305, - "column": 1, - "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4305, - "column": 1, - "source_line": "stb_vorbis_info stb_vorbis_get_info(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4315, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_get_comment": { - "name": "stb_vorbis_get_comment", - "result_type": { - "reference": "stb_vorbis_comment" - }, - "parameters": [ + }, { - "name": "f", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "plow", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "int *plow", "components": [ { "model": "CPointer", @@ -29963,14 +23639,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "int *plow", "components": [ { "model": "CPointer", @@ -29978,7 +23656,48 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "phigh", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *phigh", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *phigh", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -29986,33 +23705,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4317, + "line": 1303, "column": 1, - "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" + "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4317, + "line": 1303, "column": 1, - "source_line": "stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis *f)" + "source_line": "static void neighbors(uint16 *x, int n, int *plow, int *phigh)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4324, + "line": 1312, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_error": { - "name": "stb_vorbis_get_error", + "point_compare": { + "name": "point_compare", "result_type": { "model": "CInt", "qualifiers": [], @@ -30020,11 +23741,54 @@ }, "parameters": [ { - "name": "f", + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "q", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -30032,14 +23796,18 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "const void *q", "components": [ { "model": "CPointer", @@ -30047,7 +23815,11 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" } ] }, @@ -30055,55 +23827,45 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4326, + "line": 1320, "column": 1, - "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" + "source_line": "static int point_compare(const void *p, const void *q)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4326, + "line": 1320, "column": 1, - "source_line": "int stb_vorbis_get_error(stb_vorbis *f)" + "source_line": "static int point_compare(const void *p, const void *q)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4331, + "line": 1325, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_alloc": { - "name": "vorbis_alloc", + "get8": { + "name": "get8", "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "reference": "uint8" }, "parameters": [ { - "name": "f", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30111,14 +23873,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30126,7 +23888,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -30143,30 +23905,28 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4333, + "line": 1337, "column": 1, - "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" + "source_line": "static uint8 get8(vorb *z)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4333, + "line": 1337, "column": 1, - "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" + "source_line": "static uint8 get8(vorb *z)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4337, + "line": 1351, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_flush_pushdata": { - "name": "stb_vorbis_flush_pushdata", + "get32": { + "name": "get32", "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "reference": "uint32" }, "parameters": [ { @@ -30174,7 +23934,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30182,14 +23942,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30197,7 +23957,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -30205,33 +23965,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4341, + "line": 1353, "column": 1, - "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" + "source_line": "static uint32 get32(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4341, + "line": 1353, "column": 1, - "source_line": "void stb_vorbis_flush_pushdata(stb_vorbis *f)" + "source_line": "static uint32 get32(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4351, + "line": 1361, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_search_for_page_pushdata": { - "name": "vorbis_search_for_page_pushdata", + "getn": { + "name": "getn", "result_type": { "model": "CInt", "qualifiers": [], @@ -30239,11 +24001,11 @@ }, "parameters": [ { - "name": "f", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30258,7 +24020,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "vorb *f", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30309,16 +24071,16 @@ "callback_policy": null }, { - "name": "data_len", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -30333,73 +24095,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4353, + "line": 1363, "column": 1, - "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + "source_line": "static int getn(vorb *z, uint8 *data, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4353, + "line": 1363, "column": 1, - "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + "source_line": "static int getn(vorb *z, uint8 *data, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4441, + "line": 1380, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_decode_frame_pushdata": { - "name": "stb_vorbis_decode_frame_pushdata", + "skip": { + "name": "skip", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "data", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *data", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30407,14 +24134,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *data", + "source_text": "vorb *z", "components": [ { "model": "CPointer", @@ -30422,7 +24149,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "vorb" } ] }, @@ -30430,65 +24157,62 @@ "callback_policy": null }, { - "name": "data_len", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channels", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *channels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *channels", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int n" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1382, + "column": 1, + "source_line": "static void skip(vorb *z, int n)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1382, + "column": 1, + "source_line": "static void skip(vorb *z, int n)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1395, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "set_file_offset": { + "name": "set_file_offset", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "output", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -30496,26 +24220,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "stb_vorbis *f", "components": [ { "model": "CPointer", @@ -30523,19 +24235,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + "reference": "stb_vorbis" } ] }, @@ -30543,94 +24243,62 @@ "callback_policy": null }, { - "name": "samples", + "name": "loc", "type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int *samples", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "unsigned int loc" }, "declared_type": { - "model": "CComposedType", + "model": "CUnsignedInt", "qualifiers": [], - "source_text": "int *samples", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "unsigned int loc" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4444, + "line": 1397, "column": 1, - "source_line": "int stb_vorbis_decode_frame_pushdata(" + "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4444, + "line": 1397, "column": 1, - "source_line": "int stb_vorbis_decode_frame_pushdata(" + "source_line": "static int set_file_offset(stb_vorbis *f, unsigned int loc)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4512, + "line": 1426, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_open_pushdata": { - "name": "stb_vorbis_open_pushdata", + "capture_pattern": { + "name": "capture_pattern", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30638,18 +24306,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30657,38 +24321,55 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "data_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int data_len" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1431, + "column": 1, + "source_line": "static int capture_pattern(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1431, + "column": 1, + "source_line": "static int capture_pattern(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1438, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "start_page_no_capturepattern": { + "name": "start_page_no_capturepattern", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "data_used", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *data_used", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30696,16 +24377,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *data_used", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30713,21 +24392,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1444, + "column": 1, + "source_line": "static int start_page_no_capturepattern(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1444, + "column": 1, + "source_line": "static int start_page_no_capturepattern(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1495, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "start_page": { + "name": "start_page", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "error", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30735,16 +24448,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30752,21 +24463,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1497, + "column": 1, + "source_line": "static int start_page(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1497, + "column": 1, + "source_line": "static int start_page(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1501, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "start_packet": { + "name": "start_packet", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "alloc", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30774,14 +24519,14 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30789,7 +24534,7 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "reference": "vorb" } ] }, @@ -30797,37 +24542,39 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4514, + "line": 1503, "column": 1, - "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" + "source_line": "static int start_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4514, + "line": 1503, "column": 1, - "source_line": "stb_vorbis *stb_vorbis_open_pushdata(" + "source_line": "static int start_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4542, + "line": 1516, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_file_offset": { - "name": "stb_vorbis_get_file_offset", + "maybe_start_packet": { + "name": "maybe_start_packet", "result_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int" + "source_text": "int" }, "parameters": [ { @@ -30835,7 +24582,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30843,14 +24590,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30858,7 +24605,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -30866,35 +24613,39 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4545, + "line": 1518, "column": 1, - "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" + "source_line": "static int maybe_start_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4545, + "line": 1518, "column": 1, - "source_line": "unsigned int stb_vorbis_get_file_offset(stb_vorbis *f)" + "source_line": "static int maybe_start_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4554, + "line": 1537, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "vorbis_find_page": { - "name": "vorbis_find_page", + "next_segment": { + "name": "next_segment", "result_type": { - "reference": "uint32" + "model": "CInt", + "qualifiers": [], + "source_text": "int" }, "parameters": [ { @@ -30902,7 +24653,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30910,14 +24661,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30925,19 +24676,55 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1539, + "column": 1, + "source_line": "static int next_segment(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1539, + "column": 1, + "source_line": "static int next_segment(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1558, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "get8_packet_raw": { + "name": "get8_packet_raw", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "end", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *end", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30945,14 +24732,14 @@ "source_text": "" }, { - "reference": "uint32" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *end", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30960,19 +24747,55 @@ "source_text": "" }, { - "reference": "uint32" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1563, + "column": 1, + "source_line": "static int get8_packet_raw(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1563, + "column": 1, + "source_line": "static int get8_packet_raw(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1573, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "get8_packet": { + "name": "get8_packet", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "last", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *last", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30980,14 +24803,14 @@ "source_text": "" }, { - "reference": "uint32" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "uint32 *last", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -30995,7 +24818,7 @@ "source_text": "" }, { - "reference": "uint32" + "reference": "vorb" } ] }, @@ -31012,26 +24835,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4561, + "line": 1575, "column": 1, - "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + "source_line": "static int get8_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4561, + "line": 1575, "column": 1, - "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + "source_line": "static int get8_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4629, + "line": 1580, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "get_seek_page_info": { - "name": "get_seek_page_info", + "get32_packet": { + "name": "get32_packet", "result_type": { "model": "CInt", "qualifiers": [], @@ -31043,7 +24866,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31051,14 +24874,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31066,19 +24889,55 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1582, + "column": 1, + "source_line": "static int get32_packet(vorb *f)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1582, + "column": 1, + "source_line": "static int get32_packet(vorb *f)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1590, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "flush_packet": { + "name": "flush_packet", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "z", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "ProbedPage *z", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31086,14 +24945,14 @@ "source_text": "" }, { - "reference": "ProbedPage" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "ProbedPage *z", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31101,7 +24960,7 @@ "source_text": "" }, { - "reference": "ProbedPage" + "reference": "vorb" } ] }, @@ -31118,30 +24977,28 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4643, + "line": 1592, "column": 1, - "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + "source_line": "static void flush_packet(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4643, + "line": 1592, "column": 1, - "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + "source_line": "static void flush_packet(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4671, + "line": 1595, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "go_to_page_before": { - "name": "go_to_page_before", + "get_bits": { + "name": "get_bits", "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "uint32" }, "parameters": [ { @@ -31149,7 +25006,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31157,14 +25014,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31172,7 +25029,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -31180,16 +25037,16 @@ "callback_policy": null }, { - "name": "limit_offset", + "name": "n", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int limit_offset" + "source_text": "int n" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int limit_offset" + "source_text": "int n" }, "source_location": null, "callback_policy": null @@ -31204,30 +25061,30 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4675, + "line": 1599, "column": 1, - "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + "source_line": "static uint32 get_bits(vorb *f, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4675, + "line": 1599, "column": 1, - "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + "source_line": "static uint32 get_bits(vorb *f, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4694, + "line": 1628, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "seek_to_sample_coarse": { - "name": "seek_to_sample_coarse", + "prep_huffman": { + "name": "prep_huffman", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { @@ -31235,7 +25092,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31243,14 +25100,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31258,54 +25115,45 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "sample_number", - "type": { - "reference": "uint32" - }, - "declared_type": { - "reference": "uint32" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ "static" ], - "specifiers": [], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4700, + "line": 1634, "column": 1, - "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + "source_line": "static inline void prep_huffman(vorb *f)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4700, + "line": 1634, "column": 1, - "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + "source_line": "static inline void prep_huffman(vorb *f)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4852, + "line": 1647, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "peek_decode_initial": { - "name": "peek_decode_initial", + "codebook_decode_scalar_raw": { + "name": "codebook_decode_scalar_raw", "result_type": { "model": "CInt", "qualifiers": [], @@ -31348,89 +25196,11 @@ "callback_policy": null }, { - "name": "p_left_start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p_left_end", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int *p_left_end", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "p_right_start", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_start", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31438,16 +25208,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_start", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31455,21 +25223,55 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1656, + "column": 1, + "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 1656, + "column": 1, + "source_line": "static int codebook_decode_scalar_raw(vorb *f, Codebook *c)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 1713, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "codebook_decode_start": { + "name": "codebook_decode_start", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "p_right_end", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_end", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31477,16 +25279,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *p_right_end", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31494,9 +25294,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "vorb" } ] }, @@ -31504,11 +25302,11 @@ "callback_policy": null }, { - "name": "mode", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31516,16 +25314,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *mode", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31533,9 +25329,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, @@ -31552,26 +25346,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4855, + "line": 1775, "column": 1, - "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4855, + "line": 1775, "column": 1, - "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + "source_line": "static int codebook_decode_start(vorb *f, Codebook *c)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4878, + "line": 1793, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_seek_frame": { - "name": "stb_vorbis_seek_frame", + "codebook_decode": { + "name": "codebook_decode", "result_type": { "model": "CInt", "qualifiers": [], @@ -31583,7 +25377,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31591,14 +25385,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31606,7 +25400,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -31614,60 +25408,46 @@ "callback_policy": null }, { - "name": "sample_number", + "name": "c", "type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "declared_type": { - "model": "CUnsignedInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "Codebook *c", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "Codebook" + } + ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4880, - "column": 1, - "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4880, - "column": 1, - "source_line": "int stb_vorbis_seek_frame(stb_vorbis *f, unsigned int sample_number)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4917, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_seek": { - "name": "stb_vorbis_seek", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + }, { - "name": "f", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -31675,14 +25455,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -31690,7 +25472,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -31698,48 +25482,50 @@ "callback_policy": null }, { - "name": "sample_number", + "name": "len", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int len" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int sample_number" + "source_text": "int len" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 4919, + "line": 1795, "column": 1, - "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" + "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 4919, + "line": 1795, "column": 1, - "source_line": "int stb_vorbis_seek(stb_vorbis *f, unsigned int sample_number)" + "source_line": "static int codebook_decode(vorb *f, Codebook *c, float *output, int len)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 4934, + "line": 1832, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_seek_start": { - "name": "stb_vorbis_seek_start", + "codebook_decode_step": { + "name": "codebook_decode_step", "result_type": { "model": "CInt", "qualifiers": [], @@ -31751,7 +25537,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31759,14 +25545,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31774,53 +25560,19 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4936, - "column": 1, - "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4936, - "column": 1, - "source_line": "int stb_vorbis_seek_start(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 4944, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_stream_length_in_samples": { - "name": "stb_vorbis_stream_length_in_samples", - "result_type": { - "model": "CUnsignedInt", - "qualifiers": [], - "source_text": "unsigned int" - }, - "parameters": [ + }, { - "name": "f", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31828,14 +25580,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -31843,53 +25595,19 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Codebook" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 4946, - "column": 1, - "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 4946, - "column": 1, - "source_line": "unsigned int stb_vorbis_stream_length_in_samples(stb_vorbis *f)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5019, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_stream_length_in_seconds": { - "name": "stb_vorbis_stream_length_in_seconds", - "result_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - }, - "parameters": [ + }, { - "name": "f", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -31897,56 +25615,92 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "step", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int step" + }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int step" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5021, + "line": 1834, "column": 1, - "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" + "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5021, + "line": 1834, "column": 1, - "source_line": "float stb_vorbis_stream_length_in_seconds(stb_vorbis *f)" + "source_line": "static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5024, + "line": 1863, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_frame_float": { - "name": "stb_vorbis_get_frame_float", + "codebook_decode_deinterleave_repeat": { + "name": "codebook_decode_deinterleave_repeat", "result_type": { "model": "CInt", "qualifiers": [], @@ -31958,7 +25712,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31966,14 +25720,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -31981,7 +25735,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -31989,11 +25743,11 @@ "callback_policy": null }, { - "name": "channels", + "name": "c", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -32001,16 +25755,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "Codebook *c", "components": [ { "model": "CPointer", @@ -32018,9 +25770,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, @@ -32028,11 +25778,11 @@ "callback_policy": null }, { - "name": "output", + "name": "outputs", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "float **outputs", "components": [ { "model": "CPointer", @@ -32044,11 +25794,6 @@ "qualifiers": [], "source_text": "" }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CFloat", "qualifiers": [], @@ -32059,7 +25804,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float ***output", + "source_text": "float **outputs", "components": [ { "model": "CPointer", @@ -32071,11 +25816,6 @@ "qualifiers": [], "source_text": "" }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CFloat", "qualifiers": [], @@ -32085,107 +25825,28 @@ }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5028, - "column": 1, - "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5028, - "column": 1, - "source_line": "int stb_vorbis_get_frame_float(stb_vorbis *f, int *channels, float ***output)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5048, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_open_file_section": { - "name": "stb_vorbis_open_file_section", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "parameters": [ - { - "name": "file", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "FILE *file", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "FILE *file", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] - }, - "source_location": null, - "callback_policy": null }, { - "name": "close_on_free", + "name": "ch", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int ch" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int ch" }, "source_location": null, "callback_policy": null }, { - "name": "error", + "name": "c_inter_p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "int *c_inter_p", "components": [ { "model": "CPointer", @@ -32202,7 +25863,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "int *c_inter_p", "components": [ { "model": "CPointer", @@ -32220,11 +25881,11 @@ "callback_policy": null }, { - "name": "alloc", + "name": "p_inter_p", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "int *p_inter_p", "components": [ { "model": "CPointer", @@ -32232,14 +25893,16 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "int *p_inter_p", "components": [ { "model": "CPointer", @@ -32247,7 +25910,9 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -32255,238 +25920,188 @@ "callback_policy": null }, { - "name": "length", + "name": "len", "type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int length" + "source_text": "int len" }, "declared_type": { - "model": "CUnsignedInt", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned int length" + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "total_decode", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int total_decode" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int total_decode" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5052, + "line": 1865, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" + "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5052, + "line": 1865, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file_section(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc, unsigned int length)" + "source_line": "static int codebook_decode_deinterleave_repeat(vorb *f, Codebook *c, float **outputs, int ch, int *c_inter_p, int *p_inter_p, int len, int total_decode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5071, + "line": 1933, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_open_file": { - "name": "stb_vorbis_open_file", + "predict_point": { + "name": "predict_point", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "file", + "name": "x", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "FILE *file", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "FILE *file", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "FILE" - } - ] + "source_text": "int x0" }, "source_location": null, "callback_policy": null }, { - "name": "close_on_free", + "name": "x1", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int x1" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int close_on_free" + "source_text": "int x1" }, "source_location": null, "callback_policy": null }, { - "name": "error", + "name": "y0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int y0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int y0" }, "source_location": null, "callback_policy": null }, { - "name": "alloc", + "name": "y1", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis_alloc" - } - ] + "source_text": "int y1" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis_alloc" - } - ] + "source_text": "int y1" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5073, + "line": 1935, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5073, + "line": 1935, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_file(FILE *file, int close_on_free, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int predict_point(int x, int x0, int x1, int y0, int y1)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5081, + "line": 1943, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_open_filename": { - "name": "stb_vorbis_open_filename", + "draw_line": { + "name": "draw_line", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "void" }, "parameters": [ { - "name": "filename", + "name": "output", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -32494,18 +26109,16 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "float *output", "components": [ { "model": "CPointer", @@ -32513,11 +26126,9 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -32525,129 +26136,124 @@ "callback_policy": null }, { - "name": "error", + "name": "x0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int x0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int x0" }, "source_location": null, "callback_policy": null }, { - "name": "alloc", + "name": "y0", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis_alloc" - } - ] + "source_text": "int y0" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis_alloc" - } - ] + "source_text": "int y0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" }, "source_location": null, "callback_policy": null } ], - "storage": [], - "specifiers": [], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5083, + "line": 2034, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static inline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5083, + "line": 2034, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_filename(const char *filename, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static inline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5096, + "line": 2081, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_open_memory": { - "name": "stb_vorbis_open_memory", + "residue_decode": { + "name": "residue_decode", "result_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stb_vorbis", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] + "source_text": "int" }, "parameters": [ { - "name": "data", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -32655,18 +26261,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const unsigned char *data", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -32674,11 +26276,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [ - "const" - ], - "source_text": "const unsigned char" + "reference": "vorb" } ] }, @@ -32686,26 +26284,11 @@ "callback_policy": null }, { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "error", + "name": "book", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "Codebook *book", "components": [ { "model": "CPointer", @@ -32713,16 +26296,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "Codebook *book", "components": [ { "model": "CPointer", @@ -32730,9 +26311,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Codebook" } ] }, @@ -32740,11 +26319,11 @@ "callback_policy": null }, { - "name": "alloc", + "name": "target", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -32752,14 +26331,16 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const stb_vorbis_alloc *alloc", + "source_text": "float *target", "components": [ { "model": "CPointer", @@ -32767,41 +26348,90 @@ "source_text": "" }, { - "reference": "stb_vorbis_alloc" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "rtype", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rtype" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rtype" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5099, + "line": 2083, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5099, + "line": 2083, "column": 1, - "source_line": "stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *error, const stb_vorbis_alloc *alloc)" + "source_line": "static int residue_decode(vorb *f, Codebook *book, float *target, int offset, int n, int rtype)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5124, + "line": 2100, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "copy_samples": { - "name": "copy_samples", + "decode_residue": { + "name": "decode_residue", "result_type": { "model": "CVoid", "qualifiers": [], @@ -32809,11 +26439,11 @@ }, "parameters": [ { - "name": "dest", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *dest", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -32821,16 +26451,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *dest", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -32838,9 +26466,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, @@ -32848,12 +26474,17 @@ "callback_policy": null }, { - "name": "src", + "name": "residue_buffers", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *src", + "source_text": "float *residue_buffers[]", "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, { "model": "CPointer", "qualifiers": [], @@ -32869,8 +26500,17 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *src", + "source_text": "float *residue_buffers[]", "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": null, + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, { "model": "CPointer", "qualifiers": [], @@ -32887,16 +26527,81 @@ "callback_policy": null }, { - "name": "len", + "name": "ch", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int ch" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int ch" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "rn", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rn" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int rn" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "do_not_decode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint8 *do_not_decode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint8 *do_not_decode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] }, "source_location": null, "callback_policy": null @@ -32911,26 +26616,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5165, + "line": 2104, "column": 1, - "source_line": "static void copy_samples(short *dest, float *src, int len)" + "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5165, + "line": 2104, "column": 1, - "source_line": "static void copy_samples(short *dest, float *src, int len)" + "source_line": "static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int rn, uint8 *do_not_decode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5176, + "line": 2284, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "compute_samples": { - "name": "compute_samples", + "imdct_step3_iter0_loop": { + "name": "imdct_step3_iter0_loop", "result_type": { "model": "CVoid", "qualifiers": [], @@ -32938,26 +26643,26 @@ }, "parameters": [ { - "name": "mask", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int mask" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int mask" + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "output", + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -32965,16 +26670,16 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -32982,9 +26687,9 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, @@ -32992,32 +26697,42 @@ "callback_policy": null }, { - "name": "num_c", + "name": "i_off", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int i_off" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int i_off" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "k_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33033,13 +26748,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33054,36 +26764,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "d_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -33095,26 +26775,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5178, + "line": 2408, "column": 1, - "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5178, + "line": 2408, "column": 1, - "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_iter0_loop(int n, float *e, int i_off, int k_off, float *A)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5202, + "line": 2451, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "compute_stereo_samples": { - "name": "compute_stereo_samples", + "imdct_step3_inner_r_loop": { + "name": "imdct_step3_inner_r_loop", "result_type": { "model": "CVoid", "qualifiers": [], @@ -33122,11 +26802,26 @@ }, "parameters": [ { - "name": "output", + "name": "lim", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lim" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lim" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33134,16 +26829,16 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *output", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33151,9 +26846,9 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, @@ -33161,32 +26856,42 @@ "callback_policy": null }, { - "name": "num_c", + "name": "d0", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int d0" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int d0" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "k_off", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int k_off" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33202,13 +26907,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33225,31 +26925,16 @@ "callback_policy": null }, { - "name": "d_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", + "name": "k1", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int k1" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int k1" }, "source_location": null, "callback_policy": null @@ -33264,26 +26949,26 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5204, + "line": 2453, "column": 1, - "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5204, + "line": 2453, "column": 1, - "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_inner_r_loop(int lim, float *e, int d0, int k_off, float *A, int k1)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5242, + "line": 2501, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "convert_samples_short": { - "name": "convert_samples_short", + "imdct_step3_inner_s_loop": { + "name": "imdct_step3_inner_s_loop", "result_type": { "model": "CVoid", "qualifiers": [], @@ -33291,26 +26976,26 @@ }, "parameters": [ { - "name": "buf_c", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33318,21 +27003,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33340,14 +27020,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, @@ -33355,47 +27030,42 @@ "callback_policy": null }, { - "name": "b_offset", + "name": "i_off", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int b_offset" + "source_text": "int i_off" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int b_offset" + "source_text": "int i_off" }, "source_location": null, "callback_policy": null }, { - "name": "data_c", + "name": "k_off", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_c" + "source_text": "int k_off" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_c" + "source_text": "int k_off" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33411,13 +27081,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33434,31 +27099,31 @@ "callback_policy": null }, { - "name": "d_offset", + "name": "a_off", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int d_offset" + "source_text": "int a_off" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int d_offset" + "source_text": "int a_off" }, "source_location": null, "callback_policy": null }, { - "name": "samples", + "name": "k0", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int samples" + "source_text": "int k0" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int samples" + "source_text": "int k0" }, "source_location": null, "callback_policy": null @@ -33473,88 +27138,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5244, + "line": 2503, "column": 1, - "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5244, + "line": 2503, "column": 1, - "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + "source_line": "static void imdct_step3_inner_s_loop(int n, float *e, int i_off, int k_off, float *A, int a_off, int k0)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5258, + "line": 2552, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_frame_short": { - "name": "stb_vorbis_get_frame_short", + "iter_54": { + "name": "iter_54", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stb_vorbis *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "num_c", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_c" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", + "name": "z", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "float *z", "components": [ { "model": "CPointer", @@ -33562,21 +27177,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "float *z", "components": [ { "model": "CPointer", @@ -33584,63 +27194,47 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "num_samples", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_samples" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_samples" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [], - "specifiers": [], + "storage": [ + "static" + ], + "specifiers": [ + "inline" + ], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5260, + "line": 2554, "column": 1, - "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" + "source_line": "static inline void iter_54(float *z)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5260, + "line": 2554, "column": 1, - "source_line": "int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)" + "source_line": "static inline void iter_54(float *z)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5268, + "line": 2584, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "convert_channels_short_interleaved": { - "name": "convert_channels_short_interleaved", + "imdct_step3_inner_s_loop_ld654": { + "name": "imdct_step3_inner_s_loop_ld654", "result_type": { "model": "CVoid", "qualifiers": [], @@ -33648,26 +27242,26 @@ }, "parameters": [ { - "name": "buf_c", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int buf_c" + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "e", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33675,16 +27269,16 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "float *e", "components": [ { "model": "CPointer", @@ -33692,9 +27286,9 @@ "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, @@ -33702,32 +27296,27 @@ "callback_policy": null }, { - "name": "data_c", + "name": "i_off", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_c" + "source_text": "int i_off" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int data_c" + "source_text": "int i_off" }, "source_location": null, "callback_policy": null }, { - "name": "data", + "name": "A", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33743,13 +27332,8 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float **data", + "source_text": "float *A", "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, { "model": "CPointer", "qualifiers": [], @@ -33766,31 +27350,16 @@ "callback_policy": null }, { - "name": "d_offset", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int d_offset" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", + "name": "base_n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int base_n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int len" + "source_text": "int base_n" }, "source_location": null, "callback_policy": null @@ -33805,38 +27374,38 @@ "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5270, + "line": 2586, "column": 1, - "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5270, + "line": 2586, "column": 1, - "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + "source_line": "static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5294, + "line": 2627, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_frame_short_interleaved": { - "name": "stb_vorbis_get_frame_short_interleaved", + "inverse_mdct": { + "name": "inverse_mdct", "result_type": { - "model": "CInt", + "model": "CVoid", "qualifiers": [], - "source_text": "int" + "source_text": "void" }, "parameters": [ { - "name": "f", + "name": "buffer", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -33844,14 +27413,16 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "float *buffer", "components": [ { "model": "CPointer", @@ -33859,7 +27430,9 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -33867,26 +27440,26 @@ "callback_policy": null }, { - "name": "num_c", + "name": "n", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int n" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_c" + "source_text": "int n" }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -33894,16 +27467,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -33911,9 +27482,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, @@ -33921,52 +27490,66 @@ "callback_policy": null }, { - "name": "num_shorts", + "name": "blocktype", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_shorts" + "source_text": "int blocktype" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_shorts" + "source_text": "int blocktype" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5296, + "line": 2629, "column": 1, - "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" + "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5296, + "line": 2629, "column": 1, - "source_line": "int stb_vorbis_get_frame_short_interleaved(stb_vorbis *f, int num_c, short *buffer, int num_shorts)" + "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5307, + "line": 2929, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_samples_short_interleaved": { - "name": "stb_vorbis_get_samples_short_interleaved", + "get_window": { + "name": "get_window", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" + "source_text": "float", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "parameters": [ { @@ -33974,7 +27557,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -33982,14 +27565,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -33997,7 +27580,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -34005,26 +27588,62 @@ "callback_policy": null }, { - "name": "channels", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int channels" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int channels" + "source_text": "int len" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 3059, + "column": 1, + "source_line": "static float *get_window(vorb *f, int len)" + }, + "start": { + "filename": "stb/stb_vorbis.c", + "line": 3059, + "column": 1, + "source_line": "static float *get_window(vorb *f, int len)" + }, + "end": { + "filename": "stb/stb_vorbis.c", + "line": 3065, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "do_floor": { + "name": "do_floor", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "buffer", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34032,16 +27651,14 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short *buffer", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34049,9 +27666,7 @@ "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "vorb" } ] }, @@ -34059,60 +27674,11 @@ "callback_policy": null }, { - "name": "num_shorts", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_shorts" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int num_shorts" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5309, - "column": 1, - "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5309, - "column": 1, - "source_line": "int stb_vorbis_get_samples_short_interleaved(stb_vorbis *f, int channels, short *buffer, int num_shorts)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5326, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stb_vorbis_get_samples_short": { - "name": "stb_vorbis_get_samples_short", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "f", + "name": "map", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Mapping *map", "components": [ { "model": "CPointer", @@ -34120,14 +27686,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Mapping" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "Mapping *map", "components": [ { "model": "CPointer", @@ -34135,7 +27701,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "Mapping" } ] }, @@ -34143,63 +27709,103 @@ "callback_policy": null }, { - "name": "channels", + "name": "i", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int channels" + "source_text": "int i" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int channels" + "source_text": "int i" }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "n", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int n" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "target", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "float *target", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *target", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", + "model": "CFloat", "qualifiers": [], - "source_text": "short" + "source_text": "float" } ] }, - "declared_type": { + "source_location": null, + "callback_policy": null + }, + { + "name": "finalY", + "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **buffer", + "source_text": "YTYPE *finalY", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "reference": "YTYPE" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "YTYPE *finalY", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", - "qualifiers": [], - "source_text": "short" + "reference": "YTYPE" } ] }, @@ -34207,48 +27813,70 @@ "callback_policy": null }, { - "name": "len", + "name": "step2_flag", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "uint8 *step2_flag", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "uint8 *step2_flag", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5328, + "line": 3072, "column": 1, - "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5328, + "line": 3072, "column": 1, - "source_line": "int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buffer, int len)" + "source_line": "static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *finalY, uint8 *step2_flag)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5343, + "line": 3108, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_decode_filename": { - "name": "stb_vorbis_decode_filename", + "vorbis_decode_initial": { + "name": "vorbis_decode_initial", "result_type": { "model": "CInt", "qualifiers": [], @@ -34256,11 +27884,11 @@ }, "parameters": [ { - "name": "filename", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34268,18 +27896,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *filename", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34287,11 +27911,7 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "vorb" } ] }, @@ -34299,11 +27919,11 @@ "callback_policy": null }, { - "name": "channels", + "name": "p_left_start", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "int *p_left_start", "components": [ { "model": "CPointer", @@ -34320,7 +27940,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "int *p_left_start", "components": [ { "model": "CPointer", @@ -34338,11 +27958,11 @@ "callback_policy": null }, { - "name": "sample_rate", + "name": "p_left_end", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -34359,7 +27979,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *sample_rate", + "source_text": "int *p_left_end", "components": [ { "model": "CPointer", @@ -34377,48 +27997,116 @@ "callback_policy": null }, { - "name": "output", + "name": "p_right_start", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "int *p_right_start", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_start", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_right_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "int *p_right_end", "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *mode", + "components": [ { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -34426,33 +28114,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5346, + "line": 3124, "column": 1, - "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" + "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5346, + "line": 3124, "column": 1, - "source_line": "int stb_vorbis_decode_filename(const char *filename, int *channels, int *sample_rate, short **output)" + "source_line": "static int vorbis_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5383, + "line": 3178, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_decode_memory": { - "name": "stb_vorbis_decode_memory", + "vorbis_decode_packet_rest": { + "name": "vorbis_decode_packet_rest", "result_type": { "model": "CInt", "qualifiers": [], @@ -34460,11 +28150,11 @@ }, "parameters": [ { - "name": "mem", + "name": "f", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *mem", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34472,14 +28162,14 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const uint8 *mem", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34487,7 +28177,7 @@ "source_text": "" }, { - "reference": "uint8" + "reference": "vorb" } ] }, @@ -34497,24 +28187,48 @@ { "name": "len", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "int *len", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int len" + "source_text": "int *len", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "channels", + "name": "m", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "Mode *m", "components": [ { "model": "CPointer", @@ -34522,16 +28236,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Mode" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *channels", + "source_text": "Mode *m", "components": [ { "model": "CPointer", @@ -34539,9 +28251,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "Mode" } ] }, @@ -34549,50 +28259,71 @@ "callback_policy": null }, { - "name": "sample_rate", + "name": "left_start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left_start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left_start" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "left_end", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left_end" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int left_end" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "right_start", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right_start" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int right_start" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "right_end", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *sample_rate", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int right_end" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "int *sample_rate", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "int right_end" }, "source_location": null, "callback_policy": null }, { - "name": "output", + "name": "p_left", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -34600,21 +28331,16 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "short **output", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -34622,14 +28348,9 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CShort", + "model": "CInt", "qualifiers": [], - "source_text": "short" + "source_text": "int" } ] }, @@ -34637,33 +28358,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5386, + "line": 3180, "column": 1, - "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" + "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5386, + "line": 3180, "column": 1, - "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" + "source_line": "static int vorbis_decode_packet_rest(vorb *f, int *len, Mode *m, int left_start, int left_end, int right_start, int right_end, int *p_left)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5423, + "line": 3447, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_samples_float_interleaved": { - "name": "stb_vorbis_get_samples_float_interleaved", + "vorbis_decode_packet": { + "name": "vorbis_decode_packet", "result_type": { "model": "CInt", "qualifiers": [], @@ -34675,7 +28398,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34683,14 +28406,14 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stb_vorbis *f", + "source_text": "vorb *f", "components": [ { "model": "CPointer", @@ -34698,7 +28421,7 @@ "source_text": "" }, { - "reference": "stb_vorbis" + "reference": "vorb" } ] }, @@ -34706,26 +28429,50 @@ "callback_policy": null }, { - "name": "channels", + "name": "len", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *len", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int channels" + "source_text": "int *len", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "buffer", + "name": "p_left", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -34733,16 +28480,16 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "float *buffer", + "source_text": "int *p_left", "components": [ { "model": "CPointer", @@ -34750,9 +28497,9 @@ "source_text": "" }, { - "model": "CFloat", + "model": "CInt", "qualifiers": [], - "source_text": "float" + "source_text": "int" } ] }, @@ -34760,48 +28507,74 @@ "callback_policy": null }, { - "name": "num_floats", + "name": "p_right", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_floats" + "source_text": "int *p_right", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int num_floats" + "source_text": "int *p_right", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5426, + "line": 3449, "column": 1, - "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" + "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" }, "start": { "filename": "stb/stb_vorbis.c", - "line": 5426, + "line": 3449, "column": 1, - "source_line": "int stb_vorbis_get_samples_float_interleaved(stb_vorbis *f, int channels, float *buffer, int num_floats)" + "source_line": "static int vorbis_decode_packet(vorb *f, int *len, int *p_left, int *p_right)" }, "end": { "filename": "stb/stb_vorbis.c", - "line": 5451, + "line": 3454, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "stb_vorbis_get_samples_float": { - "name": "stb_vorbis_get_samples_float", + "vorbis_finish_frame": { + "name": "vorbis_finish_frame", "result_type": { "model": "CInt", "qualifiers": [], @@ -34834,73 +28607,9 @@ "model": "CPointer", "qualifiers": [], "source_text": "" - }, - { - "reference": "stb_vorbis" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "channels", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int channels" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float **buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float **buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" + }, + { + "reference": "stb_vorbis" } ] }, @@ -34908,2339 +28617,2793 @@ "callback_policy": null }, { - "name": "num_samples", + "name": "len", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int len" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int num_samples" + "source_text": "int len" }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5453, - "column": 1, - "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 5453, - "column": 1, - "source_line": "int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, int num_samples)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 5477, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stb_vorbis": { - "reference": "struct stb_vorbis" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "uint8": { - "reference": "uint8" - }, - "int8": { - "reference": "int8" - }, - "uint16": { - "reference": "uint16" - }, - "int16": { - "reference": "int16" - }, - "uint32": { - "reference": "uint32" - }, - "int32": { - "reference": "int32" - }, - "codetype": { - "reference": "codetype" - }, - "Codebook": { - "reference": "Codebook" - }, - "Floor0": { - "reference": "Floor0" - }, - "Floor1": { - "reference": "Floor1" - }, - "Floor": { - "reference": "Floor" - }, - "Residue": { - "reference": "Residue" - }, - "MappingChannel": { - "reference": "MappingChannel" - }, - "Mapping": { - "reference": "Mapping" - }, - "Mode": { - "reference": "Mode" - }, - "CRCscan": { - "reference": "CRCscan" - }, - "ProbedPage": { - "reference": "ProbedPage" - }, - "vorb": { - "reference": "vorb" - }, - "stbv__floor_ordering": { - "reference": "stbv__floor_ordering" - }, - "mdct_lookup": { - "reference": "mdct_lookup" - }, - "YTYPE": { - "reference": "YTYPE" - }, - "float_conv": { - "reference": "float_conv" - }, - "stb_vorbis_float_size_test": { - "reference": "stb_vorbis_float_size_test" - } - }, - "variables": { - "crc_table": { - "name": "crc_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static uint32 crc_table[256]", - "components": [ - { - "model": "CArray", + }, + { + "name": "left", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int left" }, - { - "reference": "uint32" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 991, - "column": 1, - "source_line": "static uint32 crc_table[256];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "ogg_page_header": { - "name": "ogg_page_header", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static uint8 ogg_page_header[4]", - "components": [ - { - "model": "CArray", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int left" }, - { - "reference": "uint8" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0x4f, 0x67, 0x67, 0x53 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1429, - "column": 1, - "source_line": "static uint8 ogg_page_header[4] = { 0x4f, 0x67, 0x67, 0x53 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "inverse_db_table": { - "name": "inverse_db_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float inverse_db_table[256]", - "components": [ - { - "model": "CArray", + "source_location": null, + "callback_policy": null + }, + { + "name": "right", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "", - "bound": "256", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "int right" }, - { - "model": "CFloat", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "float" - } - ] - }, + "source_text": "int right" + }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n 1.0649863e-07f, 1.1341951e-07f, 1.2079015e-07f, 1.2863978e-07f,\n 1.3699951e-07f, 1.4590251e-07f, 1.5538408e-07f, 1.6548181e-07f,\n 1.7623575e-07f, 1.8768855e-07f, 1.9988561e-07f, 2.1287530e-07f,\n 2.2670913e-07f, 2.4144197e-07f, 2.5713223e-07f, 2.7384213e-07f,\n 2.9163793e-07f, 3.1059021e-07f, 3.3077411e-07f, 3.5226968e-07f,\n 3.7516214e-07f, 3.9954229e-07f, 4.2550680e-07f, 4.5315863e-07f,\n 4.8260743e-07f, 5.1396998e-07f, 5.4737065e-07f, 5.8294187e-07f,\n 6.2082472e-07f, 6.6116941e-07f, 7.0413592e-07f, 7.4989464e-07f,\n 7.9862701e-07f, 8.5052630e-07f, 9.0579828e-07f, 9.6466216e-07f,\n 1.0273513e-06f, 1.0941144e-06f, 1.1652161e-06f, 1.2409384e-06f,\n 1.3215816e-06f, 1.4074654e-06f, 1.4989305e-06f, 1.5963394e-06f,\n 1.7000785e-06f, 1.8105592e-06f, 1.9282195e-06f, 2.0535261e-06f,\n 2.1869758e-06f, 2.3290978e-06f, 2.4804557e-06f, 2.6416497e-06f,\n 2.8133190e-06f, 2.9961443e-06f, 3.1908506e-06f, 3.3982101e-06f,\n 3.6190449e-06f, 3.8542308e-06f, 4.1047004e-06f, 4.3714470e-06f,\n 4.6555282e-06f, 4.9580707e-06f, 5.2802740e-06f, 5.6234160e-06f,\n 5.9888572e-06f, 6.3780469e-06f, 6.7925283e-06f, 7.2339451e-06f,\n 7.7040476e-06f, 8.2047000e-06f, 8.7378876e-06f, 9.3057248e-06f,\n 9.9104632e-06f, 1.0554501e-05f, 1.1240392e-05f, 1.1970856e-05f,\n 1.2748789e-05f, 1.3577278e-05f, 1.4459606e-05f, 1.5399272e-05f,\n 1.6400004e-05f, 1.7465768e-05f, 1.8600792e-05f, 1.9809576e-05f,\n 2.1096914e-05f, 2.2467911e-05f, 2.3928002e-05f, 2.5482978e-05f,\n 2.7139006e-05f, 2.8902651e-05f, 3.0780908e-05f, 3.2781225e-05f,\n 3.4911534e-05f, 3.7180282e-05f, 3.9596466e-05f, 4.2169667e-05f,\n 4.4910090e-05f, 4.7828601e-05f, 5.0936773e-05f, 5.4246931e-05f,\n 5.7772202e-05f, 6.1526565e-05f, 6.5524908e-05f, 6.9783085e-05f,\n 7.4317983e-05f, 7.9147585e-05f, 8.4291040e-05f, 8.9768747e-05f,\n 9.5602426e-05f, 0.00010181521f, 0.00010843174f, 0.00011547824f,\n 0.00012298267f, 0.00013097477f, 0.00013948625f, 0.00014855085f,\n 0.00015820453f, 0.00016848555f, 0.00017943469f, 0.00019109536f,\n 0.00020351382f, 0.00021673929f, 0.00023082423f, 0.00024582449f,\n 0.00026179955f, 0.00027881276f, 0.00029693158f, 0.00031622787f,\n 0.00033677814f, 0.00035866388f, 0.00038197188f, 0.00040679456f,\n 0.00043323036f, 0.00046138411f, 0.00049136745f, 0.00052329927f,\n 0.00055730621f, 0.00059352311f, 0.00063209358f, 0.00067317058f,\n 0.00071691700f, 0.00076350630f, 0.00081312324f, 0.00086596457f,\n 0.00092223983f, 0.00098217216f, 0.0010459992f, 0.0011139742f,\n 0.0011863665f, 0.0012634633f, 0.0013455702f, 0.0014330129f,\n 0.0015261382f, 0.0016253153f, 0.0017309374f, 0.0018434235f,\n 0.0019632195f, 0.0020908006f, 0.0022266726f, 0.0023713743f,\n 0.0025254795f, 0.0026895994f, 0.0028643847f, 0.0030505286f,\n 0.0032487691f, 0.0034598925f, 0.0036847358f, 0.0039241906f,\n 0.0041792066f, 0.0044507950f, 0.0047400328f, 0.0050480668f,\n 0.0053761186f, 0.0057254891f, 0.0060975636f, 0.0064938176f,\n 0.0069158225f, 0.0073652516f, 0.0078438871f, 0.0083536271f,\n 0.0088964928f, 0.009474637f, 0.010090352f, 0.010746080f,\n 0.011444421f, 0.012188144f, 0.012980198f, 0.013823725f,\n 0.014722068f, 0.015678791f, 0.016697687f, 0.017782797f,\n 0.018938423f, 0.020169149f, 0.021479854f, 0.022875735f,\n 0.024362330f, 0.025945531f, 0.027631618f, 0.029427276f,\n 0.031339626f, 0.033376252f, 0.035545228f, 0.037855157f,\n 0.040315199f, 0.042935108f, 0.045725273f, 0.048696758f,\n 0.051861348f, 0.055231591f, 0.058820850f, 0.062643361f,\n 0.066714279f, 0.071049749f, 0.075666962f, 0.080584227f,\n 0.085821044f, 0.091398179f, 0.097337747f, 0.10366330f,\n 0.11039993f, 0.11757434f, 0.12521498f, 0.13335215f,\n 0.14201813f, 0.15124727f, 0.16107617f, 0.17154380f,\n 0.18269168f, 0.19456402f, 0.20720788f, 0.22067342f,\n 0.23501402f, 0.25028656f, 0.26655159f, 0.28387361f,\n 0.30232132f, 0.32196786f, 0.34289114f, 0.36517414f,\n 0.38890521f, 0.41417847f, 0.44109412f, 0.46975890f,\n 0.50028648f, 0.53279791f, 0.56742212f, 0.60429640f,\n 0.64356699f, 0.68538959f, 0.72993007f, 0.77736504f,\n 0.82788260f, 0.88168307f, 0.9389798f, 1.0f\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1946, - "column": 1, - "source_line": "static float inverse_db_table[256] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "integer_divide_table": { - "name": "integer_divide_table", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "int8 integer_divide_table[DIVTAB_NUMER][DIVTAB_DENOM]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "DIVTAB_NUMER", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "DIVTAB_DENOM", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "int8" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2031, + "line": 3456, "column": 1, - "source_line": "int8 integer_divide_table[DIVTAB_NUMER][DIVTAB_DENOM]; // 2KB" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "M1": { - "name": "M1", - "type": { - "reference": "mdct_lookup" + "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { + "start": { "filename": "stb/stb_vorbis.c", - "line": 2386, + "line": 3456, "column": 1, - "source_line": "mdct_lookup M1,M2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "M2": { - "name": "M2", - "type": { - "reference": "mdct_lookup" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { + "source_line": "static int vorbis_finish_frame(stb_vorbis *f, int len, int left, int right)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 2386, + "line": 3507, "column": 1, - "source_line": "mdct_lookup M1,M2;" + "source_line": "}" }, - "callback_policy": null, "declaration_locations": [] }, - "channel_position": { - "name": "channel_position", - "type": { - "model": "CComposedType", + "vorbis_pump_first_frame": { + "name": "vorbis_pump_first_frame", + "result_type": { + "model": "CInt", "qualifiers": [], - "source_text": "static int8 channel_position[7][6]", - "components": [ - { - "model": "CArray", + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "7", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, - { - "model": "CArray", + "declared_type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] }, - { - "reference": "int8" - } - ] - }, + "source_location": null, + "callback_policy": null + } + ], "storage": [ "static" ], - "initializer": { - "source_text": "{\n { 0 },\n { C },\n { L, R },\n { L, C, R },\n { L, R, L, R },\n { L, C, R, L, R },\n { L, C, R, L, R, C },\n}" - }, - "bit_width": null, + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5135, + "line": 3509, "column": 1, - "source_line": "static int8 channel_position[7][6] =" + "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" }, - "callback_policy": null, - "declaration_locations": [] - } - }, - "macros": { - "STB_VORBIS_INCLUDE_STB_VORBIS_H": { - "name": "STB_VORBIS_INCLUDE_STB_VORBIS_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "start": { "filename": "stb/stb_vorbis.c", - "line": 75, + "line": 3509, "column": 1, - "source_line": "#define STB_VORBIS_INCLUDE_STB_VORBIS_H" - } - }, - "STB_VORBIS_NO_STDIO": { - "name": "STB_VORBIS_NO_STDIO", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 558, - "column": 4, - "source_line": " #define STB_VORBIS_NO_STDIO 1" - } - }, - "STB_VORBIS_MAX_CHANNELS": { - "name": "STB_VORBIS_MAX_CHANNELS", - "value": "16", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int vorbis_pump_first_frame(stb_vorbis *f)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 461, + "line": 3516, "column": 1, - "source_line": "#define STB_VORBIS_MAX_CHANNELS 16 // enough for anyone?" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "STB_VORBIS_PUSHDATA_CRC_COUNT": { - "name": "STB_VORBIS_PUSHDATA_CRC_COUNT", - "value": "4", - "function_like": false, - "directive": "define", + "is_whole_packet_present": { + "name": "is_whole_packet_present", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 477, + "line": 3519, "column": 1, - "source_line": "#define STB_VORBIS_PUSHDATA_CRC_COUNT 4" - } - }, - "STB_VORBIS_FAST_HUFFMAN_LENGTH": { - "name": "STB_VORBIS_FAST_HUFFMAN_LENGTH", - "value": "10", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int is_whole_packet_present(stb_vorbis *f)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 486, + "line": 3519, "column": 1, - "source_line": "#define STB_VORBIS_FAST_HUFFMAN_LENGTH 10" - } - }, - "STB_VORBIS_FAST_HUFFMAN_SHORT": { - "name": "STB_VORBIS_FAST_HUFFMAN_SHORT", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int is_whole_packet_present(stb_vorbis *f)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 500, + "line": 3577, "column": 1, - "source_line": "#define STB_VORBIS_FAST_HUFFMAN_SHORT" - } - }, - "STB_VORBIS_NO_INTEGER_CONVERSION": { - "name": "STB_VORBIS_NO_INTEGER_CONVERSION", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 553, - "column": 4, - "source_line": " #define STB_VORBIS_NO_INTEGER_CONVERSION" - } - }, - "STB_VORBIS_ENDIAN": { - "name": "STB_VORBIS_ENDIAN", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 570, - "column": 6, - "source_line": " #define STB_VORBIS_ENDIAN 1" - } - }, - "NULL": { - "name": "NULL", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 595, - "column": 4, - "source_line": " #define NULL 0" - } - }, - "malloc": { - "name": "malloc", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 596, - "column": 4, - "source_line": " #define malloc(s) 0" - } - }, - "free": { - "name": "free", - "value": "((void) 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 597, - "column": 4, - "source_line": " #define free(s) ((void) 0)" - } - }, - "realloc": { - "name": "realloc", - "value": "0", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 598, - "column": 4, - "source_line": " #define realloc(s) 0" - } - }, - "__forceinline": { - "name": "__forceinline", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 620, - "column": 7, - "source_line": " #define __forceinline" - } - }, - "alloca": { - "name": "alloca", - "value": "__builtin_alloca", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 614, - "column": 4, - "source_line": " #define alloca __builtin_alloca" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "CHECK": { - "name": "CHECK", - "value": "((void) 0)", - "function_like": true, - "directive": "define", + "start_decoder": { + "name": "start_decoder", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 637, + "line": 3580, "column": 1, - "source_line": "#define CHECK(f) ((void) 0)" - } - }, - "MAX_BLOCKSIZE_LOG": { - "name": "MAX_BLOCKSIZE_LOG", - "value": "13", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int start_decoder(vorb *f)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 640, + "line": 3580, "column": 1, - "source_line": "#define MAX_BLOCKSIZE_LOG 13 // from specification" - } - }, - "MAX_BLOCKSIZE": { - "name": "MAX_BLOCKSIZE", - "value": "(1 << MAX_BLOCKSIZE_LOG)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int start_decoder(vorb *f)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 641, + "line": 4206, "column": 1, - "source_line": "#define MAX_BLOCKSIZE (1 << MAX_BLOCKSIZE_LOG)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "TRUE": { - "name": "TRUE", - "value": "1", - "function_like": false, - "directive": "define", + "vorbis_deinit": { + "name": "vorbis_deinit", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 652, + "line": 4208, "column": 1, - "source_line": "#define TRUE 1" - } - }, - "FALSE": { - "name": "FALSE", - "value": "0", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void vorbis_deinit(stb_vorbis *p)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 653, + "line": 4208, "column": 1, - "source_line": "#define FALSE 0" - } - }, - "STBV_NOTUSED": { - "name": "STBV_NOTUSED", - "value": "(void)sizeof(v)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void vorbis_deinit(stb_vorbis *p)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 661, + "line": 4269, "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)sizeof(v)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "FAST_HUFFMAN_TABLE_SIZE": { - "name": "FAST_HUFFMAN_TABLE_SIZE", - "value": "(1 << STB_VORBIS_FAST_HUFFMAN_LENGTH)", - "function_like": false, - "directive": "define", + "vorbis_init": { + "name": "vorbis_init", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "p", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *p", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_vorbis_alloc *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const stb_vorbis_alloc *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis_alloc" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 677, + "line": 4278, "column": 1, - "source_line": "#define FAST_HUFFMAN_TABLE_SIZE (1 << STB_VORBIS_FAST_HUFFMAN_LENGTH)" - } - }, - "FAST_HUFFMAN_TABLE_MASK": { - "name": "FAST_HUFFMAN_TABLE_MASK", - "value": "(FAST_HUFFMAN_TABLE_SIZE - 1)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 678, + "line": 4278, "column": 1, - "source_line": "#define FAST_HUFFMAN_TABLE_MASK (FAST_HUFFMAN_TABLE_SIZE - 1)" - } - }, - "IS_PUSH_MODE": { - "name": "IS_PUSH_MODE", - "value": "((f)->push_mode)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 908, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) ((f)->push_mode)" - } - }, - "array_size_required": { - "name": "array_size_required", - "value": "(count*(sizeof(void *)+(size)))", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static void vorbis_init(stb_vorbis *p, const stb_vorbis_alloc *z)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 928, + "line": 4295, "column": 1, - "source_line": "#define array_size_required(count,size) (count*(sizeof(void *)+(size)))" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "temp_alloc": { - "name": "temp_alloc", - "value": "(f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))", - "function_like": true, - "directive": "define", + "vorbis_alloc": { + "name": "vorbis_alloc", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 930, + "line": 4333, "column": 1, - "source_line": "#define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))" - } - }, - "temp_free": { - "name": "temp_free", - "value": "(void)0", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 931, + "line": 4333, "column": 1, - "source_line": "#define temp_free(f,p) (void)0" - } - }, - "temp_alloc_save": { - "name": "temp_alloc_save", - "value": "((f)->temp_offset)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static stb_vorbis * vorbis_alloc(stb_vorbis *f)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 932, + "line": 4337, "column": 1, - "source_line": "#define temp_alloc_save(f) ((f)->temp_offset)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "temp_alloc_restore": { - "name": "temp_alloc_restore", - "value": "((f)->temp_offset = (p))", - "function_like": true, - "directive": "define", + "vorbis_search_for_page_pushdata": { + "name": "vorbis_search_for_page_pushdata", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint8 *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint8 *data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint8" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 933, + "line": 4353, "column": 1, - "source_line": "#define temp_alloc_restore(f,p) ((f)->temp_offset = (p))" - } - }, - "temp_block_array": { - "name": "temp_block_array", - "value": "make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 935, + "line": 4353, "column": 1, - "source_line": "#define temp_block_array(f,count,size) make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)" - } - }, - "CRC32_POLY": { - "name": "CRC32_POLY", - "value": "0x04c11db7", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int vorbis_search_for_page_pushdata(vorb *f, uint8 *data, int data_len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 989, + "line": 4441, "column": 1, - "source_line": "#define CRC32_POLY 0x04c11db7 // from spec" - } - }, - "M_PI": { - "name": "M_PI", - "value": "3.14159265358979323846264f", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1046, - "column": 3, - "source_line": " #define M_PI 3.14159265358979323846264f // from CRC" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "NO_CODE": { - "name": "NO_CODE", - "value": "255", - "function_like": false, - "directive": "define", + "vorbis_find_page": { + "name": "vorbis_find_page", + "result_type": { + "reference": "uint32" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint32 *end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint32 *end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "last", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint32 *last", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "uint32 *last", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "uint32" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1050, + "line": 4561, "column": 1, - "source_line": "#define NO_CODE 255" - } - }, - "STBV_CDECL": { - "name": "STBV_CDECL", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 1159, + "line": 4561, "column": 1, - "source_line": "#define STBV_CDECL" - } - }, - "USE_MEMORY": { - "name": "USE_MEMORY", - "value": "((z)->stream)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1334, - "column": 4, - "source_line": " #define USE_MEMORY(z) ((z)->stream)" - } - }, - "PAGEFLAG_continued_packet": { - "name": "PAGEFLAG_continued_packet", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static uint32 vorbis_find_page(stb_vorbis *f, uint32 *end, uint32 *last)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 1440, + "line": 4629, "column": 1, - "source_line": "#define PAGEFLAG_continued_packet 1" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "PAGEFLAG_first_page": { - "name": "PAGEFLAG_first_page", - "value": "2", - "function_like": false, - "directive": "define", + "get_seek_page_info": { + "name": "get_seek_page_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ProbedPage *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "ProbedPage" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "ProbedPage *z", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "ProbedPage" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1441, + "line": 4643, "column": 1, - "source_line": "#define PAGEFLAG_first_page 2" - } - }, - "PAGEFLAG_last_page": { - "name": "PAGEFLAG_last_page", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 1442, + "line": 4643, "column": 1, - "source_line": "#define PAGEFLAG_last_page 4" - } - }, - "EOP": { - "name": "EOP", - "value": "(-1)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int get_seek_page_info(stb_vorbis *f, ProbedPage *z)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 1560, + "line": 4671, "column": 1, - "source_line": "#define EOP (-1)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "INVALID_BITS": { - "name": "INVALID_BITS", - "value": "(-1)", - "function_like": false, - "directive": "define", + "go_to_page_before": { + "name": "go_to_page_before", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "limit_offset", + "type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int limit_offset" + }, + "declared_type": { + "model": "CUnsignedInt", + "qualifiers": [], + "source_text": "unsigned int limit_offset" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1561, + "line": 4675, "column": 1, - "source_line": "#define INVALID_BITS (-1)" - } - }, - "DECODE_RAW": { - "name": "DECODE_RAW", - "value": "var = codebook_decode_scalar(f,c);", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 1750, + "line": 4675, "column": 1, - "source_line": "#define DECODE_RAW(var,f,c) var = codebook_decode_scalar(f,c);" - } - }, - "DECODE": { - "name": "DECODE", - "value": "DECODE_RAW(var,f,c) if (c->sparse) var = c->sorted_values[var];", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int go_to_page_before(stb_vorbis *f, unsigned int limit_offset)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 1754, + "line": 4694, "column": 1, - "source_line": "#define DECODE(var,f,c) \\" - } - }, - "DECODE_VQ": { - "name": "DECODE_VQ", - "value": "DECODE(var,f,c)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 1761, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE(var,f,c)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "CODEBOOK_ELEMENT": { - "name": "CODEBOOK_ELEMENT", - "value": "(c->multiplicands[off])", - "function_like": true, - "directive": "define", + "seek_to_sample_coarse": { + "name": "seek_to_sample_coarse", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stb_vorbis *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stb_vorbis" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "sample_number", + "type": { + "reference": "uint32" + }, + "declared_type": { + "reference": "uint32" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1771, + "line": 4700, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT(c,off) (c->multiplicands[off])" - } - }, - "CODEBOOK_ELEMENT_FAST": { - "name": "CODEBOOK_ELEMENT_FAST", - "value": "(c->multiplicands[off])", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 1772, + "line": 4700, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off])" - } - }, - "CODEBOOK_ELEMENT_BASE": { - "name": "CODEBOOK_ELEMENT_BASE", - "value": "(0)", - "function_like": true, - "directive": "define", - "source_location": { + "source_line": "static int seek_to_sample_coarse(stb_vorbis *f, uint32 sample_number)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 1773, + "line": 4852, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_BASE(c) (0)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "LINE_OP": { - "name": "LINE_OP", - "value": "a = b", - "function_like": true, - "directive": "define", + "peek_decode_initial": { + "name": "peek_decode_initial", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "f", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "vorb *f", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "vorb" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_left_start", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_left_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_left_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_right_start", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "p_right_end", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *p_right_end", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mode", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *mode", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2025, + "line": 4855, "column": 1, - "source_line": "#define LINE_OP(a,b) a = b" - } - }, - "DIVTAB_NUMER": { - "name": "DIVTAB_NUMER", - "value": "32", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 2029, + "line": 4855, "column": 1, - "source_line": "#define DIVTAB_NUMER 32" - } - }, - "DIVTAB_DENOM": { - "name": "DIVTAB_DENOM", - "value": "64", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static int peek_decode_initial(vorb *f, int *p_left_start, int *p_left_end, int *p_right_start, int *p_right_end, int *mode)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 2030, + "line": 4878, "column": 1, - "source_line": "#define DIVTAB_DENOM 64" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "LIBVORBIS_MDCT": { - "name": "LIBVORBIS_MDCT", - "value": "0", - "function_like": false, - "directive": "define", + "copy_samples": { + "name": "copy_samples", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "dest", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *dest", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "src", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *src", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2365, + "line": 5165, "column": 1, - "source_line": "#define LIBVORBIS_MDCT 0" - } - }, - "SAMPLE_unknown": { - "name": "SAMPLE_unknown", - "value": "0xffffffff", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void copy_samples(short *dest, float *src, int len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 4632, + "line": 5165, "column": 1, - "source_line": "#define SAMPLE_unknown 0xffffffff" - } - }, - "PLAYBACK_MONO": { - "name": "PLAYBACK_MONO", - "value": "1", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void copy_samples(short *dest, float *src, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 5127, + "line": 5176, "column": 1, - "source_line": "#define PLAYBACK_MONO 1" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "PLAYBACK_LEFT": { - "name": "PLAYBACK_LEFT", - "value": "2", - "function_like": false, - "directive": "define", + "compute_samples": { + "name": "compute_samples", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mask", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mask" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mask" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5128, + "line": 5178, "column": 1, - "source_line": "#define PLAYBACK_LEFT 2" - } - }, - "PLAYBACK_RIGHT": { - "name": "PLAYBACK_RIGHT", - "value": "4", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 5129, + "line": 5178, "column": 1, - "source_line": "#define PLAYBACK_RIGHT 4" - } - }, - "L": { - "name": "L", - "value": "(PLAYBACK_LEFT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void compute_samples(int mask, short *output, int num_c, float **data, int d_offset, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 5131, + "line": 5202, "column": 1, - "source_line": "#define L (PLAYBACK_LEFT | PLAYBACK_MONO)" - } + "source_line": "}" + }, + "declaration_locations": [] }, - "C": { - "name": "C", - "value": "(PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", + "compute_stereo_samples": { + "name": "compute_stereo_samples", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "output", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *output", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "num_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int num_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 5132, + "line": 5204, "column": 1, - "source_line": "#define C (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO)" - } - }, - "R": { - "name": "R", - "value": "(PLAYBACK_RIGHT | PLAYBACK_MONO)", - "function_like": false, - "directive": "define", - "source_location": { + "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 5133, + "line": 5204, "column": 1, - "source_line": "#define R (PLAYBACK_RIGHT | PLAYBACK_MONO)" - } - }, - "FASTDEF": { - "name": "FASTDEF", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5162, - "column": 4, - "source_line": " #define FASTDEF(x)" - } - }, - "MAGIC": { - "name": "MAGIC", - "value": "(1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5155, - "column": 4, - "source_line": " #define MAGIC(SHIFT) (1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))" - } - }, - "ADDEND": { - "name": "ADDEND", - "value": "(((150-SHIFT) << 23) + (1 << 22))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5156, - "column": 4, - "source_line": " #define ADDEND(SHIFT) (((150-SHIFT) << 23) + (1 << 22))" - } - }, - "FAST_SCALED_FLOAT_TO_INT": { - "name": "FAST_SCALED_FLOAT_TO_INT", - "value": "((int) ((x) * (1 << (s))))", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5160, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) ((int) ((x) * (1 << (s))))" - } - }, - "check_endianness": { - "name": "check_endianness", - "value": null, - "function_like": true, - "directive": "define", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5161, - "column": 4, - "source_line": " #define check_endianness()" - } - }, - "STB_BUFFER_SIZE": { - "name": "STB_BUFFER_SIZE", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 5241, - "column": 4, - "source_line": " #undef STB_BUFFER_SIZE" - } - } - }, - "includes": { - "stb/stb_vorbis.c:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void compute_stereo_samples(short *output, int num_c, float **data, int d_offset, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 578, + "line": 5242, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_vorbis.c:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 582, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_vorbis.c:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 583, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_vorbis.c:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 584, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_vorbis.c:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 585, - "column": 4, - "source_line": " #include " - } - }, - "stb/stb_vorbis.c:malloc.h": { - "target": "malloc.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 589, - "column": 7, - "source_line": " #include " - } + "source_line": "}" + }, + "declaration_locations": [] }, - "stb/stb_vorbis.c:alloca.h": { - "target": "alloca.h", - "kind": "system", - "resolved_path": null, + "convert_samples_short": { + "name": "convert_samples_short", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "buf_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short **buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short **buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int b_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "samples", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int samples" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int samples" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 592, - "column": 7, - "source_line": " #include " - } - }, - "stb/stb_vorbis.c:limits.h": { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "line": 5244, + "column": 1, + "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 601, + "line": 5244, "column": 1, - "source_line": "#include " - } - }, - "stb/stb_vorbis.c:crtdbg.h": { - "target": "crtdbg.h", - "kind": "system", - "resolved_path": null, - "source_location": { + "source_line": "static void convert_samples_short(int buf_c, short **buffer, int b_offset, int data_c, float **data, int d_offset, int samples)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 634, + "line": 5258, "column": 1, - "source_line": "#include " - } - } - }, - "functions_by_file": { - "stb/stb_vorbis.c": [ - "error", - "make_block_array", - "setup_malloc", - "setup_free", - "setup_temp_malloc", - "setup_temp_free", - "crc32_init", - "bit_reverse", - "square", - "ilog", - "float32_unpack", - "add_entry", - "compute_codewords", - "compute_accelerated_huffman", - "include_in_sort", - "compute_sorted_huffman", - "vorbis_validate", - "lookup1_values", - "compute_twiddle_factors", - "compute_window", - "compute_bitreverse", - "init_blocksize", - "neighbors", - "get8", - "get32", - "getn", - "skip", - "set_file_offset", - "capture_pattern", - "start_page_no_capturepattern", - "start_page", - "start_packet", - "maybe_start_packet", - "next_segment", - "get8_packet_raw", - "get8_packet", - "get32_packet", - "flush_packet", - "get_bits", - "codebook_decode_scalar_raw", - "codebook_decode_scalar", - "codebook_decode_start", - "codebook_decode", - "codebook_decode_step", - "codebook_decode_deinterleave_repeat", - "predict_point", - "residue_decode", - "decode_residue", - "inverse_mdct_slow", - "inverse_mdct_slow", - "dct_iv_slow", - "inverse_mdct_slow", - "mdct_init", - "mdct_clear", - "mdct_backward", - "inverse_mdct", - "imdct_step3_iter0_loop", - "imdct_step3_inner_r_loop", - "imdct_step3_inner_s_loop", - "imdct_step3_inner_s_loop_ld654", - "inverse_mdct_naive", - "get_window", - "do_floor", - "vorbis_decode_initial", - "vorbis_decode_packet_rest", - "vorbis_decode_packet", - "vorbis_finish_frame", - "vorbis_pump_first_frame", - "is_whole_packet_present", - "start_decoder", - "vorbis_deinit", - "stb_vorbis_close", - "vorbis_init", - "stb_vorbis_get_sample_offset", - "stb_vorbis_get_info", - "stb_vorbis_get_comment", - "stb_vorbis_get_error", - "vorbis_alloc", - "stb_vorbis_flush_pushdata", - "vorbis_search_for_page_pushdata", - "stb_vorbis_decode_frame_pushdata", - "stb_vorbis_open_pushdata", - "stb_vorbis_get_file_offset", - "vorbis_find_page", - "get_seek_page_info", - "go_to_page_before", - "seek_to_sample_coarse", - "peek_decode_initial", - "stb_vorbis_seek_frame", - "stb_vorbis_seek", - "stb_vorbis_seek_start", - "stb_vorbis_stream_length_in_samples", - "stb_vorbis_stream_length_in_seconds", - "stb_vorbis_get_frame_float", - "stb_vorbis_open_file_section", - "stb_vorbis_open_file", - "stb_vorbis_open_filename", - "stb_vorbis_open_memory", - "copy_samples", - "compute_samples", - "compute_stereo_samples", - "convert_samples_short", - "stb_vorbis_get_frame_short", - "convert_channels_short_interleaved", - "stb_vorbis_get_frame_short_interleaved", - "stb_vorbis_get_samples_short_interleaved", - "stb_vorbis_get_samples_short", - "stb_vorbis_decode_filename", - "stb_vorbis_decode_memory", - "stb_vorbis_get_samples_float_interleaved", - "stb_vorbis_get_samples_float" - ] - }, - "enum_constants": { - "VORBIS_packet_id": { - "name": "VORBIS_packet_id", - "value": "1", + "source_line": "}" + }, + "declaration_locations": [] + }, + "convert_channels_short_interleaved": { + "name": "convert_channels_short_interleaved", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "buf_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int buf_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "short *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CShort", + "qualifiers": [], + "source_text": "short" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data_c", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int data_c" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "data", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float **data", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "d_offset", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int d_offset" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1649, + "line": 5270, "column": 1, - "source_line": "enum" - } - }, - "VORBIS_packet_comment": { - "name": "VORBIS_packet_comment", - "value": "3", - "source_location": { + "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + }, + "start": { "filename": "stb/stb_vorbis.c", - "line": 1649, + "line": 5270, "column": 1, - "source_line": "enum" - } - }, - "VORBIS_packet_setup": { - "name": "VORBIS_packet_setup", - "value": "5", - "source_location": { + "source_line": "static void convert_channels_short_interleaved(int buf_c, short *buffer, int data_c, float **data, int d_offset, int len)" + }, + "end": { "filename": "stb/stb_vorbis.c", - "line": 1649, + "line": 5294, "column": 1, - "source_line": "enum" - } + "source_line": "}" + }, + "declaration_locations": [] } }, - "include_graph": { - "stb/stb_vorbis.c": [] - }, - "system_includes": { - "stb/stb_vorbis.c": [ - "alloca.h", - "assert.h", - "crtdbg.h", - "limits.h", - "malloc.h", - "math.h", - "stdio.h", - "stdlib.h", - "string.h" - ] - }, - "unresolved_includes": { - "stb/stb_vorbis.c": [] + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": { + "int8": { + "reference": "int8" + }, + "stbv__floor_ordering": { + "reference": "stbv__floor_ordering" + }, + "float_conv": { + "reference": "float_conv" + }, + "stb_vorbis_float_size_test": { + "reference": "stb_vorbis_float_size_test" + } }, - "header_source_pairs": {}, - "conditional_function_variants": { - "inverse_mdct_slow": [ - { - "name": "inverse_mdct_slow", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "variables": { + "crc_table": { + "name": "crc_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static uint32 crc_table[256]", + "components": [ { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null + "reference": "uint32" } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2289, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2289, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 2309, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b0" ] }, - { - "name": "inverse_mdct_slow", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "storage": [ + "static" + ], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 991, + "column": 1, + "source_line": "static uint32 crc_table[256];" + }, + "callback_policy": null, + "declaration_locations": [] + }, + "ogg_page_header": { + "name": "ogg_page_header", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static uint8 ogg_page_header[4]", + "components": [ { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "4", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null + "reference": "uint8" + } + ] + }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 0x4f, 0x67, 0x67, 0x53 }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1429, + "column": 1, + "source_line": "static uint8 ogg_page_header[4] = { 0x4f, 0x67, 0x67, 0x53 };" + }, + "callback_policy": null, + "declaration_locations": [] + }, + "inverse_db_table": { + "name": "inverse_db_table", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static float inverse_db_table[256]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "256", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "name": "blocktype", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "source_location": null, - "callback_policy": null + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2312, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2312, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 2329, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b1" ] }, - { - "name": "inverse_mdct_slow", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - }, + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ 1.0649863e-07f, 1.1341951e-07f, 1.2079015e-07f, 1.2863978e-07f, 1.3699951e-07f, 1.4590251e-07f, 1.5538408e-07f, 1.6548181e-07f, 1.7623575e-07f, 1.8768855e-07f, 1.9988561e-07f, 2.1287530e-07f, 2.2670913e-07f, 2.4144197e-07f, 2.5713223e-07f, 2.7384213e-07f, 2.9163793e-07f, 3.1059021e-07f, 3.3077411e-07f, 3.5226968e-07f, 3.7516214e-07f, 3.9954229e-07f, 4.2550680e-07f, 4.5315863e-07f, 4.8260743e-07f, 5.1396998e-07f, 5.4737065e-07f, 5.8294187e-07f, 6.2082472e-07f, 6.6116941e-07f, 7.0413592e-07f, 7.4989464e-07f, 7.9862701e-07f, 8.5052630e-07f, 9.0579828e-07f, 9.6466216e-07f, 1.0273513e-06f, 1.0941144e-06f, 1.1652161e-06f, 1.2409384e-06f, 1.3215816e-06f, 1.4074654e-06f, 1.4989305e-06f, 1.5963394e-06f, 1.7000785e-06f, 1.8105592e-06f, 1.9282195e-06f, 2.0535261e-06f, 2.1869758e-06f, 2.3290978e-06f, 2.4804557e-06f, 2.6416497e-06f, 2.8133190e-06f, 2.9961443e-06f, 3.1908506e-06f, 3.3982101e-06f, 3.6190449e-06f, 3.8542308e-06f, 4.1047004e-06f, 4.3714470e-06f, 4.6555282e-06f, 4.9580707e-06f, 5.2802740e-06f, 5.6234160e-06f, 5.9888572e-06f, 6.3780469e-06f, 6.7925283e-06f, 7.2339451e-06f, 7.7040476e-06f, 8.2047000e-06f, 8.7378876e-06f, 9.3057248e-06f, 9.9104632e-06f, 1.0554501e-05f, 1.1240392e-05f, 1.1970856e-05f, 1.2748789e-05f, 1.3577278e-05f, 1.4459606e-05f, 1.5399272e-05f, 1.6400004e-05f, 1.7465768e-05f, 1.8600792e-05f, 1.9809576e-05f, 2.1096914e-05f, 2.2467911e-05f, 2.3928002e-05f, 2.5482978e-05f, 2.7139006e-05f, 2.8902651e-05f, 3.0780908e-05f, 3.2781225e-05f, 3.4911534e-05f, 3.7180282e-05f, 3.9596466e-05f, 4.2169667e-05f, 4.4910090e-05f, 4.7828601e-05f, 5.0936773e-05f, 5.4246931e-05f, 5.7772202e-05f, 6.1526565e-05f, 6.5524908e-05f, 6.9783085e-05f, 7.4317983e-05f, 7.9147585e-05f, 8.4291040e-05f, 8.9768747e-05f, 9.5602426e-05f, 0.00010181521f, 0.00010843174f, 0.00011547824f, 0.00012298267f, 0.00013097477f, 0.00013948625f, 0.00014855085f, 0.00015820453f, 0.00016848555f, 0.00017943469f, 0.00019109536f, 0.00020351382f, 0.00021673929f, 0.00023082423f, 0.00024582449f, 0.00026179955f, 0.00027881276f, 0.00029693158f, 0.00031622787f, 0.00033677814f, 0.00035866388f, 0.00038197188f, 0.00040679456f, 0.00043323036f, 0.00046138411f, 0.00049136745f, 0.00052329927f, 0.00055730621f, 0.00059352311f, 0.00063209358f, 0.00067317058f, 0.00071691700f, 0.00076350630f, 0.00081312324f, 0.00086596457f, 0.00092223983f, 0.00098217216f, 0.0010459992f, 0.0011139742f, 0.0011863665f, 0.0012634633f, 0.0013455702f, 0.0014330129f, 0.0015261382f, 0.0016253153f, 0.0017309374f, 0.0018434235f, 0.0019632195f, 0.0020908006f, 0.0022266726f, 0.0023713743f, 0.0025254795f, 0.0026895994f, 0.0028643847f, 0.0030505286f, 0.0032487691f, 0.0034598925f, 0.0036847358f, 0.0039241906f, 0.0041792066f, 0.0044507950f, 0.0047400328f, 0.0050480668f, 0.0053761186f, 0.0057254891f, 0.0060975636f, 0.0064938176f, 0.0069158225f, 0.0073652516f, 0.0078438871f, 0.0083536271f, 0.0088964928f, 0.009474637f, 0.010090352f, 0.010746080f, 0.011444421f, 0.012188144f, 0.012980198f, 0.013823725f, 0.014722068f, 0.015678791f, 0.016697687f, 0.017782797f, 0.018938423f, 0.020169149f, 0.021479854f, 0.022875735f, 0.024362330f, 0.025945531f, 0.027631618f, 0.029427276f, 0.031339626f, 0.033376252f, 0.035545228f, 0.037855157f, 0.040315199f, 0.042935108f, 0.045725273f, 0.048696758f, 0.051861348f, 0.055231591f, 0.058820850f, 0.062643361f, 0.066714279f, 0.071049749f, 0.075666962f, 0.080584227f, 0.085821044f, 0.091398179f, 0.097337747f, 0.10366330f, 0.11039993f, 0.11757434f, 0.12521498f, 0.13335215f, 0.14201813f, 0.15124727f, 0.16107617f, 0.17154380f, 0.18269168f, 0.19456402f, 0.20720788f, 0.22067342f, 0.23501402f, 0.25028656f, 0.26655159f, 0.28387361f, 0.30232132f, 0.32196786f, 0.34289114f, 0.36517414f, 0.38890521f, 0.41417847f, 0.44109412f, 0.46975890f, 0.50028648f, 0.53279791f, 0.56742212f, 0.60429640f, 0.64356699f, 0.68538959f, 0.72993007f, 0.77736504f, 0.82788260f, 0.88168307f, 0.9389798f, 1.0f }" + }, + "bit_width": null, + "source_location": { + "filename": "stb/stb_vorbis.c", + "line": 1946, + "column": 1, + "source_line": "static float inverse_db_table[256] =" + }, + "callback_policy": null, + "declaration_locations": [] + }, + "channel_position": { + "name": "channel_position", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static int8 channel_position[7][6]", + "components": [ { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "7", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "name": "f", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "vorb *f", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "vorb" - } - ] - }, - "source_location": null, - "callback_policy": null + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "6", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "name": "blocktype", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int blocktype" - }, - "source_location": null, - "callback_policy": null + "reference": "int8" } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_vorbis.c", - "line": 2350, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" - }, - "start": { - "filename": "stb/stb_vorbis.c", - "line": 2350, - "column": 1, - "source_line": "void inverse_mdct_slow(float *buffer, int n, vorb *f, int blocktype)" - }, - "end": { - "filename": "stb/stb_vorbis.c", - "line": 2361, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g13:b0", - "g72:b2" ] - } - ] - }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'malloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 596, - "column": 4, - "source_line": " #define malloc(s) 0" - }, - "unit_kind": "macro", - "unit_name": "malloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'free' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 597, - "column": 4, - "source_line": " #define free(s) ((void) 0)" }, - "unit_kind": "macro", - "unit_name": "free" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'realloc' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 598, - "column": 4, - "source_line": " #define realloc(s) 0" + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ { 0 }, { (2 | 4 | 1) }, { (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1) }, { (2 | 1), (4 | 1), (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1), (2 | 1), (4 | 1) }, { (2 | 1), (2 | 4 | 1), (4 | 1), (2 | 1), (4 | 1), (2 | 4 | 1) }, }" }, - "unit_kind": "macro", - "unit_name": "realloc" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK' is recorded but not expanded.", - "severity": "warning", - "location": { + "bit_width": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 635, + "line": 5135, "column": 1, - "source_line": "#define CHECK(f) _CrtIsValidHeapPointer(f->channel_buffers[1])" + "source_line": "static int8 channel_position[7][6] =" }, - "unit_kind": "macro", - "unit_name": "CHECK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK' is recorded but not expanded.", - "severity": "warning", - "location": { + "callback_policy": null, + "declaration_locations": [] + } + }, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_vorbis.c": [ + "stb_vorbis_get_info", + "stb_vorbis_get_comment", + "stb_vorbis_get_error", + "stb_vorbis_close", + "stb_vorbis_get_sample_offset", + "stb_vorbis_get_file_offset", + "stb_vorbis_open_pushdata", + "stb_vorbis_decode_frame_pushdata", + "stb_vorbis_flush_pushdata", + "stb_vorbis_decode_filename", + "stb_vorbis_decode_memory", + "stb_vorbis_open_memory", + "stb_vorbis_open_filename", + "stb_vorbis_open_file", + "stb_vorbis_open_file_section", + "stb_vorbis_seek_frame", + "stb_vorbis_seek", + "stb_vorbis_seek_start", + "stb_vorbis_stream_length_in_samples", + "stb_vorbis_stream_length_in_seconds", + "stb_vorbis_get_frame_float", + "stb_vorbis_get_frame_short_interleaved", + "stb_vorbis_get_frame_short", + "stb_vorbis_get_samples_float_interleaved", + "stb_vorbis_get_samples_float", + "stb_vorbis_get_samples_short_interleaved", + "stb_vorbis_get_samples_short", + "error", + "make_block_array", + "setup_malloc", + "setup_free", + "setup_temp_malloc", + "setup_temp_free", + "crc32_init", + "crc32_update", + "bit_reverse", + "square", + "ilog", + "float32_unpack", + "add_entry", + "compute_codewords", + "compute_accelerated_huffman", + "uint32_compare", + "include_in_sort", + "compute_sorted_huffman", + "vorbis_validate", + "lookup1_values", + "compute_twiddle_factors", + "compute_window", + "compute_bitreverse", + "init_blocksize", + "neighbors", + "point_compare", + "get8", + "get32", + "getn", + "skip", + "set_file_offset", + "capture_pattern", + "start_page_no_capturepattern", + "start_page", + "start_packet", + "maybe_start_packet", + "next_segment", + "get8_packet_raw", + "get8_packet", + "get32_packet", + "flush_packet", + "get_bits", + "prep_huffman", + "codebook_decode_scalar_raw", + "codebook_decode_start", + "codebook_decode", + "codebook_decode_step", + "codebook_decode_deinterleave_repeat", + "predict_point", + "draw_line", + "residue_decode", + "decode_residue", + "imdct_step3_iter0_loop", + "imdct_step3_inner_r_loop", + "imdct_step3_inner_s_loop", + "iter_54", + "imdct_step3_inner_s_loop_ld654", + "inverse_mdct", + "get_window", + "do_floor", + "vorbis_decode_initial", + "vorbis_decode_packet_rest", + "vorbis_decode_packet", + "vorbis_finish_frame", + "vorbis_pump_first_frame", + "is_whole_packet_present", + "start_decoder", + "vorbis_deinit", + "vorbis_init", + "vorbis_alloc", + "vorbis_search_for_page_pushdata", + "vorbis_find_page", + "get_seek_page_info", + "go_to_page_before", + "seek_to_sample_coarse", + "peek_decode_initial", + "copy_samples", + "compute_samples", + "compute_stereo_samples", + "convert_samples_short", + "convert_channels_short_interleaved" + ] + }, + "enum_constants": { + "VORBIS__no_error": { + "name": "VORBIS__no_error", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 637, + "line": 374, "column": 1, - "source_line": "#define CHECK(f) ((void) 0)" - }, - "unit_kind": "macro", - "unit_name": "CHECK" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBV_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_need_more_data": { + "name": "VORBIS_need_more_data", + "value": "1", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 659, + "line": 374, "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBV_NOTUSED" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBV_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_invalid_api_mixing": { + "name": "VORBIS_invalid_api_mixing", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 661, + "line": 374, "column": 1, - "source_line": "#define STBV_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBV_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 904, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) FALSE" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 906, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) TRUE" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PUSH_MODE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 908, - "column": 4, - "source_line": " #define IS_PUSH_MODE(f) ((f)->push_mode)" - }, - "unit_kind": "macro", - "unit_name": "IS_PUSH_MODE" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'array_size_required' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_outofmem": { + "name": "VORBIS_outofmem", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 928, + "line": 374, "column": 1, - "source_line": "#define array_size_required(count,size) (count*(sizeof(void *)+(size)))" - }, - "unit_kind": "macro", - "unit_name": "array_size_required" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_feature_not_supported": { + "name": "VORBIS_feature_not_supported", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 930, + "line": 374, "column": 1, - "source_line": "#define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_free' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_too_many_channels": { + "name": "VORBIS_too_many_channels", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 931, + "line": 374, "column": 1, - "source_line": "#define temp_free(f,p) (void)0" - }, - "unit_kind": "macro", - "unit_name": "temp_free" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc_save' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_file_open_failure": { + "name": "VORBIS_file_open_failure", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 932, + "line": 374, "column": 1, - "source_line": "#define temp_alloc_save(f) ((f)->temp_offset)" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc_save" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_alloc_restore' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_seek_without_length": { + "name": "VORBIS_seek_without_length", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 933, + "line": 374, "column": 1, - "source_line": "#define temp_alloc_restore(f,p) ((f)->temp_offset = (p))" - }, - "unit_kind": "macro", - "unit_name": "temp_alloc_restore" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'temp_block_array' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_unexpected_eof": { + "name": "VORBIS_unexpected_eof", + "value": "10", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 935, + "line": 374, "column": 1, - "source_line": "#define temp_block_array(f,count,size) make_block_array(temp_alloc(f,array_size_required(count,size)), count, size)" - }, - "unit_kind": "macro", - "unit_name": "temp_block_array" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'USE_MEMORY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1332, - "column": 4, - "source_line": " #define USE_MEMORY(z) TRUE" - }, - "unit_kind": "macro", - "unit_name": "USE_MEMORY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'USE_MEMORY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1334, - "column": 4, - "source_line": " #define USE_MEMORY(z) ((z)->stream)" - }, - "unit_kind": "macro", - "unit_name": "USE_MEMORY" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_RAW' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_seek_invalid": { + "name": "VORBIS_seek_invalid", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1717, + "line": 374, "column": 1, - "source_line": "#define DECODE_RAW(var, f,c) \\" - }, - "unit_kind": "macro", - "unit_name": "DECODE_RAW" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_RAW' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_invalid_setup": { + "name": "VORBIS_invalid_setup", + "value": "20", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1750, + "line": 374, "column": 1, - "source_line": "#define DECODE_RAW(var,f,c) var = codebook_decode_scalar(f,c);" - }, - "unit_kind": "macro", - "unit_name": "DECODE_RAW" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_invalid_stream": { + "name": "VORBIS_invalid_stream", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1754, + "line": 374, "column": 1, - "source_line": "#define DECODE(var,f,c) \\" - }, - "unit_kind": "macro", - "unit_name": "DECODE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_VQ' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1759, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE_RAW(var,f,c)" - }, - "unit_kind": "macro", - "unit_name": "DECODE_VQ" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'DECODE_VQ' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 1761, - "column": 3, - "source_line": " #define DECODE_VQ(var,f,c) DECODE(var,f,c)" - }, - "unit_kind": "macro", - "unit_name": "DECODE_VQ" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_missing_capture_pattern": { + "name": "VORBIS_missing_capture_pattern", + "value": "30", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1771, + "line": 374, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT(c,off) (c->multiplicands[off])" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT_FAST' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_invalid_stream_structure_version": { + "name": "VORBIS_invalid_stream_structure_version", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1772, + "line": 374, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off])" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT_FAST" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CODEBOOK_ELEMENT_BASE' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_continued_packet_flag_invalid": { + "name": "VORBIS_continued_packet_flag_invalid", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1773, + "line": 374, "column": 1, - "source_line": "#define CODEBOOK_ELEMENT_BASE(c) (0)" - }, - "unit_kind": "macro", - "unit_name": "CODEBOOK_ELEMENT_BASE" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINE_OP' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_incorrect_stream_serial_number": { + "name": "VORBIS_incorrect_stream_serial_number", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2023, + "line": 374, "column": 1, - "source_line": "#define LINE_OP(a,b) a *= b" - }, - "unit_kind": "macro", - "unit_name": "LINE_OP" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'LINE_OP' is recorded but not expanded.", - "severity": "warning", - "location": { + "VORBIS_invalid_first_page": { + "name": "VORBIS_invalid_first_page", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2025, + "line": 374, "column": 1, - "source_line": "#define LINE_OP(a,b) a = b" - }, - "unit_kind": "macro", - "unit_name": "LINE_OP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FASTDEF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5153, - "column": 4, - "source_line": " #define FASTDEF(x) float_conv x" - }, - "unit_kind": "macro", - "unit_name": "FASTDEF" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'MAGIC' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5155, - "column": 4, - "source_line": " #define MAGIC(SHIFT) (1.5f * (1 << (23-SHIFT)) + 0.5f/(1 << SHIFT))" - }, - "unit_kind": "macro", - "unit_name": "MAGIC" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ADDEND' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5156, - "column": 4, - "source_line": " #define ADDEND(SHIFT) (((150-SHIFT) << 23) + (1 << 22))" - }, - "unit_kind": "macro", - "unit_name": "ADDEND" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FAST_SCALED_FLOAT_TO_INT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5157, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) (temp.f = (x) + MAGIC(s), temp.i - ADDEND(s))" - }, - "unit_kind": "macro", - "unit_name": "FAST_SCALED_FLOAT_TO_INT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'check_endianness' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5158, - "column": 4, - "source_line": " #define check_endianness()" - }, - "unit_kind": "macro", - "unit_name": "check_endianness" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FAST_SCALED_FLOAT_TO_INT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5160, - "column": 4, - "source_line": " #define FAST_SCALED_FLOAT_TO_INT(temp,x,s) ((int) ((x) * (1 << (s))))" - }, - "unit_kind": "macro", - "unit_name": "FAST_SCALED_FLOAT_TO_INT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'check_endianness' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5161, - "column": 4, - "source_line": " #define check_endianness()" - }, - "unit_kind": "macro", - "unit_name": "check_endianness" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'FASTDEF' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_vorbis.c", - "line": 5162, - "column": 4, - "source_line": " #define FASTDEF(x)" - }, - "unit_kind": "macro", - "unit_name": "FASTDEF" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { + "VORBIS_bad_packet_type": { + "name": "VORBIS_bad_packet_type", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 86, + "line": 374, "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "VORBIS_cant_find_last_page": { + "name": "VORBIS_cant_find_last_page", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1003, + "line": 374, "column": 1, - "source_line": "static __forceinline uint32 crc32_update(uint32 crc, uint8 byte)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'uint32_compare(const void *p, const void *q)'.", - "severity": "warning", - "location": { + "VORBIS_seek_failed": { + "name": "VORBIS_seek_failed", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1162, + "line": 374, "column": 1, - "source_line": "static int STBV_CDECL uint32_compare(const void *p, const void *q)" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: 'point_compare(const void *p, const void *q)'.", - "severity": "warning", - "location": { + "VORBIS_ogg_skeleton_not_supported": { + "name": "VORBIS_ogg_skeleton_not_supported", + "value": null, + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1320, + "line": 374, "column": 1, - "source_line": "static int STBV_CDECL point_compare(const void *p, const void *q)" - }, - "unit_kind": "declarator", - "unit_name": null + "source_line": "enum STBVorbisError" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "VORBIS_packet_id": { + "name": "VORBIS_packet_id", + "value": "1", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 1634, + "line": 1649, "column": 1, - "source_line": "static __forceinline void prep_huffman(vorb *f)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "VORBIS_packet_comment": { + "name": "VORBIS_packet_comment", + "value": "3", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2034, + "line": 1649, "column": 1, - "source_line": "static __forceinline void draw_line(float *output, int x0, int y0, int x1, int y1, int n)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" + "source_line": "enum" + } }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro '__forceinline'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { + "VORBIS_packet_setup": { + "name": "VORBIS_packet_setup", + "value": "5", + "source_location": { "filename": "stb/stb_vorbis.c", - "line": 2554, + "line": 1649, "column": 1, - "source_line": "static __forceinline void iter_54(float *z)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "__forceinline" - }, + "source_line": "enum" + } + } + }, + "include_graph": { + "stb/stb_vorbis.c": [] + }, + "system_includes": { + "stb/stb_vorbis.c": [] + }, + "unresolved_includes": { + "stb/stb_vorbis.c": [] + }, + "header_source_pairs": {}, + "diagnostics": [ { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'YTYPE'.", + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stb_vorbis_decode_frame_pushdata'.", "severity": "error", "location": { "filename": "stb/stb_vorbis.c", - "line": 3070, + "line": 4444, "column": 1, - "source_line": "typedef int YTYPE;" + "source_line": "int stb_vorbis_decode_frame_pushdata(" }, - "unit_kind": "typedef", - "unit_name": "YTYPE" + "unit_kind": "function", + "unit_name": "stb_vorbis_decode_frame_pushdata" }, { - "code": "C_DUPLICATE_FUNCTION_DEFINITION", - "message": "Duplicate definition for function 'inverse_mdct'.", + "code": "C_CONFLICTING_FUNCTION_DECLARATION", + "message": "Conflicting declarations for function 'stb_vorbis_decode_memory'.", "severity": "error", "location": { "filename": "stb/stb_vorbis.c", - "line": 2629, + "line": 5386, "column": 1, - "source_line": "static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)" + "source_line": "int stb_vorbis_decode_memory(const uint8 *mem, int len, int *channels, int *sample_rate, short **output)" }, "unit_kind": "function", - "unit_name": "inverse_mdct" + "unit_name": "stb_vorbis_decode_memory" } ] } diff --git a/tests/parser/c/fixtures/stb/stb_voxel_render.json b/tests/parser/c/fixtures/stb/stb_voxel_render.json index f9c3e8b84..5e697af1f 100644 --- a/tests/parser/c/fixtures/stb/stb_voxel_render.json +++ b/tests/parser/c/fixtures/stb/stb_voxel_render.json @@ -3,151 +3,18 @@ "stb/stb_voxel_render.h": { "filename": "stb/stb_voxel_render.h", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "stb/stb_voxel_render.h" + ], "functions": [ { - "name": "stbvox_build_default_palette", + "name": "stbvox_init_mesh_maker", "result_type": { "model": "CVoid", "qualifiers": [], "source_text": "void" }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1544, - "column": 1, - "source_line": "static void stbvox_build_default_palette(void)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 1544, - "column": 1, - "source_line": "static void stbvox_build_default_palette(void)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 1553, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_compute_mesh_face_value", - "result_type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbvox_mesh_face", - "name": "stbvox_mesh_face", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "tex1", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char tex1" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1343, - "column": 7, - "source_line": " unsigned char tex1,tex2,color,face_info;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "tex2", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char tex2" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1343, - "column": 7, - "source_line": " unsigned char tex1,tex2,color,face_info;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "color", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char color" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1343, - "column": 7, - "source_line": " unsigned char tex1,tex2,color,face_info;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "face_info", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char face_info" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1343, - "column": 7, - "source_line": " unsigned char tex1,tex2,color,face_info;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_voxel_render.h:1341:4", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1341, - "column": 4, - "source_line": " typedef struct" - } - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1341, - "column": 4, - "source_line": " typedef struct" - }, - "declaration_locations": [] - }, "parameters": [ { "name": "mm", @@ -285,7 +152,7 @@ "declaration_locations": [] } ], - "anonymous_id": "struct@stb/stb_voxel_render.h:711:1", + "anonymous_id": "struct@:0:0", "is_incomplete": false, "source_location": { "filename": "stb/stb_voxel_render.h", @@ -365,15 +232,15 @@ "source_text": "stbvox_block_type", "name": "stbvox_block_type", "type": { - "model": "CUnsignedShort", + "model": "CUnsignedChar", "qualifiers": [], - "source_text": "typedef unsigned short stbvox_block_type" + "source_text": "typedef unsigned char stbvox_block_type" }, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 705, + "line": 707, "column": 1, - "source_line": "typedef unsigned short stbvox_block_type;" + "source_line": "typedef unsigned char stbvox_block_type;" }, "declaration_locations": [] } @@ -980,7 +847,7 @@ "filename": "stb/stb_voxel_render.h", "line": 862, "column": 4, - "source_line": " unsigned char *overlay; // index into palettes listed below" + "source_line": " unsigned char *overlay;" }, "callback_policy": null, "declaration_locations": [] @@ -1596,7 +1463,7 @@ "filename": "stb/stb_voxel_render.h", "line": 988, "column": 4, - "source_line": " unsigned short *texlerp_face3; // e:3,n:3,w:3,s:3,u:2,d:2" + "source_line": " unsigned short *texlerp_face3;" }, "callback_policy": null, "declaration_locations": [] @@ -1627,7 +1494,7 @@ "filename": "stb/stb_voxel_render.h", "line": 996, "column": 4, - "source_line": " unsigned char *vheight; // STBVOX_MAKE_VHEIGHT -- sw:2, se:2, nw:2, ne:2, doesn't rotate" + "source_line": " unsigned char *vheight;" }, "callback_policy": null, "declaration_locations": [] @@ -1707,7 +1574,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1185, "column": 4, - "source_line": " int cur_x, cur_y, cur_z; // last unprocessed voxel if it splits into multiple buffers" + "source_line": " int cur_x, cur_y, cur_z;" }, "callback_policy": null, "declaration_locations": [] @@ -1726,7 +1593,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1185, "column": 4, - "source_line": " int cur_x, cur_y, cur_z; // last unprocessed voxel if it splits into multiple buffers" + "source_line": " int cur_x, cur_y, cur_z;" }, "callback_policy": null, "declaration_locations": [] @@ -1745,7 +1612,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1185, "column": 4, - "source_line": " int cur_x, cur_y, cur_z; // last unprocessed voxel if it splits into multiple buffers" + "source_line": " int cur_x, cur_y, cur_z;" }, "callback_policy": null, "declaration_locations": [] @@ -1998,7 +1865,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1193, "column": 4, - "source_line": " int cube_vertex_offset[6][4]; // this allows access per-vertex data stored block-centered (like texlerp, ambient)" + "source_line": " int cube_vertex_offset[6][4];" }, "callback_policy": null, "declaration_locations": [] @@ -2128,13 +1995,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *output_cur [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "char *output_cur [2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2143,7 +2010,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2167,7 +2034,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1200, "column": 4, - "source_line": " char *output_cur [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS];" + "source_line": " char *output_cur [2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2177,13 +2044,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *output_end [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "char *output_end [2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2192,7 +2059,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2216,7 +2083,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1201, "column": 4, - "source_line": " char *output_end [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS];" + "source_line": " char *output_end [2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2226,13 +2093,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "char *output_buffer[STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "char *output_buffer[2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2241,7 +2108,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2265,7 +2132,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1202, "column": 4, - "source_line": " char *output_buffer[STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS];" + "source_line": " char *output_buffer[2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2275,13 +2142,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int output_len [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "int output_len [2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2290,7 +2157,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2309,7 +2176,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1203, "column": 4, - "source_line": " int output_len [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS];" + "source_line": " int output_len [2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2319,13 +2186,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int output_size [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "int output_size [2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2334,7 +2201,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2353,7 +2220,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1206, "column": 4, - "source_line": " int output_size [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]; // per quad" + "source_line": " int output_size [2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2363,13 +2230,13 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int output_step [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]", + "source_text": "int output_step [2][3]", "components": [ { "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESHES", + "bound": "2", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2378,7 +2245,7 @@ "model": "CArray", "qualifiers": [], "source_text": "", - "bound": "STBVOX_MAX_MESH_SLOTS", + "bound": "3", "is_static_minimum": false, "is_variable_length": false, "is_flexible": false @@ -2397,7 +2264,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1207, "column": 4, - "source_line": " int output_step [STBVOX_MAX_MESHES][STBVOX_MAX_MESH_SLOTS]; // per vertex or per face, depending" + "source_line": " int output_step [2][3];" }, "callback_policy": null, "declaration_locations": [] @@ -2416,7 +2283,7 @@ "filename": "stb/stb_voxel_render.h", "line": 1208, "column": 4, - "source_line": " int num_mesh_slots;" + "source_line": " int num_mesh_slots;" }, "callback_policy": null, "declaration_locations": [] @@ -2502,197 +2369,182 @@ }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 357, + "column": 1, + "source_line": "extern void stbvox_init_mesh_maker(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 357, + "column": 1, + "source_line": "extern void stbvox_init_mesh_maker(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_set_buffer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "rot", + "name": "mm", "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_rotate", - "name": "stbvox_rotate", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "block", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char block" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2019, - "column": 4, - "source_line": " unsigned char block:2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "overlay", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char overlay" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2020, - "column": 4, - "source_line": " unsigned char overlay:2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "facerot", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char facerot" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2021, - "column": 4, - "source_line": " unsigned char facerot:2;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "ecolor", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char ecolor" - }, - "storage": [], - "initializer": null, - "bit_width": "2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2022, - "column": 4, - "source_line": " unsigned char ecolor:2;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_voxel_render.h:2017:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2017, - "column": 1, - "source_line": "typedef struct" + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" } - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2017, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] + ] }, "declared_type": { - "reference": "stbvox_rotate" + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "face", + "name": "mesh", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int mesh" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int mesh" }, "source_location": null, "callback_policy": null }, { - "name": "v_off", + "name": "slot", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v_off" + "source_text": "int slot" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v_off" + "source_text": "int slot" }, "source_location": null, "callback_policy": null }, { - "name": "normal", + "name": "buffer", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int normal" + "source_text": "void *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int normal" + "source_text": "void *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2042, + "line": 362, "column": 1, - "source_line": "stbvox_mesh_face stbvox_compute_mesh_face_value(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, int normal)" + "source_line": "extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2042, + "line": 362, "column": 1, - "source_line": "stbvox_mesh_face stbvox_compute_mesh_face_value(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, int normal)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2143, - "column": 1, - "source_line": "}" + "source_line": "extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_get_quad_vertex_pointer", + "name": "stbvox_get_buffer_count", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -2729,28 +2581,44 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 387, + "column": 1, + "source_line": "extern int stbvox_get_buffer_count(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 387, + "column": 1, + "source_line": "extern int stbvox_get_buffer_count(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_get_buffer_size_per_quad", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "vertices", + "name": "mm", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex **vertices", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -2758,51 +2626,14 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex", - "name": "stbvox_mesh_vertex", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbvox_uint32", - "name": "stbvox_uint32", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "typedef uint32_t stbvox_uint32", - "name": "uint32_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1226, - "column": 4, - "source_line": " typedef uint32_t stbvox_uint32;" - }, - "declaration_locations": [] - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1321, - "column": 4, - "source_line": " typedef stbvox_uint32 stbvox_mesh_vertex;" - }, - "declaration_locations": [] + "reference": "stbvox_mesh_maker" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex **vertices", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -2810,12 +2641,7 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" + "reference": "stbvox_mesh_maker" } ] }, @@ -2823,44 +2649,45 @@ "callback_policy": null }, { - "name": "face", + "name": "slot", "type": { - "reference": "stbvox_mesh_face" + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" }, "declared_type": { - "reference": "stbvox_mesh_face" + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2651, + "line": 390, "column": 1, - "source_line": "void stbvox_get_quad_vertex_pointer(stbvox_mesh_maker *mm, int mesh, stbvox_mesh_vertex **vertices, stbvox_mesh_face face)" + "source_line": "extern int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int slot);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2651, + "line": 390, "column": 1, - "source_line": "void stbvox_get_quad_vertex_pointer(stbvox_mesh_maker *mm, int mesh, stbvox_mesh_vertex **vertices, stbvox_mesh_face face)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2674, - "column": 1, - "source_line": "}" + "source_line": "extern int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int slot);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_mesh_for_face", + "name": "stbvox_set_default_mesh", "result_type": { "model": "CVoid", "qualifiers": [], @@ -2903,157 +2730,133 @@ "callback_policy": null }, { - "name": "rot", + "name": "mesh", "type": { - "reference": "stbvox_rotate" + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" }, "declared_type": { - "reference": "stbvox_rotate" + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" }, "source_location": null, "callback_policy": null - }, - { - "name": "face", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "declared_type": { - "model": "CInt", + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 396, + "column": 1, + "source_line": "extern void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 396, + "column": 1, + "source_line": "extern void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_get_input_description", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_input_description", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int face" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "reference": "stbvox_input_description" + } + ] + }, + "parameters": [ { - "name": "v_off", + "name": "mm", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int v_off" + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] }, "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "model": "CTypedef", + "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_pos", - "name": "stbvox_pos", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "x", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char x" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2027, - "column": 4, - "source_line": " unsigned char x,y,z;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "y", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char y" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2027, - "column": 4, - "source_line": " unsigned char x,y,z;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "z", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char z" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2027, - "column": 4, - "source_line": " unsigned char x,y,z;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "struct@stb/stb_voxel_render.h:2025:1", - "is_incomplete": false, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2025, - "column": 1, - "source_line": "typedef struct" + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" } - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2025, - "column": 1, - "source_line": "typedef struct" - }, - "declaration_locations": [] - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertbase", - "type": { - "reference": "stbvox_mesh_vertex" - }, - "declared_type": { - "reference": "stbvox_mesh_vertex" + ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 401, + "column": 1, + "source_line": "extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 401, + "column": 1, + "source_line": "extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_set_input_stride", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "face_coord", + "name": "mm", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3061,14 +2864,14 @@ "source_text": "" }, { - "reference": "stbvox_mesh_vertex" + "reference": "stbvox_mesh_maker" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3076,7 +2879,7 @@ "source_text": "" }, { - "reference": "stbvox_mesh_vertex" + "reference": "stbvox_mesh_maker" } ] }, @@ -3084,63 +2887,60 @@ "callback_policy": null }, { - "name": "mesh", + "name": "x_stride_in_elements", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int x_stride_in_elements" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int x_stride_in_elements" }, "source_location": null, "callback_policy": null }, { - "name": "normal", + "name": "y_stride_in_elements", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int normal" + "source_text": "int y_stride_in_elements" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int normal" + "source_text": "int y_stride_in_elements" }, "source_location": null, "callback_policy": null } ], - "storage": [], + "storage": [ + "extern" + ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2676, + "line": 409, "column": 1, - "source_line": "void stbvox_make_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, int normal)" + "source_line": "extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_elements, int y_stride_in_elements);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2676, - "column": 1, - "source_line": "void stbvox_make_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, int normal)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2830, + "line": 409, "column": 1, - "source_line": "}" + "source_line": "extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_elements, int y_stride_in_elements);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_12_split_mesh_for_face", + "name": "stbvox_set_input_range", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3183,124 +2983,132 @@ "callback_policy": null }, { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", + "name": "x0", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int x0" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int x0" }, "source_location": null, "callback_policy": null }, { - "name": "v_off", + "name": "y0", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int v_off" + "source_text": "int y0" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int v_off" + "source_text": "int y0" }, "source_location": null, "callback_policy": null }, { - "name": "pos", + "name": "z0", "type": { - "reference": "stbvox_pos" + "model": "CInt", + "qualifiers": [], + "source_text": "int z0" }, "declared_type": { - "reference": "stbvox_pos" + "model": "CInt", + "qualifiers": [], + "source_text": "int z0" }, "source_location": null, "callback_policy": null }, { - "name": "vertbase", + "name": "x1", "type": { - "reference": "stbvox_mesh_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" }, "declared_type": { - "reference": "stbvox_mesh_vertex" + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" }, "source_location": null, "callback_policy": null }, { - "name": "face_coord", + "name": "y1", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] + "source_text": "int y1" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] + "source_text": "int y1" }, "source_location": null, "callback_policy": null }, { - "name": "mesh", + "name": "z1", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int z1" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int z1" }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 414, + "column": 1, + "source_line": "extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 414, + "column": 1, + "source_line": "extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_make_mesh", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ { - "name": "ht", + "name": "mm", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *ht", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3308,16 +3116,14 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbvox_mesh_maker" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "unsigned char *ht", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3325,9 +3131,7 @@ "source_text": "" }, { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" + "reference": "stbvox_mesh_maker" } ] }, @@ -3336,38 +3140,33 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2843, + "line": 445, "column": 1, - "source_line": "static void stbvox_make_12_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" + "source_line": "extern int stbvox_make_mesh(stbvox_mesh_maker *mm);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2843, - "column": 1, - "source_line": "static void stbvox_make_12_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2864, + "line": 445, "column": 1, - "source_line": "}" + "source_line": "extern int stbvox_make_mesh(stbvox_mesh_maker *mm);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_03_split_mesh_for_face", + "name": "stbvox_get_quad_count", "result_type": { - "model": "CVoid", + "model": "CInt", "qualifiers": [], - "source_text": "void" + "source_text": "int" }, "parameters": [ { @@ -3406,74 +3205,57 @@ "callback_policy": null }, { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", + "name": "mesh", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int mesh" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int face" + "source_text": "int mesh" }, "source_location": null, "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertbase", - "type": { - "reference": "stbvox_mesh_vertex" - }, - "declared_type": { - "reference": "stbvox_mesh_vertex" - }, - "source_location": null, - "callback_policy": null - }, + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 463, + "column": 1, + "source_line": "extern int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 463, + "column": 1, + "source_line": "extern int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_set_mesh_coordinates", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "face_coord", + "name": "mm", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3481,14 +3263,14 @@ "source_text": "" }, { - "reference": "stbvox_mesh_vertex" + "reference": "stbvox_mesh_maker" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", + "source_text": "stbvox_mesh_maker *mm", "components": [ { "model": "CPointer", @@ -3496,7 +3278,7 @@ "source_text": "" }, { - "reference": "stbvox_mesh_vertex" + "reference": "stbvox_mesh_maker" } ] }, @@ -3504,89 +3286,75 @@ "callback_policy": null }, { - "name": "mesh", + "name": "x", "type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int x" }, "declared_type": { - "model": "CUnsignedChar", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char mesh" + "source_text": "int x" }, "source_location": null, "callback_policy": null }, { - "name": "ht", + "name": "y", "type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int y" }, "declared_type": { - "model": "CComposedType", + "model": "CInt", "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2866, + "line": 479, "column": 1, - "source_line": "static void stbvox_make_03_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" + "source_line": "extern void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2866, + "line": 479, "column": 1, - "source_line": "static void stbvox_make_03_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2886, - "column": 1, - "source_line": "}" + "source_line": "extern void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_mesh_for_block", + "name": "stbvox_get_bounds", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3629,37 +3397,11 @@ "callback_policy": null }, { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vmesh", + "name": "bounds", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *vmesh", + "source_text": "float bounds[2][3]", "components": [ { "model": "CPointer", @@ -3667,22 +3409,48 @@ "source_text": "" }, { - "reference": "stbvox_mesh_vertex" + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_vertex *vmesh", + "source_text": "float bounds[2][3]", "components": [ { - "model": "CPointer", + "model": "CArray", "qualifiers": [], - "source_text": "" + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false }, { - "reference": "stbvox_mesh_vertex" + "model": "CFloat", + "qualifiers": [], + "source_text": "float" } ] }, @@ -3691,34 +3459,29 @@ } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2894, + "line": 483, "column": 1, - "source_line": "static void stbvox_make_mesh_for_block(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off, stbvox_mesh_vertex *vmesh)" + "source_line": "extern void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3]);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2894, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_block(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off, stbvox_mesh_vertex *vmesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2953, + "line": 483, "column": 1, - "source_line": "}" + "source_line": "extern void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3]);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_mesh_for_block_with_geo", + "name": "stbvox_get_transform", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3761,61 +3524,91 @@ "callback_policy": null }, { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", + "name": "transform", "type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int v_off" + "source_text": "float transform[3][3]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "declared_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int v_off" + "source_text": "float transform[3][3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] }, "source_location": null, "callback_policy": null } ], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2963, + "line": 491, "column": 1, - "source_line": "static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off)" + "source_line": "extern void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3]);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 2963, + "line": 491, "column": 1, - "source_line": "static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3397, - "column": 1, - "source_line": "}" + "source_line": "extern void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3]);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_mesh_for_column", + "name": "stbvox_reset_buffers", "result_type": { "model": "CVoid", "qualifiers": [], @@ -3856,291 +3649,158 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 504, + "column": 1, + "source_line": "extern void stbvox_reset_buffers(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 504, + "column": 1, + "source_line": "extern void stbvox_reset_buffers(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] + }, + { + "name": "stbvox_get_vertex_shader", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int x" + "source_text": "" }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "declared_type": { - "model": "CInt", + { + "model": "CChar", "qualifiers": [], - "source_text": "int z0" - }, - "source_location": null, - "callback_policy": null - } - ], + "source_text": "char" + } + ] + }, + "parameters": [], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3399, + "line": 515, "column": 1, - "source_line": "static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int z0)" + "source_line": "extern char *stbvox_get_vertex_shader(void);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 3399, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int z0)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3465, + "line": 515, "column": 1, - "source_line": "}" + "source_line": "extern char *stbvox_get_vertex_shader(void);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_bring_up_to_date", + "name": "stbvox_get_fragment_shader", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", + "source_text": "char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], + "source_text": "char" + } + ] + }, + "parameters": [], "storage": [ - "static" + "extern" ], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3467, + "line": 518, "column": 1, - "source_line": "static void stbvox_bring_up_to_date(stbvox_mesh_maker *mm)" + "source_line": "extern char *stbvox_get_fragment_shader(void);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 3467, - "column": 1, - "source_line": "static void stbvox_bring_up_to_date(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3489, + "line": 518, "column": 1, - "source_line": "}" + "source_line": "extern char *stbvox_get_fragment_shader(void);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_make_mesh", + "name": "stbvox_get_fragment_shader_alpha_only", "result_type": { - "model": "CInt", + "model": "CComposedType", "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", + "source_text": "char", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CChar", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3491, - "column": 1, - "source_line": "int stbvox_make_mesh(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3491, - "column": 1, - "source_line": "int stbvox_make_mesh(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3520, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_init_mesh_maker", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" + "source_text": "char" + } + ] }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } + "parameters": [], + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3522, + "line": 524, "column": 1, - "source_line": "void stbvox_init_mesh_maker(stbvox_mesh_maker *mm)" + "source_line": "extern char *stbvox_get_fragment_shader_alpha_only(void);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 3522, - "column": 1, - "source_line": "void stbvox_init_mesh_maker(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3529, + "line": 524, "column": 1, - "source_line": "}" + "source_line": "extern char *stbvox_get_fragment_shader_alpha_only(void);" }, + "end": null, "declaration_locations": [] }, { - "name": "stbvox_get_buffer_count", + "name": "stbvox_get_uniform_info", "result_type": { "model": "CInt", "qualifiers": [], @@ -4148,11 +3808,11 @@ }, "parameters": [ { - "name": "mm", + "name": "info", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", + "source_text": "stbvox_uniform_info *info", "components": [ { "model": "CPointer", @@ -4160,83 +3820,178 @@ "source_text": "" }, { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", + "model": "CTypedef", "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3531, - "column": 1, - "source_line": "int stbvox_get_buffer_count(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3531, - "column": 1, - "source_line": "int stbvox_get_buffer_count(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3535, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_get_buffer_size_per_quad", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" + "source_text": "stbvox_uniform_info", + "name": "stbvox_uniform_info", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "stbvox_uniform_info", + "members": [ + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 594, + "column": 4, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bytes_per_element", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int bytes_per_element" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 595, + "column": 4, + "source_line": " int bytes_per_element;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "array_length", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int array_length" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 596, + "column": 4, + "source_line": " int array_length;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 597, + "column": 4, + "source_line": " char *name;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "default_value", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float *default_value", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 598, + "column": 4, + "source_line": " float *default_value;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "use_tex_buffer", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int use_tex_buffer" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 599, + "column": 4, + "source_line": " int use_tex_buffer;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 592, + "column": 1, + "source_line": "struct stbvox_uniform_info" + } + }, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 529, + "column": 1, + "source_line": "typedef struct stbvox_uniform_info stbvox_uniform_info;" + }, + "declaration_locations": [] } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", + "source_text": "stbvox_uniform_info *info", "components": [ { "model": "CPointer", @@ -4244,7 +3999,7 @@ "source_text": "" }, { - "reference": "stbvox_mesh_maker" + "reference": "stbvox_uniform_info" } ] }, @@ -4252,14052 +4007,2938 @@ "callback_policy": null }, { - "name": "n", + "name": "uniform", "type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int uniform" }, "declared_type": { "model": "CInt", "qualifiers": [], - "source_text": "int n" + "source_text": "int uniform" }, "source_location": null, "callback_policy": null } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3537, - "column": 1, - "source_line": "int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int n)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3537, - "column": 1, - "source_line": "int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int n)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3540, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_reset_buffers", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } + "storage": [ + "extern" ], - "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3542, + "line": 531, "column": 1, - "source_line": "void stbvox_reset_buffers(stbvox_mesh_maker *mm)" + "source_line": "extern int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform);" }, "start": { "filename": "stb/stb_voxel_render.h", - "line": 3542, - "column": 1, - "source_line": "void stbvox_reset_buffers(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3549, + "line": 531, "column": 1, - "source_line": "}" + "source_line": "extern int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform);" }, + "end": null, "declaration_locations": [] - }, + } + ], + "structs": [], + "unions": [], + "enums": [ { - "name": "stbvox_set_buffer", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_face_data", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } }, { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_transform", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } }, { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_tex_array", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } }, { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_texscale", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } }, { - "name": "len", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "size_t len", - "name": "size_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3551, - "column": 1, - "source_line": "void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3551, - "column": 1, - "source_line": "void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3564, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_set_default_mesh", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "name": "STBVOX_UNIFORM_color_table", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } + }, { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_normals", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } }, { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_texgen", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_UNIFORM_ambient", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_UNIFORM_camera_pos", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_UNIFORM_count", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 568, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3566, - "column": 1, - "source_line": "void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3566, - "column": 1, - "source_line": "void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3569, + "line": 568, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_get_quad_count", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_TYPE_none", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 583, + "column": 1, + "source_line": "enum" + } }, { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3571, - "column": 1, - "source_line": "int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3571, - "column": 1, - "source_line": "int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3574, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "stbvox_get_input_description", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_input_description", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_input_description" + "name": "STBVOX_UNIFORM_TYPE_sampler", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 583, + "column": 1, + "source_line": "enum" } - ] - }, - "parameters": [ + }, { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_UNIFORM_TYPE_vec2", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 583, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_UNIFORM_TYPE_vec3", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 583, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_UNIFORM_TYPE_vec4", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 583, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3576, + "line": 583, "column": 1, - "source_line": "stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3576, - "column": 1, - "source_line": "stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3579, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_set_input_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_empty", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_knockout", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_solid", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "z0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_transp", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_slab_upper", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_slab_lower", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } }, { - "name": "z1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z1" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_GEOM_floor_slope_north_is_top", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_ceil_slope_north_is_bottom", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_crossed_pair", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_force", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_floor_vheight_03", + "value": "12", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_floor_vheight_12", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_ceil_vheight_03", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_ceil_vheight_12", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_GEOM_count", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 665, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3581, - "column": 1, - "source_line": "void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3581, - "column": 1, - "source_line": "void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3596, + "line": 665, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_get_transform", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_FACE_east", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } }, { - "name": "transform", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float transform[3][3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float transform[3][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_FACE_north", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_FACE_west", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_FACE_south", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_FACE_up", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_FACE_down", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_FACE_count", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 692, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3598, - "column": 1, - "source_line": "void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3])" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3598, + "line": 692, "column": 1, - "source_line": "void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3])" - }, - "end": { + "source_line": "enum" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "STBVOX_VERTEX_HEIGHT_0", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1035, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_VERTEX_HEIGHT_half", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1035, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_VERTEX_HEIGHT_1", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1035, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_VERTEX_HEIGHT_one_and_a_half", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1035, + "column": 1, + "source_line": "enum" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3616, + "line": 1035, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_get_bounds", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_FACE_0", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1117, + "column": 1, + "source_line": "enum" + } }, { - "name": "bounds", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float bounds[2][3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float bounds[2][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_FACE_half", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1117, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_TEXLERP_FACE_1", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1117, + "column": 1, + "source_line": "enum" + } + }, + { + "name": "STBVOX_TEXLERP_FACE_use_vert", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1117, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3618, - "column": 1, - "source_line": "void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3])" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3618, - "column": 1, - "source_line": "void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3])" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3626, + "line": 1117, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_set_mesh_coordinates", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_BASE_0", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1125, + "column": 1, + "source_line": "enum" + } }, { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_BASE_2_7", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1125, + "column": 1, + "source_line": "enum" + } }, { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_BASE_5_7", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1125, + "column": 1, + "source_line": "enum" + } }, { - "name": "z", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP_BASE_1", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1125, + "column": 1, + "source_line": "enum" + } } ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 3628, - "column": 1, - "source_line": "void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3628, - "column": 1, - "source_line": "void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3633, + "line": 1125, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum" + } }, { - "name": "stbvox_set_input_stride", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "STBVOX_TEXLERP3_0_8", + "value": null, + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 1133, + "column": 1, + "source_line": "enum" + } }, { - "name": "x_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3635, - "column": 1, - "source_line": "void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3635, - "column": 1, - "source_line": "void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3650, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "find_best_normal", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3667, - "column": 1, - "source_line": "static char *find_best_normal(float x, float y, float z)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3667, - "column": 1, - "source_line": "static char *find_best_normal(float x, float y, float z)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3682, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "argc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "argv", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3684, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3684, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3702, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct@stb/stb_voxel_render.h:711:1" - }, - { - "reference": "struct stbvox_input_description" - }, - { - "reference": "struct stbvox_mesh_maker" - }, - { - "reference": "struct@stb/stb_voxel_render.h:1341:4" - }, - { - "reference": "struct@stb/stb_voxel_render.h:2017:1" - }, - { - "reference": "struct@stb/stb_voxel_render.h:2025:1" - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_GEOM_empty", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_knockout", + "name": "STBVOX_TEXLERP3_1_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_solid", + "name": "STBVOX_TEXLERP3_2_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_transp", + "name": "STBVOX_TEXLERP3_3_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_slab_upper", + "name": "STBVOX_TEXLERP3_4_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_slab_lower", + "name": "STBVOX_TEXLERP3_5_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_floor_slope_north_is_top", + "name": "STBVOX_TEXLERP3_6_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } }, { - "name": "STBVOX_GEOM_ceil_slope_north_is_bottom", + "name": "STBVOX_TEXLERP3_7_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_crossed_pair", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_force", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_floor_vheight_03", - "value": "12", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_floor_vheight_12", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_ceil_vheight_03", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_ceil_vheight_12", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_GEOM_count", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } } ], - "anonymous_id": "enum@stb/stb_voxel_render.h:665:1", + "anonymous_id": "enum@:0:0", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 1133, "column": 1, "source_line": "enum" } - }, + } + ], + "typedefs": [], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "stbvox_init_mesh_maker": { + "name": "stbvox_init_mesh_maker", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_FACE_east", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FACE_north", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FACE_west", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FACE_south", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FACE_up", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FACE_down", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" } - }, - { - "name": "STBVOX_FACE_count", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:692:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 692, - "column": 1, - "source_line": "enum" - } - }, + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", + "source_location": { + "filename": "stb/stb_voxel_render.h", + "line": 357, + "column": 1, + "source_line": "extern void stbvox_init_mesh_maker(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 357, + "column": 1, + "source_line": "extern void stbvox_init_mesh_maker(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] + }, + "stbvox_set_buffer": { + "name": "stbvox_set_buffer", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_VERTEX_HEIGHT_0", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1035, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_VERTEX_HEIGHT_half", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1035, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_VERTEX_HEIGHT_1", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1035, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_VERTEX_HEIGHT_one_and_a_half", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1035, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:1035:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1035, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_TEXLERP_FACE_0", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1117, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_FACE_half", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1117, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_FACE_1", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1117, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_FACE_use_vert", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1117, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:1117:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1117, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_TEXLERP_BASE_0", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1125, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_BASE_2_7", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1125, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_BASE_5_7", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1125, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP_BASE_1", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1125, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:1125:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1125, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_TEXLERP3_0_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_1_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_2_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_3_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_4_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_5_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_6_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_TEXLERP3_7_8", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:1133:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1133, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVF_e", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_n", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_w", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_s", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_u", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_d", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_eu", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_ed", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_eu_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nu_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_wu_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_su_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_ne_u", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_ne_d", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nu", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nd", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_ed_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nd_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_wd_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_sd_wall", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nw_u", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nw_d", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_wu", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_wd", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_ne_u_cross", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_nw_u_cross", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_sw_u_cross", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_se_u_cross", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_sw_u", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_sw_d", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_su", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_sd", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_se_u", - "value": "STBVF_su", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_se_d", - "value": "STBVF_sd", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVF_count", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:1377:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1377, - "column": 1, - "source_line": "enum" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "STBVOX_FT_none", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_upper", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_lower", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_solid", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_diag_012", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_diag_023", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_diag_013", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_diag_123", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_force", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_partial", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - }, - { - "name": "STBVOX_FT_count", - "value": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - } - ], - "anonymous_id": "enum@stb/stb_voxel_render.h:2146:1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2146, - "column": 1, - "source_line": "enum" - } - } - ], - "typedefs": [ - { - "reference": "stbvox_mesh_maker" - }, - { - "reference": "stbvox_input_description" - }, - { - "reference": "stbvox_block_type" - }, - { - "reference": "stbvox_rgb" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbvox_uint16", - "name": "stbvox_uint16", - "type": { - "model": "CTypedef", - "qualifiers": [], - "source_text": "typedef uint16_t stbvox_uint16", - "name": "uint16_t", - "type": null, - "source_location": null, - "declaration_locations": [] - }, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1225, - "column": 4, - "source_line": " typedef uint16_t stbvox_uint16;" - }, - "declaration_locations": [] - }, - { - "reference": "stbvox_uint32" - }, - { - "reference": "stbvox_mesh_vertex" - }, - { - "reference": "stbvox_mesh_face" - }, - { - "reference": "stbvox_rotate" - }, - { - "reference": "stbvox_pos" - } - ], - "variables": [ - { - "name": "stbvox_default_texgen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_texgen[2][32][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { { 0, 1,0 }, { 0, 0, 1 }, { 0,-1,0 }, { 0, 0,-1 },\n { -1, 0,0 }, { 0, 0, 1 }, { 1, 0,0 }, { 0, 0,-1 },\n { 0,-1,0 }, { 0, 0, 1 }, { 0, 1,0 }, { 0, 0,-1 },\n { 1, 0,0 }, { 0, 0, 1 }, { -1, 0,0 }, { 0, 0,-1 },\n\n { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 },\n { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 },\n { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 },\n { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 },\n },\n { { 0, 0,-1 }, { 0, 1,0 }, { 0, 0, 1 }, { 0,-1,0 },\n { 0, 0,-1 }, { -1, 0,0 }, { 0, 0, 1 }, { 1, 0,0 },\n { 0, 0,-1 }, { 0,-1,0 }, { 0, 0, 1 }, { 0, 1,0 },\n { 0, 0,-1 }, { 1, 0,0 }, { 0, 0, 1 }, { -1, 0,0 },\n\n { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 },\n { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 },\n { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 },\n { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 },\n },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1428, - "column": 1, - "source_line": "static float stbvox_default_texgen[2][32][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_default_normals", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_normals[32][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 1,0,0 }, \n { 0,1,0 }, \n { -1,0,0 }, \n { 0,-1,0 }, \n { 0,0,1 }, \n { 0,0,-1 }, \n { STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { STBVOX_RSQRT3, STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { STBVOX_RSQRT3, STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { 0, STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT3, STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { STBVOX_RSQRT3,-STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { 0,-STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1455, - "column": 1, - "source_line": "static float stbvox_default_normals[32][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_default_texscale", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_texscale[128][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "128", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1494, - "column": 1, - "source_line": "static float stbvox_default_texscale[128][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_default_palette_compact", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_default_palette_compact[64][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 255,255,255 }, { 238,238,238 }, { 221,221,221 }, { 204,204,204 },\n { 187,187,187 }, { 170,170,170 }, { 153,153,153 }, { 136,136,136 },\n { 119,119,119 }, { 102,102,102 }, { 85, 85, 85 }, { 68, 68, 68 },\n { 51, 51, 51 }, { 34, 34, 34 }, { 17, 17, 17 }, { 0, 0, 0 },\n { 255,240,240 }, { 255,220,220 }, { 255,160,160 }, { 255, 32, 32 },\n { 200,120,160 }, { 200, 60,150 }, { 220,100,130 }, { 255, 0,128 },\n { 240,240,255 }, { 220,220,255 }, { 160,160,255 }, { 32, 32,255 },\n { 120,160,200 }, { 60,150,200 }, { 100,130,220 }, { 0,128,255 },\n { 240,255,240 }, { 220,255,220 }, { 160,255,160 }, { 32,255, 32 },\n { 160,200,120 }, { 150,200, 60 }, { 130,220,100 }, { 128,255, 0 },\n { 255,255,240 }, { 255,255,220 }, { 220,220,180 }, { 255,255, 32 },\n { 200,160,120 }, { 200,150, 60 }, { 220,130,100 }, { 255,128, 0 },\n { 255,240,255 }, { 255,220,255 }, { 220,180,220 }, { 255, 32,255 },\n { 160,120,200 }, { 150, 60,200 }, { 130,100,220 }, { 128, 0,255 },\n { 240,255,255 }, { 220,255,255 }, { 180,220,220 }, { 32,255,255 },\n { 120,200,160 }, { 60,200,150 }, { 100,220,130 }, { 0,255,128 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1514, - "column": 1, - "source_line": "static unsigned char stbvox_default_palette_compact[64][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_default_ambient", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_ambient[4][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,0,1 ,0 }, \n { 0.5,0.5,0.5,0 }, \n { 0.5,0.5,0.5,0 }, \n { 0.5,0.5,0.5,1.0f/1000.0f/1000.0f }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1534, - "column": 1, - "source_line": "static float stbvox_default_ambient[4][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_default_palette", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_palette[64][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1542, - "column": 1, - "source_line": "static float stbvox_default_palette[64][4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vertex_program", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_vertex_program", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \"in uvec4 attr_face;\\n\"\n \n \"uniform usamplerBuffer facearray;\\n\"\n \n\n \n \"uniform usamplerBuffer facearray2;\\n\"\n \n\n \n \"in uint attr_vertex;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \"uniform vec4 camera_pos;\\n\" \n\n \n \n \n \"uniform vec3 normal_table[32];\\n\"\n\n \n \"uniform mat4x4 model_view;\\n\"\n \n\n \n \"flat out uvec4 facedata;\\n\"\n \" out vec3 voxelspace_pos;\\n\"\n \" out vec3 vnormal;\\n\"\n \" out float texlerp;\\n\"\n \" out float amb_occ;\\n\"\n\n \n \"void main()\\n\"\n \"{\\n\"\n \n \" facedata = attr_face;\\n\"\n \n \" int faceID = gl_VertexID >> 2;\\n\"\n \" facedata = texelFetch(facearray, faceID);\\n\"\n \n\n \n \" vec3 offset;\\n\"\n \" offset.x = float( (attr_vertex ) & 127u );\\n\" \n \" offset.y = float( (attr_vertex >> 7u) & 127u );\\n\" \n \" offset.z = float( (attr_vertex >> 14u) & 511u );\\n\" \n \" amb_occ = float( (attr_vertex >> 23u) & 63u ) / 63.0;\\n\" \n \" texlerp = float( (attr_vertex >> 29u) ) / 7.0;\\n\" \n\n \" vnormal = normal_table[(facedata.w>>2u) & 31u];\\n\"\n \" voxelspace_pos = offset * transform[0];\\n\" \n \" vec3 position = voxelspace_pos + transform[1];\\n\" \n\n \n \" if ((facedata.w & 28u) == 16u || (facedata.w & 28u) == 24u)\\n\"\n \" position += vnormal.xyz * camera_pos.w;\\n\"\n \n\n \n \" gl_Position = model_view * vec4(position,1.0);\\n\"\n \n \" gl_Position = gl_ModelViewProjectionMatrix * vec4(position,1.0);\\n\"\n \n\n \"}\\n\"\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1570, - "column": 1, - "source_line": "static const char *stbvox_vertex_program =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_fragment_program", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_fragment_program", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \n \"#define rlerp(t,x,y) mix(x,y,t)\\n\"\n \n \"#define rlerp(t,x,y) lerp(x,y,t)\\n\"\n \n \n \n\n\n \n \"flat in uvec4 facedata;\\n\"\n \" in vec3 voxelspace_pos;\\n\"\n \" in vec3 vnormal;\\n\"\n \" in float texlerp;\\n\"\n \" in float amb_occ;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \"uniform vec4 camera_pos;\\n\" \n\n \n \"uniform vec4 ambient[4];\\n\"\n\n \n \n \"uniform sampler2DArray tex_array[2];\\n\"\n\n \n \"uniform samplerBuffer color_table;\\n\"\n \"uniform samplerBuffer texscale;\\n\"\n \"uniform samplerBuffer texgen;\\n\"\n \n \"uniform vec4 color_table[64];\\n\"\n \"uniform vec4 texscale[64];\\n\" \n \"uniform vec3 texgen[64];\\n\"\n \n \n\n \"out vec4 outcolor;\\n\"\n\n \n \"vec3 compute_lighting(vec3 pos, vec3 norm, vec3 albedo, vec3 ambient);\\n\"\n \n \n \"vec3 compute_fog(vec3 color, vec3 relative_pos, float fragment_alpha);\\n\"\n \n\n \"void main()\\n\"\n \"{\\n\"\n \" vec3 albedo;\\n\"\n \" float fragment_alpha;\\n\"\n\n \n \n \" uint tex1_id = facedata.x;\\n\"\n \" uint tex2_id = facedata.y;\\n\"\n \" uint texprojid = facedata.w & 31u;\\n\"\n \" uint color_id = facedata.z;\\n\"\n\n \n \n \" vec3 texgen_s = texgen[texprojid];\\n\"\n \" vec3 texgen_t = texgen[texprojid+32u];\\n\"\n \" float tex1_scale = texscale[tex1_id & 63u].x;\\n\"\n \" vec4 color = color_table[color_id & 63u];\\n\"\n \n \" vec4 tex2_props = texscale[tex2_id & 63u];\\n\"\n \n \n \" vec3 texgen_s = texelFetch(texgen, int(texprojid)).xyz;\\n\"\n \" vec3 texgen_t = texelFetch(texgen, int(texprojid+32u)).xyz;\\n\"\n \" float tex1_scale = texelFetch(texscale, int(tex1_id & 127u)).x;\\n\"\n \" vec4 color = texelFetch(color_table, int(color_id & 63u));\\n\"\n \n \" vec4 tex2_props = texelFetch(texscale, int(tex1_id & 127u));\\n\"\n \n \n\n \n \" float tex2_scale = tex2_props.y;\\n\"\n \" bool texblend_mode = tex2_props.z != 0.0;\\n\"\n \n \" vec2 texcoord;\\n\"\n \" vec3 texturespace_pos = voxelspace_pos + transform[2].xyz;\\n\"\n \" texcoord.s = dot(texturespace_pos, texgen_s);\\n\"\n \" texcoord.t = dot(texturespace_pos, texgen_t);\\n\"\n\n \" vec2 texcoord_1 = tex1_scale * texcoord;\\n\"\n \n \" vec2 texcoord_2 = tex2_scale * texcoord;\\n\"\n \n\n \n \" texcoord_1 = texcoord_1 - floor(texcoord_1);\\n\"\n \" vec4 tex1 = textureGrad(tex_array[0], vec3(texcoord_1, float(tex1_id)), dFdx(tex1_scale*texcoord), dFdy(tex1_scale*texcoord));\\n\"\n \n \" vec4 tex1 = texture(tex_array[0], vec3(texcoord_1, float(tex1_id)));\\n\"\n \n\n \n \n \" texcoord_2 = texcoord_2 - floor(texcoord_2);\\n\"\n \" vec4 tex2 = textureGrad(tex_array[0], vec3(texcoord_2, float(tex2_id)), dFdx(tex2_scale*texcoord), dFdy(tex2_scale*texcoord));\\n\"\n \n \" vec4 tex2 = texture(tex_array[1], vec3(texcoord_2, float(tex2_id)));\\n\"\n \n \n\n \" bool emissive = (color.a > 1.0);\\n\"\n \" color.a = min(color.a, 1.0);\\n\"\n\n \n \" if ((color_id & 64u) != 0u) tex1.rgba *= color.rgba;\\n\"\n \" fragment_alpha = tex1.a;\\n\"\n \n \" if ((color_id & 128u) != 0u) tex2.rgba *= color.rgba;\\n\"\n\n \n \" tex2.rgba *= texlerp;\\n\"\n \n \" tex2.a *= texlerp;\\n\"\n \n\n \" if (texblend_mode)\\n\"\n \" albedo = tex1.xyz * rlerp(tex2.a, vec3(1.0,1.0,1.0), 2.0*tex2.xyz);\\n\"\n \" else {\\n\"\n \n \" albedo = (1.0-tex2.a)*tex1.xyz + tex2.xyz;\\n\"\n \n \" albedo = rlerp(tex2.a, tex1.xyz, tex2.xyz);\\n\"\n \n \" fragment_alpha = tex1.a*(1-tex2.a)+tex2.a;\\n\"\n \" }\\n\"\n \n \" albedo = tex1.xyz;\\n\"\n \n\n \n \" vec4 color;\"\n \" color.xyz = vec3(facedata.xyz) / 255.0;\\n\"\n \" bool emissive = false;\\n\"\n \" albedo = color.xyz;\\n\"\n \" fragment_alpha = 1.0;\\n\"\n \n\n \n \n \n \" vec3 normal = normalize(vnormal);\\n\"\n \n \" vec3 normal = vnormal;\\n\"\n \n\n \" vec3 ambient_color = dot(normal, ambient[0].xyz) * ambient[1].xyz + ambient[2].xyz;\\n\"\n\n \" ambient_color = clamp(ambient_color, 0.0, 1.0);\"\n \" ambient_color *= amb_occ;\\n\"\n\n \" vec3 lit_color;\\n\"\n \" if (!emissive)\\n\"\n \n \" lit_color = compute_lighting(voxelspace_pos + transform[1], normal, albedo, ambient_color);\\n\"\n \n \" lit_color = albedo * ambient_color ;\\n\"\n \n \" else\\n\"\n \" lit_color = albedo;\\n\"\n\n \n \" vec3 dist = voxelspace_pos + (transform[1] - camera_pos.xyz);\\n\"\n \" lit_color = compute_fog(lit_color, dist, fragment_alpha);\\n\"\n \n\n \n \" vec4 final_color = vec4(lit_color/fragment_alpha, fragment_alpha);\\n\"\n \n \" vec4 final_color = vec4(lit_color, fragment_alpha);\\n\"\n \n \" outcolor = final_color;\\n\"\n \"}\\n\"\n\n \n \"\\n\"\n \"uniform vec3 light_source[2];\\n\"\n \"vec3 compute_lighting(vec3 pos, vec3 norm, vec3 albedo, vec3 ambient)\\n\"\n \"{\\n\"\n \" vec3 light_dir = light_source[0] - pos;\\n\"\n \" float lambert = dot(light_dir, norm) / dot(light_dir, light_dir);\\n\"\n \" vec3 diffuse = clamp(light_source[1] * clamp(lambert, 0.0, 1.0), 0.0, 1.0);\\n\"\n \" return (diffuse + ambient) * albedo;\\n\"\n \"}\\n\"\n \n\n \n \"\\n\"\n \"vec3 compute_fog(vec3 color, vec3 relative_pos, float fragment_alpha)\\n\"\n \"{\\n\"\n \" float f = dot(relative_pos,relative_pos)*ambient[3].w;\\n\"\n \n \" f = clamp(f, 0.0, 1.0);\\n\"\n \" f = 3.0*f*f - 2.0*f*f*f;\\n\" \n \n \n \" return rlerp(f, color.xyz, ambient[3].xyz*fragment_alpha);\\n\"\n \n \" return rlerp(f, color.xyz, ambient[3].xyz);\\n\"\n \n \"}\\n\"\n \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1646, - "column": 1, - "source_line": "static const char *stbvox_fragment_program =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_fragment_program_alpha_only", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_fragment_program_alpha_only", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \"flat in uvec4 facedata;\\n\"\n \" in vec3 voxelspace_pos;\\n\"\n \" in float texlerp;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \n \"uniform sampler2DArray tex_array[2];\\n\"\n\n \n \"uniform samplerBuffer texscale;\\n\"\n \"uniform samplerBuffer texgen;\\n\"\n \n \"uniform vec4 texscale[64];\\n\" \n \"uniform vec3 texgen[64];\\n\"\n \n \n\n \"out vec4 outcolor;\\n\"\n\n \"void main()\\n\"\n \"{\\n\"\n \" vec3 albedo;\\n\"\n \" float fragment_alpha;\\n\"\n\n \n \n \" uint tex1_id = facedata.x;\\n\"\n \" uint tex2_id = facedata.y;\\n\"\n \" uint texprojid = facedata.w & 31u;\\n\"\n \" uint color_id = facedata.z;\\n\"\n\n \n \n \" vec3 texgen_s = texgen[texprojid];\\n\"\n \" vec3 texgen_t = texgen[texprojid+32u];\\n\"\n \" float tex1_scale = texscale[tex1_id & 63u].x;\\n\"\n \" vec4 color = color_table[color_id & 63u];\\n\"\n \" vec4 tex2_props = texscale[tex2_id & 63u];\\n\"\n \n \" vec3 texgen_s = texelFetch(texgen, int(texprojid)).xyz;\\n\"\n \" vec3 texgen_t = texelFetch(texgen, int(texprojid+32u)).xyz;\\n\"\n \" float tex1_scale = texelFetch(texscale, int(tex1_id & 127u)).x;\\n\"\n \" vec4 color = texelFetch(color_table, int(color_id & 63u));\\n\"\n \" vec4 tex2_props = texelFetch(texscale, int(tex2_id & 127u));\\n\"\n \n\n \n \" float tex2_scale = tex2_props.y;\\n\"\n \" bool texblend_mode = tex2_props.z &((facedata.w & 128u) != 0u);\\n\"\n \n\n \" color.a = min(color.a, 1.0);\\n\"\n\n \" vec2 texcoord;\\n\"\n \" vec3 texturespace_pos = voxelspace_pos + transform[2].xyz;\\n\"\n \" texcoord.s = dot(texturespace_pos, texgen_s);\\n\"\n \" texcoord.t = dot(texturespace_pos, texgen_t);\\n\"\n\n \" vec2 texcoord_1 = tex1_scale * texcoord;\\n\"\n \" vec2 texcoord_2 = tex2_scale * texcoord;\\n\"\n\n \n \" texcoord_1 = texcoord_1 - floor(texcoord_1);\\n\"\n \" vec4 tex1 = textureGrad(tex_array[0], vec3(texcoord_1, float(tex1_id)), dFdx(tex1_scale*texcoord), dFdy(tex1_scale*texcoord));\\n\"\n \n \" vec4 tex1 = texture(tex_array[0], vec3(texcoord_1, float(tex1_id)));\\n\"\n \n\n \" if ((color_id & 64u) != 0u) tex1.a *= color.a;\\n\"\n \" fragment_alpha = tex1.a;\\n\"\n\n \n \" if (!texblend_mode) {\\n\"\n \n \" texcoord_2 = texcoord_2 - floor(texcoord_2);\\n\"\n \" vec4 tex2 = textureGrad(tex_array[0], vec3(texcoord_2, float(tex2_id)), dFdx(tex2_scale*texcoord), dFdy(tex2_scale*texcoord));\\n\"\n \n \" vec4 tex2 = texture(tex_array[1], vec3(texcoord_2, float(tex2_id)));\\n\"\n \n\n \" tex2.a *= texlerp;\\n\"\n \" if ((color_id & 128u) != 0u) tex2.rgba *= color.a;\\n\"\n \" fragment_alpha = tex1.a*(1-tex2.a)+tex2.a;\\n\"\n \"}\\n\"\n \"\\n\"\n \n\n \n \" fragment_alpha = 1.0;\\n\"\n \n\n \" outcolor = vec4(0.0, 0.0, 0.0, fragment_alpha);\\n\"\n \"}\\n\"\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1866, - "column": 1, - "source_line": "static const char *stbvox_fragment_program_alpha_only =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_dummy_transform", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_dummy_transform[3][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1985, - "column": 1, - "source_line": "static float stbvox_dummy_transform[3][3];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_uniforms", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_uniform_info stbvox_uniforms[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "stbvox_uniform_info", - "name": "stbvox_uniform_info", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { STBVOX_UNIFORM_TYPE_sampler , 4, 1, (char*) \"facearray\" , 0 },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 3, (char*) \"transform\" , stbvox_dummy_transform[0] },\n { STBVOX_UNIFORM_TYPE_sampler , 4, 2, (char*) \"tex_array\" , 0 },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 128, (char*) \"texscale\" , stbvox_default_texscale[0] , STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 64, (char*) \"color_table\" , stbvox_default_palette[0] , STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 32, (char*) \"normal_table\" , stbvox_default_normals[0] },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 64, (char*) \"texgen\" , stbvox_default_texgen[0][0], STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 4, (char*) \"ambient\" , stbvox_default_ambient[0] },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 1, (char*) \"camera_pos\" , stbvox_dummy_transform[0] },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1993, - "column": 1, - "source_line": "static stbvox_uniform_info stbvox_uniforms[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_rotate_face", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_rotate_face[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,1,2,3 },\n { 1,2,3,0 },\n { 2,3,0,1 },\n { 3,0,1,2 },\n { 4,4,4,4 },\n { 5,5,5,5 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2030, - "column": 1, - "source_line": "static unsigned char stbvox_rotate_face[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_face_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face_lerp[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,0,2,4,4 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2162, - "column": 1, - "source_line": "static unsigned char stbvox_face_lerp[6] = { 0,2,0,2,4,4 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vert3_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert3_lerp[5]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,3,6,9,12 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2163, - "column": 1, - "source_line": "static unsigned char stbvox_vert3_lerp[5] = { 0,3,6,9,12 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vert_lerp_for_face_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert_lerp_for_face_lerp[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, 4, 7, 7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2164, - "column": 1, - "source_line": "static unsigned char stbvox_vert_lerp_for_face_lerp[4] = { 0, 4, 7, 7 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_face3_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face3_lerp[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,3,6,9,12,14 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2165, - "column": 1, - "source_line": "static unsigned char stbvox_face3_lerp[6] = { 0,3,6,9,12,14 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vert_lerp_for_simple", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert_lerp_for_simple[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,5,7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2166, - "column": 1, - "source_line": "static unsigned char stbvox_vert_lerp_for_simple[4] = { 0,2,5,7 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_face3_updown", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face3_updown[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,5,7,0,2,5,7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2167, - "column": 1, - "source_line": "static unsigned char stbvox_face3_updown[8] = { 0,2,5,7,0,2,5,7 }; // ignore top bit" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vertex_vector", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vertex_vector[6][4][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { { 1,0,1 }, { 1,1,1 }, { 1,1,0 }, { 1,0,0 } }, \n { { 1,1,1 }, { 0,1,1 }, { 0,1,0 }, { 1,1,0 } }, \n { { 0,1,1 }, { 0,0,1 }, { 0,0,0 }, { 0,1,0 } }, \n { { 0,0,1 }, { 1,0,1 }, { 1,0,0 }, { 0,0,0 } }, \n { { 0,1,1 }, { 1,1,1 }, { 1,0,1 }, { 0,0,1 } }, \n { { 0,0,0 }, { 1,0,0 }, { 1,1,0 }, { 0,1,0 } }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2170, - "column": 1, - "source_line": "static unsigned char stbvox_vertex_vector[6][4][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vertex_selector", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vertex_selector[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 5,7,3,1 },\n { 7,6,2,3 },\n { 6,4,0,2 },\n { 4,5,1,0 },\n { 6,7,5,4 },\n { 0,1,3,2 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2181, - "column": 1, - "source_line": "static unsigned char stbvox_vertex_selector[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vmesh_delta_normal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_delta_normal[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(0,0,1,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,1,0,0) ,\n stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(0,0,1,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2191, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_delta_normal[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vmesh_pre_vheight", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_pre_vheight[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2219, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_pre_vheight[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vmesh_delta_half_z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_delta_half_z[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2247, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_delta_half_z[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_vmesh_crossed_pair", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_crossed_pair[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n \n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2275, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_crossed_pair[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_hasface", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_hasface[STBVOX_MAX_GEOM][STBVOX_NUM_ROTATION]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_MAX_GEOM", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_NUM_ROTATION", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,0,0,0 }, \n { 0,0,0,0 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 1|2|4|48, 8|1|2|48, 4|8|1|48, 2|4|8|48, }, \n { 1|2|4|48, 8|1|2|48, 4|8|1|48, 2|4|8|48, }, \n { 47,47,47,47 }, \n { 31,31,31,31 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2308, - "column": 1, - "source_line": "static unsigned char stbvox_hasface[STBVOX_MAX_GEOM][STBVOX_NUM_ROTATION] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_facetype", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_facetype[STBVOX_GEOM_count][6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_GEOM_count", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0, }, \n { STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid }, \n { STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid }, \n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force }, \n\n { STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_solid, STBVOX_FT_force },\n { STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_force, STBVOX_FT_solid },\n { STBVOX_FT_diag_123, STBVOX_FT_solid, STBVOX_FT_diag_023, STBVOX_FT_none, STBVOX_FT_force, STBVOX_FT_solid },\n { STBVOX_FT_diag_012, STBVOX_FT_solid, STBVOX_FT_diag_013, STBVOX_FT_none, STBVOX_FT_solid, STBVOX_FT_force },\n\n { STBVOX_FT_diag_123, STBVOX_FT_solid, STBVOX_FT_diag_023, STBVOX_FT_force, STBVOX_FT_none, STBVOX_FT_solid },\n { STBVOX_FT_diag_012, STBVOX_FT_solid, STBVOX_FT_diag_013, STBVOX_FT_force, STBVOX_FT_solid, STBVOX_FT_none },\n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, 0,0 }, \n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force }, \n\n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_force, STBVOX_FT_solid }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_force, STBVOX_FT_solid }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_solid, STBVOX_FT_force }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_solid, STBVOX_FT_force }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2329, - "column": 1, - "source_line": "static unsigned char stbvox_facetype[STBVOX_GEOM_count][6] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_floor_slope_for_rot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_floor_slope_for_rot[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVF_su,\n STBVF_wu, \n STBVF_nu,\n STBVF_eu,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2354, - "column": 1, - "source_line": "static unsigned char stbvox_floor_slope_for_rot[4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_ceil_slope_for_rot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_ceil_slope_for_rot[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVF_sd,\n STBVF_ed,\n STBVF_nd,\n STBVF_wd,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2362, - "column": 1, - "source_line": "static unsigned char stbvox_ceil_slope_for_rot[4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "stbvox_face_visible", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned short stbvox_face_visible[STBVOX_FT_count]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_FT_count", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n \n \n (unsigned short) ((~0x07ffu )<<5), \n (unsigned short) ((~((1u<" - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1218, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1219, - "column": 1, - "source_line": "#include " - } - }, - { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1220, - "column": 1, - "source_line": "#include // memset" - } - }, - { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1224, - "column": 4, - "source_line": " #include " - } - } - ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "INCLUDE_STB_VOXEL_RENDER_H", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 228, - "column": 1, - "source_line": "#ifndef INCLUDE_STB_VOXEL_RENDER_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_VOXEL_RENDER_STATIC", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 236, - "column": 1, - "source_line": "#ifdef STB_VOXEL_RENDER_STATIC" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 238, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 240, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 242, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 244, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 607, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 653, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 655, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 657, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_BLOCKTYPE_SHORT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 704, - "column": 1, - "source_line": "#ifdef STBVOX_CONFIG_BLOCKTYPE_SHORT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 706, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 708, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_BLOCKTYPE_SHORT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1149, - "column": 1, - "source_line": "#ifdef STBVOX_BLOCKTYPE_SHORT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1151, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1153, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_MAX_MESHES", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1173, - "column": 1, - "source_line": "#ifndef STBVOX_MAX_MESHES" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1175, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1213, - "column": 1, - "source_line": "#endif // INCLUDE_STB_VOXEL_RENDER_H" - } - }, - { - "directive": "ifdef", - "argument": "STB_VOXEL_RENDER_IMPLEMENTATION", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1216, - "column": 1, - "source_line": "#ifdef STB_VOXEL_RENDER_IMPLEMENTATION" - } - }, - { - "directive": "ifndef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1223, - "column": 1, - "source_line": "#ifndef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1227, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1230, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1232, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1234, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1236, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_MODE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1240, - "column": 1, - "source_line": "#ifndef STBVOX_CONFIG_MODE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1242, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_ROTATION_IN_LIGHTING) && defined(STBVOX_CONFIG_VHEIGHT_IN_LIGHTING)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1244, - "column": 1, - "source_line": "#if defined(STBVOX_CONFIG_ROTATION_IN_LIGHTING) && defined(STBVOX_CONFIG_VHEIGHT_IN_LIGHTING)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1246, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBVOX_CONFIG_MODE==0 || STBVOX_CONFIG_MODE==1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1292, - "column": 1, - "source_line": "#if STBVOX_CONFIG_MODE==0 || STBVOX_CONFIG_MODE==1" - } - }, - { - "directive": "elif", - "argument": "STBVOX_CONFIG_MODE==20 || STBVOX_CONFIG_MODE==21", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1297, - "column": 1, - "source_line": "#elif STBVOX_CONFIG_MODE==20 || STBVOX_CONFIG_MODE==21" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1303, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1305, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "STBVOX_CONFIG_MODE==0 || STBVOX_CONFIG_MODE==20", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1307, - "column": 1, - "source_line": "#if STBVOX_CONFIG_MODE==0 || STBVOX_CONFIG_MODE==20" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1309, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_HLSL", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1311, - "column": 1, - "source_line": "#ifndef STBVOX_CONFIG_HLSL" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1314, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_OPENGL_MODELVIEW", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1316, - "column": 1, - "source_line": "#ifdef STBVOX_CONFIG_OPENGL_MODELVIEW" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1318, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_ICONFIG_VERTEX_32)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1320, - "column": 1, - "source_line": "#if defined(STBVOX_ICONFIG_VERTEX_32)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_ICONFIG_VERTEX_16_1)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1324, - "column": 1, - "source_line": "#elif defined(STBVOX_ICONFIG_VERTEX_16_1) // mode=2" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_ICONFIG_VERTEX_16_2)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1328, - "column": 1, - "source_line": "#elif defined(STBVOX_ICONFIG_VERTEX_16_2) // mode=3" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_ICONFIG_VERTEX_8)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1332, - "column": 1, - "source_line": "#elif defined(STBVOX_ICONFIG_VERTEX_8)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1336, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1338, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE1_1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1340, - "column": 1, - "source_line": "#ifdef STBVOX_ICONFIG_FACE1_1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1345, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1347, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_ICONFIG_OPENGL_3_1_COMPATIBILITY)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1560, - "column": 1, - "source_line": "#if defined(STBVOX_ICONFIG_OPENGL_3_1_COMPATIBILITY)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_ICONFIG_OPENGL_3_0)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1562, - "column": 1, - "source_line": "#elif defined(STBVOX_ICONFIG_OPENGL_3_0)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_ICONFIG_GLSL)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1564, - "column": 1, - "source_line": "#elif defined(STBVOX_ICONFIG_GLSL)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1566, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1568, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE_ATTRIBUTE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1574, - "column": 4, - "source_line": " #ifdef STBVOX_ICONFIG_FACE_ATTRIBUTE // NOT TAG_face_sampled" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1576, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1578, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE_ARRAY_2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1580, - "column": 4, - "source_line": " #ifdef STBVOX_ICONFIG_FACE_ARRAY_2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1582, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_OPENGL_MODELVIEW", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1598, - "column": 7, - "source_line": " #ifndef STBVOX_CONFIG_OPENGL_MODELVIEW" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1600, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE_ATTRIBUTE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1612, - "column": 7, - "source_line": " #ifdef STBVOX_ICONFIG_FACE_ATTRIBUTE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1614, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1617, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_DEBUG_TEST_NORMALS", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1631, - "column": 7, - "source_line": " #ifdef STBVOX_DEBUG_TEST_NORMALS" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1634, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_OPENGL_MODELVIEW", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1636, - "column": 7, - "source_line": " #ifndef STBVOX_CONFIG_OPENGL_MODELVIEW" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1638, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1640, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_ICONFIG_GLSL)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1651, - "column": 7, - "source_line": " #if defined(STBVOX_ICONFIG_GLSL)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_CONFIG_HLSL)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1653, - "column": 7, - "source_line": " #elif defined(STBVOX_CONFIG_HLSL)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1655, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1657, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_ICONFIG_UNTEXTURED", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1676, - "column": 7, - "source_line": " #ifndef STBVOX_ICONFIG_UNTEXTURED" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREFER_TEXBUFFER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1680, - "column": 10, - "source_line": " #ifdef STBVOX_CONFIG_PREFER_TEXBUFFER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1684, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1688, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1689, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_LIGHTING) || defined(STBVOX_CONFIG_LIGHTING_SIMPLE)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1693, - "column": 7, - "source_line": " #if defined(STBVOX_CONFIG_LIGHTING) || defined(STBVOX_CONFIG_LIGHTING_SIMPLE)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1695, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_FOG) || defined(STBVOX_CONFIG_FOG_SMOOTHSTEP)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1696, - "column": 7, - "source_line": " #if defined(STBVOX_CONFIG_FOG) || defined(STBVOX_CONFIG_FOG_SMOOTHSTEP)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1698, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_ICONFIG_UNTEXTURED", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1705, - "column": 7, - "source_line": " #ifndef STBVOX_ICONFIG_UNTEXTURED" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_PREFER_TEXBUFFER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1712, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_PREFER_TEXBUFFER" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1718, - "column": 13, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1720, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1721, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1726, - "column": 13, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1728, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1729, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1731, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1734, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1741, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1743, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_TEX1_EDGE_CLAMP", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1745, - "column": 10, - "source_line": " #ifdef STBVOX_CONFIG_TEX1_EDGE_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1748, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1750, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1752, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_TEX2_EDGE_CLAMP", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1753, - "column": 10, - "source_line": " #ifdef STBVOX_CONFIG_TEX2_EDGE_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1756, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1758, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1759, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1767, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREMULTIPLIED_ALPHA", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1770, - "column": 13, - "source_line": " #ifdef STBVOX_CONFIG_PREMULTIPLIED_ALPHA" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1772, - "column": 13, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1774, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREMULTIPLIED_ALPHA", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1779, - "column": 13, - "source_line": " #ifdef STBVOX_CONFIG_PREMULTIPLIED_ALPHA" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1781, - "column": 13, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1783, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1786, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1788, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1790, - "column": 7, - "source_line": " #else // UNTEXTURED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1796, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_VARYING_VERTEX_NORMALS", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1798, - "column": 7, - "source_line": " #ifdef STBVOX_ICONFIG_VARYING_VERTEX_NORMALS" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1802, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1804, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_ICONFIG_LIGHTING) || defined(STBVOX_CONFIG_LIGHTING_SIMPLE)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1813, - "column": 7, - "source_line": " #if defined(STBVOX_ICONFIG_LIGHTING) || defined(STBVOX_CONFIG_LIGHTING_SIMPLE)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1815, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1817, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_ICONFIG_FOG) || defined(STBVOX_CONFIG_FOG_SMOOTHSTEP)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1821, - "column": 7, - "source_line": " #if defined(STBVOX_ICONFIG_FOG) || defined(STBVOX_CONFIG_FOG_SMOOTHSTEP)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1824, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_UNPREMULTIPLY", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1826, - "column": 7, - "source_line": " #ifdef STBVOX_CONFIG_UNPREMULTIPLY" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1828, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1830, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_LIGHTING_SIMPLE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1834, - "column": 4, - "source_line": " #ifdef STBVOX_CONFIG_LIGHTING_SIMPLE" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1844, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_FOG_SMOOTHSTEP", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1846, - "column": 4, - "source_line": " #ifdef STBVOX_CONFIG_FOG_SMOOTHSTEP" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREMULTIPLIED_ALPHA", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1855, - "column": 7, - "source_line": " #ifdef STBVOX_CONFIG_PREMULTIPLIED_ALPHA" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1857, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1859, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1861, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_ICONFIG_UNTEXTURED", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1878, - "column": 4, - "source_line": " #ifndef STBVOX_ICONFIG_UNTEXTURED" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREFER_TEXBUFFER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1882, - "column": 7, - "source_line": " #ifdef STBVOX_CONFIG_PREFER_TEXBUFFER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1885, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1888, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1889, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_ICONFIG_UNTEXTURED", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1898, - "column": 4, - "source_line": " #ifndef STBVOX_ICONFIG_UNTEXTURED" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_PREFER_TEXBUFFER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1905, - "column": 7, - "source_line": " #ifndef STBVOX_CONFIG_PREFER_TEXBUFFER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1912, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1918, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1920, - "column": 7, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1923, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_TEX1_EDGE_CLAMP", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1935, - "column": 7, - "source_line": " #ifdef STBVOX_CONFIG_TEX1_EDGE_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1938, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1940, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_DISABLE_TEX2", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1945, - "column": 7, - "source_line": " #ifndef STBVOX_CONFIG_DISABLE_TEX2" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_TEX2_EDGE_CLAMP", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1947, - "column": 10, - "source_line": " #ifdef STBVOX_CONFIG_TEX2_EDGE_CLAMP" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1950, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1952, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1959, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1961, - "column": 4, - "source_line": " #else // UNTEXTURED" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1963, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_PREFER_TEXBUFFER", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1987, - "column": 1, - "source_line": "#ifdef STBVOX_CONFIG_PREFER_TEXBUFFER" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1989, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1991, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_UNTEXTURED", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2049, - "column": 4, - "source_line": " #ifdef STBVOX_ICONFIG_UNTEXTURED" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2057, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2139, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_OPTIMIZED_VHEIGHT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2425, - "column": 1, - "source_line": "#ifdef STBVOX_CONFIG_OPTIMIZED_VHEIGHT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2519, - "column": 1, - "source_line": "#else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2649, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE_ATTRIBUTE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2664, - "column": 4, - "source_line": " #ifdef STBVOX_ICONFIG_FACE_ATTRIBUTE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2670, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2673, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED) && defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2685, - "column": 4, - "source_line": " #if defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED) && defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2687, - "column": 4, - "source_line": " #elif defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)" - } - }, - { - "directive": "elif", - "argument": "defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2689, - "column": 4, - "source_line": " #elif defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2691, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED) || defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2693, - "column": 4, - "source_line": " #if defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED) || defined(STBVOX_CONFIG_UP_TEXLERP_PACKED)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2707, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_UP_TEXLERP_PACKED) || defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2762, - "column": 7, - "source_line": " #if defined(STBVOX_CONFIG_UP_TEXLERP_PACKED) || defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2764, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_UP_TEXLERP_PACKED) || defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2768, - "column": 4, - "source_line": " #if defined(STBVOX_CONFIG_UP_TEXLERP_PACKED) || defined(STBVOX_CONFIG_DOWN_TEXLERP_PACKED)" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2770, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "defined(STBVOX_CONFIG_ROTATION_IN_LIGHTING) || defined(STBVOX_CONFIG_VHEIGHT_IN_LIGHTING)", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2789, - "column": 13, - "source_line": " #if defined(STBVOX_CONFIG_ROTATION_IN_LIGHTING) || defined(STBVOX_CONFIG_VHEIGHT_IN_LIGHTING)" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2792, - "column": 13, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2795, - "column": 13, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_OPTIMIZED_VHEIGHT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2841, - "column": 1, - "source_line": "#ifndef STBVOX_CONFIG_OPTIMIZED_VHEIGHT" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2887, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_PRECISION_Z", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2889, - "column": 1, - "source_line": "#ifndef STBVOX_CONFIG_PRECISION_Z" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2891, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_ROTATION_IN_LIGHTING", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2918, - "column": 4, - "source_line": " #ifdef STBVOX_CONFIG_ROTATION_IN_LIGHTING" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2920, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_ROTATION_IN_LIGHTING", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3006, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_ROTATION_IN_LIGHTING" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3016, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_ROTATION_IN_LIGHTING", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3018, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_ROTATION_IN_LIGHTING" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3027, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_ROTATION_IN_LIGHTING", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3031, - "column": 4, - "source_line": " #ifndef STBVOX_CONFIG_ROTATION_IN_LIGHTING" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3041, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3049, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_CONFIG_VHEIGHT_IN_LIGHTING", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3210, - "column": 7, - "source_line": " #ifdef STBVOX_CONFIG_VHEIGHT_IN_LIGHTING" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3215, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3247, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_OPTIMIZED_VHEIGHT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3299, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_OPTIMIZED_VHEIGHT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3309, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3311, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "ifndef", - "argument": "STBVOX_CONFIG_OPTIMIZED_VHEIGHT", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3319, - "column": 10, - "source_line": " #ifndef STBVOX_CONFIG_OPTIMIZED_VHEIGHT" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3329, - "column": 10, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3331, - "column": 10, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "STBVOX_CONFIG_PRECISION_Z == 1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3448, - "column": 7, - "source_line": " #if STBVOX_CONFIG_PRECISION_Z == 1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3450, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3452, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "ifdef", - "argument": "STBVOX_ICONFIG_FACE_ATTRIBUTE", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3471, - "column": 7, - "source_line": " #ifdef STBVOX_ICONFIG_FACE_ATTRIBUTE" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3477, - "column": 7, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3485, - "column": 7, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "STBVOX_CONFIG_PRECISION_Z==1", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3603, - "column": 4, - "source_line": " #if STBVOX_CONFIG_PRECISION_Z==1" - } - }, - { - "directive": "else", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3605, - "column": 4, - "source_line": " #else" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3607, - "column": 4, - "source_line": " #endif" - } - }, - { - "directive": "if", - "argument": "0", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3657, - "column": 1, - "source_line": "#if 0" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3703, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3765, - "column": 1, - "source_line": "#endif // STB_VOXEL_RENDER_IMPLEMENTATION" - } - } - ], - "macro_dependencies": [ - { - "name": "STBVXDEC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1970, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_vertex_shader(void)" - }, - "source_text": "STBVXDEC char *stbvox_get_vertex_shader(void)" - }, - { - "name": "STBVXDEC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1975, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader(void)" - }, - "source_text": "STBVXDEC char *stbvox_get_fragment_shader(void)" - }, - { - "name": "STBVXDEC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1980, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader_alpha_only(void)" - }, - "source_text": "STBVXDEC char *stbvox_get_fragment_shader_alpha_only(void)" - }, - { - "name": "STBVXDEC", - "context": "declaration", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2006, - "column": 1, - "source_line": "STBVXDEC int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform)" - }, - "source_text": "STBVXDEC int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform)" - } - ], - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_GEOMETRY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1155, - "column": 1, - "source_line": "#define STBVOX_MAKE_GEOMETRY(geom, rotate, vheight) ((geom) + (rotate)*16 + (vheight)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_GEOMETRY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_VHEIGHT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1156, - "column": 1, - "source_line": "#define STBVOX_MAKE_VHEIGHT(v_sw, v_se, v_nw, v_ne) ((v_sw) + (v_se)*4 + (v_nw)*16 + (v_ne)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_VHEIGHT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_MATROT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1157, - "column": 1, - "source_line": "#define STBVOX_MAKE_MATROT(block, overlay, color) ((block) + (overlay)*4 + (color)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_MATROT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEX2_REPLACE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1158, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEX2_REPLACE(tex2, tex2_replace_face) ((tex2) + ((tex2_replace_face) & 3)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEX2_REPLACE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1159, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP(ns2, ew2, ud2, vert) ((ew2) + (ns2)*4 + (ud2)*16 + (vert)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_SIMPLE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1160, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_SIMPLE(baselerp,vert,face) ((vert)*32 + (face)*4 + (baselerp))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_SIMPLE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1161, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP1(vert,e2,n2,w2,s2,u4,d2) STBVOX_MAKE_TEXLERP(s2, w2, d2, vert)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1162, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP2(vert,e2,n2,w2,s2,u4,d2) ((u2)*16 + (n2)*4 + (s2))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_FACE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1163, - "column": 1, - "source_line": "#define STBVOX_MAKE_FACE_MASK(e,n,w,s,u,d) ((e)+(n)*2+(w)*4+(s)*8+(u)*16+(d)*32)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_FACE_MASK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_SIDE_TEXROT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1164, - "column": 1, - "source_line": "#define STBVOX_MAKE_SIDE_TEXROT(e,n,w,s) ((e)+(n)*4+(w)*16+(s)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_SIDE_TEXROT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_COLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1165, - "column": 1, - "source_line": "#define STBVOX_MAKE_COLOR(color,t1,t2) ((color)+(t1)*64+(t2)*128)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_COLOR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_VERT3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1166, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_VERT3(e,n,w,s,u) ((e)+(n)*8+(w)*64+(s)*512+(u)*4096)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_VERT3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_FACE3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1167, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_FACE3(e,n,w,s,u,d) ((e)+(n)*8+(w)*64+(s)*512+(u)*4096+(d)*16384)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_FACE3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_PACKED_COMPACT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1168, - "column": 1, - "source_line": "#define STBVOX_MAKE_PACKED_COMPACT(rot, vheight, texlerp, def) ((rot)+4*(vheight)+16*(use)+32*(texlerp))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_PACKED_COMPACT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_LIGHTING_EXT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1170, - "column": 1, - "source_line": "#define STBVOX_MAKE_LIGHTING_EXT(lighting, rot) (((lighting)&~3)+(rot))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_LIGHTING_EXT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1171, - "column": 1, - "source_line": "#define STBVOX_MAKE_LIGHTING(lighting) (lighting)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1233, - "column": 4, - "source_line": " #define STBVOX_NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1235, - "column": 4, - "source_line": " #define STBVOX_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1322, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1326, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1330, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1334, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_GEO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2015, - "column": 1, - "source_line": "#define STBVOX_GET_GEO(geom_data) ((geom_data) & 15)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_GEO" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_ROTATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2040, - "column": 1, - "source_line": "#define STBVOX_ROTATE(x,r) stbvox_rotate_face[x][r] // (((x)+(r))&3)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_ROTATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_HEIGHTS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2392, - "column": 4, - "source_line": " #define STBVOX_HEIGHTS(a,b,c,d,e,f,g,h) \\" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_HEIGHTS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2686, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ((f) == STBVOX_FACE_up || (f) == STBVOX_FACE_down)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2688, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ((f) == STBVOX_FACE_up )" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2690, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ( (f) == STBVOX_FACE_down)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2790, - "column": 13, - "source_line": " #define STBVOX_GET_LIGHTING(light) ((light) & ~3)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2793, - "column": 13, - "source_line": " #define STBVOX_GET_LIGHTING(light) (light)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 243, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1970, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_vertex_shader(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1975, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1980, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader_alpha_only(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2006, - "column": 1, - "source_line": "STBVXDEC int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_block_type'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 707, - "column": 1, - "source_line": "typedef unsigned char stbvox_block_type;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_block_type" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_uint16'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1228, - "column": 4, - "source_line": " typedef unsigned short stbvox_uint16;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_uint16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_uint32'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1229, - "column": 4, - "source_line": " typedef unsigned int stbvox_uint32;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_uint32" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1325, - "column": 4, - "source_line": " typedef stbvox_uint16 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1329, - "column": 4, - "source_line": " typedef stbvox_uint16 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1333, - "column": 4, - "source_line": " typedef stbvox_uint8 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - } - ] - } - }, - "functions": { - "stbvox_build_default_palette": { - "name": "stbvox_build_default_palette", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1544, - "column": 1, - "source_line": "static void stbvox_build_default_palette(void)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 1544, - "column": 1, - "source_line": "static void stbvox_build_default_palette(void)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 1553, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_compute_mesh_face_value": { - "name": "stbvox_compute_mesh_face_value", - "result_type": { - "reference": "stbvox_mesh_face" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "normal", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int normal" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int normal" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2042, - "column": 1, - "source_line": "stbvox_mesh_face stbvox_compute_mesh_face_value(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, int normal)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2042, - "column": 1, - "source_line": "stbvox_mesh_face stbvox_compute_mesh_face_value(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, int normal)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2143, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_quad_vertex_pointer": { - "name": "stbvox_get_quad_vertex_pointer", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertices", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex **vertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex **vertices", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", - "type": { - "reference": "stbvox_mesh_face" - }, - "declared_type": { - "reference": "stbvox_mesh_face" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2651, - "column": 1, - "source_line": "void stbvox_get_quad_vertex_pointer(stbvox_mesh_maker *mm, int mesh, stbvox_mesh_vertex **vertices, stbvox_mesh_face face)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2651, - "column": 1, - "source_line": "void stbvox_get_quad_vertex_pointer(stbvox_mesh_maker *mm, int mesh, stbvox_mesh_vertex **vertices, stbvox_mesh_face face)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2674, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_mesh_for_face": { - "name": "stbvox_make_mesh_for_face", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertbase", - "type": { - "reference": "stbvox_mesh_vertex" - }, - "declared_type": { - "reference": "stbvox_mesh_vertex" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face_coord", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "normal", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int normal" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int normal" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2676, - "column": 1, - "source_line": "void stbvox_make_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, int normal)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2676, - "column": 1, - "source_line": "void stbvox_make_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, int normal)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2830, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_12_split_mesh_for_face": { - "name": "stbvox_make_12_split_mesh_for_face", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertbase", - "type": { - "reference": "stbvox_mesh_vertex" - }, - "declared_type": { - "reference": "stbvox_mesh_vertex" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face_coord", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ht", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2843, - "column": 1, - "source_line": "static void stbvox_make_12_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2843, - "column": 1, - "source_line": "static void stbvox_make_12_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2864, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_03_split_mesh_for_face": { - "name": "stbvox_make_03_split_mesh_for_face", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "rot", - "type": { - "reference": "stbvox_rotate" - }, - "declared_type": { - "reference": "stbvox_rotate" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int face" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vertbase", - "type": { - "reference": "stbvox_mesh_vertex" - }, - "declared_type": { - "reference": "stbvox_mesh_vertex" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "face_coord", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *face_coord", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "declared_type": { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char mesh" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "ht", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "unsigned char *ht", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2866, - "column": 1, - "source_line": "static void stbvox_make_03_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2866, - "column": 1, - "source_line": "static void stbvox_make_03_split_mesh_for_face(stbvox_mesh_maker *mm, stbvox_rotate rot, int face, int v_off, stbvox_pos pos, stbvox_mesh_vertex vertbase, stbvox_mesh_vertex *face_coord, unsigned char mesh, unsigned char *ht)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2886, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_mesh_for_block": { - "name": "stbvox_make_mesh_for_block", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "vmesh", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *vmesh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_vertex *vmesh", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2894, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_block(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off, stbvox_mesh_vertex *vmesh)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2894, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_block(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off, stbvox_mesh_vertex *vmesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 2953, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_mesh_for_block_with_geo": { - "name": "stbvox_make_mesh_for_block_with_geo", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "pos", - "type": { - "reference": "stbvox_pos" - }, - "declared_type": { - "reference": "stbvox_pos" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "v_off", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int v_off" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2963, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 2963, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_pos pos, int v_off)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3397, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_mesh_for_column": { - "name": "stbvox_make_mesh_for_column", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3399, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int z0)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3399, - "column": 1, - "source_line": "static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int z0)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3465, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_bring_up_to_date": { - "name": "stbvox_bring_up_to_date", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3467, - "column": 1, - "source_line": "static void stbvox_bring_up_to_date(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3467, - "column": 1, - "source_line": "static void stbvox_bring_up_to_date(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3489, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_make_mesh": { - "name": "stbvox_make_mesh", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3491, - "column": 1, - "source_line": "int stbvox_make_mesh(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3491, - "column": 1, - "source_line": "int stbvox_make_mesh(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3520, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_init_mesh_maker": { - "name": "stbvox_init_mesh_maker", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3522, - "column": 1, - "source_line": "void stbvox_init_mesh_maker(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3522, - "column": 1, - "source_line": "void stbvox_init_mesh_maker(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3529, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_buffer_count": { - "name": "stbvox_get_buffer_count", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3531, - "column": 1, - "source_line": "int stbvox_get_buffer_count(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3531, - "column": 1, - "source_line": "int stbvox_get_buffer_count(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3535, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_buffer_size_per_quad": { - "name": "stbvox_get_buffer_size_per_quad", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "n", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int n" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3537, - "column": 1, - "source_line": "int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int n)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3537, - "column": 1, - "source_line": "int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int n)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3540, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_reset_buffers": { - "name": "stbvox_reset_buffers", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3542, - "column": 1, - "source_line": "void stbvox_reset_buffers(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3542, - "column": 1, - "source_line": "void stbvox_reset_buffers(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3549, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_set_buffer": { - "name": "stbvox_set_buffer", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "slot", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int slot" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "buffer", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *buffer", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "reference": "size_t" - }, - "declared_type": { - "reference": "size_t" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3551, - "column": 1, - "source_line": "void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3551, - "column": 1, - "source_line": "void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3564, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_set_default_mesh": { - "name": "stbvox_set_default_mesh", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3566, - "column": 1, - "source_line": "void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3566, - "column": 1, - "source_line": "void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3569, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_quad_count": { - "name": "stbvox_get_quad_count", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "mesh", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int mesh" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3571, - "column": 1, - "source_line": "int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3571, - "column": 1, - "source_line": "int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3574, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_input_description": { - "name": "stbvox_get_input_description", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_input_description", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_input_description" - } - ] - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3576, - "column": 1, - "source_line": "stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3576, - "column": 1, - "source_line": "stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3579, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_set_input_range": { - "name": "stbvox_set_input_range", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z0", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z0" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y1" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z1", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z1" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z1" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3581, - "column": 1, - "source_line": "void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3581, - "column": 1, - "source_line": "void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3596, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_transform": { - "name": "stbvox_get_transform", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "transform", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float transform[3][3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float transform[3][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3598, - "column": 1, - "source_line": "void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3])" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3598, - "column": 1, - "source_line": "void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3])" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3616, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_get_bounds": { - "name": "stbvox_get_bounds", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "bounds", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float bounds[2][3]", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "float bounds[2][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3618, - "column": 1, - "source_line": "void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3])" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3618, - "column": 1, - "source_line": "void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3])" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3626, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_set_mesh_coordinates": { - "name": "stbvox_set_mesh_coordinates", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3628, - "column": 1, - "source_line": "void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3628, - "column": 1, - "source_line": "void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3633, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "stbvox_set_input_stride": { - "name": "stbvox_set_input_stride", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "mm", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "stbvox_mesh_maker *mm", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "stbvox_mesh_maker" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "x_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int x_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y_stride_in_bytes", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_stride_in_bytes" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int y_stride_in_bytes" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3635, - "column": 1, - "source_line": "void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3635, - "column": 1, - "source_line": "void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3650, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "find_best_normal": { - "name": "find_best_normal", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "parameters": [ - { - "name": "x", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float x" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "y", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float y" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "z", - "type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "declared_type": { - "model": "CFloat", - "qualifiers": [], - "source_text": "float z" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3667, - "column": 1, - "source_line": "static char *find_best_normal(float x, float y, float z)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3667, - "column": 1, - "source_line": "static char *find_best_normal(float x, float y, float z)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3682, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "main": { - "name": "main", - "result_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - }, - "parameters": [ - { - "name": "argc", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int argc" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "argv", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "char **argv", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [], - "source_text": "char" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 3684, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "start": { - "filename": "stb/stb_voxel_render.h", - "line": 3684, - "column": 1, - "source_line": "int main(int argc, char **argv)" - }, - "end": { - "filename": "stb/stb_voxel_render.h", - "line": 3702, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - }, - "structs": { - "stbvox_input_description": { - "reference": "struct stbvox_input_description" - }, - "stbvox_mesh_maker": { - "reference": "struct stbvox_mesh_maker" - } - }, - "unions": {}, - "enums": {}, - "typedefs": { - "stbvox_mesh_maker": { - "reference": "stbvox_mesh_maker" - }, - "stbvox_input_description": { - "reference": "stbvox_input_description" - }, - "stbvox_block_type": { - "reference": "stbvox_block_type" - }, - "stbvox_rgb": { - "reference": "stbvox_rgb" - }, - "stbvox_uint16": { - "reference": "stbvox_uint16" - }, - "stbvox_uint32": { - "reference": "stbvox_uint32" - }, - "stbvox_mesh_vertex": { - "reference": "stbvox_mesh_vertex" - }, - "stbvox_mesh_face": { - "reference": "stbvox_mesh_face" - }, - "stbvox_rotate": { - "reference": "stbvox_rotate" - }, - "stbvox_pos": { - "reference": "stbvox_pos" - } - }, - "variables": { - "stbvox_default_texgen": { - "name": "stbvox_default_texgen", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_texgen[2][32][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "2", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { { 0, 1,0 }, { 0, 0, 1 }, { 0,-1,0 }, { 0, 0,-1 },\n { -1, 0,0 }, { 0, 0, 1 }, { 1, 0,0 }, { 0, 0,-1 },\n { 0,-1,0 }, { 0, 0, 1 }, { 0, 1,0 }, { 0, 0,-1 },\n { 1, 0,0 }, { 0, 0, 1 }, { -1, 0,0 }, { 0, 0,-1 },\n\n { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 },\n { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 },\n { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 },\n { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 },\n },\n { { 0, 0,-1 }, { 0, 1,0 }, { 0, 0, 1 }, { 0,-1,0 },\n { 0, 0,-1 }, { -1, 0,0 }, { 0, 0, 1 }, { 1, 0,0 },\n { 0, 0,-1 }, { 0,-1,0 }, { 0, 0, 1 }, { 0, 1,0 },\n { 0, 0,-1 }, { 1, 0,0 }, { 0, 0, 1 }, { -1, 0,0 },\n\n { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 },\n { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 },\n { 0,-1, 0 }, { 1, 0,0 }, { 0, 1, 0 }, { -1, 0,0 },\n { 0, 1, 0 }, { -1, 0,0 }, { 0,-1, 0 }, { 1, 0,0 },\n },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1428, - "column": 1, - "source_line": "static float stbvox_default_texgen[2][32][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_default_normals": { - "name": "stbvox_default_normals", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_normals[32][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "32", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 1,0,0 }, \n { 0,1,0 }, \n { -1,0,0 }, \n { 0,-1,0 }, \n { 0,0,1 }, \n { 0,0,-1 }, \n { STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { STBVOX_RSQRT3, STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { STBVOX_RSQRT3, STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { 0, STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n { 0, STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT2,0, STBVOX_RSQRT2 }, \n { -STBVOX_RSQRT2,0, -STBVOX_RSQRT2 }, \n\n { STBVOX_RSQRT3, STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3, STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { STBVOX_RSQRT3,-STBVOX_RSQRT3,STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3, STBVOX_RSQRT3 }, \n { -STBVOX_RSQRT3,-STBVOX_RSQRT3,-STBVOX_RSQRT3 }, \n { 0,-STBVOX_RSQRT2, STBVOX_RSQRT2 }, \n { 0,-STBVOX_RSQRT2, -STBVOX_RSQRT2 }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1455, - "column": 1, - "source_line": "static float stbvox_default_normals[32][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_default_texscale": { - "name": "stbvox_default_texscale", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_texscale[128][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "128", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n {1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},{1,1,0,0},\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1494, - "column": 1, - "source_line": "static float stbvox_default_texscale[128][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_default_palette_compact": { - "name": "stbvox_default_palette_compact", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_default_palette_compact[64][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 255,255,255 }, { 238,238,238 }, { 221,221,221 }, { 204,204,204 },\n { 187,187,187 }, { 170,170,170 }, { 153,153,153 }, { 136,136,136 },\n { 119,119,119 }, { 102,102,102 }, { 85, 85, 85 }, { 68, 68, 68 },\n { 51, 51, 51 }, { 34, 34, 34 }, { 17, 17, 17 }, { 0, 0, 0 },\n { 255,240,240 }, { 255,220,220 }, { 255,160,160 }, { 255, 32, 32 },\n { 200,120,160 }, { 200, 60,150 }, { 220,100,130 }, { 255, 0,128 },\n { 240,240,255 }, { 220,220,255 }, { 160,160,255 }, { 32, 32,255 },\n { 120,160,200 }, { 60,150,200 }, { 100,130,220 }, { 0,128,255 },\n { 240,255,240 }, { 220,255,220 }, { 160,255,160 }, { 32,255, 32 },\n { 160,200,120 }, { 150,200, 60 }, { 130,220,100 }, { 128,255, 0 },\n { 255,255,240 }, { 255,255,220 }, { 220,220,180 }, { 255,255, 32 },\n { 200,160,120 }, { 200,150, 60 }, { 220,130,100 }, { 255,128, 0 },\n { 255,240,255 }, { 255,220,255 }, { 220,180,220 }, { 255, 32,255 },\n { 160,120,200 }, { 150, 60,200 }, { 130,100,220 }, { 128, 0,255 },\n { 240,255,255 }, { 220,255,255 }, { 180,220,220 }, { 32,255,255 },\n { 120,200,160 }, { 60,200,150 }, { 100,220,130 }, { 0,255,128 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1514, - "column": 1, - "source_line": "static unsigned char stbvox_default_palette_compact[64][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_default_ambient": { - "name": "stbvox_default_ambient", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_ambient[4][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,0,1 ,0 }, \n { 0.5,0.5,0.5,0 }, \n { 0.5,0.5,0.5,0 }, \n { 0.5,0.5,0.5,1.0f/1000.0f/1000.0f }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1534, - "column": 1, - "source_line": "static float stbvox_default_ambient[4][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_default_palette": { - "name": "stbvox_default_palette", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_default_palette[64][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "64", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1542, - "column": 1, - "source_line": "static float stbvox_default_palette[64][4];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vertex_program": { - "name": "stbvox_vertex_program", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_vertex_program", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \"in uvec4 attr_face;\\n\"\n \n \"uniform usamplerBuffer facearray;\\n\"\n \n\n \n \"uniform usamplerBuffer facearray2;\\n\"\n \n\n \n \"in uint attr_vertex;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \"uniform vec4 camera_pos;\\n\" \n\n \n \n \n \"uniform vec3 normal_table[32];\\n\"\n\n \n \"uniform mat4x4 model_view;\\n\"\n \n\n \n \"flat out uvec4 facedata;\\n\"\n \" out vec3 voxelspace_pos;\\n\"\n \" out vec3 vnormal;\\n\"\n \" out float texlerp;\\n\"\n \" out float amb_occ;\\n\"\n\n \n \"void main()\\n\"\n \"{\\n\"\n \n \" facedata = attr_face;\\n\"\n \n \" int faceID = gl_VertexID >> 2;\\n\"\n \" facedata = texelFetch(facearray, faceID);\\n\"\n \n\n \n \" vec3 offset;\\n\"\n \" offset.x = float( (attr_vertex ) & 127u );\\n\" \n \" offset.y = float( (attr_vertex >> 7u) & 127u );\\n\" \n \" offset.z = float( (attr_vertex >> 14u) & 511u );\\n\" \n \" amb_occ = float( (attr_vertex >> 23u) & 63u ) / 63.0;\\n\" \n \" texlerp = float( (attr_vertex >> 29u) ) / 7.0;\\n\" \n\n \" vnormal = normal_table[(facedata.w>>2u) & 31u];\\n\"\n \" voxelspace_pos = offset * transform[0];\\n\" \n \" vec3 position = voxelspace_pos + transform[1];\\n\" \n\n \n \" if ((facedata.w & 28u) == 16u || (facedata.w & 28u) == 24u)\\n\"\n \" position += vnormal.xyz * camera_pos.w;\\n\"\n \n\n \n \" gl_Position = model_view * vec4(position,1.0);\\n\"\n \n \" gl_Position = gl_ModelViewProjectionMatrix * vec4(position,1.0);\\n\"\n \n\n \"}\\n\"\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1570, - "column": 1, - "source_line": "static const char *stbvox_vertex_program =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_fragment_program": { - "name": "stbvox_fragment_program", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_fragment_program", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \n \"#define rlerp(t,x,y) mix(x,y,t)\\n\"\n \n \"#define rlerp(t,x,y) lerp(x,y,t)\\n\"\n \n \n \n\n\n \n \"flat in uvec4 facedata;\\n\"\n \" in vec3 voxelspace_pos;\\n\"\n \" in vec3 vnormal;\\n\"\n \" in float texlerp;\\n\"\n \" in float amb_occ;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \"uniform vec4 camera_pos;\\n\" \n\n \n \"uniform vec4 ambient[4];\\n\"\n\n \n \n \"uniform sampler2DArray tex_array[2];\\n\"\n\n \n \"uniform samplerBuffer color_table;\\n\"\n \"uniform samplerBuffer texscale;\\n\"\n \"uniform samplerBuffer texgen;\\n\"\n \n \"uniform vec4 color_table[64];\\n\"\n \"uniform vec4 texscale[64];\\n\" \n \"uniform vec3 texgen[64];\\n\"\n \n \n\n \"out vec4 outcolor;\\n\"\n\n \n \"vec3 compute_lighting(vec3 pos, vec3 norm, vec3 albedo, vec3 ambient);\\n\"\n \n \n \"vec3 compute_fog(vec3 color, vec3 relative_pos, float fragment_alpha);\\n\"\n \n\n \"void main()\\n\"\n \"{\\n\"\n \" vec3 albedo;\\n\"\n \" float fragment_alpha;\\n\"\n\n \n \n \" uint tex1_id = facedata.x;\\n\"\n \" uint tex2_id = facedata.y;\\n\"\n \" uint texprojid = facedata.w & 31u;\\n\"\n \" uint color_id = facedata.z;\\n\"\n\n \n \n \" vec3 texgen_s = texgen[texprojid];\\n\"\n \" vec3 texgen_t = texgen[texprojid+32u];\\n\"\n \" float tex1_scale = texscale[tex1_id & 63u].x;\\n\"\n \" vec4 color = color_table[color_id & 63u];\\n\"\n \n \" vec4 tex2_props = texscale[tex2_id & 63u];\\n\"\n \n \n \" vec3 texgen_s = texelFetch(texgen, int(texprojid)).xyz;\\n\"\n \" vec3 texgen_t = texelFetch(texgen, int(texprojid+32u)).xyz;\\n\"\n \" float tex1_scale = texelFetch(texscale, int(tex1_id & 127u)).x;\\n\"\n \" vec4 color = texelFetch(color_table, int(color_id & 63u));\\n\"\n \n \" vec4 tex2_props = texelFetch(texscale, int(tex1_id & 127u));\\n\"\n \n \n\n \n \" float tex2_scale = tex2_props.y;\\n\"\n \" bool texblend_mode = tex2_props.z != 0.0;\\n\"\n \n \" vec2 texcoord;\\n\"\n \" vec3 texturespace_pos = voxelspace_pos + transform[2].xyz;\\n\"\n \" texcoord.s = dot(texturespace_pos, texgen_s);\\n\"\n \" texcoord.t = dot(texturespace_pos, texgen_t);\\n\"\n\n \" vec2 texcoord_1 = tex1_scale * texcoord;\\n\"\n \n \" vec2 texcoord_2 = tex2_scale * texcoord;\\n\"\n \n\n \n \" texcoord_1 = texcoord_1 - floor(texcoord_1);\\n\"\n \" vec4 tex1 = textureGrad(tex_array[0], vec3(texcoord_1, float(tex1_id)), dFdx(tex1_scale*texcoord), dFdy(tex1_scale*texcoord));\\n\"\n \n \" vec4 tex1 = texture(tex_array[0], vec3(texcoord_1, float(tex1_id)));\\n\"\n \n\n \n \n \" texcoord_2 = texcoord_2 - floor(texcoord_2);\\n\"\n \" vec4 tex2 = textureGrad(tex_array[0], vec3(texcoord_2, float(tex2_id)), dFdx(tex2_scale*texcoord), dFdy(tex2_scale*texcoord));\\n\"\n \n \" vec4 tex2 = texture(tex_array[1], vec3(texcoord_2, float(tex2_id)));\\n\"\n \n \n\n \" bool emissive = (color.a > 1.0);\\n\"\n \" color.a = min(color.a, 1.0);\\n\"\n\n \n \" if ((color_id & 64u) != 0u) tex1.rgba *= color.rgba;\\n\"\n \" fragment_alpha = tex1.a;\\n\"\n \n \" if ((color_id & 128u) != 0u) tex2.rgba *= color.rgba;\\n\"\n\n \n \" tex2.rgba *= texlerp;\\n\"\n \n \" tex2.a *= texlerp;\\n\"\n \n\n \" if (texblend_mode)\\n\"\n \" albedo = tex1.xyz * rlerp(tex2.a, vec3(1.0,1.0,1.0), 2.0*tex2.xyz);\\n\"\n \" else {\\n\"\n \n \" albedo = (1.0-tex2.a)*tex1.xyz + tex2.xyz;\\n\"\n \n \" albedo = rlerp(tex2.a, tex1.xyz, tex2.xyz);\\n\"\n \n \" fragment_alpha = tex1.a*(1-tex2.a)+tex2.a;\\n\"\n \" }\\n\"\n \n \" albedo = tex1.xyz;\\n\"\n \n\n \n \" vec4 color;\"\n \" color.xyz = vec3(facedata.xyz) / 255.0;\\n\"\n \" bool emissive = false;\\n\"\n \" albedo = color.xyz;\\n\"\n \" fragment_alpha = 1.0;\\n\"\n \n\n \n \n \n \" vec3 normal = normalize(vnormal);\\n\"\n \n \" vec3 normal = vnormal;\\n\"\n \n\n \" vec3 ambient_color = dot(normal, ambient[0].xyz) * ambient[1].xyz + ambient[2].xyz;\\n\"\n\n \" ambient_color = clamp(ambient_color, 0.0, 1.0);\"\n \" ambient_color *= amb_occ;\\n\"\n\n \" vec3 lit_color;\\n\"\n \" if (!emissive)\\n\"\n \n \" lit_color = compute_lighting(voxelspace_pos + transform[1], normal, albedo, ambient_color);\\n\"\n \n \" lit_color = albedo * ambient_color ;\\n\"\n \n \" else\\n\"\n \" lit_color = albedo;\\n\"\n\n \n \" vec3 dist = voxelspace_pos + (transform[1] - camera_pos.xyz);\\n\"\n \" lit_color = compute_fog(lit_color, dist, fragment_alpha);\\n\"\n \n\n \n \" vec4 final_color = vec4(lit_color/fragment_alpha, fragment_alpha);\\n\"\n \n \" vec4 final_color = vec4(lit_color, fragment_alpha);\\n\"\n \n \" outcolor = final_color;\\n\"\n \"}\\n\"\n\n \n \"\\n\"\n \"uniform vec3 light_source[2];\\n\"\n \"vec3 compute_lighting(vec3 pos, vec3 norm, vec3 albedo, vec3 ambient)\\n\"\n \"{\\n\"\n \" vec3 light_dir = light_source[0] - pos;\\n\"\n \" float lambert = dot(light_dir, norm) / dot(light_dir, light_dir);\\n\"\n \" vec3 diffuse = clamp(light_source[1] * clamp(lambert, 0.0, 1.0), 0.0, 1.0);\\n\"\n \" return (diffuse + ambient) * albedo;\\n\"\n \"}\\n\"\n \n\n \n \"\\n\"\n \"vec3 compute_fog(vec3 color, vec3 relative_pos, float fragment_alpha)\\n\"\n \"{\\n\"\n \" float f = dot(relative_pos,relative_pos)*ambient[3].w;\\n\"\n \n \" f = clamp(f, 0.0, 1.0);\\n\"\n \" f = 3.0*f*f - 2.0*f*f*f;\\n\" \n \n \n \" return rlerp(f, color.xyz, ambient[3].xyz*fragment_alpha);\\n\"\n \n \" return rlerp(f, color.xyz, ambient[3].xyz);\\n\"\n \n \"}\\n\"\n \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1646, - "column": 1, - "source_line": "static const char *stbvox_fragment_program =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_fragment_program_alpha_only": { - "name": "stbvox_fragment_program_alpha_only", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static const char *stbvox_fragment_program_alpha_only", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVOX_SHADER_VERSION\n\n \n \"flat in uvec4 facedata;\\n\"\n \" in vec3 voxelspace_pos;\\n\"\n \" in float texlerp;\\n\"\n\n \n \"uniform vec3 transform[3];\\n\"\n\n \n \n \"uniform sampler2DArray tex_array[2];\\n\"\n\n \n \"uniform samplerBuffer texscale;\\n\"\n \"uniform samplerBuffer texgen;\\n\"\n \n \"uniform vec4 texscale[64];\\n\" \n \"uniform vec3 texgen[64];\\n\"\n \n \n\n \"out vec4 outcolor;\\n\"\n\n \"void main()\\n\"\n \"{\\n\"\n \" vec3 albedo;\\n\"\n \" float fragment_alpha;\\n\"\n\n \n \n \" uint tex1_id = facedata.x;\\n\"\n \" uint tex2_id = facedata.y;\\n\"\n \" uint texprojid = facedata.w & 31u;\\n\"\n \" uint color_id = facedata.z;\\n\"\n\n \n \n \" vec3 texgen_s = texgen[texprojid];\\n\"\n \" vec3 texgen_t = texgen[texprojid+32u];\\n\"\n \" float tex1_scale = texscale[tex1_id & 63u].x;\\n\"\n \" vec4 color = color_table[color_id & 63u];\\n\"\n \" vec4 tex2_props = texscale[tex2_id & 63u];\\n\"\n \n \" vec3 texgen_s = texelFetch(texgen, int(texprojid)).xyz;\\n\"\n \" vec3 texgen_t = texelFetch(texgen, int(texprojid+32u)).xyz;\\n\"\n \" float tex1_scale = texelFetch(texscale, int(tex1_id & 127u)).x;\\n\"\n \" vec4 color = texelFetch(color_table, int(color_id & 63u));\\n\"\n \" vec4 tex2_props = texelFetch(texscale, int(tex2_id & 127u));\\n\"\n \n\n \n \" float tex2_scale = tex2_props.y;\\n\"\n \" bool texblend_mode = tex2_props.z &((facedata.w & 128u) != 0u);\\n\"\n \n\n \" color.a = min(color.a, 1.0);\\n\"\n\n \" vec2 texcoord;\\n\"\n \" vec3 texturespace_pos = voxelspace_pos + transform[2].xyz;\\n\"\n \" texcoord.s = dot(texturespace_pos, texgen_s);\\n\"\n \" texcoord.t = dot(texturespace_pos, texgen_t);\\n\"\n\n \" vec2 texcoord_1 = tex1_scale * texcoord;\\n\"\n \" vec2 texcoord_2 = tex2_scale * texcoord;\\n\"\n\n \n \" texcoord_1 = texcoord_1 - floor(texcoord_1);\\n\"\n \" vec4 tex1 = textureGrad(tex_array[0], vec3(texcoord_1, float(tex1_id)), dFdx(tex1_scale*texcoord), dFdy(tex1_scale*texcoord));\\n\"\n \n \" vec4 tex1 = texture(tex_array[0], vec3(texcoord_1, float(tex1_id)));\\n\"\n \n\n \" if ((color_id & 64u) != 0u) tex1.a *= color.a;\\n\"\n \" fragment_alpha = tex1.a;\\n\"\n\n \n \" if (!texblend_mode) {\\n\"\n \n \" texcoord_2 = texcoord_2 - floor(texcoord_2);\\n\"\n \" vec4 tex2 = textureGrad(tex_array[0], vec3(texcoord_2, float(tex2_id)), dFdx(tex2_scale*texcoord), dFdy(tex2_scale*texcoord));\\n\"\n \n \" vec4 tex2 = texture(tex_array[1], vec3(texcoord_2, float(tex2_id)));\\n\"\n \n\n \" tex2.a *= texlerp;\\n\"\n \" if ((color_id & 128u) != 0u) tex2.rgba *= color.a;\\n\"\n \" fragment_alpha = tex1.a*(1-tex2.a)+tex2.a;\\n\"\n \"}\\n\"\n \"\\n\"\n \n\n \n \" fragment_alpha = 1.0;\\n\"\n \n\n \" outcolor = vec4(0.0, 0.0, 0.0, fragment_alpha);\\n\"\n \"}\\n\"\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1866, - "column": 1, - "source_line": "static const char *stbvox_fragment_program_alpha_only =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_dummy_transform": { - "name": "stbvox_dummy_transform", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static float stbvox_dummy_transform[3][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CFloat", - "qualifiers": [], - "source_text": "float" - } - ] - }, - "storage": [ - "static" - ], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1985, - "column": 1, - "source_line": "static float stbvox_dummy_transform[3][3];" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_uniforms": { - "name": "stbvox_uniforms", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_uniform_info stbvox_uniforms[]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_uniform_info" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { STBVOX_UNIFORM_TYPE_sampler , 4, 1, (char*) \"facearray\" , 0 },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 3, (char*) \"transform\" , stbvox_dummy_transform[0] },\n { STBVOX_UNIFORM_TYPE_sampler , 4, 2, (char*) \"tex_array\" , 0 },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 128, (char*) \"texscale\" , stbvox_default_texscale[0] , STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 64, (char*) \"color_table\" , stbvox_default_palette[0] , STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 32, (char*) \"normal_table\" , stbvox_default_normals[0] },\n { STBVOX_UNIFORM_TYPE_vec3 , 12, 64, (char*) \"texgen\" , stbvox_default_texgen[0][0], STBVOX_TEXBUF },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 4, (char*) \"ambient\" , stbvox_default_ambient[0] },\n { STBVOX_UNIFORM_TYPE_vec4 , 16, 1, (char*) \"camera_pos\" , stbvox_dummy_transform[0] },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1993, - "column": 1, - "source_line": "static stbvox_uniform_info stbvox_uniforms[] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_rotate_face": { - "name": "stbvox_rotate_face", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_rotate_face[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,1,2,3 },\n { 1,2,3,0 },\n { 2,3,0,1 },\n { 3,0,1,2 },\n { 4,4,4,4 },\n { 5,5,5,5 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2030, - "column": 1, - "source_line": "static unsigned char stbvox_rotate_face[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_face_lerp": { - "name": "stbvox_face_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face_lerp[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,0,2,4,4 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2162, - "column": 1, - "source_line": "static unsigned char stbvox_face_lerp[6] = { 0,2,0,2,4,4 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vert3_lerp": { - "name": "stbvox_vert3_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert3_lerp[5]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "5", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,3,6,9,12 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2163, - "column": 1, - "source_line": "static unsigned char stbvox_vert3_lerp[5] = { 0,3,6,9,12 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vert_lerp_for_face_lerp": { - "name": "stbvox_vert_lerp_for_face_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert_lerp_for_face_lerp[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0, 4, 7, 7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2164, - "column": 1, - "source_line": "static unsigned char stbvox_vert_lerp_for_face_lerp[4] = { 0, 4, 7, 7 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_face3_lerp": { - "name": "stbvox_face3_lerp", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face3_lerp[6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,3,6,9,12,14 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2165, - "column": 1, - "source_line": "static unsigned char stbvox_face3_lerp[6] = { 0,3,6,9,12,14 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vert_lerp_for_simple": { - "name": "stbvox_vert_lerp_for_simple", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vert_lerp_for_simple[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,5,7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2166, - "column": 1, - "source_line": "static unsigned char stbvox_vert_lerp_for_simple[4] = { 0,2,5,7 };" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_face3_updown": { - "name": "stbvox_face3_updown", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_face3_updown[8]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "8", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{ 0,2,5,7,0,2,5,7 }" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2167, - "column": 1, - "source_line": "static unsigned char stbvox_face3_updown[8] = { 0,2,5,7,0,2,5,7 }; // ignore top bit" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vertex_vector": { - "name": "stbvox_vertex_vector", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vertex_vector[6][4][3]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "3", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { { 1,0,1 }, { 1,1,1 }, { 1,1,0 }, { 1,0,0 } }, \n { { 1,1,1 }, { 0,1,1 }, { 0,1,0 }, { 1,1,0 } }, \n { { 0,1,1 }, { 0,0,1 }, { 0,0,0 }, { 0,1,0 } }, \n { { 0,0,1 }, { 1,0,1 }, { 1,0,0 }, { 0,0,0 } }, \n { { 0,1,1 }, { 1,1,1 }, { 1,0,1 }, { 0,0,1 } }, \n { { 0,0,0 }, { 1,0,0 }, { 1,1,0 }, { 0,1,0 } }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2170, - "column": 1, - "source_line": "static unsigned char stbvox_vertex_vector[6][4][3] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vertex_selector": { - "name": "stbvox_vertex_selector", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_vertex_selector[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 5,7,3,1 },\n { 7,6,2,3 },\n { 6,4,0,2 },\n { 4,5,1,0 },\n { 6,7,5,4 },\n { 0,1,3,2 },\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2181, - "column": 1, - "source_line": "static unsigned char stbvox_vertex_selector[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vmesh_delta_normal": { - "name": "stbvox_vmesh_delta_normal", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_delta_normal[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(0,0,1,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,1,0,0) ,\n stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,1,0,0) ,\n stbvox_vertex_encode(1,1,1,0,0) ,\n stbvox_vertex_encode(1,0,1,0,0) ,\n stbvox_vertex_encode(0,0,1,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2191, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_delta_normal[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vmesh_pre_vheight": { - "name": "stbvox_vmesh_pre_vheight", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_pre_vheight[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2219, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_pre_vheight[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vmesh_delta_half_z": { - "name": "stbvox_vmesh_delta_half_z", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_delta_half_z[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2247, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_delta_half_z[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_vmesh_crossed_pair": { - "name": "stbvox_vmesh_crossed_pair", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static stbvox_mesh_vertex stbvox_vmesh_crossed_pair[6][4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "reference": "stbvox_mesh_vertex" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) },\n { stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) },\n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) },\n { stbvox_vertex_encode(0,0,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,0,0,0,0) },\n \n { stbvox_vertex_encode(0,1,2,0,0) ,\n stbvox_vertex_encode(1,1,2,0,0) ,\n stbvox_vertex_encode(1,0,2,0,0) ,\n stbvox_vertex_encode(0,0,2,0,0) },\n { stbvox_vertex_encode(0,0,0,0,0) ,\n stbvox_vertex_encode(1,0,0,0,0) ,\n stbvox_vertex_encode(1,1,0,0,0) ,\n stbvox_vertex_encode(0,1,0,0,0) }\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2275, - "column": 1, - "source_line": "static stbvox_mesh_vertex stbvox_vmesh_crossed_pair[6][4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_hasface": { - "name": "stbvox_hasface", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_hasface[STBVOX_MAX_GEOM][STBVOX_NUM_ROTATION]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_MAX_GEOM", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_NUM_ROTATION", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0,0,0,0 }, \n { 0,0,0,0 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 1|2|4|48, 8|1|2|48, 4|8|1|48, 2|4|8|48, }, \n { 1|2|4|48, 8|1|2|48, 4|8|1|48, 2|4|8|48, }, \n { 47,47,47,47 }, \n { 31,31,31,31 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n { 63,63,63,63 }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2308, - "column": 1, - "source_line": "static unsigned char stbvox_hasface[STBVOX_MAX_GEOM][STBVOX_NUM_ROTATION] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_facetype": { - "name": "stbvox_facetype", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_facetype[STBVOX_GEOM_count][6]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_GEOM_count", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "6", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n { 0, }, \n { STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid }, \n { STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid, STBVOX_FT_solid }, \n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force }, \n\n { STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_upper, STBVOX_FT_solid, STBVOX_FT_force },\n { STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_lower, STBVOX_FT_force, STBVOX_FT_solid },\n { STBVOX_FT_diag_123, STBVOX_FT_solid, STBVOX_FT_diag_023, STBVOX_FT_none, STBVOX_FT_force, STBVOX_FT_solid },\n { STBVOX_FT_diag_012, STBVOX_FT_solid, STBVOX_FT_diag_013, STBVOX_FT_none, STBVOX_FT_solid, STBVOX_FT_force },\n\n { STBVOX_FT_diag_123, STBVOX_FT_solid, STBVOX_FT_diag_023, STBVOX_FT_force, STBVOX_FT_none, STBVOX_FT_solid },\n { STBVOX_FT_diag_012, STBVOX_FT_solid, STBVOX_FT_diag_013, STBVOX_FT_force, STBVOX_FT_solid, STBVOX_FT_none },\n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, 0,0 }, \n { STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force, STBVOX_FT_force }, \n\n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_force, STBVOX_FT_solid }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_force, STBVOX_FT_solid }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_solid, STBVOX_FT_force }, \n { STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial,STBVOX_FT_partial, STBVOX_FT_solid, STBVOX_FT_force }, \n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2329, - "column": 1, - "source_line": "static unsigned char stbvox_facetype[STBVOX_GEOM_count][6] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_floor_slope_for_rot": { - "name": "stbvox_floor_slope_for_rot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_floor_slope_for_rot[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVF_su,\n STBVF_wu, \n STBVF_nu,\n STBVF_eu,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2354, - "column": 1, - "source_line": "static unsigned char stbvox_floor_slope_for_rot[4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_ceil_slope_for_rot": { - "name": "stbvox_ceil_slope_for_rot", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned char stbvox_ceil_slope_for_rot[4]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "4", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedChar", - "qualifiers": [], - "source_text": "unsigned char" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n STBVF_sd,\n STBVF_ed,\n STBVF_nd,\n STBVF_wd,\n}" - }, - "bit_width": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 2362, - "column": 1, - "source_line": "static unsigned char stbvox_ceil_slope_for_rot[4] =" - }, - "callback_policy": null, - "declaration_locations": [] - }, - "stbvox_face_visible": { - "name": "stbvox_face_visible", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "static unsigned short stbvox_face_visible[STBVOX_FT_count]", - "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": "STBVOX_FT_count", - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, - { - "model": "CUnsignedShort", - "qualifiers": [], - "source_text": "unsigned short" - } - ] - }, - "storage": [ - "static" - ], - "initializer": { - "source_text": "{\n \n \n (unsigned short) ((~0x07ffu )<<5), \n (unsigned short) ((~((1u<" - } - }, - "stb/stb_voxel_render.h:assert.h": { - "target": "assert.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1219, - "column": 1, - "source_line": "#include " - } - }, - "stb/stb_voxel_render.h:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1220, - "column": 1, - "source_line": "#include // memset" - } - }, - "stb/stb_voxel_render.h:stdint.h": { - "target": "stdint.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "stb/stb_voxel_render.h", - "line": 1224, - "column": 4, - "source_line": " #include " - } - } - }, - "functions_by_file": { - "stb/stb_voxel_render.h": [ - "stbvox_build_default_palette", - "stbvox_compute_mesh_face_value", - "stbvox_get_quad_vertex_pointer", - "stbvox_make_mesh_for_face", - "stbvox_make_12_split_mesh_for_face", - "stbvox_make_03_split_mesh_for_face", - "stbvox_make_mesh_for_block", - "stbvox_make_mesh_for_block_with_geo", - "stbvox_make_mesh_for_column", - "stbvox_bring_up_to_date", - "stbvox_make_mesh", - "stbvox_init_mesh_maker", - "stbvox_get_buffer_count", - "stbvox_get_buffer_size_per_quad", - "stbvox_reset_buffers", - "stbvox_set_buffer", - "stbvox_set_default_mesh", - "stbvox_get_quad_count", - "stbvox_get_input_description", - "stbvox_set_input_range", - "stbvox_get_transform", - "stbvox_get_bounds", - "stbvox_set_mesh_coordinates", - "stbvox_set_input_stride", - "find_best_normal", - "main" - ] - }, - "enum_constants": { - "STBVOX_GEOM_empty": { - "name": "STBVOX_GEOM_empty", - "value": null, + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mesh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "buffer", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *buffer", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "reference": "size_t" + }, + "declared_type": { + "reference": "size_t" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 362, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_knockout": { - "name": "STBVOX_GEOM_knockout", - "value": null, - "source_location": { + "source_line": "extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 362, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_solid": { - "name": "STBVOX_GEOM_solid", - "value": null, + "stbvox_get_buffer_count": { + "name": "stbvox_get_buffer_count", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 387, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_transp": { - "name": "STBVOX_GEOM_transp", - "value": null, - "source_location": { + "source_line": "extern int stbvox_get_buffer_count(stbvox_mesh_maker *mm);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 387, "column": 1, - "source_line": "enum" - } + "source_line": "extern int stbvox_get_buffer_count(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_slab_upper": { - "name": "STBVOX_GEOM_slab_upper", - "value": null, + "stbvox_get_buffer_size_per_quad": { + "name": "stbvox_get_buffer_size_per_quad", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "slot", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int slot" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 390, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_slab_lower": { - "name": "STBVOX_GEOM_slab_lower", - "value": null, - "source_location": { + "source_line": "extern int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int slot);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 390, "column": 1, - "source_line": "enum" - } + "source_line": "extern int stbvox_get_buffer_size_per_quad(stbvox_mesh_maker *mm, int slot);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_floor_slope_north_is_top": { - "name": "STBVOX_GEOM_floor_slope_north_is_top", - "value": null, + "stbvox_set_default_mesh": { + "name": "stbvox_set_default_mesh", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mesh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 396, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_ceil_slope_north_is_bottom": { - "name": "STBVOX_GEOM_ceil_slope_north_is_bottom", - "value": null, - "source_location": { + "source_line": "extern void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 396, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_set_default_mesh(stbvox_mesh_maker *mm, int mesh);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED": { - "name": "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED", - "value": null, + "stbvox_get_input_description": { + "name": "stbvox_get_input_description", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_input_description", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_input_description" + } + ] + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 401, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED": { - "name": "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED", - "value": null, - "source_location": { + "source_line": "extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 401, "column": 1, - "source_line": "enum" - } + "source_line": "extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_crossed_pair": { - "name": "STBVOX_GEOM_crossed_pair", - "value": null, + "stbvox_set_input_stride": { + "name": "stbvox_set_input_stride", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x_stride_in_elements", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_stride_in_elements" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x_stride_in_elements" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y_stride_in_elements", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_stride_in_elements" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y_stride_in_elements" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 409, + "column": 1, + "source_line": "extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_elements, int y_stride_in_elements);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 409, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_elements, int y_stride_in_elements);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_force": { - "name": "STBVOX_GEOM_force", - "value": null, + "stbvox_set_input_range": { + "name": "stbvox_set_input_range", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z0", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z0" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z0" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y1" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z1", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z1" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z1" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 414, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_floor_vheight_03": { - "name": "STBVOX_GEOM_floor_vheight_03", - "value": "12", - "source_location": { + "source_line": "extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 414, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_floor_vheight_12": { - "name": "STBVOX_GEOM_floor_vheight_12", - "value": null, + "stbvox_make_mesh": { + "name": "stbvox_make_mesh", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 445, "column": 1, - "source_line": "enum" - } + "source_line": "extern int stbvox_make_mesh(stbvox_mesh_maker *mm);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 445, + "column": 1, + "source_line": "extern int stbvox_make_mesh(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_ceil_vheight_03": { - "name": "STBVOX_GEOM_ceil_vheight_03", - "value": null, + "stbvox_get_quad_count": { + "name": "stbvox_get_quad_count", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "mesh", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int mesh" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 463, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_GEOM_ceil_vheight_12": { - "name": "STBVOX_GEOM_ceil_vheight_12", - "value": null, - "source_location": { + "source_line": "extern int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 463, "column": 1, - "source_line": "enum" - } + "source_line": "extern int stbvox_get_quad_count(stbvox_mesh_maker *mm, int mesh);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_GEOM_count": { - "name": "STBVOX_GEOM_count", - "value": null, + "stbvox_set_mesh_coordinates": { + "name": "stbvox_set_mesh_coordinates", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "x", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int x" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "y", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int y" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "z", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int z" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 665, + "line": 479, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_FACE_east": { - "name": "STBVOX_FACE_east", - "value": null, - "source_location": { + "source_line": "extern void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 479, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_set_mesh_coordinates(stbvox_mesh_maker *mm, int x, int y, int z);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_FACE_north": { - "name": "STBVOX_FACE_north", - "value": null, + "stbvox_get_bounds": { + "name": "stbvox_get_bounds", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "bounds", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float bounds[2][3]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float bounds[2][3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "2", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 483, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_FACE_west": { - "name": "STBVOX_FACE_west", - "value": null, - "source_location": { + "source_line": "extern void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3]);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 483, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_get_bounds(stbvox_mesh_maker *mm, float bounds[2][3]);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_FACE_south": { - "name": "STBVOX_FACE_south", - "value": null, + "stbvox_get_transform": { + "name": "stbvox_get_transform", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "transform", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float transform[3][3]", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "float transform[3][3]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "3", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CFloat", + "qualifiers": [], + "source_text": "float" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 491, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_FACE_up": { - "name": "STBVOX_FACE_up", - "value": null, - "source_location": { + "source_line": "extern void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3]);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 491, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_get_transform(stbvox_mesh_maker *mm, float transform[3][3]);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_FACE_down": { - "name": "STBVOX_FACE_down", - "value": null, + "stbvox_reset_buffers": { + "name": "stbvox_reset_buffers", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "mm", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_mesh_maker *mm", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_mesh_maker" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 504, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_FACE_count": { - "name": "STBVOX_FACE_count", - "value": null, - "source_location": { + "source_line": "extern void stbvox_reset_buffers(stbvox_mesh_maker *mm);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 692, + "line": 504, "column": 1, - "source_line": "enum" - } + "source_line": "extern void stbvox_reset_buffers(stbvox_mesh_maker *mm);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_VERTEX_HEIGHT_0": { - "name": "STBVOX_VERTEX_HEIGHT_0", - "value": null, + "stbvox_get_vertex_shader": { + "name": "stbvox_get_vertex_shader", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1035, + "line": 515, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_VERTEX_HEIGHT_half": { - "name": "STBVOX_VERTEX_HEIGHT_half", - "value": null, - "source_location": { + "source_line": "extern char *stbvox_get_vertex_shader(void);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 1035, + "line": 515, "column": 1, - "source_line": "enum" - } + "source_line": "extern char *stbvox_get_vertex_shader(void);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_VERTEX_HEIGHT_1": { - "name": "STBVOX_VERTEX_HEIGHT_1", - "value": null, + "stbvox_get_fragment_shader": { + "name": "stbvox_get_fragment_shader", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1035, + "line": 518, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_VERTEX_HEIGHT_one_and_a_half": { - "name": "STBVOX_VERTEX_HEIGHT_one_and_a_half", - "value": null, - "source_location": { + "source_line": "extern char *stbvox_get_fragment_shader(void);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 1035, + "line": 518, "column": 1, - "source_line": "enum" - } + "source_line": "extern char *stbvox_get_fragment_shader(void);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_TEXLERP_FACE_0": { - "name": "STBVOX_TEXLERP_FACE_0", - "value": null, + "stbvox_get_fragment_shader_alpha_only": { + "name": "stbvox_get_fragment_shader_alpha_only", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "char", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [], + "source_text": "char" + } + ] + }, + "parameters": [], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1117, + "line": 524, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_TEXLERP_FACE_half": { - "name": "STBVOX_TEXLERP_FACE_half", - "value": null, - "source_location": { + "source_line": "extern char *stbvox_get_fragment_shader_alpha_only(void);" + }, + "start": { "filename": "stb/stb_voxel_render.h", - "line": 1117, + "line": 524, "column": 1, - "source_line": "enum" - } + "source_line": "extern char *stbvox_get_fragment_shader_alpha_only(void);" + }, + "end": null, + "declaration_locations": [] }, - "STBVOX_TEXLERP_FACE_1": { - "name": "STBVOX_TEXLERP_FACE_1", - "value": null, + "stbvox_get_uniform_info": { + "name": "stbvox_get_uniform_info", + "result_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + }, + "parameters": [ + { + "name": "info", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_uniform_info *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_uniform_info" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "stbvox_uniform_info *info", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "stbvox_uniform_info" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "uniform", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int uniform" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int uniform" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "extern" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1117, + "line": 531, "column": 1, - "source_line": "enum" - } - }, - "STBVOX_TEXLERP_FACE_use_vert": { - "name": "STBVOX_TEXLERP_FACE_use_vert", + "source_line": "extern int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform);" + }, + "start": { + "filename": "stb/stb_voxel_render.h", + "line": 531, + "column": 1, + "source_line": "extern int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform);" + }, + "end": null, + "declaration_locations": [] + } + }, + "structs": {}, + "unions": {}, + "enums": {}, + "typedefs": {}, + "variables": {}, + "macros": {}, + "includes": {}, + "functions_by_file": { + "stb/stb_voxel_render.h": [ + "stbvox_init_mesh_maker", + "stbvox_set_buffer", + "stbvox_get_buffer_count", + "stbvox_get_buffer_size_per_quad", + "stbvox_set_default_mesh", + "stbvox_get_input_description", + "stbvox_set_input_stride", + "stbvox_set_input_range", + "stbvox_make_mesh", + "stbvox_get_quad_count", + "stbvox_set_mesh_coordinates", + "stbvox_get_bounds", + "stbvox_get_transform", + "stbvox_reset_buffers", + "stbvox_get_vertex_shader", + "stbvox_get_fragment_shader", + "stbvox_get_fragment_shader_alpha_only", + "stbvox_get_uniform_info" + ] + }, + "enum_constants": { + "STBVOX_UNIFORM_face_data": { + "name": "STBVOX_UNIFORM_face_data", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1117, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP_BASE_0": { - "name": "STBVOX_TEXLERP_BASE_0", + "STBVOX_UNIFORM_transform": { + "name": "STBVOX_UNIFORM_transform", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1125, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP_BASE_2_7": { - "name": "STBVOX_TEXLERP_BASE_2_7", + "STBVOX_UNIFORM_tex_array": { + "name": "STBVOX_UNIFORM_tex_array", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1125, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP_BASE_5_7": { - "name": "STBVOX_TEXLERP_BASE_5_7", + "STBVOX_UNIFORM_texscale": { + "name": "STBVOX_UNIFORM_texscale", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1125, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP_BASE_1": { - "name": "STBVOX_TEXLERP_BASE_1", + "STBVOX_UNIFORM_color_table": { + "name": "STBVOX_UNIFORM_color_table", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1125, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_0_8": { - "name": "STBVOX_TEXLERP3_0_8", + "STBVOX_UNIFORM_normals": { + "name": "STBVOX_UNIFORM_normals", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_1_8": { - "name": "STBVOX_TEXLERP3_1_8", + "STBVOX_UNIFORM_texgen": { + "name": "STBVOX_UNIFORM_texgen", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_2_8": { - "name": "STBVOX_TEXLERP3_2_8", + "STBVOX_UNIFORM_ambient": { + "name": "STBVOX_UNIFORM_ambient", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_3_8": { - "name": "STBVOX_TEXLERP3_3_8", + "STBVOX_UNIFORM_camera_pos": { + "name": "STBVOX_UNIFORM_camera_pos", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_4_8": { - "name": "STBVOX_TEXLERP3_4_8", + "STBVOX_UNIFORM_count": { + "name": "STBVOX_UNIFORM_count", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 568, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_5_8": { - "name": "STBVOX_TEXLERP3_5_8", + "STBVOX_UNIFORM_TYPE_none": { + "name": "STBVOX_UNIFORM_TYPE_none", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 583, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_6_8": { - "name": "STBVOX_TEXLERP3_6_8", + "STBVOX_UNIFORM_TYPE_sampler": { + "name": "STBVOX_UNIFORM_TYPE_sampler", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 583, "column": 1, "source_line": "enum" } }, - "STBVOX_TEXLERP3_7_8": { - "name": "STBVOX_TEXLERP3_7_8", + "STBVOX_UNIFORM_TYPE_vec2": { + "name": "STBVOX_UNIFORM_TYPE_vec2", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1133, + "line": 583, "column": 1, "source_line": "enum" } }, - "STBVF_e": { - "name": "STBVF_e", + "STBVOX_UNIFORM_TYPE_vec3": { + "name": "STBVOX_UNIFORM_TYPE_vec3", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 583, "column": 1, "source_line": "enum" } }, - "STBVF_n": { - "name": "STBVF_n", + "STBVOX_UNIFORM_TYPE_vec4": { + "name": "STBVOX_UNIFORM_TYPE_vec4", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 583, "column": 1, "source_line": "enum" } }, - "STBVF_w": { - "name": "STBVF_w", + "STBVOX_GEOM_empty": { + "name": "STBVOX_GEOM_empty", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_s": { - "name": "STBVF_s", + "STBVOX_GEOM_knockout": { + "name": "STBVOX_GEOM_knockout", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_u": { - "name": "STBVF_u", + "STBVOX_GEOM_solid": { + "name": "STBVOX_GEOM_solid", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_d": { - "name": "STBVF_d", + "STBVOX_GEOM_transp": { + "name": "STBVOX_GEOM_transp", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_eu": { - "name": "STBVF_eu", + "STBVOX_GEOM_slab_upper": { + "name": "STBVOX_GEOM_slab_upper", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_ed": { - "name": "STBVF_ed", + "STBVOX_GEOM_slab_lower": { + "name": "STBVOX_GEOM_slab_lower", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_eu_wall": { - "name": "STBVF_eu_wall", + "STBVOX_GEOM_floor_slope_north_is_top": { + "name": "STBVOX_GEOM_floor_slope_north_is_top", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_nu_wall": { - "name": "STBVF_nu_wall", + "STBVOX_GEOM_ceil_slope_north_is_bottom": { + "name": "STBVOX_GEOM_ceil_slope_north_is_bottom", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_wu_wall": { - "name": "STBVF_wu_wall", + "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED": { + "name": "STBVOX_GEOM_floor_slope_north_is_top_as_wall_UNIMPLEMENTED", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_su_wall": { - "name": "STBVF_su_wall", + "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED": { + "name": "STBVOX_GEOM_ceil_slope_north_is_bottom_as_wall_UNIMPLEMENTED", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_ne_u": { - "name": "STBVF_ne_u", + "STBVOX_GEOM_crossed_pair": { + "name": "STBVOX_GEOM_crossed_pair", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_ne_d": { - "name": "STBVF_ne_d", + "STBVOX_GEOM_force": { + "name": "STBVOX_GEOM_force", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_nu": { - "name": "STBVF_nu", - "value": null, + "STBVOX_GEOM_floor_vheight_03": { + "name": "STBVOX_GEOM_floor_vheight_03", + "value": "12", "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_nd": { - "name": "STBVF_nd", + "STBVOX_GEOM_floor_vheight_12": { + "name": "STBVOX_GEOM_floor_vheight_12", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_ed_wall": { - "name": "STBVF_ed_wall", + "STBVOX_GEOM_ceil_vheight_03": { + "name": "STBVOX_GEOM_ceil_vheight_03", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_nd_wall": { - "name": "STBVF_nd_wall", + "STBVOX_GEOM_ceil_vheight_12": { + "name": "STBVOX_GEOM_ceil_vheight_12", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_wd_wall": { - "name": "STBVF_wd_wall", + "STBVOX_GEOM_count": { + "name": "STBVOX_GEOM_count", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 665, "column": 1, "source_line": "enum" } }, - "STBVF_sd_wall": { - "name": "STBVF_sd_wall", + "STBVOX_FACE_east": { + "name": "STBVOX_FACE_east", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_nw_u": { - "name": "STBVF_nw_u", + "STBVOX_FACE_north": { + "name": "STBVOX_FACE_north", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_nw_d": { - "name": "STBVF_nw_d", + "STBVOX_FACE_west": { + "name": "STBVOX_FACE_west", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_wu": { - "name": "STBVF_wu", + "STBVOX_FACE_south": { + "name": "STBVOX_FACE_south", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_wd": { - "name": "STBVF_wd", + "STBVOX_FACE_up": { + "name": "STBVOX_FACE_up", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_ne_u_cross": { - "name": "STBVF_ne_u_cross", + "STBVOX_FACE_down": { + "name": "STBVOX_FACE_down", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_nw_u_cross": { - "name": "STBVF_nw_u_cross", + "STBVOX_FACE_count": { + "name": "STBVOX_FACE_count", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 692, "column": 1, "source_line": "enum" } }, - "STBVF_sw_u_cross": { - "name": "STBVF_sw_u_cross", + "STBVOX_VERTEX_HEIGHT_0": { + "name": "STBVOX_VERTEX_HEIGHT_0", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1035, "column": 1, "source_line": "enum" } }, - "STBVF_se_u_cross": { - "name": "STBVF_se_u_cross", + "STBVOX_VERTEX_HEIGHT_half": { + "name": "STBVOX_VERTEX_HEIGHT_half", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1035, "column": 1, "source_line": "enum" } }, - "STBVF_sw_u": { - "name": "STBVF_sw_u", + "STBVOX_VERTEX_HEIGHT_1": { + "name": "STBVOX_VERTEX_HEIGHT_1", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1035, "column": 1, "source_line": "enum" } }, - "STBVF_sw_d": { - "name": "STBVF_sw_d", + "STBVOX_VERTEX_HEIGHT_one_and_a_half": { + "name": "STBVOX_VERTEX_HEIGHT_one_and_a_half", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1035, "column": 1, "source_line": "enum" } }, - "STBVF_su": { - "name": "STBVF_su", + "STBVOX_TEXLERP_FACE_0": { + "name": "STBVOX_TEXLERP_FACE_0", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1117, "column": 1, "source_line": "enum" } }, - "STBVF_sd": { - "name": "STBVF_sd", + "STBVOX_TEXLERP_FACE_half": { + "name": "STBVOX_TEXLERP_FACE_half", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1117, "column": 1, "source_line": "enum" } }, - "STBVF_se_u": { - "name": "STBVF_se_u", - "value": "STBVF_su", + "STBVOX_TEXLERP_FACE_1": { + "name": "STBVOX_TEXLERP_FACE_1", + "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1117, "column": 1, "source_line": "enum" } }, - "STBVF_se_d": { - "name": "STBVF_se_d", - "value": "STBVF_sd", + "STBVOX_TEXLERP_FACE_use_vert": { + "name": "STBVOX_TEXLERP_FACE_use_vert", + "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1117, "column": 1, "source_line": "enum" } }, - "STBVF_count": { - "name": "STBVF_count", + "STBVOX_TEXLERP_BASE_0": { + "name": "STBVOX_TEXLERP_BASE_0", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 1377, + "line": 1125, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_none": { - "name": "STBVOX_FT_none", + "STBVOX_TEXLERP_BASE_2_7": { + "name": "STBVOX_TEXLERP_BASE_2_7", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1125, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_upper": { - "name": "STBVOX_FT_upper", + "STBVOX_TEXLERP_BASE_5_7": { + "name": "STBVOX_TEXLERP_BASE_5_7", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1125, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_lower": { - "name": "STBVOX_FT_lower", + "STBVOX_TEXLERP_BASE_1": { + "name": "STBVOX_TEXLERP_BASE_1", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1125, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_solid": { - "name": "STBVOX_FT_solid", + "STBVOX_TEXLERP3_0_8": { + "name": "STBVOX_TEXLERP3_0_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_diag_012": { - "name": "STBVOX_FT_diag_012", + "STBVOX_TEXLERP3_1_8": { + "name": "STBVOX_TEXLERP3_1_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_diag_023": { - "name": "STBVOX_FT_diag_023", + "STBVOX_TEXLERP3_2_8": { + "name": "STBVOX_TEXLERP3_2_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_diag_013": { - "name": "STBVOX_FT_diag_013", + "STBVOX_TEXLERP3_3_8": { + "name": "STBVOX_TEXLERP3_3_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_diag_123": { - "name": "STBVOX_FT_diag_123", + "STBVOX_TEXLERP3_4_8": { + "name": "STBVOX_TEXLERP3_4_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_force": { - "name": "STBVOX_FT_force", + "STBVOX_TEXLERP3_5_8": { + "name": "STBVOX_TEXLERP3_5_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_partial": { - "name": "STBVOX_FT_partial", + "STBVOX_TEXLERP3_6_8": { + "name": "STBVOX_TEXLERP3_6_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } }, - "STBVOX_FT_count": { - "name": "STBVOX_FT_count", + "STBVOX_TEXLERP3_7_8": { + "name": "STBVOX_TEXLERP3_7_8", "value": null, "source_location": { "filename": "stb/stb_voxel_render.h", - "line": 2146, + "line": 1133, "column": 1, "source_line": "enum" } @@ -18307,12 +6948,7 @@ "stb/stb_voxel_render.h": [] }, "system_includes": { - "stb/stb_voxel_render.h": [ - "assert.h", - "stdint.h", - "stdlib.h", - "string.h" - ] + "stb/stb_voxel_render.h": [] }, "unresolved_includes": { "stb/stb_voxel_render.h": [] @@ -18320,539 +6956,5 @@ "header_source_pairs": { "stb/stb_voxel_render.h": [] }, - "diagnostics": [ - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_GEOMETRY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1155, - "column": 1, - "source_line": "#define STBVOX_MAKE_GEOMETRY(geom, rotate, vheight) ((geom) + (rotate)*16 + (vheight)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_GEOMETRY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_VHEIGHT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1156, - "column": 1, - "source_line": "#define STBVOX_MAKE_VHEIGHT(v_sw, v_se, v_nw, v_ne) ((v_sw) + (v_se)*4 + (v_nw)*16 + (v_ne)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_VHEIGHT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_MATROT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1157, - "column": 1, - "source_line": "#define STBVOX_MAKE_MATROT(block, overlay, color) ((block) + (overlay)*4 + (color)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_MATROT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEX2_REPLACE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1158, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEX2_REPLACE(tex2, tex2_replace_face) ((tex2) + ((tex2_replace_face) & 3)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEX2_REPLACE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1159, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP(ns2, ew2, ud2, vert) ((ew2) + (ns2)*4 + (ud2)*16 + (vert)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_SIMPLE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1160, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_SIMPLE(baselerp,vert,face) ((vert)*32 + (face)*4 + (baselerp))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_SIMPLE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP1' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1161, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP1(vert,e2,n2,w2,s2,u4,d2) STBVOX_MAKE_TEXLERP(s2, w2, d2, vert)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP1" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP2' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1162, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP2(vert,e2,n2,w2,s2,u4,d2) ((u2)*16 + (n2)*4 + (s2))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP2" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_FACE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1163, - "column": 1, - "source_line": "#define STBVOX_MAKE_FACE_MASK(e,n,w,s,u,d) ((e)+(n)*2+(w)*4+(s)*8+(u)*16+(d)*32)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_FACE_MASK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_SIDE_TEXROT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1164, - "column": 1, - "source_line": "#define STBVOX_MAKE_SIDE_TEXROT(e,n,w,s) ((e)+(n)*4+(w)*16+(s)*64)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_SIDE_TEXROT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_COLOR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1165, - "column": 1, - "source_line": "#define STBVOX_MAKE_COLOR(color,t1,t2) ((color)+(t1)*64+(t2)*128)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_COLOR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_VERT3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1166, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_VERT3(e,n,w,s,u) ((e)+(n)*8+(w)*64+(s)*512+(u)*4096)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_VERT3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_TEXLERP_FACE3' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1167, - "column": 1, - "source_line": "#define STBVOX_MAKE_TEXLERP_FACE3(e,n,w,s,u,d) ((e)+(n)*8+(w)*64+(s)*512+(u)*4096+(d)*16384)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_TEXLERP_FACE3" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_PACKED_COMPACT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1168, - "column": 1, - "source_line": "#define STBVOX_MAKE_PACKED_COMPACT(rot, vheight, texlerp, def) ((rot)+4*(vheight)+16*(use)+32*(texlerp))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_PACKED_COMPACT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_LIGHTING_EXT' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1170, - "column": 1, - "source_line": "#define STBVOX_MAKE_LIGHTING_EXT(lighting, rot) (((lighting)&~3)+(rot))" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_LIGHTING_EXT" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_MAKE_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1171, - "column": 1, - "source_line": "#define STBVOX_MAKE_LIGHTING(lighting) (lighting)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_MAKE_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1233, - "column": 4, - "source_line": " #define STBVOX_NOTUSED(v) (void)(v)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_NOTUSED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1235, - "column": 4, - "source_line": " #define STBVOX_NOTUSED(v) (void)sizeof(v)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_NOTUSED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1322, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1326, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1330, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'stbvox_vertex_encode' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1334, - "column": 4, - "source_line": " #define stbvox_vertex_encode(x,y,z,ao,texlerp) \\" - }, - "unit_kind": "macro", - "unit_name": "stbvox_vertex_encode" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_GEO' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2015, - "column": 1, - "source_line": "#define STBVOX_GET_GEO(geom_data) ((geom_data) & 15)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_GEO" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_ROTATE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2040, - "column": 1, - "source_line": "#define STBVOX_ROTATE(x,r) stbvox_rotate_face[x][r] // (((x)+(r))&3)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_ROTATE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_HEIGHTS' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2392, - "column": 4, - "source_line": " #define STBVOX_HEIGHTS(a,b,c,d,e,f,g,h) \\" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_HEIGHTS" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2686, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ((f) == STBVOX_FACE_up || (f) == STBVOX_FACE_down)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2688, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ((f) == STBVOX_FACE_up )" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_USE_PACKED' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2690, - "column": 7, - "source_line": " #define STBVOX_USE_PACKED(f) ( (f) == STBVOX_FACE_down)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_USE_PACKED" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2790, - "column": 13, - "source_line": " #define STBVOX_GET_LIGHTING(light) ((light) & ~3)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'STBVOX_GET_LIGHTING' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2793, - "column": 13, - "source_line": " #define STBVOX_GET_LIGHTING(light) (light)" - }, - "unit_kind": "macro", - "unit_name": "STBVOX_GET_LIGHTING" - }, - { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 243, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1970, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_vertex_shader(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1975, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1980, - "column": 1, - "source_line": "STBVXDEC char *stbvox_get_fragment_shader_alpha_only(void)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_MACRO_DEPENDENT_DECLARATION", - "message": "Declaration depends on object-like macro 'STBVXDEC'; provide preprocessed input to parse it.", - "severity": "warning", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 2006, - "column": 1, - "source_line": "STBVXDEC int stbvox_get_uniform_info(stbvox_uniform_info *info, int uniform)" - }, - "unit_kind": "macro_dependent_declaration", - "unit_name": "STBVXDEC" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_block_type'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 707, - "column": 1, - "source_line": "typedef unsigned char stbvox_block_type;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_block_type" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_uint16'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1228, - "column": 4, - "source_line": " typedef unsigned short stbvox_uint16;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_uint16" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_uint32'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1229, - "column": 4, - "source_line": " typedef unsigned int stbvox_uint32;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_uint32" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1325, - "column": 4, - "source_line": " typedef stbvox_uint16 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1329, - "column": 4, - "source_line": " typedef stbvox_uint16 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - }, - { - "code": "C_CONFLICTING_TYPEDEF", - "message": "Conflicting typedef declarations for 'stbvox_mesh_vertex'.", - "severity": "error", - "location": { - "filename": "stb/stb_voxel_render.h", - "line": 1333, - "column": 4, - "source_line": " typedef stbvox_uint8 stbvox_mesh_vertex;" - }, - "unit_kind": "typedef", - "unit_name": "stbvox_mesh_vertex" - } - ] + "diagnostics": [] } diff --git a/tests/parser/c/fixtures/tinyexpr/tinyexpr.json b/tests/parser/c/fixtures/tinyexpr/tinyexpr.json index c1b735458..80c283d72 100644 --- a/tests/parser/c/fixtures/tinyexpr/tinyexpr.json +++ b/tests/parser/c/fixtures/tinyexpr/tinyexpr.json @@ -3,58 +3,26 @@ "tinyexpr/tinyexpr.c": { "filename": "tinyexpr/tinyexpr.c", "language": "c", - "parser_status": "partial", - "preprocessing": "raw", + "preprocessing": "compiler", + "original_source_paths": [ + "tinyexpr/tinyexpr.c", + "tinyexpr/tinyexpr.h" + ], "functions": [ { - "name": "new_expr", + "name": "te_interp", "result_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "double" }, "parameters": [ { - "name": "type", - "type": { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int type" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [ - "const" - ], - "source_text": "const int type" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "parameters", + "name": "expression", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *parameters[]", + "source_text": "const char *expression", "components": [ { "model": "CPointer", @@ -62,92 +30,42 @@ "source_text": "" }, { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *parameters[]", + "source_text": "const char *expression", "components": [ - { - "model": "CArray", - "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false - }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "reference": "te_expr" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 87, - "column": 1, - "source_line": "static te_expr *new_expr(const int type, const te_expr *parameters[]) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 87, - "column": 1, - "source_line": "static te_expr *new_expr(const int type, const te_expr *parameters[]) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 101, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "te_free_parameters", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ + }, { - "name": "n", + "name": "error", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -155,20 +73,16 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CInt", "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "int" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "int *error", "components": [ { "model": "CPointer", @@ -176,7 +90,9 @@ "source_text": "" }, { - "reference": "te_expr" + "model": "CInt", + "qualifiers": [], + "source_text": "int" } ] }, @@ -191,38 +107,255 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 104, + "line": 693, "column": 1, - "source_line": "void te_free_parameters(te_expr *n) {" + "source_line": "double te_interp(const char *expression, int *error) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 104, + "line": 693, "column": 1, - "source_line": "void te_free_parameters(te_expr *n) {" + "source_line": "double te_interp(const char *expression, int *error) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 115, + "line": 704, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.h", + "line": 66, + "column": 1, + "source_line": "double te_interp(const char *expression, int *error);" + } + ] }, { - "name": "te_free", + "name": "te_compile", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "te_expr", + "name": "te_expr", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "te_expr", + "members": [ + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 37, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": null, + "type": { + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "value", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double value" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 12, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bound", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *bound", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 26, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "function", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *function", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 47, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + } + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "parameters", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *parameters[1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 39, + "column": 5, + "source_line": " void *parameters[1];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 36, + "column": 1, + "source_line": "typedef struct te_expr {" + } + }, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 36, + "column": 1, + "source_line": "typedef struct te_expr {" + }, + "declaration_locations": [] + } + ] }, "parameters": [ { - "name": "n", + "name": "expression", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "const char *expression", "components": [ { "model": "CPointer", @@ -230,20 +363,18 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "const char *expression", "components": [ { "model": "CPointer", @@ -251,111 +382,283 @@ "source_text": "" }, { - "reference": "te_expr" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 118, - "column": 1, - "source_line": "void te_free(te_expr *n) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 118, - "column": 1, - "source_line": "void te_free(te_expr *n) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 122, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "pi", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 125, - "column": 1, - "source_line": "static double pi(void) {return 3.14159265358979323846;}" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 125, - "column": 1, - "source_line": "static double pi(void) {return 3.14159265358979323846;}" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 125, - "column": 55, - "source_line": "static double pi(void) {return 3.14159265358979323846;}" - }, - "declaration_locations": [] - }, - { - "name": "e", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [], - "storage": [ - "static" + }, + { + "name": "variables", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "te_variable", + "name": "te_variable", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "te_variable", + "members": [ + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 56, + "column": 5, + "source_line": " const char *name;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "address", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *address", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 57, + "column": 5, + "source_line": " const void *address;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 58, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 59, + "column": 5, + "source_line": " void *context;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 55, + "column": 1, + "source_line": "typedef struct te_variable {" + } + }, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 55, + "column": 1, + "source_line": "typedef struct te_variable {" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "var_count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int var_count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int var_count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "error", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 126, + "line": 665, "column": 1, - "source_line": "static double e(void) {return 2.71828182845904523536;}" + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 126, + "line": 665, "column": 1, - "source_line": "static double e(void) {return 2.71828182845904523536;}" + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 126, - "column": 54, - "source_line": "static double e(void) {return 2.71828182845904523536;}" + "line": 690, + "column": 1, + "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.h", + "line": 70, + "column": 1, + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error);" + } + ] }, { - "name": "fac", + "name": "te_eval", "result_type": { "model": "CDouble", "qualifiers": [], @@ -363,186 +666,231 @@ }, "parameters": [ { - "name": "a", + "name": "n", "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double a" + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double a" + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 127, + "line": 596, "column": 1, - "source_line": "static double fac(double a) {/* simplest version of fac */" + "source_line": "double te_eval(const te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 127, + "line": 596, "column": 1, - "source_line": "static double fac(double a) {/* simplest version of fac */" + "source_line": "double te_eval(const te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 140, + "line": 634, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.h", + "line": 73, + "column": 1, + "source_line": "double te_eval(const te_expr *n);" + } + ] }, { - "name": "ncr", + "name": "te_print", "result_type": { - "model": "CDouble", + "model": "CVoid", "qualifiers": [], - "source_text": "double" + "source_text": "void" }, "parameters": [ { "name": "n", "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double n" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double r" + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double r" + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 141, + "line": 732, "column": 1, - "source_line": "static double ncr(double n, double r) {" + "source_line": "void te_print(const te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 141, + "line": 732, "column": 1, - "source_line": "static double ncr(double n, double r) {" + "source_line": "void te_print(const te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 154, + "line": 734, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.h", + "line": 76, + "column": 1, + "source_line": "void te_print(const te_expr *n);" + } + ] }, { - "name": "npr", + "name": "te_free", "result_type": { - "model": "CDouble", + "model": "CVoid", "qualifiers": [], - "source_text": "double" + "source_text": "void" }, "parameters": [ { "name": "n", "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double n" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double n" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "r", - "type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double r" + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "declared_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double r" + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 155, + "line": 118, "column": 1, - "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" + "source_line": "void te_free(te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 155, + "line": 118, "column": 1, - "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" + "source_line": "void te_free(te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 155, - "column": 66, - "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" + "line": 122, + "column": 1, + "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.h", + "line": 80, + "column": 1, + "source_line": "void te_free(te_expr *n);" + } + ] }, { - "name": "find_builtin", + "name": "new_expr", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_variable", + "source_text": "te_expr", "components": [ { "model": "CPointer", @@ -550,25 +898,36 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_variable", - "name": "te_variable", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, "parameters": [ { - "name": "name", + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int type" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [ + "const" + ], + "source_text": "const int type" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "parameters", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *name", + "source_text": "const te_expr *parameters[]", "components": [ { "model": "CPointer", @@ -576,50 +935,41 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *name", + "source_text": "const te_expr *parameters[]", "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": null, + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, { "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "te_expr" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -631,56 +981,38 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 195, + "line": 87, "column": 1, - "source_line": "static const te_variable *find_builtin(const char *name, int len) {" + "source_line": "static te_expr *new_expr(const int type, const te_expr *parameters[]) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 195, + "line": 87, "column": 1, - "source_line": "static const te_variable *find_builtin(const char *name, int len) {" + "source_line": "static te_expr *new_expr(const int type, const te_expr *parameters[]) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 214, + "line": 101, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "find_lookup", + "name": "te_free_parameters", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "const te_variable", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_variable", - "name": "te_variable", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] + "source_text": "void" }, "parameters": [ { - "name": "s", + "name": "n", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const state *s", + "source_text": "te_expr *n", "components": [ { "model": "CPointer", @@ -688,466 +1020,62 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "state", - "name": "state", - "type": { - "model": "CStruct", - "qualifiers": [], - "source_text": "", - "name": "state", - "members": [ - { - "name": "start", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *start", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 67, - "column": 5, - "source_line": " const char *start;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "next", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *next", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 68, - "column": 5, - "source_line": " const char *next;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "type", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int type" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 69, - "column": 5, - "source_line": " int type;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": null, - "type": { - "model": "CUnion", - "qualifiers": [], - "source_text": "", - "name": null, - "members": [ - { - "name": "value", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double value" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 70, - "column": 12, - "source_line": " union {double value; const double *bound; const void *function;};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "bound", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const double *bound", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CDouble", - "qualifiers": [ - "const" - ], - "source_text": "const double" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 70, - "column": 26, - "source_line": " union {double value; const double *bound; const void *function;};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "function", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const void *function", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [ - "const" - ], - "source_text": "const void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 70, - "column": 47, - "source_line": " union {double value; const double *bound; const void *function;};" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": "union@tinyexpr/tinyexpr.c:70:5", - "is_incomplete": false, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 70, - "column": 5, - "source_line": " union {double value; const double *bound; const void *function;};" - } - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 70, - "column": 5, - "source_line": " union {double value; const double *bound; const void *function;};" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "context", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "void *context", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 71, - "column": 5, - "source_line": " void *context;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "lookup", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const te_variable *lookup", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_variable", - "name": "te_variable", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 73, - "column": 5, - "source_line": " const te_variable *lookup;" - }, - "callback_policy": null, - "declaration_locations": [] - }, - { - "name": "lookup_len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int lookup_len" - }, - "storage": [], - "initializer": null, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 74, - "column": 5, - "source_line": " int lookup_len;" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "anonymous_id": null, - "is_incomplete": false, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 66, - "column": 1, - "source_line": "typedef struct state {" - } - }, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 66, - "column": 1, - "source_line": "typedef struct state {" - }, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "name", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *name", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *name", - "components": [ - { - "model": "CPointer", + "reference": "te_expr" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", "qualifiers": [], "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "te_expr" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 216, + "line": 104, "column": 1, - "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" + "source_line": "void te_free_parameters(te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 216, + "line": 104, "column": 1, - "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" + "source_line": "void te_free_parameters(te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 227, + "line": 115, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "add", + "name": "pi", "result_type": { "model": "CDouble", "qualifiers": [], "source_text": "double" }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "source_location": null, - "callback_policy": null - } - ], + "parameters": [], "storage": [ "static" ], @@ -1157,63 +1085,32 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 231, + "line": 125, "column": 1, - "source_line": "static double add(double a, double b) {return a + b;}" + "source_line": "static double pi(void) {return 3.14159265358979323846;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 231, + "line": 125, "column": 1, - "source_line": "static double add(double a, double b) {return a + b;}" + "source_line": "static double pi(void) {return 3.14159265358979323846;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 231, - "column": 53, - "source_line": "static double add(double a, double b) {return a + b;}" + "line": 125, + "column": 55, + "source_line": "static double pi(void) {return 3.14159265358979323846;}" }, "declaration_locations": [] }, { - "name": "sub", + "name": "e", "result_type": { "model": "CDouble", "qualifiers": [], "source_text": "double" }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "source_location": null, - "callback_policy": null - } - ], + "parameters": [], "storage": [ "static" ], @@ -1223,26 +1120,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, + "line": 126, "column": 1, - "source_line": "static double sub(double a, double b) {return a - b;}" + "source_line": "static double e(void) {return 2.71828182845904523536;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, + "line": 126, "column": 1, - "source_line": "static double sub(double a, double b) {return a - b;}" + "source_line": "static double e(void) {return 2.71828182845904523536;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, - "column": 53, - "source_line": "static double sub(double a, double b) {return a - b;}" + "line": 126, + "column": 54, + "source_line": "static double e(void) {return 2.71828182845904523536;}" }, "declaration_locations": [] }, { - "name": "mul", + "name": "fac", "result_type": { "model": "CDouble", "qualifiers": [], @@ -1263,21 +1160,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -1289,26 +1171,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, + "line": 127, "column": 1, - "source_line": "static double mul(double a, double b) {return a * b;}" + "source_line": "static double fac(double a) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, + "line": 127, "column": 1, - "source_line": "static double mul(double a, double b) {return a * b;}" + "source_line": "static double fac(double a) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, - "column": 53, - "source_line": "static double mul(double a, double b) {return a * b;}" + "line": 140, + "column": 1, + "source_line": "}" }, "declaration_locations": [] }, { - "name": "divide", + "name": "ncr", "result_type": { "model": "CDouble", "qualifiers": [], @@ -1316,31 +1198,31 @@ }, "parameters": [ { - "name": "a", + "name": "n", "type": { "model": "CDouble", "qualifiers": [], - "source_text": "double a" + "source_text": "double n" }, "declared_type": { "model": "CDouble", "qualifiers": [], - "source_text": "double a" + "source_text": "double n" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "r", "type": { "model": "CDouble", "qualifiers": [], - "source_text": "double b" + "source_text": "double r" }, "declared_type": { "model": "CDouble", "qualifiers": [], - "source_text": "double b" + "source_text": "double r" }, "source_location": null, "callback_policy": null @@ -1355,77 +1237,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 234, + "line": 141, "column": 1, - "source_line": "static double divide(double a, double b) {return a / b;}" + "source_line": "static double ncr(double n, double r) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 234, + "line": 141, "column": 1, - "source_line": "static double divide(double a, double b) {return a / b;}" + "source_line": "static double ncr(double n, double r) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 234, - "column": 56, - "source_line": "static double divide(double a, double b) {return a / b;}" - }, - "declaration_locations": [] - }, - { - "name": "negate", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 235, - "column": 1, - "source_line": "static double negate(double a) {return -a;}" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 235, + "line": 154, "column": 1, - "source_line": "static double negate(double a) {return -a;}" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 235, - "column": 43, - "source_line": "static double negate(double a) {return -a;}" + "source_line": "}" }, "declaration_locations": [] }, { - "name": "comma", + "name": "npr", "result_type": { "model": "CDouble", "qualifiers": [], @@ -1433,31 +1264,31 @@ }, "parameters": [ { - "name": "a", + "name": "n", "type": { "model": "CDouble", "qualifiers": [], - "source_text": "double a" + "source_text": "double n" }, "declared_type": { "model": "CDouble", "qualifiers": [], - "source_text": "double a" + "source_text": "double n" }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "r", "type": { "model": "CDouble", "qualifiers": [], - "source_text": "double b" + "source_text": "double r" }, "declared_type": { "model": "CDouble", "qualifiers": [], - "source_text": "double b" + "source_text": "double r" }, "source_location": null, "callback_policy": null @@ -1472,38 +1303,48 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 236, + "line": 155, "column": 1, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" + "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 236, + "line": 155, "column": 1, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" + "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 236, - "column": 60, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" + "line": 155, + "column": 66, + "source_line": "static double npr(double n, double r) {return ncr(n, r) * fac(r);}" }, "declaration_locations": [] }, { - "name": "next_token", + "name": "find_builtin", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "const te_variable", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] }, "parameters": [ { - "name": "s", + "name": "name", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "state *s", + "source_text": "const char *name", "components": [ { "model": "CPointer", @@ -1511,14 +1352,18 @@ "source_text": "" }, { - "reference": "state" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "state *s", + "source_text": "const char *name", "components": [ { "model": "CPointer", @@ -1526,45 +1371,66 @@ "source_text": "" }, { - "reference": "state" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 239, + "line": 195, "column": 1, - "source_line": "void next_token(state *s) {" + "source_line": "static const te_variable *find_builtin(const char *name, int len) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 239, + "line": 195, "column": 1, - "source_line": "void next_token(state *s) {" + "source_line": "static const te_variable *find_builtin(const char *name, int len) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 303, + "line": 214, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "list", + "name": "find_lookup", "result_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr", + "source_text": "const te_variable", "components": [ { "model": "CPointer", @@ -1572,13 +1438,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_variable" } ] }, @@ -1588,7 +1448,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "state *s", + "source_text": "const state *s", "components": [ { "model": "CPointer", @@ -1596,27 +1456,705 @@ "source_text": "" }, { - "reference": "state" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", + "model": "CTypedef", "qualifiers": [], - "source_text": "" - }, - { + "source_text": "state", + "name": "state", + "type": { + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "state", + "members": [ + { + "name": "start", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *start", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 67, + "column": 5, + "source_line": " const char *start;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "next", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *next", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 68, + "column": 5, + "source_line": " const char *next;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 69, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": null, + "type": { + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "value", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double value" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 70, + "column": 12, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bound", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *bound", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 70, + "column": 26, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "function", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *function", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 70, + "column": 47, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 70, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + } + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 70, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 71, + "column": 5, + "source_line": " void *context;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "lookup", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *lookup", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 73, + "column": 5, + "source_line": " const te_variable *lookup;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "lookup_len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int lookup_len" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 74, + "column": 5, + "source_line": " int lookup_len;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 66, + "column": 1, + "source_line": "typedef struct state {" + } + }, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 66, + "column": 1, + "source_line": "typedef struct state {" + }, + "declaration_locations": [] + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const state *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { "reference": "state" } ] }, "source_location": null, "callback_policy": null + }, + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "len", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int len" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 216, + "column": 1, + "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 216, + "column": 1, + "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 227, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + { + "name": "add", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 231, + "column": 1, + "source_line": "static double add(double a, double b) {return a + b;}" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 231, + "column": 1, + "source_line": "static double add(double a, double b) {return a + b;}" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 231, + "column": 53, + "source_line": "static double add(double a, double b) {return a + b;}" + }, + "declaration_locations": [] + }, + { + "name": "sub", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 232, + "column": 1, + "source_line": "static double sub(double a, double b) {return a - b;}" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 232, + "column": 1, + "source_line": "static double sub(double a, double b) {return a - b;}" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 232, + "column": 53, + "source_line": "static double sub(double a, double b) {return a - b;}" + }, + "declaration_locations": [] + }, + { + "name": "mul", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 233, + "column": 1, + "source_line": "static double mul(double a, double b) {return a * b;}" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 233, + "column": 1, + "source_line": "static double mul(double a, double b) {return a * b;}" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 233, + "column": 53, + "source_line": "static double mul(double a, double b) {return a * b;}" + }, + "declaration_locations": [] + }, + { + "name": "divide", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 234, + "column": 1, + "source_line": "static double divide(double a, double b) {return a / b;}" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 234, + "column": 1, + "source_line": "static double divide(double a, double b) {return a / b;}" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 234, + "column": 56, + "source_line": "static double divide(double a, double b) {return a / b;}" + }, + "declaration_locations": [] + }, + { + "name": "negate", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null } ], "storage": [ @@ -1628,33 +2166,161 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 571, + "line": 235, "column": 1, - "source_line": "static te_expr *list(state *s) {" + "source_line": "static double negate(double a) {return -a;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 571, + "line": 235, "column": 1, - "source_line": "static te_expr *list(state *s) {" + "source_line": "static double negate(double a) {return -a;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 589, + "line": 235, + "column": 43, + "source_line": "static double negate(double a) {return -a;}" + }, + "declaration_locations": [] + }, + { + "name": "comma", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ + { + "name": "a", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 236, "column": 1, - "source_line": "}" + "source_line": "static double comma(double a, double b) {(void)a; return b;}" }, - "declaration_locations": [ + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 236, + "column": 1, + "source_line": "static double comma(double a, double b) {(void)a; return b;}" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 236, + "column": 60, + "source_line": "static double comma(double a, double b) {(void)a; return b;}" + }, + "declaration_locations": [] + }, + { + "name": "next_token", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "filename": "tinyexpr/tinyexpr.c", - "line": 306, - "column": 1, - "source_line": "static te_expr *list(state *s);" + "name": "s", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "state *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "state" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "state *s", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "state" + } + ] + }, + "source_location": null, + "callback_policy": null } - ] + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 239, + "column": 1, + "source_line": "void next_token(state *s) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 239, + "column": 1, + "source_line": "void next_token(state *s) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 303, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] }, { - "name": "expr", + "name": "list", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -1666,13 +2332,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -1722,33 +2382,33 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 549, + "line": 571, "column": 1, - "source_line": "static te_expr *expr(state *s) {" + "source_line": "static te_expr *list(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 549, + "line": 571, "column": 1, - "source_line": "static te_expr *expr(state *s) {" + "source_line": "static te_expr *list(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 568, + "line": 589, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "tinyexpr/tinyexpr.c", - "line": 307, + "line": 306, "column": 1, - "source_line": "static te_expr *expr(state *s);" + "source_line": "static te_expr *list(state *s);" } ] }, { - "name": "power", + "name": "expr", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -1760,13 +2420,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -1816,33 +2470,33 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 422, + "line": 549, "column": 1, - "source_line": "static te_expr *power(state *s) {" + "source_line": "static te_expr *expr(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 422, + "line": 549, "column": 1, - "source_line": "static te_expr *power(state *s) {" + "source_line": "static te_expr *expr(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 445, + "line": 568, "column": 1, "source_line": "}" }, "declaration_locations": [ { "filename": "tinyexpr/tinyexpr.c", - "line": 308, + "line": 307, "column": 1, - "source_line": "static te_expr *power(state *s);" + "source_line": "static te_expr *expr(state *s);" } ] }, { - "name": "base", + "name": "power", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -1854,13 +2508,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -1910,26 +2558,33 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 310, + "line": 422, "column": 1, - "source_line": "static te_expr *base(state *s) {" + "source_line": "static te_expr *power(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 310, + "line": 422, "column": 1, - "source_line": "static te_expr *base(state *s) {" + "source_line": "static te_expr *power(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 419, + "line": 445, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.c", + "line": 308, + "column": 1, + "source_line": "static te_expr *power(state *s);" + } + ] }, { - "name": "factor", + "name": "base", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -1941,13 +2596,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -1997,26 +2646,23 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 448, + "line": 310, "column": 1, - "source_line": "static te_expr *factor(state *s) {" + "source_line": "static te_expr *base(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 448, + "line": 310, "column": 1, - "source_line": "static te_expr *factor(state *s) {" + "source_line": "static te_expr *base(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 501, + "line": 419, "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g5:b0" - ] + "declaration_locations": [] }, { "name": "factor", @@ -2031,13 +2677,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -2103,10 +2743,7 @@ "column": 1, "source_line": "}" }, - "declaration_locations": [], - "condition_set": [ - "g5:b1" - ] + "declaration_locations": [] }, { "name": "term", @@ -2121,13 +2758,7 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, @@ -2196,11 +2827,11 @@ "declaration_locations": [] }, { - "name": "te_eval", + "name": "optimize", "result_type": { - "model": "CDouble", + "model": "CVoid", "qualifiers": [], - "source_text": "double" + "source_text": "void" }, "parameters": [ { @@ -2208,7 +2839,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "te_expr *n", "components": [ { "model": "CPointer", @@ -2216,22 +2847,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "te_expr *n", "components": [ { "model": "CPointer", @@ -2247,33 +2870,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 596, + "line": 639, "column": 1, - "source_line": "double te_eval(const te_expr *n) {" + "source_line": "static void optimize(te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 596, + "line": 639, "column": 1, - "source_line": "double te_eval(const te_expr *n) {" + "source_line": "static void optimize(te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 634, + "line": 662, "column": 1, "source_line": "}" }, "declaration_locations": [] }, { - "name": "optimize", + "name": "pn", "result_type": { "model": "CVoid", "qualifiers": [], @@ -2285,7 +2910,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "const te_expr *n", "components": [ { "model": "CPointer", @@ -2293,20 +2918,14 @@ "source_text": "" }, { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "reference": "te_expr" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "const te_expr *n", "components": [ { "model": "CPointer", @@ -2320,225 +2939,523 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 706, + "column": 1, + "source_line": "static void pn (const te_expr *n, int depth) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 706, + "column": 1, + "source_line": "static void pn (const te_expr *n, int depth) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 729, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + } + ], + "structs": [ + { + "reference": "struct te_expr" + }, + { + "reference": "struct te_variable" + } + ], + "unions": [], + "enums": [ + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "TE_VARIABLE", + "value": "0", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION0", + "value": "8", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION1", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION2", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION3", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION4", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION5", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION6", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION7", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE0", + "value": "16", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE1", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE2", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE3", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE4", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE5", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE6", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE7", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FLAG_PURE", + "value": "32", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } } ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + "anonymous_id": "enum@:0:0", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 639, - "column": 1, - "source_line": "static void optimize(te_expr *n) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 639, - "column": 1, - "source_line": "static void optimize(te_expr *n) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 662, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "}" - }, - "declaration_locations": [] + "source_line": "enum {" + } }, { - "name": "te_compile", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "TOK_NULL", + "value": "TE_CLOSURE7+1", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" } - ] - }, - "parameters": [ + }, { - "name": "expression", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *expression", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *expression", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "TOK_ERROR", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } }, { - "name": "variables", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const te_variable *variables", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_variable", - "name": "te_variable", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const te_variable *variables", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_variable" - } - ] - }, - "source_location": null, - "callback_policy": null + "name": "TOK_END", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } }, { - "name": "var_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int var_count" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int var_count" - }, - "source_location": null, - "callback_policy": null + "name": "TOK_SEP", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } }, { - "name": "error", - "type": { - "model": "CComposedType", + "name": "TOK_OPEN", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TOK_CLOSE", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TOK_NUMBER", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TOK_VARIABLE", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TOK_INFIX", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 57, + "column": 1, + "source_line": "enum {" + } + }, + { + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "TE_CONSTANT", + "value": "1", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 63, + "column": 1, + "source_line": "enum {TE_CONSTANT = 1};" + } + } + ], + "anonymous_id": "enum@:0:0", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 63, + "column": 1, + "source_line": "enum {TE_CONSTANT = 1};" + } + } + ], + "typedefs": [ + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "te_expr", + "name": "te_expr", + "type": { + "reference": "struct te_expr" + }, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 36, + "column": 1, + "source_line": "typedef struct te_expr {" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "te_variable", + "name": "te_variable", + "type": { + "reference": "struct te_variable" + }, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 55, + "column": 1, + "source_line": "typedef struct te_variable {" + }, + "declaration_locations": [] + }, + { + "model": "CTypedef", + "qualifiers": [], + "source_text": "te_fun2", + "name": "te_fun2", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "typedef double (*te_fun2)(double, double)", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int *error", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] + "source_text": "" }, - "declared_type": { - "model": "CComposedType", + { + "model": "CFunctionType", "qualifiers": [], - "source_text": "int *error", - "components": [ + "source_text": "double", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameter_types": [ { - "model": "CPointer", + "model": "CDouble", "qualifiers": [], - "source_text": "" + "source_text": "double" }, { - "model": "CInt", + "model": "CDouble", "qualifiers": [], - "source_text": "int" + "source_text": "double" } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", + ], + "is_variadic": false, + "prototype_style": "prototype" + } + ] + }, "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 665, + "line": 55, "column": 1, - "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + "source_line": "typedef double (*te_fun2)(double, double);" }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 665, - "column": 1, - "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + "declaration_locations": [] + } + ], + "variables": [ + { + "name": "functions", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "static const te_variable functions[]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": null, + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "reference": "te_variable" + } + ] }, - "end": { + "storage": [ + "static" + ], + "initializer": { + "source_text": "{ {\"abs\", fabs, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"acos\", acos, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"asin\", asin, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"atan\", atan, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"atan2\", atan2, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"ceil\", ceil, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"cos\", cos, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"cosh\", cosh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"e\", e, TE_FUNCTION0 | TE_FLAG_PURE, 0}, {\"exp\", exp, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"fac\", fac, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"floor\", floor, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"ln\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"log\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"log10\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"ncr\", ncr, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"npr\", npr, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"pi\", pi, TE_FUNCTION0 | TE_FLAG_PURE, 0}, {\"pow\", pow, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"sin\", sin, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"sinh\", sinh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"sqrt\", sqrt, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"tan\", tan, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"tanh\", tanh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {0, 0, 0, 0} }" + }, + "bit_width": null, + "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 690, + "line": 162, "column": 1, - "source_line": "}" + "source_line": "static const te_variable functions[] = {" }, + "callback_policy": null, "declaration_locations": [] - }, + } + ], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + }, + "tinyexpr/tinyexpr.h": { + "filename": "tinyexpr/tinyexpr.h", + "language": "c", + "preprocessing": "compiler", + "original_source_paths": [ + "tinyexpr/tinyexpr.h" + ], + "functions": [ { "name": "te_interp", "result_type": { @@ -2619,150 +3536,61 @@ "qualifiers": [], "source_text": "" }, - { - "model": "CInt", - "qualifiers": [], - "source_text": "int" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 693, - "column": 1, - "source_line": "double te_interp(const char *expression, int *error) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 693, - "column": 1, - "source_line": "double te_interp(const char *expression, int *error) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 704, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - { - "name": "pn", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const te_expr *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const te_expr *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "depth", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, "source_location": null, "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, - "is_definition": true, + "is_definition": false, "prototype_style": "prototype", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 706, + "filename": "tinyexpr/tinyexpr.h", + "line": 66, "column": 1, - "source_line": "static void pn (const te_expr *n, int depth) {" + "source_line": "double te_interp(const char *expression, int *error);" }, "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 706, - "column": 1, - "source_line": "static void pn (const te_expr *n, int depth) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 729, + "filename": "tinyexpr/tinyexpr.h", + "line": 66, "column": 1, - "source_line": "}" + "source_line": "double te_interp(const char *expression, int *error);" }, + "end": null, "declaration_locations": [] }, { - "name": "te_print", + "name": "te_compile", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "parameters": [ { - "name": "n", + "name": "expression", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "const char *expression", "components": [ { "model": "CPointer", @@ -2770,22 +3598,18 @@ "source_text": "" }, { - "model": "CTypedef", + "model": "CChar", "qualifiers": [ "const" ], - "source_text": "const te_expr", - "name": "te_expr", - "type": null, - "source_location": null, - "declaration_locations": [] + "source_text": "const char" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "const char *expression", "components": [ { "model": "CPointer", @@ -2793,886 +3617,1393 @@ "source_text": "" }, { - "reference": "te_expr" + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" } ] }, "source_location": null, "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 732, - "column": 1, - "source_line": "void te_print(const te_expr *n) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 732, - "column": 1, - "source_line": "void te_print(const te_expr *n) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 734, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - } - ], - "structs": [ - { - "reference": "struct state" - } - ], - "unions": [], - "enums": [ - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "TOK_NULL", - "value": "TE_CLOSURE7+1", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_ERROR", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_END", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_SEP", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_OPEN", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_CLOSE", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_NUMBER", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "name": "TOK_VARIABLE", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } }, { - "name": "TOK_INFIX", - "value": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - } - ], - "anonymous_id": "enum@tinyexpr/tinyexpr.c:57:1", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 57, - "column": 1, - "source_line": "enum {" - } - }, - { - "model": "CEnum", - "qualifiers": [], - "source_text": "", - "name": null, - "constants": [ - { - "name": "TE_CONSTANT", - "value": "1", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 63, - "column": 1, - "source_line": "enum {TE_CONSTANT = 1};" - } - } - ], - "anonymous_id": "enum@tinyexpr/tinyexpr.c:63:1", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 63, - "column": 1, - "source_line": "enum {TE_CONSTANT = 1};" - } - } - ], - "typedefs": [ - { - "model": "CTypedef", - "qualifiers": [], - "source_text": "te_fun2", - "name": "te_fun2", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "typedef double (*te_fun2)(double, double)", - "components": [ - { - "model": "CPointer", + "name": "variables", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "var_count", + "type": { + "model": "CInt", "qualifiers": [], - "source_text": "" + "source_text": "int var_count" }, - { - "model": "CFunctionType", + "declared_type": { + "model": "CInt", "qualifiers": [], - "source_text": "double", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameter_types": [ + "source_text": "int var_count" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "error", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ { - "model": "CDouble", + "model": "CPointer", "qualifiers": [], - "source_text": "double" + "source_text": "" }, { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double" + "source_text": "int" } - ], - "is_variadic": false, - "prototype_style": "prototype" - } - ] - }, + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 55, + "filename": "tinyexpr/tinyexpr.h", + "line": 70, "column": 1, - "source_line": "typedef double (*te_fun2)(double, double);" + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error);" + }, + "start": { + "filename": "tinyexpr/tinyexpr.h", + "line": 70, + "column": 1, + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error);" }, + "end": null, "declaration_locations": [] }, { - "reference": "state" - } - ], - "variables": [ - { - "name": "functions", - "type": { - "model": "CComposedType", + "name": "te_eval", + "result_type": { + "model": "CDouble", "qualifiers": [], - "source_text": "static const te_variable functions[]", - "components": [ - { - "model": "CArray", + "source_text": "double" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CComposedType", "qualifiers": [], - "source_text": "", - "bound": null, - "is_static_minimum": false, - "is_variable_length": false, - "is_flexible": false + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, - { - "model": "CTypedef", - "qualifiers": [ - "const" - ], - "source_text": "const te_variable", - "name": "te_variable", - "type": null, - "source_location": null, - "declaration_locations": [] - } - ] - }, - "storage": [ - "static" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "source_location": null, + "callback_policy": null + } ], - "initializer": { - "source_text": "{\n \n {\"abs\", fabs, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"acos\", acos, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"asin\", asin, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"atan\", atan, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"atan2\", atan2, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"ceil\", ceil, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"cos\", cos, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"cosh\", cosh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"e\", e, TE_FUNCTION0 | TE_FLAG_PURE, 0},\n {\"exp\", exp, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"fac\", fac, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"floor\", floor, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"ln\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log10\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"ncr\", ncr, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"npr\", npr, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"pi\", pi, TE_FUNCTION0 | TE_FLAG_PURE, 0},\n {\"pow\", pow, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"sin\", sin, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"sinh\", sinh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"sqrt\", sqrt, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"tan\", tan, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"tanh\", tanh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {0, 0, 0, 0}\n}" - }, - "bit_width": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 162, - "column": 1, - "source_line": "static const te_variable functions[] = {" - }, - "callback_policy": null, - "declaration_locations": [] - } - ], - "macros": [ - { - "name": "NAN", - "value": "(0.0/0.0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 47, - "column": 1, - "source_line": "#define NAN (0.0/0.0)" - } - }, - { - "name": "INFINITY", - "value": "(1.0/0.0)", - "function_like": false, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 51, - "column": 1, - "source_line": "#define INFINITY (1.0/0.0)" - } - }, - { - "name": "TYPE_MASK", - "value": "((TYPE)&0x0000001F)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 78, - "column": 1, - "source_line": "#define TYPE_MASK(TYPE) ((TYPE)&0x0000001F)" - } - }, - { - "name": "IS_PURE", - "value": "(((TYPE) & TE_FLAG_PURE) != 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 80, - "column": 1, - "source_line": "#define IS_PURE(TYPE) (((TYPE) & TE_FLAG_PURE) != 0)" - } - }, - { - "name": "IS_FUNCTION", - "value": "(((TYPE) & TE_FUNCTION0) != 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 81, - "column": 1, - "source_line": "#define IS_FUNCTION(TYPE) (((TYPE) & TE_FUNCTION0) != 0)" - } - }, - { - "name": "IS_CLOSURE", - "value": "(((TYPE) & TE_CLOSURE0) != 0)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 82, - "column": 1, - "source_line": "#define IS_CLOSURE(TYPE) (((TYPE) & TE_CLOSURE0) != 0)" - } - }, - { - "name": "ARITY", - "value": "( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 83, - "column": 1, - "source_line": "#define ARITY(TYPE) ( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )" - } - }, - { - "name": "NEW_EXPR", - "value": "new_expr((type), (const te_expr*[]){__VA_ARGS__})", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 84, - "column": 1, - "source_line": "#define NEW_EXPR(type, ...) new_expr((type), (const te_expr*[]){__VA_ARGS__})" - } - }, - { - "name": "CHECK_NULL", - "value": "if ((ptr) == NULL) { __VA_ARGS__; return NULL; }", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 85, - "column": 1, - "source_line": "#define CHECK_NULL(ptr, ...) if ((ptr) == NULL) { __VA_ARGS__; return NULL; }" - } - }, - { - "name": "TE_FUN", - "value": "((double(*)(__VA_ARGS__))n->function)", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 592, - "column": 1, - "source_line": "#define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function)" - } - }, - { - "name": "M", - "value": "te_eval(n->parameters[e])", - "function_like": true, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 593, - "column": 1, - "source_line": "#define M(e) te_eval(n->parameters[e])" - } - }, - { - "name": "TE_FUN", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 636, - "column": 1, - "source_line": "#undef TE_FUN" - } - }, - { - "name": "M", - "value": null, - "function_like": false, - "directive": "undef", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 637, - "column": 1, - "source_line": "#undef M" - } - } - ], - "includes": [ - { - "target": "tinyexpr.h", - "kind": "local", - "resolved_path": "tinyexpr/tinyexpr.h", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 38, - "column": 1, - "source_line": "#include \"tinyexpr.h\"" - } - }, - { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 39, + "filename": "tinyexpr/tinyexpr.h", + "line": 73, "column": 1, - "source_line": "#include " - } - }, - { - "target": "math.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 40, + "source_line": "double te_eval(const te_expr *n);" + }, + "start": { + "filename": "tinyexpr/tinyexpr.h", + "line": 73, "column": 1, - "source_line": "#include " - } + "source_line": "double te_eval(const te_expr *n);" + }, + "end": null, + "declaration_locations": [] }, { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "name": "te_print", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 41, + "filename": "tinyexpr/tinyexpr.h", + "line": 76, "column": 1, - "source_line": "#include " - } - }, - { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 42, + "source_line": "void te_print(const te_expr *n);" + }, + "start": { + "filename": "tinyexpr/tinyexpr.h", + "line": 76, "column": 1, - "source_line": "#include " - } + "source_line": "void te_print(const te_expr *n);" + }, + "end": null, + "declaration_locations": [] }, { - "target": "ctype.h", - "kind": "system", - "resolved_path": null, + "name": "te_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ + { + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": false, + "prototype_style": "prototype", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 43, + "filename": "tinyexpr/tinyexpr.h", + "line": 80, "column": 1, - "source_line": "#include " - } - }, - { - "target": "limits.h", - "kind": "system", - "resolved_path": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 44, + "source_line": "void te_free(te_expr *n);" + }, + "start": { + "filename": "tinyexpr/tinyexpr.h", + "line": 80, "column": 1, - "source_line": "#include " - } + "source_line": "void te_free(te_expr *n);" + }, + "end": null, + "declaration_locations": [] } ], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "NAN", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 46, - "column": 1, - "source_line": "#ifndef NAN" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 48, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifndef", - "argument": "INFINITY", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 50, - "column": 1, - "source_line": "#ifndef INFINITY" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 52, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "_MSC_VER", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 157, - "column": 1, - "source_line": "#ifdef _MSC_VER" - } - }, - { - "directive": "pragma", - "argument": "function (ceil)", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 158, - "column": 1, - "source_line": "#pragma function (ceil)" - } - }, - { - "directive": "pragma", - "argument": "function (floor)", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 159, - "column": 1, - "source_line": "#pragma function (floor)" - } - }, + "structs": [ { - "directive": "endif", - "argument": null, + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "te_expr", + "members": [ + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 37, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": null, + "type": { + "model": "CUnion", + "qualifiers": [], + "source_text": "", + "name": null, + "members": [ + { + "name": "value", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double value" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 12, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "bound", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const double *bound", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CDouble", + "qualifiers": [ + "const" + ], + "source_text": "const double" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 26, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "function", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *function", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 47, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": "union@:0:0", + "is_incomplete": false, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + } + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 38, + "column": 5, + "source_line": " union {double value; const double *bound; const void *function;};" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "parameters", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *parameters[1]", + "components": [ + { + "model": "CArray", + "qualifiers": [], + "source_text": "", + "bound": "1", + "is_static_minimum": false, + "is_variable_length": false, + "is_flexible": false + }, + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 39, + "column": 5, + "source_line": " void *parameters[1];" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 160, + "filename": "tinyexpr/tinyexpr.h", + "line": 36, "column": 1, - "source_line": "#endif" + "source_line": "typedef struct te_expr {" } }, { - "directive": "ifdef", - "argument": "TE_NAT_LOG", + "model": "CStruct", + "qualifiers": [], + "source_text": "", + "name": "te_variable", + "members": [ + { + "name": "name", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *name", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 56, + "column": 5, + "source_line": " const char *name;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "address", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const void *address", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [ + "const" + ], + "source_text": "const void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 57, + "column": 5, + "source_line": " const void *address;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "type", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int type" + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 58, + "column": 5, + "source_line": " int type;" + }, + "callback_policy": null, + "declaration_locations": [] + }, + { + "name": "context", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "void *context", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + } + ] + }, + "storage": [], + "initializer": null, + "bit_width": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 59, + "column": 5, + "source_line": " void *context;" + }, + "callback_policy": null, + "declaration_locations": [] + } + ], + "anonymous_id": null, + "is_incomplete": false, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 177, + "filename": "tinyexpr/tinyexpr.h", + "line": 55, "column": 1, - "source_line": "#ifdef TE_NAT_LOG" + "source_line": "typedef struct te_variable {" } - }, + } + ], + "unions": [], + "enums": [ { - "directive": "else", - "argument": null, + "model": "CEnum", + "qualifiers": [], + "source_text": "", + "name": null, + "constants": [ + { + "name": "TE_VARIABLE", + "value": "0", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION0", + "value": "8", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION1", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION2", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION3", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION4", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION5", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION6", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FUNCTION7", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE0", + "value": "16", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE1", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE2", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE3", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE4", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE5", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE6", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_CLOSURE7", + "value": null, + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + }, + { + "name": "TE_FLAG_PURE", + "value": "32", + "source_location": { + "filename": "tinyexpr/tinyexpr.h", + "line": 43, + "column": 1, + "source_line": "enum {" + } + } + ], + "anonymous_id": "enum@:0:0", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 179, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#else" + "source_line": "enum {" } - }, + } + ], + "typedefs": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 181, - "column": 1, - "source_line": "#endif" - } + "reference": "te_expr" }, { - "directive": "ifdef", - "argument": "TE_POW_FROM_RIGHT", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 447, - "column": 1, - "source_line": "#ifdef TE_POW_FROM_RIGHT" - } - }, + "reference": "te_variable" + } + ], + "variables": [], + "macros": [], + "includes": [], + "raw_directives": [], + "macro_dependencies": [], + "diagnostics": [] + } + }, + "functions": { + "te_interp": { + "name": "te_interp", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ { - "directive": "else", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 502, - "column": 1, - "source_line": "#else" - } + "name": "expression", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *expression", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *expression", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "source_location": null, + "callback_policy": null }, { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 523, - "column": 1, - "source_line": "#endif" - } + "name": "error", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "macro_dependencies": [], - "diagnostics": [ + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 693, + "column": 1, + "source_line": "double te_interp(const char *expression, int *error) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 693, + "column": 1, + "source_line": "double te_interp(const char *expression, int *error) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 704, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'TYPE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 78, - "column": 1, - "source_line": "#define TYPE_MASK(TYPE) ((TYPE)&0x0000001F)" + "filename": "tinyexpr/tinyexpr.h", + "line": 66, + "column": 1, + "source_line": "double te_interp(const char *expression, int *error);" + } + ] + }, + "te_compile": { + "name": "te_compile", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" }, - "unit_kind": "macro", - "unit_name": "TYPE_MASK" - }, + { + "reference": "te_expr" + } + ] + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PURE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 80, - "column": 1, - "source_line": "#define IS_PURE(TYPE) (((TYPE) & TE_FLAG_PURE) != 0)" + "name": "expression", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *expression", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const char *expression", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, - "unit_kind": "macro", - "unit_name": "IS_PURE" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_FUNCTION' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 81, - "column": 1, - "source_line": "#define IS_FUNCTION(TYPE) (((TYPE) & TE_FUNCTION0) != 0)" + "name": "variables", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_variable *variables", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_variable" + } + ] }, - "unit_kind": "macro", - "unit_name": "IS_FUNCTION" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_CLOSURE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 82, - "column": 1, - "source_line": "#define IS_CLOSURE(TYPE) (((TYPE) & TE_CLOSURE0) != 0)" + "name": "var_count", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int var_count" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int var_count" }, - "unit_kind": "macro", - "unit_name": "IS_CLOSURE" + "source_location": null, + "callback_policy": null }, { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ARITY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 83, - "column": 1, - "source_line": "#define ARITY(TYPE) ( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )" + "name": "error", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "int *error", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "model": "CInt", + "qualifiers": [], + "source_text": "int" + } + ] }, - "unit_kind": "macro", - "unit_name": "ARITY" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 665, + "column": 1, + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 665, + "column": 1, + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 690, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NEW_EXPR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 84, - "column": 1, - "source_line": "#define NEW_EXPR(type, ...) new_expr((type), (const te_expr*[]){__VA_ARGS__})" - }, - "unit_kind": "macro", - "unit_name": "NEW_EXPR" - }, + "filename": "tinyexpr/tinyexpr.h", + "line": 70, + "column": 1, + "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error);" + } + ] + }, + "te_eval": { + "name": "te_eval", + "result_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double" + }, + "parameters": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK_NULL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 85, - "column": 1, - "source_line": "#define CHECK_NULL(ptr, ...) if ((ptr) == NULL) { __VA_ARGS__; return NULL; }" + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, - "unit_kind": "macro", - "unit_name": "CHECK_NULL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'TE_FUN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 592, - "column": 1, - "source_line": "#define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function)" + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, - "unit_kind": "macro", - "unit_name": "TE_FUN" - }, + "source_location": null, + "callback_policy": null + } + ], + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 596, + "column": 1, + "source_line": "double te_eval(const te_expr *n) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 596, + "column": 1, + "source_line": "double te_eval(const te_expr *n) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 634, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'M' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 593, - "column": 1, - "source_line": "#define M(e) te_eval(n->parameters[e])" - }, - "unit_kind": "macro", - "unit_name": "M" + "filename": "tinyexpr/tinyexpr.h", + "line": 73, + "column": 1, + "source_line": "double te_eval(const te_expr *n);" } ] }, - "tinyexpr/tinyexpr.h": { - "filename": "tinyexpr/tinyexpr.h", - "language": "c", - "parser_status": "partial", - "preprocessing": "raw", - "functions": [], - "structs": [], - "unions": [], - "enums": [], - "typedefs": [], - "variables": [], - "macros": [ + "te_print": { + "name": "te_print", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "name": "TINYEXPR_H", - "value": null, - "function_like": false, - "directive": "define", - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 27, - "column": 1, - "source_line": "#define TINYEXPR_H" - } + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "const te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "includes": [], - "raw_directives": [ - { - "directive": "ifndef", - "argument": "TINYEXPR_H", - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 26, - "column": 1, - "source_line": "#ifndef TINYEXPR_H" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 30, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, - { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 32, - "column": 1, - "source_line": "#endif" - } - }, - { - "directive": "ifdef", - "argument": "__cplusplus", - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 83, - "column": 1, - "source_line": "#ifdef __cplusplus" - } - }, + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 732, + "column": 1, + "source_line": "void te_print(const te_expr *n) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 732, + "column": 1, + "source_line": "void te_print(const te_expr *n) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 734, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 85, - "column": 1, - "source_line": "#endif" - } - }, + "filename": "tinyexpr/tinyexpr.h", + "line": 76, + "column": 1, + "source_line": "void te_print(const te_expr *n);" + } + ] + }, + "te_free": { + "name": "te_free", + "result_type": { + "model": "CVoid", + "qualifiers": [], + "source_text": "void" + }, + "parameters": [ { - "directive": "endif", - "argument": null, - "source_location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 87, - "column": 1, - "source_line": "#endif /*TINYEXPR_H*/" - } + "name": "n", + "type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "declared_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr *n", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "source_location": null, + "callback_policy": null } ], - "macro_dependencies": [], - "diagnostics": [ + "storage": [], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 118, + "column": 1, + "source_line": "void te_free(te_expr *n) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 118, + "column": 1, + "source_line": "void te_free(te_expr *n) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 122, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.h", - "line": 31, - "column": 1, - "source_line": "extern \"C\" {" - }, - "unit_kind": "declarator", - "unit_name": null + "filename": "tinyexpr/tinyexpr.h", + "line": 80, + "column": 1, + "source_line": "void te_free(te_expr *n);" } ] - } - }, - "functions": { + }, "new_expr": { "name": "new_expr", "result_type": { @@ -3856,75 +5187,6 @@ }, "declaration_locations": [] }, - "te_free": { - "name": "te_free", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "n", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr *n", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 118, - "column": 1, - "source_line": "void te_free(te_expr *n) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 118, - "column": 1, - "source_line": "void te_free(te_expr *n) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 122, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, "pi": { "name": "pi", "result_type": { @@ -4030,13 +5292,13 @@ "filename": "tinyexpr/tinyexpr.c", "line": 127, "column": 1, - "source_line": "static double fac(double a) {/* simplest version of fac */" + "source_line": "static double fac(double a) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", "line": 127, "column": 1, - "source_line": "static double fac(double a) {/* simplest version of fac */" + "source_line": "static double fac(double a) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", @@ -4364,163 +5626,31 @@ { "model": "CPointer", "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "len", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int len" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 216, - "column": 1, - "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 216, - "column": 1, - "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 227, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "add": { - "name": "add", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 231, - "column": 1, - "source_line": "static double add(double a, double b) {return a + b;}" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 231, - "column": 1, - "source_line": "static double add(double a, double b) {return a + b;}" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 231, - "column": 53, - "source_line": "static double add(double a, double b) {return a + b;}" - }, - "declaration_locations": [] - }, - "sub": { - "name": "sub", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" + "source_text": "" + }, + { + "model": "CChar", + "qualifiers": [ + "const" + ], + "source_text": "const char" + } + ] }, "source_location": null, "callback_policy": null }, { - "name": "b", + "name": "len", "type": { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double b" + "source_text": "int len" }, "declared_type": { - "model": "CDouble", + "model": "CInt", "qualifiers": [], - "source_text": "double b" + "source_text": "int len" }, "source_location": null, "callback_policy": null @@ -4535,26 +5665,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, + "line": 216, "column": 1, - "source_line": "static double sub(double a, double b) {return a - b;}" + "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, + "line": 216, "column": 1, - "source_line": "static double sub(double a, double b) {return a - b;}" + "source_line": "static const te_variable *find_lookup(const state *s, const char *name, int len) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 232, - "column": 53, - "source_line": "static double sub(double a, double b) {return a - b;}" + "line": 227, + "column": 1, + "source_line": "}" }, "declaration_locations": [] }, - "mul": { - "name": "mul", + "add": { + "name": "add", "result_type": { "model": "CDouble", "qualifiers": [], @@ -4601,26 +5731,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, + "line": 231, "column": 1, - "source_line": "static double mul(double a, double b) {return a * b;}" + "source_line": "static double add(double a, double b) {return a + b;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, + "line": 231, "column": 1, - "source_line": "static double mul(double a, double b) {return a * b;}" + "source_line": "static double add(double a, double b) {return a + b;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 233, + "line": 231, "column": 53, - "source_line": "static double mul(double a, double b) {return a * b;}" + "source_line": "static double add(double a, double b) {return a + b;}" }, "declaration_locations": [] }, - "divide": { - "name": "divide", + "sub": { + "name": "sub", "result_type": { "model": "CDouble", "qualifiers": [], @@ -4667,77 +5797,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 234, - "column": 1, - "source_line": "static double divide(double a, double b) {return a / b;}" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 234, - "column": 1, - "source_line": "static double divide(double a, double b) {return a / b;}" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 234, - "column": 56, - "source_line": "static double divide(double a, double b) {return a / b;}" - }, - "declaration_locations": [] - }, - "negate": { - "name": "negate", - "result_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double" - }, - "parameters": [ - { - "name": "a", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double a" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 235, + "line": 232, "column": 1, - "source_line": "static double negate(double a) {return -a;}" + "source_line": "static double sub(double a, double b) {return a - b;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 235, + "line": 232, "column": 1, - "source_line": "static double negate(double a) {return -a;}" + "source_line": "static double sub(double a, double b) {return a - b;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 235, - "column": 43, - "source_line": "static double negate(double a) {return -a;}" + "line": 232, + "column": 53, + "source_line": "static double sub(double a, double b) {return a - b;}" }, "declaration_locations": [] }, - "comma": { - "name": "comma", + "mul": { + "name": "mul", "result_type": { "model": "CDouble", "qualifiers": [], @@ -4756,170 +5835,20 @@ "qualifiers": [], "source_text": "double a" }, - "source_location": null, - "callback_policy": null - }, - { - "name": "b", - "type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "declared_type": { - "model": "CDouble", - "qualifiers": [], - "source_text": "double b" - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 236, - "column": 1, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 236, - "column": 1, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 236, - "column": 60, - "source_line": "static double comma(double a, double b) {(void)a; return b;}" - }, - "declaration_locations": [] - }, - "next_token": { - "name": "next_token", - "result_type": { - "model": "CVoid", - "qualifiers": [], - "source_text": "void" - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 239, - "column": 1, - "source_line": "void next_token(state *s) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 239, - "column": 1, - "source_line": "void next_token(state *s) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 303, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [] - }, - "list": { - "name": "list", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "parameters": [ + "source_location": null, + "callback_policy": null + }, { - "name": "s", + "name": "b", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double b" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double b" }, "source_location": null, "callback_policy": null @@ -4934,80 +5863,58 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 571, + "line": 233, "column": 1, - "source_line": "static te_expr *list(state *s) {" + "source_line": "static double mul(double a, double b) {return a * b;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 571, + "line": 233, "column": 1, - "source_line": "static te_expr *list(state *s) {" + "source_line": "static double mul(double a, double b) {return a * b;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 589, - "column": 1, - "source_line": "}" + "line": 233, + "column": 53, + "source_line": "static double mul(double a, double b) {return a * b;}" }, - "declaration_locations": [ - { - "filename": "tinyexpr/tinyexpr.c", - "line": 306, - "column": 1, - "source_line": "static te_expr *list(state *s);" - } - ] + "declaration_locations": [] }, - "expr": { - "name": "expr", + "divide": { + "name": "divide", "result_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] + "source_text": "double" }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double a" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" }, "source_location": null, "callback_policy": null @@ -5022,80 +5929,43 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 549, + "line": 234, "column": 1, - "source_line": "static te_expr *expr(state *s) {" + "source_line": "static double divide(double a, double b) {return a / b;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 549, + "line": 234, "column": 1, - "source_line": "static te_expr *expr(state *s) {" + "source_line": "static double divide(double a, double b) {return a / b;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 568, - "column": 1, - "source_line": "}" + "line": 234, + "column": 56, + "source_line": "static double divide(double a, double b) {return a / b;}" }, - "declaration_locations": [ - { - "filename": "tinyexpr/tinyexpr.c", - "line": 307, - "column": 1, - "source_line": "static te_expr *expr(state *s);" - } - ] + "declaration_locations": [] }, - "power": { - "name": "power", + "negate": { + "name": "negate", "result_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] + "source_text": "double" }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double a" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double a" }, "source_location": null, "callback_policy": null @@ -5110,80 +5980,58 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 422, + "line": 235, "column": 1, - "source_line": "static te_expr *power(state *s) {" + "source_line": "static double negate(double a) {return -a;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 422, + "line": 235, "column": 1, - "source_line": "static te_expr *power(state *s) {" + "source_line": "static double negate(double a) {return -a;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 445, - "column": 1, - "source_line": "}" + "line": 235, + "column": 43, + "source_line": "static double negate(double a) {return -a;}" }, - "declaration_locations": [ - { - "filename": "tinyexpr/tinyexpr.c", - "line": 308, - "column": 1, - "source_line": "static te_expr *power(state *s);" - } - ] + "declaration_locations": [] }, - "base": { - "name": "base", + "comma": { + "name": "comma", "result_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] + "source_text": "double" }, "parameters": [ { - "name": "s", + "name": "a", "type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double a" + }, + "declared_type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double a" + }, + "source_location": null, + "callback_policy": null + }, + { + "name": "b", + "type": { + "model": "CDouble", + "qualifiers": [], + "source_text": "double b" }, "declared_type": { - "model": "CComposedType", + "model": "CDouble", "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] + "source_text": "double b" }, "source_location": null, "callback_policy": null @@ -5198,40 +6046,30 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 310, + "line": 236, "column": 1, - "source_line": "static te_expr *base(state *s) {" + "source_line": "static double comma(double a, double b) {(void)a; return b;}" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 310, + "line": 236, "column": 1, - "source_line": "static te_expr *base(state *s) {" + "source_line": "static double comma(double a, double b) {(void)a; return b;}" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 419, - "column": 1, - "source_line": "}" + "line": 236, + "column": 60, + "source_line": "static double comma(double a, double b) {(void)a; return b;}" }, "declaration_locations": [] }, - "term": { - "name": "term", + "next_token": { + "name": "next_token", "result_type": { - "model": "CComposedType", + "model": "CVoid", "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] + "source_text": "void" }, "parameters": [ { @@ -5270,47 +6108,55 @@ "callback_policy": null } ], - "storage": [ - "static" - ], + "storage": [], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 527, + "line": 239, "column": 1, - "source_line": "static te_expr *term(state *s) {" + "source_line": "void next_token(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 527, + "line": 239, "column": 1, - "source_line": "static te_expr *term(state *s) {" + "source_line": "void next_token(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 546, + "line": 303, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "te_eval": { - "name": "te_eval", + "list": { + "name": "list", "result_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double" + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "parameters": [ { - "name": "n", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5318,14 +6164,14 @@ "source_text": "" }, { - "reference": "te_expr" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5333,7 +6179,7 @@ "source_text": "" }, { - "reference": "te_expr" + "reference": "state" } ] }, @@ -5341,45 +6187,64 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 596, + "line": 571, "column": 1, - "source_line": "double te_eval(const te_expr *n) {" + "source_line": "static te_expr *list(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 596, + "line": 571, "column": 1, - "source_line": "double te_eval(const te_expr *n) {" + "source_line": "static te_expr *list(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 634, + "line": 589, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.c", + "line": 306, + "column": 1, + "source_line": "static te_expr *list(state *s);" + } + ] }, - "optimize": { - "name": "optimize", + "expr": { + "name": "expr", "result_type": { - "model": "CVoid", + "model": "CComposedType", "qualifiers": [], - "source_text": "void" + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "parameters": [ { - "name": "n", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5387,14 +6252,14 @@ "source_text": "" }, { - "reference": "te_expr" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "te_expr *n", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5402,7 +6267,7 @@ "source_text": "" }, { - "reference": "te_expr" + "reference": "state" } ] }, @@ -5419,26 +6284,33 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 639, + "line": 549, "column": 1, - "source_line": "static void optimize(te_expr *n) {" + "source_line": "static te_expr *expr(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 639, + "line": 549, "column": 1, - "source_line": "static void optimize(te_expr *n) {" + "source_line": "static te_expr *expr(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 662, + "line": 568, "column": 1, "source_line": "}" }, - "declaration_locations": [] + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.c", + "line": 307, + "column": 1, + "source_line": "static te_expr *expr(state *s);" + } + ] }, - "te_compile": { - "name": "te_compile", + "power": { + "name": "power", "result_type": { "model": "CComposedType", "qualifiers": [], @@ -5456,54 +6328,11 @@ }, "parameters": [ { - "name": "expression", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *expression", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "const char *expression", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" - } - ] - }, - "source_location": null, - "callback_policy": null - }, - { - "name": "variables", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_variable *variables", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5511,14 +6340,14 @@ "source_text": "" }, { - "reference": "te_variable" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_variable *variables", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5526,34 +6355,72 @@ "source_text": "" }, { - "reference": "te_variable" + "reference": "state" } ] }, "source_location": null, "callback_policy": null - }, - { - "name": "var_count", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int var_count" - }, - "declared_type": { - "model": "CInt", + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 422, + "column": 1, + "source_line": "static te_expr *power(state *s) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 422, + "column": 1, + "source_line": "static te_expr *power(state *s) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 445, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [ + { + "filename": "tinyexpr/tinyexpr.c", + "line": 308, + "column": 1, + "source_line": "static te_expr *power(state *s);" + } + ] + }, + "base": { + "name": "base", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", "qualifiers": [], - "source_text": "int var_count" + "source_text": "" }, - "source_location": null, - "callback_policy": null - }, + { + "reference": "te_expr" + } + ] + }, + "parameters": [ { - "name": "error", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5561,16 +6428,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5578,9 +6443,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "state" } ] }, @@ -5588,45 +6451,57 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 665, + "line": 310, "column": 1, - "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + "source_line": "static te_expr *base(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 665, + "line": 310, "column": 1, - "source_line": "te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) {" + "source_line": "static te_expr *base(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 690, + "line": 419, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "te_interp": { - "name": "te_interp", + "factor": { + "name": "factor", "result_type": { - "model": "CDouble", + "model": "CComposedType", "qualifiers": [], - "source_text": "double" + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] }, "parameters": [ { - "name": "expression", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *expression", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5634,18 +6509,14 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const char *expression", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5653,23 +6524,65 @@ "source_text": "" }, { - "model": "CChar", - "qualifiers": [ - "const" - ], - "source_text": "const char" + "reference": "state" } ] }, "source_location": null, "callback_policy": null - }, + } + ], + "storage": [ + "static" + ], + "specifiers": [], + "is_variadic": false, + "is_definition": true, + "prototype_style": "prototype", + "source_location": { + "filename": "tinyexpr/tinyexpr.c", + "line": 503, + "column": 1, + "source_line": "static te_expr *factor(state *s) {" + }, + "start": { + "filename": "tinyexpr/tinyexpr.c", + "line": 503, + "column": 1, + "source_line": "static te_expr *factor(state *s) {" + }, + "end": { + "filename": "tinyexpr/tinyexpr.c", + "line": 522, + "column": 1, + "source_line": "}" + }, + "declaration_locations": [] + }, + "term": { + "name": "term", + "result_type": { + "model": "CComposedType", + "qualifiers": [], + "source_text": "te_expr", + "components": [ + { + "model": "CPointer", + "qualifiers": [], + "source_text": "" + }, + { + "reference": "te_expr" + } + ] + }, + "parameters": [ { - "name": "error", + "name": "s", "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5677,16 +6590,14 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "state" } ] }, "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "int *error", + "source_text": "state *s", "components": [ { "model": "CPointer", @@ -5694,9 +6605,7 @@ "source_text": "" }, { - "model": "CInt", - "qualifiers": [], - "source_text": "int" + "reference": "state" } ] }, @@ -5704,33 +6613,35 @@ "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 693, + "line": 527, "column": 1, - "source_line": "double te_interp(const char *expression, int *error) {" + "source_line": "static te_expr *term(state *s) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 693, + "line": 527, "column": 1, - "source_line": "double te_interp(const char *expression, int *error) {" + "source_line": "static te_expr *term(state *s) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 704, + "line": 546, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "pn": { - "name": "pn", + "optimize": { + "name": "optimize", "result_type": { "model": "CVoid", "qualifiers": [], @@ -5742,7 +6653,7 @@ "type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "te_expr *n", "components": [ { "model": "CPointer", @@ -5757,7 +6668,7 @@ "declared_type": { "model": "CComposedType", "qualifiers": [], - "source_text": "const te_expr *n", + "source_text": "te_expr *n", "components": [ { "model": "CPointer", @@ -5771,21 +6682,6 @@ }, "source_location": null, "callback_policy": null - }, - { - "name": "depth", - "type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "declared_type": { - "model": "CInt", - "qualifiers": [], - "source_text": "int depth" - }, - "source_location": null, - "callback_policy": null } ], "storage": [ @@ -5797,26 +6693,26 @@ "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 706, + "line": 639, "column": 1, - "source_line": "static void pn (const te_expr *n, int depth) {" + "source_line": "static void optimize(te_expr *n) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 706, + "line": 639, "column": 1, - "source_line": "static void pn (const te_expr *n, int depth) {" + "source_line": "static void optimize(te_expr *n) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 729, + "line": 662, "column": 1, "source_line": "}" }, "declaration_locations": [] }, - "te_print": { - "name": "te_print", + "pn": { + "name": "pn", "result_type": { "model": "CVoid", "qualifiers": [], @@ -5857,28 +6753,45 @@ }, "source_location": null, "callback_policy": null + }, + { + "name": "depth", + "type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "declared_type": { + "model": "CInt", + "qualifiers": [], + "source_text": "int depth" + }, + "source_location": null, + "callback_policy": null } ], - "storage": [], + "storage": [ + "static" + ], "specifiers": [], "is_variadic": false, "is_definition": true, "prototype_style": "prototype", "source_location": { "filename": "tinyexpr/tinyexpr.c", - "line": 732, + "line": 706, "column": 1, - "source_line": "void te_print(const te_expr *n) {" + "source_line": "static void pn (const te_expr *n, int depth) {" }, "start": { "filename": "tinyexpr/tinyexpr.c", - "line": 732, + "line": 706, "column": 1, - "source_line": "void te_print(const te_expr *n) {" + "source_line": "static void pn (const te_expr *n, int depth) {" }, "end": { "filename": "tinyexpr/tinyexpr.c", - "line": 734, + "line": 729, "column": 1, "source_line": "}" }, @@ -5886,18 +6799,24 @@ } }, "structs": { - "state": { - "reference": "struct state" + "te_expr": { + "reference": "struct te_expr" + }, + "te_variable": { + "reference": "struct te_variable" } }, "unions": {}, "enums": {}, "typedefs": { + "te_expr": { + "reference": "te_expr" + }, + "te_variable": { + "reference": "te_variable" + }, "te_fun2": { "reference": "te_fun2" - }, - "state": { - "reference": "state" } }, "variables": { @@ -5926,7 +6845,7 @@ "static" ], "initializer": { - "source_text": "{\n \n {\"abs\", fabs, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"acos\", acos, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"asin\", asin, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"atan\", atan, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"atan2\", atan2, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"ceil\", ceil, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"cos\", cos, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"cosh\", cosh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"e\", e, TE_FUNCTION0 | TE_FLAG_PURE, 0},\n {\"exp\", exp, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"fac\", fac, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"floor\", floor, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"ln\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n \n {\"log10\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"ncr\", ncr, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"npr\", npr, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"pi\", pi, TE_FUNCTION0 | TE_FLAG_PURE, 0},\n {\"pow\", pow, TE_FUNCTION2 | TE_FLAG_PURE, 0},\n {\"sin\", sin, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"sinh\", sinh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"sqrt\", sqrt, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"tan\", tan, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {\"tanh\", tanh, TE_FUNCTION1 | TE_FLAG_PURE, 0},\n {0, 0, 0, 0}\n}" + "source_text": "{ {\"abs\", fabs, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"acos\", acos, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"asin\", asin, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"atan\", atan, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"atan2\", atan2, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"ceil\", ceil, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"cos\", cos, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"cosh\", cosh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"e\", e, TE_FUNCTION0 | TE_FLAG_PURE, 0}, {\"exp\", exp, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"fac\", fac, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"floor\", floor, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"ln\", log, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"log\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"log10\", log10, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"ncr\", ncr, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"npr\", npr, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"pi\", pi, TE_FUNCTION0 | TE_FLAG_PURE, 0}, {\"pow\", pow, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {\"sin\", sin, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"sinh\", sinh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"sqrt\", sqrt, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"tan\", tan, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {\"tanh\", tanh, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {0, 0, 0, 0} }" }, "bit_width": null, "source_location": { @@ -5939,267 +6858,229 @@ "declaration_locations": [] } }, - "macros": { - "NAN": { - "name": "NAN", - "value": "(0.0/0.0)", - "function_like": false, - "directive": "define", + "macros": {}, + "includes": {}, + "functions_by_file": { + "tinyexpr/tinyexpr.c": [ + "te_interp", + "te_compile", + "te_eval", + "te_print", + "te_free", + "new_expr", + "te_free_parameters", + "pi", + "e", + "fac", + "ncr", + "npr", + "find_builtin", + "find_lookup", + "add", + "sub", + "mul", + "divide", + "negate", + "comma", + "next_token", + "list", + "expr", + "power", + "base", + "factor", + "term", + "optimize", + "pn" + ], + "tinyexpr/tinyexpr.h": [ + "te_interp", + "te_compile", + "te_eval", + "te_print", + "te_free" + ] + }, + "enum_constants": { + "TE_VARIABLE": { + "name": "TE_VARIABLE", + "value": "0", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 47, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define NAN (0.0/0.0)" + "source_line": "enum {" } }, - "INFINITY": { - "name": "INFINITY", - "value": "(1.0/0.0)", - "function_like": false, - "directive": "define", + "TE_FUNCTION0": { + "name": "TE_FUNCTION0", + "value": "8", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 51, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define INFINITY (1.0/0.0)" + "source_line": "enum {" } }, - "TYPE_MASK": { - "name": "TYPE_MASK", - "value": "((TYPE)&0x0000001F)", - "function_like": true, - "directive": "define", + "TE_FUNCTION1": { + "name": "TE_FUNCTION1", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 78, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define TYPE_MASK(TYPE) ((TYPE)&0x0000001F)" + "source_line": "enum {" } }, - "IS_PURE": { - "name": "IS_PURE", - "value": "(((TYPE) & TE_FLAG_PURE) != 0)", - "function_like": true, - "directive": "define", + "TE_FUNCTION2": { + "name": "TE_FUNCTION2", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 80, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define IS_PURE(TYPE) (((TYPE) & TE_FLAG_PURE) != 0)" + "source_line": "enum {" } }, - "IS_FUNCTION": { - "name": "IS_FUNCTION", - "value": "(((TYPE) & TE_FUNCTION0) != 0)", - "function_like": true, - "directive": "define", + "TE_FUNCTION3": { + "name": "TE_FUNCTION3", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 81, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define IS_FUNCTION(TYPE) (((TYPE) & TE_FUNCTION0) != 0)" + "source_line": "enum {" } }, - "IS_CLOSURE": { - "name": "IS_CLOSURE", - "value": "(((TYPE) & TE_CLOSURE0) != 0)", - "function_like": true, - "directive": "define", + "TE_FUNCTION4": { + "name": "TE_FUNCTION4", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 82, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define IS_CLOSURE(TYPE) (((TYPE) & TE_CLOSURE0) != 0)" + "source_line": "enum {" } }, - "ARITY": { - "name": "ARITY", - "value": "( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )", - "function_like": true, - "directive": "define", + "TE_FUNCTION5": { + "name": "TE_FUNCTION5", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 83, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define ARITY(TYPE) ( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )" + "source_line": "enum {" } }, - "NEW_EXPR": { - "name": "NEW_EXPR", - "value": "new_expr((type), (const te_expr*[]){__VA_ARGS__})", - "function_like": true, - "directive": "define", + "TE_FUNCTION6": { + "name": "TE_FUNCTION6", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 84, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define NEW_EXPR(type, ...) new_expr((type), (const te_expr*[]){__VA_ARGS__})" + "source_line": "enum {" } }, - "CHECK_NULL": { - "name": "CHECK_NULL", - "value": "if ((ptr) == NULL) { __VA_ARGS__; return NULL; }", - "function_like": true, - "directive": "define", + "TE_FUNCTION7": { + "name": "TE_FUNCTION7", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 85, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#define CHECK_NULL(ptr, ...) if ((ptr) == NULL) { __VA_ARGS__; return NULL; }" + "source_line": "enum {" } }, - "TE_FUN": { - "name": "TE_FUN", - "value": null, - "function_like": false, - "directive": "undef", + "TE_CLOSURE0": { + "name": "TE_CLOSURE0", + "value": "16", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 636, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#undef TE_FUN" + "source_line": "enum {" } }, - "M": { - "name": "M", + "TE_CLOSURE1": { + "name": "TE_CLOSURE1", "value": null, - "function_like": false, - "directive": "undef", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 637, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#undef M" + "source_line": "enum {" } }, - "TINYEXPR_H": { - "name": "TINYEXPR_H", + "TE_CLOSURE2": { + "name": "TE_CLOSURE2", "value": null, - "function_like": false, - "directive": "define", "source_location": { "filename": "tinyexpr/tinyexpr.h", - "line": 27, - "column": 1, - "source_line": "#define TINYEXPR_H" - } - } - }, - "includes": { - "tinyexpr/tinyexpr.c:tinyexpr.h": { - "target": "tinyexpr.h", - "kind": "local", - "resolved_path": "tinyexpr/tinyexpr.h", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 38, + "line": 43, "column": 1, - "source_line": "#include \"tinyexpr.h\"" + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:stdlib.h": { - "target": "stdlib.h", - "kind": "system", - "resolved_path": null, + "TE_CLOSURE3": { + "name": "TE_CLOSURE3", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 39, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:math.h": { - "target": "math.h", - "kind": "system", - "resolved_path": null, + "TE_CLOSURE4": { + "name": "TE_CLOSURE4", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 40, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:string.h": { - "target": "string.h", - "kind": "system", - "resolved_path": null, + "TE_CLOSURE5": { + "name": "TE_CLOSURE5", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 41, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:stdio.h": { - "target": "stdio.h", - "kind": "system", - "resolved_path": null, + "TE_CLOSURE6": { + "name": "TE_CLOSURE6", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 42, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:ctype.h": { - "target": "ctype.h", - "kind": "system", - "resolved_path": null, + "TE_CLOSURE7": { + "name": "TE_CLOSURE7", + "value": null, "source_location": { - "filename": "tinyexpr/tinyexpr.c", + "filename": "tinyexpr/tinyexpr.h", "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } }, - "tinyexpr/tinyexpr.c:limits.h": { - "target": "limits.h", - "kind": "system", - "resolved_path": null, + "TE_FLAG_PURE": { + "name": "TE_FLAG_PURE", + "value": "32", "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 44, + "filename": "tinyexpr/tinyexpr.h", + "line": 43, "column": 1, - "source_line": "#include " + "source_line": "enum {" } - } - }, - "functions_by_file": { - "tinyexpr/tinyexpr.c": [ - "new_expr", - "te_free_parameters", - "te_free", - "pi", - "e", - "fac", - "ncr", - "npr", - "find_builtin", - "find_lookup", - "add", - "sub", - "mul", - "divide", - "negate", - "comma", - "next_token", - "list", - "expr", - "power", - "base", - "factor", - "factor", - "term", - "te_eval", - "optimize", - "te_compile", - "te_interp", - "pn", - "te_print" - ], - "tinyexpr/tinyexpr.h": [] - }, - "enum_constants": { + }, "TOK_NULL": { "name": "TOK_NULL", "value": "TE_CLOSURE7+1", @@ -6302,20 +7183,11 @@ } }, "include_graph": { - "tinyexpr/tinyexpr.c": [ - "tinyexpr/tinyexpr.h" - ], + "tinyexpr/tinyexpr.c": [], "tinyexpr/tinyexpr.h": [] }, "system_includes": { - "tinyexpr/tinyexpr.c": [ - "ctype.h", - "limits.h", - "math.h", - "stdio.h", - "stdlib.h", - "string.h" - ], + "tinyexpr/tinyexpr.c": [], "tinyexpr/tinyexpr.h": [] }, "unresolved_includes": { @@ -6327,308 +7199,32 @@ "tinyexpr/tinyexpr.c" ] }, - "conditional_function_variants": { - "factor": [ - { - "name": "factor", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 448, - "column": 1, - "source_line": "static te_expr *factor(state *s) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 448, - "column": 1, - "source_line": "static te_expr *factor(state *s) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 501, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g5:b0" - ] - }, - { - "name": "factor", - "result_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "te_expr", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "te_expr" - } - ] - }, - "parameters": [ - { - "name": "s", - "type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "declared_type": { - "model": "CComposedType", - "qualifiers": [], - "source_text": "state *s", - "components": [ - { - "model": "CPointer", - "qualifiers": [], - "source_text": "" - }, - { - "reference": "state" - } - ] - }, - "source_location": null, - "callback_policy": null - } - ], - "storage": [ - "static" - ], - "specifiers": [], - "is_variadic": false, - "is_definition": true, - "prototype_style": "prototype", - "source_location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 503, - "column": 1, - "source_line": "static te_expr *factor(state *s) {" - }, - "start": { - "filename": "tinyexpr/tinyexpr.c", - "line": 503, - "column": 1, - "source_line": "static te_expr *factor(state *s) {" - }, - "end": { - "filename": "tinyexpr/tinyexpr.c", - "line": 522, - "column": 1, - "source_line": "}" - }, - "declaration_locations": [], - "condition_set": [ - "g5:b1" - ] - } - ] - }, "diagnostics": [ { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'TYPE_MASK' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 78, - "column": 1, - "source_line": "#define TYPE_MASK(TYPE) ((TYPE)&0x0000001F)" - }, - "unit_kind": "macro", - "unit_name": "TYPE_MASK" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_PURE' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 80, - "column": 1, - "source_line": "#define IS_PURE(TYPE) (((TYPE) & TE_FLAG_PURE) != 0)" - }, - "unit_kind": "macro", - "unit_name": "IS_PURE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_FUNCTION' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 81, - "column": 1, - "source_line": "#define IS_FUNCTION(TYPE) (((TYPE) & TE_FUNCTION0) != 0)" - }, - "unit_kind": "macro", - "unit_name": "IS_FUNCTION" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'IS_CLOSURE' is recorded but not expanded.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'te_expr'.", + "severity": "error", "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 82, - "column": 1, - "source_line": "#define IS_CLOSURE(TYPE) (((TYPE) & TE_CLOSURE0) != 0)" - }, - "unit_kind": "macro", - "unit_name": "IS_CLOSURE" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'ARITY' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 83, - "column": 1, - "source_line": "#define ARITY(TYPE) ( ((TYPE) & (TE_FUNCTION0 | TE_CLOSURE0)) ? ((TYPE) & 0x00000007) : 0 )" - }, - "unit_kind": "macro", - "unit_name": "ARITY" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'NEW_EXPR' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 84, - "column": 1, - "source_line": "#define NEW_EXPR(type, ...) new_expr((type), (const te_expr*[]){__VA_ARGS__})" - }, - "unit_kind": "macro", - "unit_name": "NEW_EXPR" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'CHECK_NULL' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 85, - "column": 1, - "source_line": "#define CHECK_NULL(ptr, ...) if ((ptr) == NULL) { __VA_ARGS__; return NULL; }" - }, - "unit_kind": "macro", - "unit_name": "CHECK_NULL" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'TE_FUN' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 592, - "column": 1, - "source_line": "#define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function)" - }, - "unit_kind": "macro", - "unit_name": "TE_FUN" - }, - { - "code": "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "message": "Function-like macro 'M' is recorded but not expanded.", - "severity": "warning", - "location": { - "filename": "tinyexpr/tinyexpr.c", - "line": 593, + "filename": "tinyexpr/tinyexpr.h", + "line": 36, "column": 1, - "source_line": "#define M(e) te_eval(n->parameters[e])" + "source_line": "typedef struct te_expr {" }, - "unit_kind": "macro", - "unit_name": "M" + "unit_kind": "struct", + "unit_name": "te_expr" }, { - "code": "C_UNSUPPORTED_DECLARATOR", - "message": "Unsupported declarator syntax after parsed type layers: '\"C\"'.", - "severity": "warning", + "code": "C_DUPLICATE_TAG_DEFINITION", + "message": "Duplicate definition for struct tag 'te_variable'.", + "severity": "error", "location": { "filename": "tinyexpr/tinyexpr.h", - "line": 31, + "line": 55, "column": 1, - "source_line": "extern \"C\" {" + "source_line": "typedef struct te_variable {" }, - "unit_kind": "declarator", - "unit_name": null + "unit_kind": "struct", + "unit_name": "te_variable" } ] } diff --git a/tests/parser/c/generate_c_parser_goldens.py b/tests/parser/c/generate_c_parser_goldens.py index a23c2b2e9..f0f33147c 100644 --- a/tests/parser/c/generate_c_parser_goldens.py +++ b/tests/parser/c/generate_c_parser_goldens.py @@ -1,13 +1,17 @@ -# -*- coding: utf-8 -*- """Generate/update golden files for grouped C parser fixture projects.""" from __future__ import annotations import json +import re +import shutil import sys +from contextlib import suppress from pathlib import Path -from c_parser import parse_c_project +_REPO_ROOT = Path(__file__).resolve().parents[3] +if str(_REPO_ROOT) not in sys.path: + sys.path.insert(0, str(_REPO_ROOT)) _TESTS_DIR = Path(__file__).resolve().parents[2] @@ -21,6 +25,18 @@ "nanosvg": ("nanosvg.h", "nanosvgrast.h"), }, } +_DEFINE_OVERRIDES = { + "nanosvg.h": ("NANOSVG_IMPLEMENTATION",), + "nanosvgrast.h": ("NANOSVGRAST_IMPLEMENTATION",), + "stb_ds.h": ("STB_DS_IMPLEMENTATION",), + "stb_dxt.h": ("STB_DXT_IMPLEMENTATION",), + "stb_image.h": ("STB_IMAGE_IMPLEMENTATION",), + "stb_rect_pack.h": ("STB_RECT_PACK_IMPLEMENTATION",), +} +_DECLARATION_SECTIONS = ("functions", "structs", "unions", "enums", "typedefs", "variables", "enum_constants") +_FILE_DECLARATION_SECTIONS = ("functions", "structs", "unions", "enums", "typedefs", "variables") +_TAG_PREFIXES = {"structs": "struct", "unions": "union", "enums": "enum"} +_SYSTEM_ANONYMOUS_ID = re.compile(r"@/[^:]+:\d+:\d+") def _parser_filename_for_fixture(fixture: Path) -> str: @@ -63,12 +79,13 @@ def _normalize_resolved_paths(value): if isinstance(value, dict): resolved_path = value.get("resolved_path") if resolved_path: - try: + with suppress(ValueError): value["resolved_path"] = Path(resolved_path).relative_to(_C_DATA_DIR).as_posix() - except ValueError: - pass for key, nested in value.items(): - value[key] = _normalize_resolved_paths(nested) + if key == "source_text" and isinstance(nested, str): + value[key] = " ".join(nested.split()) + else: + value[key] = _normalize_resolved_paths(nested) elif isinstance(value, list): return [_normalize_resolved_paths(nested) for nested in value] elif isinstance(value, str): @@ -81,14 +98,208 @@ def _normalize_resolved_paths(value): return value +def _is_project_filename(filename: object) -> bool: + return isinstance(filename, str) and not Path(filename).is_absolute() + + +def _is_project_location(location: object) -> bool: + return isinstance(location, dict) and _is_project_filename(location.get("filename")) + + +def _has_project_source_location(declaration: object) -> bool: + return isinstance(declaration, dict) and _is_project_location(declaration.get("source_location")) + + +def _declaration_identifiers(section: str, declaration: object, fallback: str | None = None) -> set[str]: + if not isinstance(declaration, dict): + return {fallback} if fallback is not None else set() + + identifiers = {fallback} if fallback is not None else set() + for key in ("name", "reference", "anonymous_id"): + value = declaration.get(key) + if isinstance(value, str): + identifiers.add(value) + + prefix = _TAG_PREFIXES.get(section) + name = declaration.get("name") + reference = declaration.get("reference") + if prefix is not None: + if isinstance(name, str): + identifiers.add(f"{prefix} {name}") + if isinstance(reference, str) and reference.startswith(f"{prefix} "): + identifiers.add(reference.removeprefix(f"{prefix} ")) + + return {identifier for identifier in identifiers if identifier} + + +def _collect_project_symbols(payload: dict) -> dict[str, set[str]]: + symbols = {section: set() for section in _DECLARATION_SECTIONS} + + def collect(section: str, declaration: object, fallback: str | None = None) -> None: + if _has_project_source_location(declaration): + symbols[section].update(_declaration_identifiers(section, declaration, fallback)) + + for file_payload in payload.get("files", {}).values(): + if not isinstance(file_payload, dict): + continue + for section in _FILE_DECLARATION_SECTIONS: + for declaration in file_payload.get(section, []): + collect(section, declaration) + for enum_declaration in file_payload.get("enums", []): + if isinstance(enum_declaration, dict) and _has_project_source_location(enum_declaration): + for constant in enum_declaration.get("constants", []): + collect("enum_constants", constant) + + for section in _DECLARATION_SECTIONS: + declarations = payload.get(section, {}) + if not isinstance(declarations, dict): + continue + for name, declaration in declarations.items(): + collect(section, declaration, name) + + return symbols + + +def _is_project_declaration( + section: str, + declaration: object, + symbols: dict[str, set[str]], + fallback: str | None = None, +) -> bool: + if _has_project_source_location(declaration): + return True + return bool(_declaration_identifiers(section, declaration, fallback) & symbols[section]) + + +def _is_project_diagnostic(diagnostic: object) -> bool: + if not isinstance(diagnostic, dict): + return True + location = diagnostic.get("location") + if not isinstance(location, dict): + return True + filename = location.get("filename") + return filename is None or _is_project_filename(filename) + + +def _system_declaration_reference(declaration: dict) -> str | None: + source_location = declaration.get("source_location") + if _is_project_location(source_location): + return None + if not isinstance(source_location, dict) or _is_project_filename(source_location.get("filename")): + return None + + model = declaration.get("model") + name = declaration.get("name") + anonymous_id = declaration.get("anonymous_id") + if model == "CTypedef" and isinstance(name, str): + return name + if model == "CStruct": + return f"struct {name}" if isinstance(name, str) else str(anonymous_id or "") + if model == "CUnion": + return f"union {name}" if isinstance(name, str) else str(anonymous_id or "") + if model == "CEnum": + return f"enum {name}" if isinstance(name, str) else str(anonymous_id or "") + return None + + +def _stable_payload_value(value, symbols: dict[str, set[str]]): + if isinstance(value, dict): + reference = _system_declaration_reference(value) + if reference is not None: + return {"reference": _stable_payload_value(reference, symbols)} + + stable = {} + for key, nested in value.items(): + if key == "source_text" and isinstance(nested, str): + stable[key] = " ".join(nested.split()) + continue + if key in _DECLARATION_SECTIONS and isinstance(nested, dict): + stable[key] = { + name: _stable_payload_value(item, symbols) + for name, item in nested.items() + if _is_project_declaration(key, item, symbols, name) + } + continue + if key in _FILE_DECLARATION_SECTIONS and isinstance(nested, list): + stable[key] = [ + _stable_payload_value(item, symbols) + for item in nested + if _is_project_declaration(key, item, symbols) + ] + continue + if key == "functions_by_file" and isinstance(nested, dict): + stable[key] = { + filename: [name for name in names if name in symbols["functions"]] + for filename, names in nested.items() + } + continue + if key == "diagnostics" and isinstance(nested, list): + stable[key] = [_stable_payload_value(item, symbols) for item in nested if _is_project_diagnostic(item)] + continue + if key == "original_source_paths" and isinstance(nested, list): + stable[key] = [_stable_payload_value(item, symbols) for item in nested if _is_project_filename(item)] + continue + if key in {"location", "source_location", "start", "end"} and isinstance(nested, dict): + filename = nested.get("filename") + if filename is not None and not _is_project_filename(filename): + stable[key] = { + **nested, + "filename": "", + "line": 0, + "column": 0, + "source_line": None, + } + continue + stable[key] = _stable_payload_value(nested, symbols) + return stable + if isinstance(value, list): + return [_stable_payload_value(item, symbols) for item in value] + if isinstance(value, str): + if Path(value).is_absolute(): + return "" + return _SYSTEM_ANONYMOUS_ID.sub("@:0:0", value) + return value + + +def _stable_project_payload(payload: dict) -> dict: + return _stable_payload_value(payload, _collect_project_symbols(payload)) + + def _serialize_project(fixtures: list[Path]) -> dict: - sources = { - _parser_filename_for_fixture(fixture): fixture.read_text(encoding="utf-8") - for fixture in sorted(fixtures, key=_fixture_sort_key) - } + from c_parser import CParser + + parser = CParser() include_dirs = sorted({fixture.parent for fixture in fixtures}) - parsed = parse_c_project(sources, include_dirs=include_dirs) - return _normalize_resolved_paths(parsed.to_dict()) + parsed_files = {} + for fixture in sorted(fixtures, key=_fixture_sort_key): + filename = _parser_filename_for_fixture(fixture) + parsed_files[filename] = _parse_fixture(parser, fixture, filename=filename, include_dirs=include_dirs) + project = parser.visit_parsed_project(parsed_files) + return _stable_project_payload(_normalize_resolved_paths(project.to_dict())) + + +def _parse_fixture(parser, fixture: Path, *, filename: str, include_dirs: list[Path]): + from x2py.preprocessing import PreprocessingConfig, preprocess_source + + compiler = shutil.which("cc") + if compiler is None: + raise SystemExit("cc is required to preprocess C fixtures") from None + preprocessed = preprocess_source( + fixture, + language="c", + config=PreprocessingConfig( + mode="compiler", + compiler=compiler, + include_dirs=[str(path) for path in include_dirs], + defines=list(_DEFINE_OVERRIDES.get(fixture.name, ())), + ), + ) + return parser.visit_file( + preprocessed.source, + filename=filename, + include_dirs=include_dirs, + preprocessing="compiler", + ) def _sibling_fixtures(fixture: Path) -> list[Path]: diff --git a/tests/parser/c/test_c_cli_skeleton.py b/tests/parser/c/test_c_cli_skeleton.py index 027038b03..3be9307f5 100644 --- a/tests/parser/c/test_c_cli_skeleton.py +++ b/tests/parser/c/test_c_cli_skeleton.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C parser CLI coverage for the current partial subset.""" import json @@ -36,20 +35,29 @@ def test_cli_c_parse_human_tree_output_for_header(tmp_path: Path): assert f"File: {header}" in res.stdout assert "Language: c" in res.stdout assert "Functions: 1" in res.stdout - assert "Parser status: partial" in res.stdout + assert "Parser status" not in res.stdout def test_cli_c_parse_json_stdout_for_header(tmp_path: Path): header = tmp_path / "api.h" header.write_text("int add(int a, int b);\n", encoding="utf-8") - cmd = [sys.executable, "-m", "x2py", str(header), "--language", "c", "--parse", "--json"] + cmd = [ + sys.executable, + "-m", + "x2py", + str(header), + "--language", + "c", + "--parse", + "--json", + ] res = subprocess.run(cmd, capture_output=True, text=True, check=True) payload = json.loads(res.stdout) file_payload = payload[str(header)] assert file_payload["language"] == "c" - assert file_payload["parser_status"] == "partial" + assert "parser_status" not in file_payload assert [fn["name"] for fn in file_payload["functions"]] == ["add"] assert file_payload["structs"] == [] assert file_payload["unions"] == [] @@ -61,27 +69,21 @@ def test_cli_c_parse_json_stdout_for_header(tmp_path: Path): assert file_payload["diagnostics"] == [] -def test_cli_c_parse_json_reports_raw_preprocessor_metadata(tmp_path: Path): +def test_cli_c_parse_preprocesses_macros_by_default(tmp_path: Path): header = tmp_path / "api.h" types = tmp_path / "api_types.h" types.write_text("typedef int api_int;\n", encoding="utf-8") header.write_text( - '#include "api_types.h"\n#define API_VERSION 3\n#define API_DECL(ret) ret\n', + '#include "api_types.h"\n#define API_DECL(ret) ret\nAPI_DECL(api_int) run(void);\n', encoding="utf-8", ) cmd = [sys.executable, "-m", "x2py", str(header), "--language", "c", "--parse", "--json"] res = subprocess.run(cmd, capture_output=True, text=True, check=True) - payload = json.loads(res.stdout) - file_payload = payload[str(header)] + payload = json.loads(res.stdout)[str(header)] - assert file_payload["includes"][0]["target"] == "api_types.h" - assert file_payload["includes"][0]["kind"] == "local" - assert file_payload["includes"][0]["resolved_path"] == str(types) - macros = {macro["name"]: macro for macro in file_payload["macros"]} - assert macros["API_VERSION"]["value"] == "3" - assert macros["API_DECL"]["function_like"] is True - assert file_payload["diagnostics"][0]["code"] == "C_UNSUPPORTED_FUNCTION_LIKE_MACRO" + assert payload["preprocessing"] == "compiler" + assert [function["name"] for function in payload["functions"]] == ["run"] def test_attach_preprocessing_recipe_filters_invalid_and_duplicate_macros(): @@ -164,7 +166,7 @@ def test_cli_c_parse_json_out_writes_file_and_suppresses_stdout(tmp_path: Path): assert res.stdout == "" assert payload[str(header)]["language"] == "c" - assert payload[str(header)]["parser_status"] == "partial" + assert "parser_status" not in payload[str(header)] def test_cli_c_parse_out_without_json_writes_json_and_suppresses_stdout(tmp_path: Path): @@ -187,7 +189,7 @@ def test_cli_c_parse_out_without_json_writes_json_and_suppresses_stdout(tmp_path payload = json.loads(output.read_text(encoding="utf-8")) assert res.stdout == "" - assert payload[str(header)]["parser_status"] == "partial" + assert "parser_status" not in payload[str(header)] def test_cli_c_semantics_json_stdout_for_header(tmp_path: Path): @@ -393,7 +395,7 @@ def test_cli_c_no_color_and_debug_traceback_flags_are_accepted(tmp_path: Path): res = subprocess.run(cmd, capture_output=True, text=True, check=True) - assert "Parser status: partial" in res.stdout + assert "Parser status" not in res.stdout def test_cli_c_no_color_and_no_color_env_format_parse_errors_without_ansi(tmp_path: Path): @@ -509,7 +511,7 @@ def test_c_parser_cli_module_handles_directory_loader_and_output_modes(tmp_path: assert c_parser_cli.main([str(header), "--out", str(output)]) == 0 assert capsys.readouterr().out == "" - assert json.loads(output.read_text(encoding="utf-8"))[str(header)]["parser_status"] == "partial" + assert "parser_status" not in json.loads(output.read_text(encoding="utf-8"))[str(header)] def test_c_parser_module_entrypoint_and_compatibility_exports(tmp_path: Path): diff --git a/tests/parser/c/test_c_compiler_extensions.py b/tests/parser/c/test_c_compiler_extensions.py index 981a4fc69..701d0350f 100644 --- a/tests/parser/c/test_c_compiler_extensions.py +++ b/tests/parser/c/test_c_compiler_extensions.py @@ -16,10 +16,7 @@ def test_raw_mode_keeps_compiler_extension_declarations_conservative(): ) assert parsed.functions == [] - assert [ - (diagnostic.code, diagnostic.unit_kind) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.code, diagnostic.unit_kind) for diagnostic in parsed.diagnostics] == [ ("C_UNSUPPORTED_DECLARATION", "attribute_declaration"), ] @@ -73,10 +70,7 @@ def test_layout_and_abi_attributes_are_parsed_with_explicit_warnings(): assert [member.name for member in parsed.structs[0].members] == ["value"] assert [typedef.name for typedef in parsed.typedefs] == ["vector4"] assert [function.name for function in parsed.functions] == ["abi_call"] - assert [ - (diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ ("C_UNMODELED_COMPILER_EXTENSION", "compiler_attribute", "packed"), ("C_UNMODELED_COMPILER_EXTENSION", "compiler_attribute", "aligned"), ("C_UNMODELED_COMPILER_EXTENSION", "compiler_attribute", "vector_size"), @@ -102,10 +96,7 @@ def test_declspec_calling_conventions_asm_labels_and_top_level_asm_are_tolerated assert [struct.name for struct in parsed.structs] == ["block"] assert [function.name for function in parsed.functions] == ["imported", "renamed"] assert [variable.name for variable in parsed.variables] == ["tls_value"] - assert [ - (diagnostic.unit_kind, diagnostic.unit_name) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ ("compiler_attribute", "align"), ("calling_convention", "__stdcall"), ("compiler_attribute", "thread"), @@ -114,6 +105,113 @@ def test_declspec_calling_conventions_asm_labels_and_top_level_asm_are_tolerated ] +def test_bare_compiler_extensions_and_comments_are_tolerated(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """ +/* block + comment */ +__attribute__ int attributed; +// line comment +_Alignas int aligned; +extern int renamed __asm__; +""", + filename="bare_extensions.h", + preprocessing="compiler", + ) + + assert [variable.name for variable in parsed.variables] == ["attributed", "aligned", "renamed"] + assert [(diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ + ("alignment_specifier", "_Alignas"), + ("asm_label", "__asm__"), + ] + + +def test_compiler_extension_normalization_preserves_coordinates_and_source_states(): + from c_parser import CParser + + source = ( + 'const char *s = "__attribute__((packed))";\n' + "// __attribute__((unused)) ignored\n" + "/* keep * __declspec(dllexport) */\n" + "extern int packed_call(void) __attribute__((packed, ms_abi));\n" + "__extension__ extern __inline__ int __stdcall run(__const char *__restrict p) " + '__attribute__((visibility("default")));\n' + "_Alignas(16) int aligned;\n" + 'extern int renamed __asm__("renamed_v2");\n' + "_BitInt(17) bits;\n" + "__typeof__(errno) err;\n" + "int *__ptr64 ptr;\n" + ) + + normalized, extensions = CParser()._normalize_compiler_extensions(source) + + assert len(normalized) == len(source) + assert normalized == ( + 'const char *s = "__attribute__((packed))";\n' + "// __attribute__((unused)) ignored\n" + "/* keep * __declspec(dllexport) */\n" + "extern int packed_call(void) ;\n" + " extern inline int run(const char *restrict p) " + " ;\n" + " int aligned;\n" + "extern int renamed ;\n" + "_bitint bits;\n" + "_typeof err;\n" + "int * ptr;\n" + ) + assert [(extension.kind, extension.name, extension.offset) for extension in extensions] == [ + ("compiler_attribute", "packed", source.index("__attribute__((packed, ms_abi))")), + ("compiler_attribute", "ms_abi", source.index("__attribute__((packed, ms_abi))")), + ("calling_convention", "__stdcall", source.index("__stdcall")), + ("alignment_specifier", "_Alignas", source.index("_Alignas")), + ("asm_label", "__asm__", source.index("__asm__")), + ("compiler_type", "_BitInt", source.index("_BitInt")), + ("compiler_type", "__typeof__", source.index("__typeof__")), + ("compiler_qualifier", "__ptr64", source.index("__ptr64")), + ] + + +def test_compiler_extension_only_segment_does_not_stop_later_declarations(): + from c_parser import parse_c_file + + parsed = parse_c_file( + "__attribute__((deprecated));\nint kept;\n", + filename="blank_extension_segment.h", + preprocessing="compiler", + ) + + assert [variable.name for variable in parsed.variables] == ["kept"] + assert parsed.diagnostics == [] + + +def test_abi_pointer_qualifiers_are_accepted_with_explicit_warning(): + from c_parser import parse_c_file + + parsed = parse_c_file( + "int *__ptr64 global_ptr;\n", + filename="abi_pointer_qualifier.h", + preprocessing="compiler", + ) + + assert [variable.name for variable in parsed.variables] == ["global_ptr"] + assert [(diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ + ("C_UNMODELED_COMPILER_EXTENSION", "compiler_qualifier", "__ptr64"), + ] + + +def test_double_bracket_attribute_scanner_ignores_quoted_closers(): + from c_parser import CParser + + text = '[[vendor::attr("escaped \\" quote and ]] text")]] int value;' + + end = CParser._find_double_bracket_end(text, 0) + + assert end == text.index(" int value") + assert CParser._find_double_bracket_end("[[unterminated", 0) is None + + def test_typeof_bitint_and_extended_scalars_remain_parseable_as_opaque_types(): from c_parser import CTypedef, CUnknownType, parse_c_file @@ -137,10 +235,7 @@ def test_typeof_bitint_and_extended_scalars_remain_parseable_as_opaque_types(): assert variables["wide_counter"].type.spelling == "unsigned __int128" assert isinstance(variables["wide_float"].type, CUnknownType) assert variables["wide_float"].type.spelling == "_Float128" - assert [ - (diagnostic.unit_kind, diagnostic.unit_name) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ ("compiler_type", "__typeof__"), ("compiler_type", "_BitInt"), ] diff --git a/tests/parser/c/test_c_corpus.py b/tests/parser/c/test_c_corpus.py index 3711ee283..eb1de9388 100644 --- a/tests/parser/c/test_c_corpus.py +++ b/tests/parser/c/test_c_corpus.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Active cJSON parser regression tests. cJSON is the first target corpus because it is small, realistic, and exercises @@ -7,69 +6,85 @@ """ from pathlib import Path +import shutil + +import pytest _TESTS_DIR = Path(__file__).resolve().parents[2] _CJSON_DIR = _TESTS_DIR / "data" / "c" / "json" -def test_cjson_regression_source_and_header_are_available(): - assert (_CJSON_DIR / "cJSON.h").exists() - assert (_CJSON_DIR / "cJSON.c").exists() - +def _preprocessed_cjson_source(filename: str) -> str: + from x2py.preprocessing import PreprocessingConfig, preprocess_source -def test_cjson_header_parse_records_unsupported_wrapped_declarations_explicitly(): - from c_parser import parse_c_file + compiler = shutil.which("cc") + if compiler is None: + pytest.skip("cc is not available") + return preprocess_source( + _CJSON_DIR / filename, + language="c", + config=PreprocessingConfig(mode="compiler", compiler=compiler), + ).source - parsed = parse_c_file(_CJSON_DIR / "cJSON.h") - assert parsed.parser_status == "partial" - assert "CJSON_PUBLIC" in {macro.name for macro in parsed.macros} - assert any(diag.code == "C_UNSUPPORTED_DECLARATOR" for diag in parsed.diagnostics) +def test_cjson_regression_source_and_header_are_available(): + assert (_CJSON_DIR / "cJSON.h").exists() + assert (_CJSON_DIR / "cJSON.c").exists() -def test_cjson_header_raw_mode_records_public_macro_wrappers(): - from c_parser import parse_c_file +def test_cjson_header_raw_parse_requires_preprocessing(): + import pytest - parsed = parse_c_file(_CJSON_DIR / "cJSON.h", preprocessing="raw") + from c_parser import CParseError, parse_c_file - assert "CJSON_PUBLIC" in {macro.name for macro in parsed.macros} - assert any(diag.code == "C_UNSUPPORTED_FUNCTION_LIKE_MACRO" for diag in parsed.diagnostics) + with pytest.raises(CParseError, match="require compiler preprocessing") as exc_info: + parse_c_file(_CJSON_DIR / "cJSON.h") + assert exc_info.value.code == "CPARSE_PREPROCESSING_REQUIRED" -def test_cjson_header_preprocessed_mode_preserves_explicit_partial_status(): +def test_cjson_header_preprocessed_mode_has_no_error_diagnostics(): from c_parser import parse_c_file - parsed = parse_c_file(_CJSON_DIR / "cJSON.h", preprocessing="compiler") + parsed = parse_c_file( + _preprocessed_cjson_source("cJSON.h"), + filename=str(_CJSON_DIR / "cJSON.h"), + preprocessing="compiler", + ) - assert parsed.parser_status == "partial" - assert any(diag.code == "C_UNSUPPORTED_DECLARATOR" for diag in parsed.diagnostics) assert not any(diag.severity == "error" for diag in parsed.diagnostics) -def test_cjson_callback_hook_declarations_are_deferred_without_error_diagnostics(): +def test_cjson_callback_hook_declarations_are_preprocessed_without_error_diagnostics(): from c_parser import parse_c_file - parsed = parse_c_file(_CJSON_DIR / "cJSON.h") + parsed = parse_c_file( + _preprocessed_cjson_source("cJSON.h"), + filename=str(_CJSON_DIR / "cJSON.h"), + preprocessing="compiler", + ) - assert not parsed.structs - assert any(diag.code == "C_UNSUPPORTED_DECLARATOR" for diag in parsed.diagnostics) + assert any(struct.name == "cJSON_Hooks" for struct in parsed.structs) assert not any(diag.severity == "error" for diag in parsed.diagnostics) def test_cjson_source_file_parse_skips_function_bodies_safely(): from c_parser import parse_c_file - parsed = parse_c_file(_CJSON_DIR / "cJSON.c") + parsed = parse_c_file( + _preprocessed_cjson_source("cJSON.c"), + filename=str(_CJSON_DIR / "cJSON.c"), + preprocessing="compiler", + ) assert any(fn.name == "parse_number" for fn in parsed.functions) - assert parsed.parser_status == "partial" assert not any(hasattr(fn, "body") for fn in parsed.functions) def test_cjson_project_parse_links_header_and_source(): from c_parser import parse_c_project - project = parse_c_project(_CJSON_DIR) + sources = {filename: _preprocessed_cjson_source(filename) for filename in ("cJSON.h", "cJSON.c")} + project = parse_c_project(sources, preprocessing="compiler") assert "cJSON.h" in project.files assert "cJSON.c" in project.files diff --git a/tests/parser/c/test_c_declarations_and_declarators.py b/tests/parser/c/test_c_declarations_and_declarators.py index b51950d68..58f67b9bf 100644 --- a/tests/parser/c/test_c_declarations_and_declarators.py +++ b/tests/parser/c/test_c_declarations_and_declarators.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C declaration-specifier and composed-type parser tests.""" import pytest @@ -278,6 +277,23 @@ def test_conflicting_file_scope_variable_declarations_report_diagnostic(): assert any(diag.code == "C_CONFLICTING_VARIABLE_DECLARATION" for diag in parsed.diagnostics) +def test_type_key_preserves_seen_state_for_recursive_composed_types(): + from c_parser import CComposedType, CParser, CPointer, CTypedef + + typedef = CTypedef(name="node") + recursive = CComposedType(components=[CPointer(), typedef]) + typedef.type = recursive + + assert CParser()._type_key(recursive) == ( + "CComposedType", + ( + ("CPointer", ()), + ("CTypedef", ("cycle", "CComposedType", None), ()), + ), + (), + ) + + def test_compatible_repeated_typedefs_merge_but_conflicting_typedefs_diagnose(): from c_parser import parse_c_file @@ -291,7 +307,7 @@ def test_compatible_repeated_typedefs_merge_but_conflicting_typedefs_diagnose(): def test_variables_preserve_initializer_text_arrays_and_concrete_tag_types(): - from c_parser import CArray, CComposedType, CEnum, CInt, CStruct, CUnion, parse_c_file + from c_parser import CArray, CEnum, CInt, CStruct, CUnion, parse_c_file parsed = parse_c_file( """ @@ -412,6 +428,23 @@ def test_atomic_type_specifier_qualifies_the_declared_outermost_type(): assert parsed.diagnostics == [] +@pytest.mark.parametrize( + ("source", "message"), + [ + ("_Atomic(int) long value;\n", "Invalid type specifier sequence"), + ("_Atomic() value;\n", "Invalid _Atomic type-name"), + ("_Atomic(int named) value;\n", "Invalid _Atomic type-name"), + ], +) +def test_invalid_atomic_type_specifiers_raise_focused_errors(source, message): + from c_parser import CParseError, parse_c_file + + with pytest.raises(CParseError, match=message) as exc_info: + parse_c_file(source, filename="invalid_atomic.h") + + assert exc_info.value.code == "CPARSE_INVALID_SPECIFIER_SEQUENCE" + + def test_function_bodies_do_not_contribute_local_variables(): from c_parser import parse_c_file @@ -504,16 +537,14 @@ def test_conflicting_function_pointer_typedefs_report_diagnostic(): from c_parser import parse_c_file parsed = parse_c_file( - "typedef int (*callback_fn)(int);\n" - "typedef double (*callback_fn)(double);\n", + "typedef int (*callback_fn)(int);\ntypedef double (*callback_fn)(double);\n", filename="callback_typedef_conflict.h", ) assert [typedef.name for typedef in parsed.typedefs] == ["callback_fn"] - assert [ - (diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) - for diagnostic in parsed.diagnostics - ] == [("C_CONFLICTING_TYPEDEF", "typedef", "callback_fn")] + assert [(diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ + ("C_CONFLICTING_TYPEDEF", "typedef", "callback_fn") + ] def test_recursive_compositions_cover_tables_callback_arrays_and_function_results(): @@ -561,14 +592,84 @@ def test_declaration_attributes_are_tolerated_and_layout_omissions_are_diagnosed ) assert [variable.name for variable in parsed.variables] == ["visible", "outdated", "aligned_value"] - assert [ - (diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.code, diagnostic.unit_kind, diagnostic.unit_name) for diagnostic in parsed.diagnostics] == [ ("C_UNMODELED_COMPILER_EXTENSION", "alignment_specifier", "_Alignas"), ] +def test_unsupported_top_level_declarator_is_reported_with_source_location(): + from c_parser import parse_c_file + + parsed = parse_c_file("int value @@;\nint kept;\n", filename="bad_declarator.h") + + assert [variable.name for variable in parsed.variables] == ["kept"] + assert len(parsed.diagnostics) == 1 + diagnostic = parsed.diagnostics[0] + assert diagnostic.code == "C_UNSUPPORTED_DECLARATOR" + assert diagnostic.severity == "warning" + assert diagnostic.unit_kind == "declarator" + assert diagnostic.unit_name is None + assert diagnostic.message == "Unsupported declarator syntax after parsed type layers: '@@'." + assert diagnostic.location is not None + assert diagnostic.location.filename == "bad_declarator.h" + assert diagnostic.location.line == 1 + assert diagnostic.location.column == 1 + assert diagnostic.location.source_line == "int value @@;" + + +@pytest.mark.parametrize( + ("text", "unit_kind", "message"), + [ + ("struct pending { int value; }", "struct_definition", "Struct definitions are not supported yet."), + ("union pending { int value; }", "union_definition", "Union definitions are not supported yet."), + ("enum pending { value }", "enum_definition", "Enum definitions are not supported yet."), + ("_Static_assert(sizeof(int) == 4)", "static_assert", "Static assertions are recorded but not evaluated."), + ("int value __attribute__((used))", "attribute_declaration", "Compiler-specific declaration attributes"), + ("int value __declspec(dllexport)", "attribute_declaration", "Compiler-specific declaration attributes"), + ("int value [[deprecated]]", "attribute_declaration", "Compiler-specific declaration attributes"), + ("_Alignas(16) int value", "alignment_declaration", "Declaration alignment specifiers"), + ("alignas(16) int value", "alignment_declaration", "Declaration alignment specifiers"), + ("int values[] = {1, 2, 3}", "brace_declaration", "Unsupported declaration containing braces."), + ], +) +def test_unsupported_declaration_diagnostic_classifies_known_shapes(text, unit_kind, message): + from c_parser import CParser + from c_parser.lexer import CTopLevelSegment + + segment = CTopLevelSegment( + text=text, + terminator=";", + filename="unsupported.h", + original_start_line=7, + original_start_column=3, + original_source_line=f" {text};", + ) + + diagnostic = CParser()._unsupported_declaration_diagnostic(segment) + + assert diagnostic is not None + assert diagnostic.code == "C_UNSUPPORTED_DECLARATION" + assert diagnostic.severity == "warning" + assert diagnostic.unit_kind == unit_kind + assert diagnostic.unit_name is None + assert message in diagnostic.message + assert diagnostic.location is not None + assert diagnostic.location.filename == "unsupported.h" + assert diagnostic.location.line == 7 + assert diagnostic.location.column == 3 + assert diagnostic.location.source_line == f" {text};" + + +def test_unsupported_declaration_diagnostic_ignores_empty_and_plain_declarations(): + from c_parser import CParser + from c_parser.lexer import CTopLevelSegment + + parser = CParser() + + assert parser._unsupported_declaration_diagnostic(CTopLevelSegment(text="", terminator=";")) is None + assert parser._unsupported_declaration_diagnostic(CTopLevelSegment(text="int value", terminator=";")) is None + + @pytest.mark.parametrize( "source", [ @@ -607,10 +708,7 @@ def test_braced_and_designated_initializer_declarations_preserve_source_text(): from c_parser import CArray, CComposedType, parse_c_file parsed = parse_c_file( - "struct config;\n" - "int values[3] = {1, 2, 3};\n" - "struct config cfg = {.enabled = 1};\n" - "int scalar = 1;\n", + "struct config;\nint values[3] = {1, 2, 3};\nstruct config cfg = {.enabled = 1};\nint scalar = 1;\n", filename="braced_initializers.h", ) @@ -635,10 +733,7 @@ def test_asm_declarator_suffixes_are_tolerated_with_symbol_identity_diagnostics( assert [variable.name for variable in parsed.variables] == ["retained", "pinned"] assert [function.name for function in parsed.functions] == ["run"] - assert [ - (diagnostic.code, diagnostic.unit_kind) - for diagnostic in parsed.diagnostics - ] == [ + assert [(diagnostic.code, diagnostic.unit_kind) for diagnostic in parsed.diagnostics] == [ ("C_UNMODELED_COMPILER_EXTENSION", "asm_label"), ("C_UNMODELED_COMPILER_EXTENSION", "asm_label"), ] diff --git a/tests/parser/c/test_c_error_fixture_suite.py b/tests/parser/c/test_c_error_fixture_suite.py index 690b06fd4..ca513b93a 100644 --- a/tests/parser/c/test_c_error_fixture_suite.py +++ b/tests/parser/c/test_c_error_fixture_suite.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C parser error fixture and diagnostic golden regression tests.""" import json @@ -47,11 +46,7 @@ def test_c_error_fixture_suite_has_fixtures(): def test_c_error_fixtures_have_matching_expected_json(): - fixture_outputs = { - f"{path.name}.json" - for path in _ERRORS_DIR.glob("*") - if path.suffix.lower() in _SOURCE_SUFFIXES - } + fixture_outputs = {f"{path.name}.json" for path in _ERRORS_DIR.glob("*") if path.suffix.lower() in _SOURCE_SUFFIXES} expected_outputs = {path.name for path in _EXPECTED_ERRORS_DIR.glob("*.json")} assert not sorted(fixture_outputs - expected_outputs) @@ -70,9 +65,7 @@ def test_c_error_fixture_suite_reports_expected_diagnostics(): if _update_mode_enabled(): try: parse_c_file(source, filename=fixture.name) - raise AssertionError( - f"Expected CParseError from {fixture.name} but no error was raised" - ) + raise AssertionError(f"Expected CParseError from {fixture.name} but no error was raised") except CParseError as exc: _dump_expected_error(expected_path, "CParseError", exc, "parse_c_file") continue diff --git a/tests/parser/c/test_c_fixture_suite.py b/tests/parser/c/test_c_fixture_suite.py index 46718dc48..ac217818b 100644 --- a/tests/parser/c/test_c_fixture_suite.py +++ b/tests/parser/c/test_c_fixture_suite.py @@ -1,15 +1,14 @@ -# -*- coding: utf-8 -*- -"""C parser grouped-project fixture/golden regression tests.""" +"""C parser grouped-project fixture regression tests.""" +import importlib.util import json -import os +import shutil from pathlib import Path import pytest _TESTS_DIR = Path(__file__).resolve().parents[2] _DATA_DIR = _TESTS_DIR / "data" / "c" -_FIXTURES_DIR = Path(__file__).parent / "fixtures" _SOURCE_SUFFIXES = {".c", ".h", ".i"} _SOURCE_ORDER = {".c": 0, ".h": 1, ".i": 2} _FIXTURE_GROUPS = ("general", "json", "tinyexpr", "linmath", "nanosvg", "stb") @@ -20,8 +19,14 @@ } -def _parser_filename_for_fixture(fixture: Path) -> str: - return fixture.relative_to(_DATA_DIR).as_posix() +def _load_golden_generator(): + module_path = Path(__file__).with_name("generate_c_parser_goldens.py") + spec = importlib.util.spec_from_file_location("generate_c_parser_goldens", module_path) + if spec is None or spec.loader is None: + raise RuntimeError(f"cannot load C golden generator from {module_path}") + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module def _fixture_sort_key(fixture: Path) -> tuple[int, str]: @@ -53,132 +58,111 @@ def _project_groups(root: Path) -> list[tuple[Path, list[Path]]]: return projects -def _source_json_relpaths(root: Path) -> set[Path]: - return {project_key.with_suffix(".json") for project_key, _ in _project_groups(root)} - - -def _fixture_json_relpaths(root: Path) -> set[Path]: - return {path.relative_to(root) for path in root.rglob("*.json") if path.is_file()} - - -def _expected_path_for_project(data_subdir: str, project_key: Path) -> Path: - return (_FIXTURES_DIR / data_subdir / project_key).with_suffix(".json") - - -def _load_expected(expected_path: Path) -> dict: - return json.loads(expected_path.read_text(encoding="utf-8")) - - -def _dump_expected(path: Path, parsed: dict) -> None: - path.parent.mkdir(parents=True, exist_ok=True) - path.write_text(json.dumps(parsed, indent=2) + "\n", encoding="utf-8") - - -def _normalize_resolved_paths(value): - if isinstance(value, dict): - resolved_path = value.get("resolved_path") - if resolved_path: - try: - value["resolved_path"] = Path(resolved_path).relative_to(_DATA_DIR).as_posix() - except ValueError: - pass - for key, nested in value.items(): - value[key] = _normalize_resolved_paths(nested) - elif isinstance(value, list): - return [_normalize_resolved_paths(nested) for nested in value] - elif isinstance(value, str): - try: - path = Path(value) - if path.is_absolute(): - return path.relative_to(_DATA_DIR).as_posix() - except ValueError: - pass - return value - - -def _parse_project(fixtures: list[Path]): - from c_parser import parse_c_project - - sources = { - _parser_filename_for_fixture(fixture): fixture.read_text(encoding="utf-8") - for fixture in sorted(fixtures, key=_fixture_sort_key) - } - include_dirs = sorted({fixture.parent for fixture in fixtures}) - return parse_c_project(sources, include_dirs=include_dirs) - - -def _serialize_project(fixtures: list[Path]) -> dict: - return _normalize_resolved_paths(_parse_project(fixtures).to_dict()) - - -def _update_mode_enabled() -> bool: - return os.getenv("C_PARSER_UPDATE_GOLDENS", "0") == "1" - - @pytest.mark.parametrize("data_subdir", _FIXTURE_GROUPS) -def test_c_fixture_golden_suite_has_inputs(data_subdir): +def test_c_fixture_suite_has_inputs(data_subdir): fixtures = sorted((_DATA_DIR / data_subdir).glob("*")) assert any(path.suffix.lower() in _SOURCE_SUFFIXES for path in fixtures) -@pytest.mark.parametrize("data_subdir", _FIXTURE_GROUPS) -def test_c_parser_project_goldens_match_fixture_stems_one_to_one(data_subdir): - data_root = _DATA_DIR / data_subdir - fixture_root = _FIXTURES_DIR / data_subdir - - expected = _source_json_relpaths(data_root) - actual = _fixture_json_relpaths(fixture_root) - - assert not sorted(expected - actual) - assert not sorted(actual - expected) - +@pytest.mark.parametrize( + "fixture", + [ + _DATA_DIR / "json" / "cJSON.h", + _DATA_DIR / "tinyexpr" / "tinyexpr.h", + _DATA_DIR / "linmath" / "linmath.h", + _DATA_DIR / "nanosvg" / "nanosvg.h", + _DATA_DIR / "stb" / "stb_c_lexer.h", + ], +) +def test_c_fixture_headers_with_macros_require_preprocessing(fixture): + from c_parser import CParseError, parse_c_file + + with pytest.raises(CParseError, match="require compiler preprocessing") as exc_info: + parse_c_file(fixture) + + assert exc_info.value.code == "CPARSE_PREPROCESSING_REQUIRED" + + +@pytest.mark.parametrize( + ("fixture", "defines"), + [ + (_DATA_DIR / "json" / "jsmn.h", []), + (_DATA_DIR / "tinyexpr" / "tinyexpr.c", []), + (_DATA_DIR / "linmath" / "linmath.h", []), + (_DATA_DIR / "nanosvg" / "nanosvg.h", ["NANOSVG_IMPLEMENTATION"]), + (_DATA_DIR / "nanosvg" / "nanosvgrast.h", ["NANOSVGRAST_IMPLEMENTATION"]), + (_DATA_DIR / "stb" / "stb_ds.h", ["STB_DS_IMPLEMENTATION"]), + (_DATA_DIR / "stb" / "stb_dxt.h", ["STB_DXT_IMPLEMENTATION"]), + (_DATA_DIR / "stb" / "stb_image.h", ["STB_IMAGE_IMPLEMENTATION"]), + (_DATA_DIR / "stb" / "stb_rect_pack.h", ["STB_RECT_PACK_IMPLEMENTATION"]), + ], +) +def test_c_fixture_headers_parse_after_compiler_preprocessing(fixture, defines): + from c_parser import parse_c_file + from x2py.preprocessing import PreprocessingConfig, preprocess_source + + compiler = shutil.which("cc") + if compiler is None: + pytest.skip("cc is not available") + preprocessed = preprocess_source( + fixture, + language="c", + config=PreprocessingConfig( + mode="compiler", + compiler=compiler, + include_dirs=[str(fixture.parent)], + defines=defines, + ), + ) -@pytest.mark.parametrize("data_subdir", _FIXTURE_GROUPS) -def test_c_fixture_golden_suite_compares_project_json(data_subdir): - for project_key, fixtures in _project_groups(_DATA_DIR / data_subdir): - expected_path = _expected_path_for_project(data_subdir, project_key) - parsed = _serialize_project(fixtures) + parsed = parse_c_file( + preprocessed.source, + filename=str(fixture), + preprocessing="compiler", + ) - if _update_mode_enabled(): - _dump_expected(expected_path, parsed) - continue + assert parsed.preprocessing == "compiler" + assert parsed.functions - expected = _load_expected(expected_path) - assert parsed == expected +def test_c_fixture_suite_keeps_source_locations_stable_for_plain_source(): + from c_parser import parse_c_file -def test_c_fixture_golden_suite_keeps_source_locations_stable(): - project = _parse_project( - [ - _DATA_DIR / "general" / "basic_array_update.h", - _DATA_DIR / "general" / "basic_array_update.c", - ] + parsed = parse_c_file( + _DATA_DIR / "general" / "basic_array_update.c", ) - function = project.files["general/basic_array_update.h"].functions[0] + function = parsed.functions[0] - assert function.source_location.filename == "general/basic_array_update.h" + assert function.source_location.filename == str(_DATA_DIR / "general" / "basic_array_update.c") assert function.source_location.line >= 1 assert function.source_location.column >= 1 -def test_c_fixture_golden_suite_groups_matching_source_and_header_source_first(): - fixtures = [ - _DATA_DIR / "json" / "cJSON.h", - _DATA_DIR / "json" / "cJSON.c", - ] - project = _parse_project(fixtures) +def test_c_fixture_suite_groups_matching_source_and_header_source_first(): + projects = dict(_project_groups(_DATA_DIR / "json")) + fixtures = projects[Path("cJSON")] - assert list(project.files) == ["json/cJSON.c", "json/cJSON.h"] - assert project.header_source_pairs["json/cJSON.h"] == {"json/cJSON.c"} + assert [fixture.name for fixture in fixtures] == ["cJSON.c", "cJSON.h"] -def test_c_fixture_golden_suite_groups_dependent_headers_dependency_first(): - project = _parse_project( - [ - _DATA_DIR / "nanosvg" / "nanosvg.h", - _DATA_DIR / "nanosvg" / "nanosvgrast.h", - ] - ) +def test_c_fixture_suite_groups_dependent_headers_dependency_first(): + projects = dict(_project_groups(_DATA_DIR / "nanosvg")) + fixtures = projects[Path("nanosvg")] + + assert [fixture.name for fixture in fixtures] == ["nanosvg.h", "nanosvgrast.h"] + + +def test_c_project_goldens_match_generated_payloads(): + if shutil.which("cc") is None: + pytest.skip("cc is not available") + + generator = _load_golden_generator() + for project_key, fixtures in generator._default_projects(): + expected_path = generator._output_path_for_project(project_key) + expected = json.loads(expected_path.read_text(encoding="utf-8")) + + generated = generator._serialize_project(fixtures) - assert list(project.files) == ["nanosvg/nanosvg.h", "nanosvg/nanosvgrast.h"] - assert project.include_graph["nanosvg/nanosvgrast.h"] == {"nanosvg/nanosvg.h"} + assert generator._stable_project_payload(generated) == generator._stable_project_payload(expected), ( + f"C parser golden is stale: {expected_path}" + ) diff --git a/tests/parser/c/test_c_functions.py b/tests/parser/c/test_c_functions.py index 6ab7f77b5..3c50aaf18 100644 --- a/tests/parser/c/test_c_functions.py +++ b/tests/parser/c/test_c_functions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C function prototype and definition parser tests.""" import pytest @@ -74,9 +73,135 @@ def test_old_style_knr_function_definition_raises_unsupported_diagnostic(): } """ - with pytest.raises(CParseError, match="K&R"): + with pytest.raises(CParseError, match="K&R") as exc_info: parse_c_file(source, filename="knr.c") + error = exc_info.value + assert error.code == "CPARSE_UNSUPPORTED_KNR_DEFINITION" + assert error.filename == "knr.c" + assert error.line_number == 2 + assert error.column == 5 + assert error.source_line == "int add(a, b)" + + +def test_old_style_knr_detection_uses_linemarkers_and_normalized_headers(): + from c_parser import CParseError, parse_c_file + + source = """# 40 "generated_api.c" +__extension__ int exported(a) +int a; +{ + return a; +} +""" + + with pytest.raises(CParseError) as exc_info: + parse_c_file(source, filename="generated.i", preprocessing="preprocessed") + + error = exc_info.value + assert error.code == "CPARSE_UNSUPPORTED_KNR_DEFINITION" + assert error.filename == "generated_api.c" + assert error.line_number == 40 + assert error.column == 19 + assert error.source_line == "__extension__ int exported(a)" + + +def test_modern_prototype_before_old_style_definition_does_not_stop_knr_detection(): + from c_parser import CParseError, CParser, parse_c_file + + source = """ +int modern(int value) +{ + return value; +} +int legacy(a) +int a; +{ + return a; +} +""" + + with pytest.raises(CParseError) as exc_info: + parse_c_file(source, filename="mixed_knr.c") + + error = exc_info.value + assert error.code == "CPARSE_UNSUPPORTED_KNR_DEFINITION" + assert error.filename == "mixed_knr.c" + assert error.line_number == 6 + assert error.column == 5 + assert error.source_line == "int legacy(a)" + + with pytest.raises(CParseError): + CParser()._raise_for_unsupported_old_style_definitions( + source, + "mixed_knr.c", + use_linemarkers=False, + normalize_compiler_extensions=False, + ) + + +def test_old_style_knr_scan_skips_directives_and_keeps_scanning(): + from c_parser import CParseError, CParser + + parser = CParser() + parser._raise_for_unsupported_old_style_definitions( + "#if defined(FEATURE)\nint value;\n", + "feature_guard.c", + use_linemarkers=False, + normalize_compiler_extensions=False, + ) + + with pytest.raises(CParseError): + parser._raise_for_unsupported_old_style_definitions( + "(not_a_declaration)\nint legacy(a)\nint a;\n", + "scan_through.c", + use_linemarkers=False, + normalize_compiler_extensions=False, + ) + + +def test_find_parameter_list_returns_outer_function_signature_bounds(): + from c_parser import CParser + + parser = CParser() + text = "int run(int (*callback)(char ch), const char *label) " + + assert parser._find_parameter_list(text) == (text.index("("), text.rstrip().rindex(")")) + assert parser._find_parameter_list("int value") is None + + +def test_control_statement_parameter_lists_inside_function_bodies_are_not_knr_definitions(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """ +int run(int value) +{ + if (value) + { + return value; + } + while (value) + { + value--; + } +loop: for (value) + { + value--; + } +branch: switch (value) + { + default: + return value; + } + return 0; +} +""", + filename="body_control.c", + ) + + assert [function.name for function in parsed.functions] == ["run"] + @pytest.mark.parametrize( "source", @@ -309,8 +434,7 @@ def test_function_declaration_attributes_are_tolerated_when_type_shape_is_unchan from c_parser import parse_c_file parsed = parse_c_file( - 'int exported(void) __attribute__((visibility("default")));\n' - "int deprecated(void) [[deprecated]];\n", + 'int exported(void) __attribute__((visibility("default")));\nint deprecated(void) [[deprecated]];\n', filename="function_attributes.h", preprocessing="compiler", ) @@ -319,6 +443,26 @@ def test_function_declaration_attributes_are_tolerated_when_type_shape_is_unchan assert parsed.diagnostics == [] +def test_unsupported_function_declarator_is_reported_and_later_declarations_continue(): + from c_parser import parse_c_file + + parsed = parse_c_file( + "int broken @@ { return 0; }\nint kept;\n", + filename="bad_function_declarator.c", + ) + + assert parsed.functions == [] + assert [variable.name for variable in parsed.variables] == ["kept"] + assert len(parsed.diagnostics) == 1 + diagnostic = parsed.diagnostics[0] + assert diagnostic.code == "C_UNSUPPORTED_DECLARATOR" + assert diagnostic.unit_kind == "declarator" + assert diagnostic.message == "Unsupported declarator syntax after parsed type layers: '@@'." + assert diagnostic.location is not None + assert diagnostic.location.line == 1 + assert diagnostic.location.column == 1 + + def test_conflicting_function_prototypes_report_diagnostic(): from c_parser import parse_c_file @@ -331,6 +475,27 @@ def test_conflicting_function_prototypes_report_diagnostic(): assert any(diag.code == "C_CONFLICTING_FUNCTION_DECLARATION" for diag in parsed.diagnostics) +def test_function_conflicts_consider_parameters_and_variadic_marker(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """ +int same_return(int value); +int same_return(double value); +int log_msg(const char *fmt); +int log_msg(const char *fmt, ...); +""", + filename="function_shape_conflicts.h", + ) + + conflicts = [ + diagnostic.unit_name + for diagnostic in parsed.diagnostics + if diagnostic.code == "C_CONFLICTING_FUNCTION_DECLARATION" + ] + assert conflicts == ["same_return", "log_msg"] + + def test_duplicate_function_definitions_report_diagnostic(): from c_parser import parse_c_file diff --git a/tests/parser/c/test_c_json_sanity.py b/tests/parser/c/test_c_json_sanity.py index 581572f2c..a69fc5254 100644 --- a/tests/parser/c/test_c_json_sanity.py +++ b/tests/parser/c/test_c_json_sanity.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -"""JSON schema sanity tests for C parser project goldens.""" +"""JSON schema sanity tests for legacy C parser project snapshots.""" import json from pathlib import Path @@ -83,15 +82,15 @@ def test_c_json_types_have_distinct_names_or_anonymous_ids(): for path, _, payload in _iter_file_payloads(): for key in ("structs", "unions", "enums"): for entry in payload.get(key, []): - assert ( - entry.get("name") or entry.get("anonymous_id") or entry.get("reference") - ), f"anonymous {key} missing id in {path}" + assert entry.get("name") or entry.get("anonymous_id") or entry.get("reference"), ( + f"anonymous {key} missing id in {path}" + ) def test_c_json_diagnostics_have_codes_locations_and_severities(): allowed = {"info", "warning", "error"} - for path, payload in _iter_project_payloads(): + for _path, payload in _iter_project_payloads(): for diagnostic in payload.get("diagnostics", []): assert diagnostic["code"] assert diagnostic["severity"] in allowed diff --git a/tests/parser/c/test_c_lexer_preprocessor.py b/tests/parser/c/test_c_lexer_preprocessor.py index fb9511b01..ffcbf25c4 100644 --- a/tests/parser/c/test_c_lexer_preprocessor.py +++ b/tests/parser/c/test_c_lexer_preprocessor.py @@ -1,8 +1,5 @@ -# -*- coding: utf-8 -*- """C lexer and lightweight preprocessing coverage.""" -from pathlib import Path - import pytest @@ -10,12 +7,12 @@ def test_lexer_removes_comments_without_changing_string_or_char_literals(): from c_parser.lexer import lex_c_source tokens = lex_c_source( - r''' + r""" const char *url = "https://example.invalid/a//b"; char slash = '/'; /* removed block comment */ int value; // removed line comment -''', +""", filename="comments.c", ) @@ -83,7 +80,7 @@ def test_c_lexer_covers_linemarker_escapes_top_level_strings_and_eof_records(): ) from c_parser.preprocessor import _record_location - assert _unescape_linemarker_filename(r"a\nb\rc\td\\e\"f\x") == "a\nb\rc\td\\e\"fx" + assert _unescape_linemarker_filename(r"a\nb\rc\td\\e\"f\x") == 'a\nb\rc\td\\e"fx' assert _unescape_linemarker_filename("tail\\") == "tail\\" mappings = line_mappings_for_source( @@ -104,20 +101,23 @@ def test_c_lexer_covers_linemarker_escapes_top_level_strings_and_eof_records(): normalized = normalize_c_source("#define API \\\n", filename="defs.h") assert normalized.records[0].text == "#define API" - assert _record_location( - CLogicalRecord(text="#define API", filename="defs.h", original_source_lines=()) - ).source_line is None - assert _record_location( - CLogicalRecord(text="define API", filename="defs.h", original_source_lines=("define API",)) - ).column == 1 + assert ( + _record_location(CLogicalRecord(text="#define API", filename="defs.h", original_source_lines=())).source_line + is None + ) + assert ( + _record_location( + CLogicalRecord(text="define API", filename="defs.h", original_source_lines=("define API",)) + ).column + == 1 + ) token = lex_c_source(r'char *s = "unterminated\\', filename="bad.c")[-1] assert token.kind == "string" assert token.text == r'"unterminated\\' parsed = parse_c_file( - '#line 11 "dir\\\\api\\".h"\n' - 'struct __attribute__((annotate("tag\\"ged"))) named { int value; };\n', + '#line 11 "dir\\\\api\\".h"\nstruct __attribute__((annotate("tag\\"ged"))) named { int value; };\n', filename="generated.i", preprocessing="preprocessed", ) @@ -125,6 +125,190 @@ def test_c_lexer_covers_linemarker_escapes_top_level_strings_and_eof_records(): assert parsed.structs[0].source_location.filename == 'dir\\api".h' +def test_c_lexer_mapping_helpers_cover_boundaries_ranges_and_position_updates(): + from c_parser.lexer import ( + CLineMapping, + _advance_position, + _line_mapping, + _mapped_filenames, + _mapped_line_numbers, + _mapped_source_lines, + _source_line, + _source_lines, + ) + + source_lines = ["first", "second", "third"] + assert _source_line(source_lines, 1) == "first" + assert _source_line(source_lines, 3) == "third" + assert _source_line(source_lines, 0) is None + assert _source_line(source_lines, 4) is None + assert _source_lines(source_lines, 2, 3) == ("second", "third") + + mappings = [ + CLineMapping("first.h", 11, "first source"), + CLineMapping("second.h", 22, None), + ] + assert _line_mapping(mappings, 1, "fallback.h") == mappings[0] + assert _line_mapping(mappings, 2, "fallback.h") == mappings[1] + assert _line_mapping(mappings, 0, "fallback.h") == CLineMapping("fallback.h", 0, None) + assert _line_mapping(mappings, 3, "fallback.h") == CLineMapping("fallback.h", 3, None) + assert _mapped_source_lines(mappings, 1, 2) == ("first source", "") + assert _mapped_filenames(mappings, 1, 2) == ("first.h", "second.h") + assert _mapped_line_numbers(mappings, 1, 2) == (11, 22) + + assert _advance_position("x", 4, 7) == (4, 8) + assert _advance_position("\n", 4, 7) == (5, 1) + + +def test_c_lexer_linemarker_and_directive_helpers_cover_raw_and_preprocessed_modes(): + from c_parser.lexer import ( + CLineMapping, + _blank_preprocessor_directives, + _parse_linemarker, + line_mappings_for_source, + ) + + assert _parse_linemarker('# 12 "api.h" 1') == (12, "api.h") + assert _parse_linemarker("#line 7 generated.h") == (7, "generated.h") + assert _parse_linemarker("#line 9") == (9, None) + assert _parse_linemarker("#pragma once") is None + + raw = line_mappings_for_source("int first;\nint second;", filename="raw.h") + assert raw == [ + CLineMapping("raw.h", 1, "int first;"), + CLineMapping("raw.h", 2, "int second;"), + ] + + preprocessed = line_mappings_for_source( + '# 40 "api.h"\nint first;\n#line 7\nint second;\n', + filename="generated.i", + use_linemarkers=True, + ) + assert preprocessed == [ + CLineMapping("api.h", 40, '# 40 "api.h"'), + CLineMapping("api.h", 40, "int first;"), + CLineMapping("api.h", 7, "#line 7"), + CLineMapping("api.h", 7, "int second;"), + ] + + blanked = _blank_preprocessor_directives("#define VALUE \\\n continued\nint kept;\n#pragma once") + assert blanked.splitlines() == [ + " " * len("#define VALUE \\"), + " " * len(" continued"), + "int kept;", + " " * len("#pragma once"), + ] + + +def test_c_lexer_delimiter_helpers_cover_literals_nesting_offsets_and_validation(): + from c_parser.lexer import ( + _scan_code_states, + top_level_partition, + top_level_split, + top_level_split_with_offsets, + ) + + source = 'first("x,y", [a,b]), second' + assert top_level_split_with_offsets(source) == [ + ('first("x,y", [a,b])', 0), + ("second", source.index("second")), + ] + assert top_level_split(source) == ['first("x,y", [a,b])', "second"] + assert top_level_partition('name = call("=", [x=y])') == ("name", 'call("=", [x=y])') + assert top_level_partition("name") == ("name", None) + + states = list(_scan_code_states(source)) + quote_index = source.index('"') + nested_comma_index = source.index(",", source.index("[")) + top_level_comma_index = source.index(",", source.index("]")) + assert states[quote_index][3] == "normal" + assert states[quote_index + 1][3] == "string" + assert states[nested_comma_index][2] == ("(", "[") + assert states[top_level_comma_index][2] == () + + with pytest.raises(ValueError, match="single character"): + top_level_split_with_offsets("a, b", "::") + with pytest.raises(ValueError, match="single character"): + top_level_partition("a=b", "==") + + +def test_c_lexer_aggregate_attribute_helpers_preserve_shape_and_classify_headers(): + from c_parser.lexer import ( + _balanced_invocation_end, + _is_aggregate_definition_header, + _is_braced_declaration_header, + _strip_aggregate_header_attributes, + ) + + invocation = '(outer(")") + nested(1))' + assert _balanced_invocation_end(invocation, 0) == len(invocation) + prefixed_invocation = "ignored) (nested(1))" + assert _balanced_invocation_end(prefixed_invocation, prefixed_invocation.index("(")) == len(prefixed_invocation) + single_quoted_invocation = "(outer(')') + nested(1))" + assert _balanced_invocation_end(single_quoted_invocation, 0) == len(single_quoted_invocation) + empty_quoted_invocation = '(outer("") + nested(1))' + assert _balanced_invocation_end(empty_quoted_invocation, 0) == len(empty_quoted_invocation) + assert _balanced_invocation_end("(unterminated", 0) is None + + header = "struct __attribute__((packed)) packet" + stripped = _strip_aggregate_header_attributes(header) + assert len(stripped) == len(header) + assert stripped.split() == ["struct", "packet"] + spaced_header = "struct __attribute__ ((packed)) packet" + assert _strip_aggregate_header_attributes(spaced_header).split() == ["struct", "packet"] + bare_header = "struct __attribute__" + assert _strip_aggregate_header_attributes(bare_header).split() == ["struct"] + multiline_header = "struct __attribute__((\npacked)) packet" + assert _strip_aggregate_header_attributes(multiline_header).count("\n") == 1 + assert _is_aggregate_definition_header(header, tolerate_compiler_extensions=True) + assert not _is_aggregate_definition_header(header) + assert not _is_aggregate_definition_header("int factory(void)") + assert not _is_aggregate_definition_header("struct packet(value)") + assert not _is_aggregate_definition_header("struct packet = value") + assert _is_braced_declaration_header("int values =") + assert not _is_braced_declaration_header(header) + assert not _is_braced_declaration_header("int function(void)") + + +def test_c_lexer_comment_normalization_and_tokens_preserve_source_accounting(): + from c_parser.lexer import lex_c_source, normalize_c_source, strip_c_comments + + source = 'int first; // removed\nchar *text = "/* kept */"; /* block\n removed */ int second;\n' + stripped = strip_c_comments(source) + assert len(stripped) == len(source) + assert stripped.count("\n") == source.count("\n") + assert '"/* kept */"' in stripped + assert "removed" not in stripped + assert "int second;" in stripped + + normalized = normalize_c_source("int first = \\\n 1;\n\nint second;\n", filename="records.h") + assert [(record.text, record.original_start_line, record.original_end_line) for record in normalized.records] == [ + ("int first = 1;", 1, 2), + ("int second;", 4, 4), + ] + assert normalized.records[0].original_source_lines == ("int first = \\", " 1;") + + tokens = lex_c_source("int value = 12;\nvalue += 3;\nchar quote = '\\n';\n", filename="tokens.c") + assert [(token.text, token.kind, token.line, token.column) for token in tokens] == [ + ("int", "identifier", 1, 1), + ("value", "identifier", 1, 5), + ("=", "punctuation", 1, 11), + ("12", "number", 1, 13), + (";", "punctuation", 1, 15), + ("value", "identifier", 2, 1), + ("+=", "punctuation", 2, 7), + ("3", "number", 2, 10), + (";", "punctuation", 2, 11), + ("char", "identifier", 3, 1), + ("quote", "identifier", 3, 6), + ("=", "punctuation", 3, 12), + ("'\\n'", "char", 3, 14), + (";", "punctuation", 3, 18), + ] + assert all(token.filename == "tokens.c" for token in tokens) + assert tokens[5].source_line == "value += 3;" + + def test_raw_mode_records_includes_without_expanding_them(): from c_parser import parse_c_file @@ -152,154 +336,145 @@ def test_raw_mode_resolves_local_includes_relative_to_path_input(tmp_path): assert parsed.diagnostics == [] -def test_raw_mode_records_simple_object_like_macros_as_constants(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#define API_VERSION 3 -#define API_NAME "demo" -int version(void); -""", - filename="macros.h", - preprocessing="raw", - ) - - macros = {macro.name: macro for macro in parsed.macros} - assert macros["API_VERSION"].value == "3" - assert macros["API_NAME"].value == '"demo"' - assert macros["API_VERSION"].function_like is False +def test_c_preprocessor_helpers_cover_include_dirs_and_filesystem_errors(tmp_path, monkeypatch): + from pathlib import Path + from c_parser.lexer import CLogicalRecord + from c_parser.preprocessor import _record_location, _resolve_local_include -def test_raw_mode_records_undef_directives_as_macro_provenance(): - from c_parser import parse_c_file + include_dir = tmp_path / "include" + include_dir.mkdir() + types = include_dir / "api_types.h" + types.write_text("typedef int api_int;\n", encoding="utf-8") - parsed = parse_c_file( - """ -#define API_FEATURE 1 -#undef API_FEATURE -""", - filename="undefs.h", - preprocessing="raw", - ) + assert _resolve_local_include("api_types.h", None, [include_dir]) == str(types) + assert _resolve_local_include("missing.h", None, [include_dir]) is None - assert [(macro.name, macro.directive, macro.value) for macro in parsed.macros] == [ - ("API_FEATURE", "define", "1"), - ("API_FEATURE", "undef", None), - ] + unreadable_dir = tmp_path / "unreadable" + unreadable_dir.mkdir() + unreadable_candidate = unreadable_dir / "api_types.h" + original_is_file = Path.is_file + def raise_one_os_error(path): + if path == unreadable_candidate: + raise OSError("unreadable") + return original_is_file(path) -def test_raw_mode_marks_function_like_macros_as_unsupported_until_expanded(): - from c_parser import parse_c_file + monkeypatch.setattr(Path, "is_file", raise_one_os_error) + assert _resolve_local_include("api_types.h", str(unreadable_dir / "api.h"), [include_dir]) == str(types) - parsed = parse_c_file( - """ -#define API_DECL(ret) ret -API_DECL(int) exported(void); -""", - filename="macro_decl.h", - preprocessing="raw", + location = _record_location( + CLogicalRecord( + text=" #pragma once", + filename="api.h", + original_start_line=7, + original_source_lines=(" #pragma once",), + ) + ) + assert (location.filename, location.line, location.column, location.source_line) == ( + "api.h", + 7, + 3, + " #pragma once", + ) + assert ( + _record_location(CLogicalRecord(text="#pragma # once", original_source_lines=("#pragma # once",))).column == 1 ) - macros = {macro.name: macro for macro in parsed.macros} - assert macros["API_DECL"].function_like is True - assert parsed.functions == [] - assert any(diag.code == "C_UNSUPPORTED_FUNCTION_LIKE_MACRO" for diag in parsed.diagnostics) - assert any(diag.code == "C_MACRO_DEPENDENT_DECLARATION" for diag in parsed.diagnostics) +def test_collect_preprocessor_metadata_preserves_locations_and_diagnostics(tmp_path): + from c_parser.preprocessor import collect_preprocessor_metadata -def test_raw_mode_fixture_keeps_macro_shaped_declaration_deferred_until_preprocessing(): - from c_parser import parse_c_file + include_dir = tmp_path / "include" + include_dir.mkdir() + types = include_dir / "api_types.h" + types.write_text("typedef int api_int;\n", encoding="utf-8") - fixture = ( - Path(__file__).resolve().parents[2] - / "data" - / "c" - / "general" - / "c_richer_features.h" + metadata = collect_preprocessor_metadata( + '#pragma once\n#include "api_types.h"\n#include "missing.h"\n#include \n', + filename=str(tmp_path / "api.h"), + include_dirs=[include_dir], ) - - parsed = parse_c_file(fixture) - - function_names = {fn.name for fn in parsed.functions} - assert "x2py_sort" not in function_names - assert any( - diag.code == "C_UNSUPPORTED_FUNCTION_LIKE_MACRO" and diag.unit_name == "X2PY_API" - for diag in parsed.diagnostics + assert [(item.directive, item.argument, item.source_location.filename) for item in metadata.raw_directives] == [ + ("pragma", "once", str(tmp_path / "api.h")), + ] + assert [ + (item.target, item.kind, item.resolved_path, item.source_location.filename, item.source_location.line) + for item in metadata.includes + ] == [ + ("api_types.h", "local", str(types), str(tmp_path / "api.h"), 2), + ("missing.h", "local", None, str(tmp_path / "api.h"), 3), + ("stddef.h", "system", None, str(tmp_path / "api.h"), 4), + ] + diagnostic = metadata.diagnostics[0] + assert ( + diagnostic.code, + diagnostic.message, + diagnostic.severity, + diagnostic.location.filename, + diagnostic.location.line, + diagnostic.unit_kind, + diagnostic.unit_name, + ) == ( + "C_UNRESOLVED_INCLUDE", + 'Could not resolve local include "missing.h".', + "warning", + str(tmp_path / "api.h"), + 3, + "include", + "missing.h", ) - assert any(macro.name == "X2PY_API" and macro.directive == "undef" for macro in parsed.macros) - -def test_raw_conditional_directives_do_not_select_active_branches(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#ifdef USE_FAST -int run_fast(void); -#else -int run_slow(void); -#endif -""", - filename="conditional.h", - preprocessing="raw", + relative_dir = tmp_path / "relative" + relative_dir.mkdir() + relative_types = relative_dir / "relative_types.h" + relative_types.write_text("typedef int relative_int;\n", encoding="utf-8") + relative_metadata = collect_preprocessor_metadata( + '#include "relative_types.h"\n', + filename=str(relative_dir / "api.h"), ) + assert relative_metadata.includes[0].resolved_path == str(relative_types) + + +@pytest.mark.parametrize( + "directive", + [ + "#define API_VERSION 3", + "#undef API_VERSION", + "#ifdef API_VERSION", + "#include API_HEADER", + "#error configure preprocessing", + ], +) +def test_raw_mode_rejects_directives_that_require_preprocessing(directive): + from c_parser import CParseError, parse_c_file - assert {fn.name for fn in parsed.functions} == {"run_fast", "run_slow"} - assert [(item.directive, item.argument) for item in parsed.raw_directives] == [ - ("ifdef", "USE_FAST"), - ("else", None), - ("endif", None), - ] + with pytest.raises(CParseError, match="require compiler preprocessing") as exc_info: + parse_c_file(f"{directive}\nint run(void);\n", filename="raw_macro.h") + assert exc_info.value.code == "CPARSE_PREPROCESSING_REQUIRED" + assert exc_info.value.line_number == 1 -def test_raw_mode_keeps_incompatible_function_variants_from_alternative_branches(): + +def test_raw_mode_accepts_trivial_include_guards_without_preprocessing(): from c_parser import parse_c_file parsed = parse_c_file( """ -#ifdef USE_FLOAT -float scale(float value); -#else -double scale(double value); -#endif -""", - filename="conditional_signature.h", - preprocessing="raw", - ) +#ifndef API_H +#define API_H - assert [fn.name for fn in parsed.functions] == ["scale", "scale"] - assert [fn.condition_set for fn in parsed.functions] == [ - frozenset({"g1:b0"}), - frozenset({"g1:b1"}), - ] - assert not any( - diag.code == "C_CONFLICTING_FUNCTION_DECLARATION" - for diag in parsed.diagnostics - ) - assert parsed.to_dict()["functions"][0]["condition_set"] == ["g1:b0"] - - -def test_raw_mode_does_not_treat_independent_conditional_groups_as_exclusive(): - from c_parser import parse_c_file +int run(void); - parsed = parse_c_file( - """ -#ifdef USE_FLOAT -float scale(float value); -#endif -#ifdef USE_DOUBLE -double scale(double value); #endif """, - filename="overlapping_signatures.h", - preprocessing="raw", + filename="api.h", ) - assert any( - diag.code == "C_CONFLICTING_FUNCTION_DECLARATION" - for diag in parsed.diagnostics - ) + assert parsed.preprocessing == "raw" + assert [function.name for function in parsed.functions] == ["run"] + assert parsed.macros == [] + assert parsed.raw_directives == [] def test_raw_mode_records_pragmas_as_metadata_without_hiding_declarations(): @@ -349,90 +524,6 @@ def test_raw_mode_openmp_declaration_pragmas_do_not_hide_declarations(): ] -def test_raw_mode_records_macro_dependency_metadata_for_macro_shaped_declarations(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#define API_DECL(ret) ret -API_DECL(int) exported(void); -""", - filename="macro_dependency.h", - preprocessing="raw", - ) - - assert [(item.name, item.context) for item in parsed.macro_dependencies] == [ - ("API_DECL", "declaration") - ] - assert parsed.macro_dependencies[0].source_text == "API_DECL(int) exported(void)" - assert parsed.macro_dependencies[0].source_location.line == 3 - assert [(diag.code, diag.unit_kind, diag.unit_name) for diag in parsed.diagnostics] == [ - ("C_UNSUPPORTED_FUNCTION_LIKE_MACRO", "macro", "API_DECL"), - ("C_MACRO_DEPENDENT_DECLARATION", "macro_dependent_declaration", "API_DECL"), - ] - - -def test_raw_mode_conditional_macro_directive_is_not_treated_as_knr_function(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#define ENABLED(value) value -#if ENABLED(API) -typedef int api_value; -#endif -int run(void); -""", - filename="conditional_macro.h", - preprocessing="raw", - ) - - assert [function.name for function in parsed.functions] == ["run"] - assert any(macro.name == "ENABLED" for macro in parsed.macros) - - -def test_raw_mode_defers_declarations_prefixed_by_object_like_macros(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#define API_INLINE inline -static API_INLINE void run(void) {} -""", - filename="object_macro_decl.h", - preprocessing="raw", - ) - - assert parsed.functions == [] - assert [(item.name, item.context) for item in parsed.macro_dependencies] == [ - ("API_INLINE", "declaration") - ] - assert [(diag.code, diag.unit_kind, diag.unit_name) for diag in parsed.diagnostics] == [ - ("C_MACRO_DEPENDENT_DECLARATION", "macro_dependent_declaration", "API_INLINE"), - ] - - -def test_raw_mode_macro_initializers_do_not_hide_parseable_declarations(): - from c_parser import parse_c_file - - parsed = parse_c_file( - """ -#define INIT(value) value -int answer = INIT(42); -""", - filename="macro_initializer.h", - preprocessing="raw", - ) - - assert [variable.name for variable in parsed.variables] == ["answer"] - assert parsed.variables[0].initializer is not None - assert parsed.variables[0].initializer.source_text == "INIT(42)" - assert parsed.macro_dependencies == [] - assert [diagnostic.code for diagnostic in parsed.diagnostics] == [ - "C_UNSUPPORTED_FUNCTION_LIKE_MACRO" - ] - - def test_compiler_preprocessed_mode_accepts_line_markers_and_expanded_declarations(): from c_parser import parse_c_file @@ -455,7 +546,7 @@ def test_compiler_preprocessed_mode_accepts_line_markers_and_expanded_declaratio assert parsed.functions[0].source_location.line == 1 assert parsed.functions[1].source_location.line == 20 payload = parsed.to_dict() - assert payload["functions"][0]["origin"] == "preprocessed" + assert "origin" not in payload["functions"][0] assert payload["preprocessed_source_path"] == "api.i" assert payload["original_source_paths"] == ["api.h"] diff --git a/tests/parser/c/test_c_model_serialization.py b/tests/parser/c/test_c_model_serialization.py index 29be555d2..2fcc746d0 100644 --- a/tests/parser/c/test_c_model_serialization.py +++ b/tests/parser/c/test_c_model_serialization.py @@ -1,8 +1,9 @@ -# -*- coding: utf-8 -*- """Minimal JSON-shape coverage for C parser model dataclasses.""" from dataclasses import is_dataclass +import importlib import inspect +from types import SimpleNamespace import c_parser.models as models @@ -194,7 +195,6 @@ def test_each_c_model_has_minimal_json_shape(): { "filename": "api.h", "language": "c", - "parser_status": "partial", "preprocessing": "raw", "functions": [], "structs": [], @@ -241,3 +241,98 @@ def test_each_c_model_has_minimal_json_shape(): for model_name, (model, expected) in cases.items(): assert models.c_model_to_dict(model) == expected, model_name + + +def test_c_model_helpers_cover_environment_color_and_windows_setup(monkeypatch): + monkeypatch.setenv("C_PARSER_DEBUG", " YES ") + assert models._env_flag("C_PARSER_DEBUG") + monkeypatch.delenv("C_PARSER_DEBUG") + assert not models._env_flag("C_PARSER_DEBUG") + + assert models._apply_color("value", "red", "bold", enabled=False) == "value" + assert models._apply_color("value", "red", "bold", enabled=True) == "\x1b[31m\x1b[1mvalue\x1b[0m" + + calls = [] + colorama = SimpleNamespace(just_fix_windows_console=lambda: calls.append("fixed")) + original_os_name = models.os.name + monkeypatch.setattr(models.os, "name", "nt") + try: + monkeypatch.setitem(models.sys.modules, "colorama", colorama) + models._enable_windows_ansi() + assert calls == ["fixed"] + + monkeypatch.delitem(models.sys.modules, "colorama") + monkeypatch.setattr(importlib.util, "find_spec", lambda name: object() if name == "colorama" else None) + monkeypatch.setattr(importlib, "import_module", lambda name: colorama if name == "colorama" else None) + models._enable_windows_ansi() + assert calls == ["fixed", "fixed"] + finally: + monkeypatch.setattr(models.os, "name", original_os_name) + + +def _make_parse_error(**kwargs): + return models.CParseError("unexpected token", **kwargs) + + +def test_c_parse_error_diagnostic_rendering_contract(monkeypatch): + error = _make_parse_error(filename="bad.h", line_number=2, column=5, source_line="int broken(;\n") + plain = "bad.h:2:5: error[CPARSE_ERROR]: unexpected token\n |\n2 | int broken(;\n | ^" + colored = ( + "\x1b[1mbad.h:2:5\x1b[0m: \x1b[31m\x1b[1merror\x1b[0m" + "\x1b[36m[CPARSE_ERROR]\x1b[0m: unexpected token\n" + " \x1b[34m|\x1b[0m\n" + "\x1b[34m2\x1b[0m \x1b[34m|\x1b[0m int broken(;\n" + " \x1b[34m|\x1b[0m \x1b[31m\x1b[1m ^\x1b[0m" + ) + + assert str(error) == plain + assert error.format_diagnostic(color=False, debug=False) == plain + assert error.format_diagnostic(color=True, debug=False) == colored + assert error.parser_file is not None + assert error.parser_line_number > 0 + assert error.parser_function is not None + + monkeypatch.setenv("C_PARSER_DEBUG", "yes") + assert "note: parser raised at" in error.format_diagnostic(color=False) + colored_debug = error.format_diagnostic(color=True, debug=True) + assert "\x1b[36mnote: parser raised at " in colored_debug + assert colored_debug.endswith("()\x1b[0m") + + default_column = _make_parse_error(filename="bad.h", line_number=4, source_line="x") + assert default_column.format_diagnostic(debug=False).startswith("bad.h:4:1:") + + unknown = _make_parse_error(source_line="value X\n") + assert unknown.format_diagnostic(debug=False) == ( + ": error[CPARSE_ERROR]: unexpected token\n |\n? | value X\n | ^" + ) + + blank = _make_parse_error(source_line=" ") + assert blank.format_diagnostic(debug=False) == ( + ": error[CPARSE_ERROR]: unexpected token\n |\n? | \n | " + ) + + +def test_c_model_to_dict_preserves_seen_aggregates_through_dicts(): + node = models.CStruct(name="node") + + assert models.c_model_to_dict({"first": node, "again": node})["again"] == {"reference": "struct node"} + + +def test_c_parse_error_uses_immediate_stack_frame(monkeypatch): + frames = [ + None, + SimpleNamespace(filename="parser.py", lineno=7, function="raise_here"), + SimpleNamespace(filename="caller.py", lineno=9, function="caller"), + ] + monkeypatch.setattr(models.inspect, "stack", lambda: frames) + + error = models.CParseError("invalid") + + assert (error.parser_file, error.parser_line_number, error.parser_function) == ("parser.py", 7, "raise_here") + + +def test_callback_candidate_requires_function_type_after_pointer(): + callback_before_pointer = models.CComposedType(components=[models.CFunctionType(), models.CPointer()]) + + assert not models.CVariable(name="value", type=callback_before_pointer).callback_candidate + assert not models.CParameter(name="value", type=callback_before_pointer).callback_candidate diff --git a/tests/parser/c/test_c_parser_developer_tutorial.py b/tests/parser/c/test_c_parser_developer_tutorial.py index dc7c0223b..f29dfe2e4 100644 --- a/tests/parser/c/test_c_parser_developer_tutorial.py +++ b/tests/parser/c/test_c_parser_developer_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Executable walkthroughs for maintainers reading `c_parser.parser`. These tests intentionally expose the internal declaration gateway named in the diff --git a/tests/parser/c/test_c_project_resolution.py b/tests/parser/c/test_c_project_resolution.py index 573fea1ca..5b03a18a0 100644 --- a/tests/parser/c/test_c_project_resolution.py +++ b/tests/parser/c/test_c_project_resolution.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Active coverage for current C project include/index behavior.""" from pathlib import Path @@ -92,44 +91,14 @@ def test_parse_c_project_directory_discovers_preprocessed_i_files(tmp_path: Path assert generated.functions[0].origin == "preprocessed" assert generated.functions[0].source_location.filename == "include/generated_api.h" assert generated.functions[0].source_location.line == 8 - assert generated.to_dict()["functions"][0]["origin"] == "preprocessed" - - -def test_project_retains_mutually_exclusive_function_variants_out_of_unique_index(): - from c_parser import parse_c_project - - project = parse_c_project( - { - "api.h": """ -#ifdef API_V2 -int configure(int option); -#else -double configure(double option); -#endif -""" - } - ) - - assert "configure" not in project.functions - assert [fn.condition_set for fn in project.conditional_function_variants["configure"]] == [ - frozenset({"g1:b0"}), - frozenset({"g1:b1"}), - ] - assert not any( - diag.code == "C_CONFLICTING_FUNCTION_DECLARATION" - for diag in project.diagnostics - ) - payload = project.to_dict() - assert payload["conditional_function_variants"]["configure"][0]["condition_set"] == ["g1:b0"] + assert "origin" not in generated.to_dict()["functions"][0] def test_project_indexes_functions_by_file_and_enum_constants(tmp_path: Path): from c_parser import parse_c_project (tmp_path / "api.h").write_text( - "enum status { STATUS_OK = 0, STATUS_ERROR = -1 };\n" - "int run(void);\n" - "int stop(void);\n", + "enum status { STATUS_OK = 0, STATUS_ERROR = -1 };\nint run(void);\nint stop(void);\n", encoding="utf-8", ) @@ -140,11 +109,10 @@ def test_project_indexes_functions_by_file_and_enum_constants(tmp_path: Path): assert project.enum_constants["STATUS_OK"].value == "0" -def test_project_indexes_file_scope_variables_and_macros(tmp_path: Path): +def test_project_indexes_file_scope_variables(tmp_path: Path): from c_parser import parse_c_project (tmp_path / "api.h").write_text( - "#define API_VERSION 3\n" "extern int global_count;\n", encoding="utf-8", ) @@ -152,7 +120,6 @@ def test_project_indexes_file_scope_variables_and_macros(tmp_path: Path): project = parse_c_project(tmp_path) assert project.variables["global_count"].storage == ["extern"] - assert project.macros["API_VERSION"].value == "3" def test_project_function_index_prefers_definition_over_compatible_prototype(tmp_path: Path): @@ -183,14 +150,11 @@ def test_project_resolves_typedefs_and_struct_tags_across_files(tmp_path: Path): from c_parser import CComposedType, CTypedef, parse_c_project (tmp_path / "types.h").write_text( - "typedef unsigned long api_size;\n" - "struct state { int id; };\n", + "typedef unsigned long api_size;\nstruct state { int id; };\n", encoding="utf-8", ) (tmp_path / "api.h").write_text( - '#include "types.h"\n' - "api_size count(void);\n" - "void step(struct state *s);\n", + '#include "types.h"\napi_size count(void);\nvoid step(struct state *s);\n', encoding="utf-8", ) @@ -241,8 +205,7 @@ def test_project_resolves_typedef_chains_while_preserving_alias_objects(tmp_path from c_parser import CTypedef, CUnsignedLong, parse_c_project (tmp_path / "types.h").write_text( - "typedef unsigned long raw_size;\n" - "typedef raw_size api_size;\n", + "typedef unsigned long raw_size;\ntypedef raw_size api_size;\n", encoding="utf-8", ) (tmp_path / "api.h").write_text("api_size count(void);\n", encoding="utf-8") @@ -256,25 +219,128 @@ def test_project_resolves_typedef_chains_while_preserving_alias_objects(tmp_path assert project.functions["count"].result_type.source_text == "api_size" -def test_project_reports_typedef_cycles_without_crashing(): +def test_project_resolves_typedefs_for_variables_and_aggregate_members(): + from c_parser import parse_c_project + + project = parse_c_project( + { + "types.h": ("typedef unsigned long api_size;\nstruct packet { api_size count; };\n"), + "api.h": "extern api_size total;\n", + } + ) + + assert project.variables["total"].type is project.typedefs["api_size"] + assert project.structs["packet"].members[0].type is project.typedefs["api_size"] + + +def test_project_reports_each_typedef_cycle_once_with_structured_diagnostic(): from c_parser import parse_c_project project = parse_c_project({"cycle.h": "typedef b a;\ntypedef a b;\n"}) - assert {diag.code for diag in project.diagnostics} == {"C_TYPEDEF_CYCLE"} + assert len(project.diagnostics) == 1 + diagnostic = project.diagnostics[0] + assert diagnostic.code == "C_TYPEDEF_CYCLE" + assert diagnostic.message == "Typedef cycle detected: a -> b -> a." + assert diagnostic.severity == "error" + assert diagnostic.location.filename == "cycle.h" + assert diagnostic.unit_kind == "typedef" + assert diagnostic.unit_name == "a" + + +def test_project_reports_prefixed_typedef_cycle_without_including_acyclic_alias(): + from c_parser import parse_c_project + + project = parse_c_project( + {"cycle.h": ("typedef inner_a alias;\ntypedef inner_b inner_a;\ntypedef inner_a inner_b;\n")} + ) + + cycle_diagnostics = [diagnostic for diagnostic in project.diagnostics if diagnostic.code == "C_TYPEDEF_CYCLE"] + assert len(cycle_diagnostics) == 1 + assert cycle_diagnostics[0].message == "Typedef cycle detected: inner_a -> inner_b -> inner_a." + assert cycle_diagnostics[0].unit_name == "inner_a" + + +def test_project_resolves_function_typedef_signature_references(): + from c_parser import CComposedType, CFunctionType, parse_c_project + + project = parse_c_project( + { + "callbacks.h": ( + "typedef unsigned long api_size;\n" + "typedef api_size (*measure_fn)(api_size);\n" + "measure_fn select_measure(void);\n" + ) + } + ) + + callback_type = project.typedefs["measure_fn"].type + assert isinstance(callback_type, CComposedType) + signature = callback_type.components[1] + assert isinstance(signature, CFunctionType) + assert signature.result_type is project.typedefs["api_size"] + assert signature.parameter_types == [project.typedefs["api_size"]] + assert project.functions["select_measure"].result_type is project.typedefs["measure_fn"] + + +def test_project_resolves_parameter_declared_type_signature_references(): + from c_parser import CComposedType, CFunctionType, parse_c_project + + project = parse_c_project( + {"callbacks.h": ("typedef unsigned long api_size;\nvoid apply(api_size callback(api_size));\n")} + ) + + callback = project.functions["apply"].parameters[0] + declared = callback.declared_type + assert isinstance(declared, CFunctionType) + assert declared.result_type is project.typedefs["api_size"] + assert declared.parameter_types == [project.typedefs["api_size"]] + assert isinstance(callback.type, CComposedType) + assert callback.type.components[1] is declared + + +def test_project_resolves_parameter_declared_array_references(): + from c_parser import CComposedType, parse_c_project + + project = parse_c_project({"arrays.h": ("typedef unsigned long api_size;\nvoid collect(api_size values[4]);\n")}) + + values = project.functions["collect"].parameters[0] + assert isinstance(values.declared_type, CComposedType) + assert values.declared_type.components[-1] is project.typedefs["api_size"] + assert isinstance(values.type, CComposedType) + assert values.type.components[-1] is project.typedefs["api_size"] + assert values.declared_type is not values.type + + +def test_project_reuses_typedef_cycle_state_across_resolved_use_sites(): + from c_parser import parse_c_project + + project = parse_c_project( + { + "cycle_uses.h": ( + "typedef b a;\n" + "typedef a b;\n" + "typedef a (*cycle_callback)(a);\n" + "a get_value(void);\n" + "void set_value(a value);\n" + "extern a *global_value;\n" + "struct packet { a field; };\n" + ) + } + ) + + assert [diagnostic.code for diagnostic in project.diagnostics].count("C_TYPEDEF_CYCLE") == 1 def test_project_resolves_union_and_enum_tag_references(tmp_path: Path): from c_parser import CComposedType, parse_c_project (tmp_path / "types.h").write_text( - "union value { int i; };\n" - "enum status { STATUS_OK = 0 };\n", + "union value { int i; };\nenum status { STATUS_OK = 0 };\n", encoding="utf-8", ) (tmp_path / "api.h").write_text( - "void set_value(union value *v);\n" - "enum status current_status(void);\n", + "void set_value(union value *v);\nenum status current_status(void);\n", encoding="utf-8", ) @@ -290,8 +356,7 @@ def test_project_resolves_opaque_pointer_typedefs_across_files(tmp_path: Path): from c_parser import CComposedType, CTypedef, parse_c_project (tmp_path / "types.h").write_text( - "struct handle;\n" - "typedef struct handle *handle_t;\n", + "struct handle;\ntypedef struct handle *handle_t;\n", encoding="utf-8", ) (tmp_path / "api.h").write_text("handle_t open_handle(void);\n", encoding="utf-8") @@ -315,6 +380,26 @@ def test_project_preserves_unresolved_type_references_for_later_diagnostics(): assert project.functions["value"].result_type.type is None +def test_project_preserves_unresolved_tag_references_for_later_diagnostics(): + from c_parser import CComposedType, CEnum, CStruct, CUnion, parse_c_project + + project = parse_c_project( + {"api.h": ("struct missing *get_struct(void);\nunion absent *get_union(void);\nenum unknown get_enum(void);\n")} + ) + + struct_type = project.functions["get_struct"].result_type + union_type = project.functions["get_union"].result_type + enum_type = project.functions["get_enum"].result_type + assert isinstance(struct_type, CComposedType) + assert isinstance(struct_type.components[-1], CStruct) + assert struct_type.components[-1].name == "missing" + assert isinstance(union_type, CComposedType) + assert isinstance(union_type.components[-1], CUnion) + assert union_type.components[-1].name == "absent" + assert isinstance(enum_type, CEnum) + assert enum_type.name == "unknown" + + def test_project_header_source_pairs_use_matching_stems_and_direct_includes(tmp_path: Path): from c_parser import parse_c_project diff --git a/tests/parser/c/test_c_public_api_skeleton.py b/tests/parser/c/test_c_public_api_skeleton.py index c14c13a43..f240cc7b3 100644 --- a/tests/parser/c/test_c_public_api_skeleton.py +++ b/tests/parser/c/test_c_public_api_skeleton.py @@ -1,9 +1,86 @@ -# -*- coding: utf-8 -*- """C parser public API coverage for the current partial subset.""" from pathlib import Path -from c_parser import CParser, parse_c_file, parse_c_project + +def test_c_parser_path_and_include_key_helpers_preserve_boundary_contracts(monkeypatch): + from c_parser.parser import _include_key_from_current, _looks_like_existing_source_path + + monkeypatch.setattr(Path, "is_file", lambda self: True) + + assert _looks_like_existing_source_path(Path("api.h")) is True + assert _looks_like_existing_source_path("api.h") is True + assert _looks_like_existing_source_path("") is False + assert _looks_like_existing_source_path("int answer(void);\n") is False + assert _looks_like_existing_source_path(object()) is False + assert _include_key_from_current("api.h", "types.h") == "types.h" + assert _include_key_from_current("src/api.h", "types.h") == "src/types.h" + + def raise_os_error(path): + raise OSError + + monkeypatch.setattr(Path, "is_file", raise_os_error) + + assert _looks_like_existing_source_path("api.h") is False + + +def test_c_parser_public_wrappers_forward_explicit_options(monkeypatch): + from c_parser import parse_c_file, parse_c_project + + calls = [] + + class RecordingParser: + def visit_file(self, *args, **kwargs): + calls.append(("file", args, kwargs)) + return "file-result" + + def visit_project(self, *args, **kwargs): + calls.append(("project", args, kwargs)) + return "project-result" + + monkeypatch.setattr("c_parser.parser._DEFAULT_PARSER", RecordingParser()) + + include_dirs = [Path("include")] + assert ( + parse_c_file( + "api source", + filename="api.h", + include_dirs=include_dirs, + preprocessing="preprocessed", + encoding="latin-1", + ) + == "file-result" + ) + assert ( + parse_c_project( + {"api.h": "api source"}, + include_dirs=include_dirs, + preprocessing="preprocessed", + encoding="latin-1", + ) + == "project-result" + ) + assert calls == [ + ( + "file", + ("api source",), + { + "filename": "api.h", + "include_dirs": include_dirs, + "preprocessing": "preprocessed", + "encoding": "latin-1", + }, + ), + ( + "project", + ({"api.h": "api source"},), + { + "include_dirs": include_dirs, + "preprocessing": "preprocessed", + "encoding": "latin-1", + }, + ), + ] def test_parse_c_file_accepts_inline_source_and_returns_typed_model(): @@ -14,7 +91,6 @@ def test_parse_c_file_accepts_inline_source_and_returns_typed_model(): assert isinstance(parsed, CFile) assert parsed.filename == "inline.h" assert parsed.language == "c" - assert parsed.parser_status == "partial" assert [fn.name for fn in parsed.functions] == ["add"] @@ -51,6 +127,15 @@ def test_parse_c_file_accepts_empty_source_and_unknown_suffix(): assert parsed.diagnostics == [] +def test_parse_c_file_rejects_unknown_preprocessing_mode(): + import pytest + + from c_parser import parse_c_file + + with pytest.raises(ValueError, match="preprocessing mode"): + parse_c_file("int answer(void);\n", filename="api.h", preprocessing="unknown") + + def test_parse_c_project_accepts_mapping_sources(): from c_parser import CProject, parse_c_project @@ -67,6 +152,18 @@ def test_parse_c_project_accepts_mapping_sources(): assert set(project.functions) == {"answer"} +def test_parse_c_project_accepts_single_file_path(tmp_path: Path): + from c_parser import parse_c_project + + source = tmp_path / "api.c" + source.write_text("int answer(void);\n", encoding="utf-8") + + project = parse_c_project(source) + + assert set(project.files) == {str(source)} + assert set(project.functions) == {"answer"} + + def test_parse_c_project_indexes_forward_structs_by_tag_name(): from c_parser import parse_c_project @@ -115,7 +212,6 @@ def test_c_file_serialization_is_json_stable(): assert parsed.to_dict() == { "filename": "empty.c", "language": "c", - "parser_status": "partial", "preprocessing": "raw", "functions": [], "structs": [], @@ -136,8 +232,7 @@ def test_concrete_type_serialization_preserves_semantic_type_fields_and_location from c_parser import parse_c_file parsed = parse_c_file( - "typedef int (*compare_fn)(const void *, const void *);\n" - "compare_fn select_compare(void);\n", + "typedef int (*compare_fn)(const void *, const void *);\ncompare_fn select_compare(void);\n", filename="types.h", ) payload = parsed.to_dict() @@ -190,29 +285,6 @@ def test_inline_aggregate_typedef_serialization_uses_references_without_cycles() assert payload["typedefs"][0]["type"] == {"reference": "struct node"} -def test_model_json_shapes_cover_directive_include_macro_and_diagnostic_fields(): - from c_parser import parse_c_file - - payload = parse_c_file( - '#ifdef FEATURE\n#include "missing.h"\n#define API(ret) ret\nAPI(int) run(void);\n#endif\n', - filename="metadata.h", - ).to_dict() - - assert payload["raw_directives"][0]["directive"] == "ifdef" - assert payload["raw_directives"][0]["argument"] == "FEATURE" - assert payload["includes"][0]["target"] == "missing.h" - assert payload["includes"][0]["resolved_path"] is None - assert payload["macros"][0]["name"] == "API" - assert payload["macros"][0]["function_like"] is True - assert payload["macro_dependencies"][0]["name"] == "API" - assert payload["macro_dependencies"][0]["source_text"] == "API(int) run(void)" - assert {diagnostic["code"] for diagnostic in payload["diagnostics"]} >= { - "C_UNRESOLVED_INCLUDE", - "C_UNSUPPORTED_FUNCTION_LIKE_MACRO", - "C_MACRO_DEPENDENT_DECLARATION", - } - - def test_unresolved_typedef_reference_metadata_is_preserved_in_json(): from c_parser import parse_c_file @@ -232,9 +304,9 @@ def test_c_parser_instance_entrypoints_match_public_functions(): assert parser.visit_file(source, filename="api.h") == parse_c_file(source, filename="api.h") assert parser.visit_project({"api.h": source}) == parse_c_project({"api.h": source}) - assert parser.visit_parsed_project( - {"api.h": parser.visit_file(source, filename="api.h")} - ) == parse_c_project({"api.h": source}) + assert parser.visit_parsed_project({"api.h": parser.visit_file(source, filename="api.h")}) == parse_c_project( + {"api.h": source} + ) def test_c_parse_error_attributes_and_diagnostic_formatting(): diff --git a/tests/parser/c/test_c_structs_unions_enums_typedefs.py b/tests/parser/c/test_c_structs_unions_enums_typedefs.py index 179cbf4e5..db9e7072f 100644 --- a/tests/parser/c/test_c_structs_unions_enums_typedefs.py +++ b/tests/parser/c/test_c_structs_unions_enums_typedefs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C aggregate type, enum, and typedef parser tests.""" import pytest @@ -152,6 +151,28 @@ def test_incomplete_union_and_tag_typedef_aliases_use_concrete_tag_classes(): assert typedefs["payload_t"].type.name == "payload" +def test_repeated_union_and_enum_tags_normalize_with_duplicate_diagnostics(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """ +union value; +union value { int integer; }; +union value { double real; }; +enum status { STATUS_OK }; +enum status { STATUS_ERROR }; +""", + filename="duplicate_tags.h", + ) + + assert [member.name for member in parsed.unions[0].members] == ["integer"] + assert [constant.name for constant in parsed.enums[0].constants] == ["STATUS_OK"] + assert [(diagnostic.code, diagnostic.unit_kind) for diagnostic in parsed.diagnostics] == [ + ("C_DUPLICATE_TAG_DEFINITION", "union"), + ("C_DUPLICATE_TAG_DEFINITION", "enum"), + ] + + def test_enum_constants_preserve_explicit_implicit_and_symbolic_values(): from c_parser import parse_c_file @@ -368,3 +389,110 @@ def test_anonymous_aggregate_member_without_a_declarator_is_retained(): assert [member.name for member in anonymous.type.members] == ["integer", "real"] assert tag.name == "tag" assert parsed.diagnostics == [] + + +def test_struct_field_missing_semicolon_reports_syntax_location(): + from c_parser import CParseError, parse_c_file + + with pytest.raises(CParseError) as exc_info: + parse_c_file( + """struct broken { + int value +}; +""", + filename="bad_field_syntax.h", + ) + + error = exc_info.value + assert error.code == "CPARSE_INVALID_SYNTAX" + assert error.filename == "bad_field_syntax.h" + assert error.line_number == 1 + assert error.column == 16 + assert error.source_line == "struct broken {" + + +def test_nested_aggregate_field_with_function_declarator_is_rejected(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """struct outer { + struct inner { int x; } field, make(void); + int kept; +}; +""", + filename="nested_bad_field.h", + ) + + assert [member.name for member in parsed.structs[0].members] == ["kept"] + assert len(parsed.diagnostics) == 1 + diagnostic = parsed.diagnostics[0] + assert diagnostic.code == "C_UNSUPPORTED_FIELD_DECLARATION" + assert diagnostic.message == "Unsupported nested aggregate field declaration." + assert diagnostic.location is not None + assert diagnostic.location.line == 2 + assert diagnostic.location.column == 5 + + +def test_bad_field_declarator_does_not_stop_later_declarators(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """struct bad { + int broken @@, kept; +}; +""", + filename="bad_field_multi.h", + ) + + assert [member.name for member in parsed.structs[0].members] == ["kept"] + assert len(parsed.diagnostics) == 1 + assert parsed.diagnostics[0].code == "C_UNSUPPORTED_FIELD_DECLARATION" + + +def test_unnamed_field_type_without_bit_width_reports_diagnostic(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """struct bad { + int *; + int kept; +}; +""", + filename="unnamed_field.h", + ) + + assert [member.name for member in parsed.structs[0].members] == ["kept"] + assert len(parsed.diagnostics) == 1 + diagnostic = parsed.diagnostics[0] + assert diagnostic.code == "C_UNSUPPORTED_FIELD_DECLARATION" + assert diagnostic.message == "Unnamed field type is not supported." + assert diagnostic.location is not None + assert diagnostic.location.line == 2 + assert diagnostic.location.column == 5 + + +def test_unsupported_field_declarator_is_reported_at_member_location(): + from c_parser import parse_c_file + + parsed = parse_c_file( + """struct bad { + int broken @@; + int kept; +}; +""", + filename="bad_field.h", + ) + + assert [member.name for member in parsed.structs[0].members] == ["kept"] + assert len(parsed.diagnostics) == 1 + diagnostic = parsed.diagnostics[0] + assert diagnostic.code == "C_UNSUPPORTED_FIELD_DECLARATION" + assert diagnostic.severity == "warning" + assert diagnostic.unit_kind == "struct_field" + assert diagnostic.unit_name is None + assert diagnostic.message == "Unsupported declarator syntax after parsed type layers: '@@'." + assert diagnostic.location is not None + assert diagnostic.location.filename == "bad_field.h" + assert diagnostic.location.line == 2 + assert diagnostic.location.column == 5 + assert diagnostic.location.source_line == " int broken @@;" diff --git a/tests/parser/conftest.py b/tests/parser/conftest.py index f74d7466f..17cdbe1f9 100644 --- a/tests/parser/conftest.py +++ b/tests/parser/conftest.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from pathlib import Path import sys diff --git a/tests/parser/fortran/errors/generate_fortran_parser_error_goldens.py b/tests/parser/fortran/errors/generate_fortran_parser_error_goldens.py index b2a7e7036..23ddb1bc8 100644 --- a/tests/parser/fortran/errors/generate_fortran_parser_error_goldens.py +++ b/tests/parser/fortran/errors/generate_fortran_parser_error_goldens.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Generate/update golden files for Fortran parser error fixtures.""" from __future__ import annotations @@ -7,18 +6,21 @@ import sys from pathlib import Path -from x2py import FortranParseError, parse_fortran_file +_REPO_ROOT = Path(__file__).resolve().parents[4] +if str(_REPO_ROOT) not in sys.path: + sys.path.insert(0, str(_REPO_ROOT)) + def parse_fortran_procedures(source, filename=None): - return parse_fortran_file(source, filename=filename).procedures + return _parse_fortran_file(source, filename=filename).procedures def parse_fortran_types(source, filename=None): - return parse_fortran_file(source, filename=filename).derived_types + return _parse_fortran_file(source, filename=filename).derived_types def parse_fortran_modules(source, filename=None): - return parse_fortran_file(source, filename=filename).modules + return _parse_fortran_file(source, filename=filename).modules _TESTS_DIR = Path(__file__).resolve().parents[3] @@ -32,6 +34,12 @@ def parse_fortran_modules(source, filename=None): _DEFAULT_PARSER = "parse_fortran_procedures" +def _parse_fortran_file(source, filename=None): + from x2py import parse_fortran_file + + return parse_fortran_file(source, filename=filename) + + def _get_parser_for_fixture(fixture: Path) -> str: json_path = _EXPECTED_ERRORS_DIR / f"{fixture.stem}.json" if json_path.exists(): @@ -44,14 +52,15 @@ def _get_parser_for_fixture(fixture: Path) -> str: def _serialize_error_fixture(fixture: Path) -> dict: + from x2py import FortranParseError + source = fixture.read_text(encoding="utf-8") parser_name = _get_parser_for_fixture(fixture) parser_fn = _PARSER_MAP[parser_name] try: parser_fn(source, filename=fixture.name) raise SystemExit( - f"ERROR: {fixture.name} did not raise FortranParseError — " - "error fixture files must trigger a parse error." + f"ERROR: {fixture.name} did not raise FortranParseError — error fixture files must trigger a parse error." ) except FortranParseError as exc: return { @@ -78,10 +87,7 @@ def main() -> None: fixtures.append(p) else: extensions = {".f", ".for", ".ftn", ".f77", ".f90", ".f95", ".f03", ".f08"} - fixtures = sorted( - f for f in _ERRORS_DIR.glob("*") - if f.is_file() and f.suffix.lower() in extensions - ) + fixtures = sorted(f for f in _ERRORS_DIR.glob("*") if f.is_file() and f.suffix.lower() in extensions) if not fixtures: raise SystemExit("No Fortran error fixtures found") diff --git a/tests/parser/fortran/generate_fortran_parser_goldens.py b/tests/parser/fortran/generate_fortran_parser_goldens.py index 25edbbfad..3648b9fc5 100644 --- a/tests/parser/fortran/generate_fortran_parser_goldens.py +++ b/tests/parser/fortran/generate_fortran_parser_goldens.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Generate/update golden files for Fortran parser fixtures.""" from __future__ import annotations @@ -8,7 +7,9 @@ from dataclasses import asdict from pathlib import Path -from x2py import parse_fortran_file +_REPO_ROOT = Path(__file__).resolve().parents[3] +if str(_REPO_ROOT) not in sys.path: + sys.path.insert(0, str(_REPO_ROOT)) _TESTS_DIR = Path(__file__).resolve().parents[2] _FORTRAN_DIR = _TESTS_DIR / "data" / "fortran" @@ -25,12 +26,16 @@ def _strip_parent_fields(value): def _parser_filename_for_fixture(fixture: Path) -> str: relpath = fixture.relative_to(_FORTRAN_DIR).as_posix() + if relpath.startswith("general/"): + return fixture.name if relpath.startswith("scifortran/"): return relpath.replace("scifortran/", "SciFortran/", 1) return relpath def _serialize_fixture(fixture: Path) -> dict: + from x2py import parse_fortran_file + source = fixture.read_text(encoding="utf-8") parsed = parse_fortran_file(source, filename=_parser_filename_for_fixture(fixture)) return _strip_parent_fields(asdict(parsed)) @@ -75,5 +80,6 @@ def main() -> None: print(f"failed {fixture}: {exc}", file=sys.stderr) raise SystemExit(1) + if __name__ == "__main__": main() diff --git a/tests/parser/test_c_standard_type_probe.py b/tests/parser/test_c_standard_type_probe.py index 179e5c295..135f89057 100644 --- a/tests/parser/test_c_standard_type_probe.py +++ b/tests/parser/test_c_standard_type_probe.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Compiler-derived C standard-library type fact tests.""" import json @@ -120,9 +119,7 @@ def test_c_standard_type_probe_accepts_explicit_runner_and_cli_validates_macros( def test_c_standard_type_probe_reports_semantic_facts_from_native_compiler(): compiler = _required_c_compiler() - report = probe_c_standard_types( - PreprocessingConfig(mode="compiler", compiler=compiler, std="c11") - ) + report = probe_c_standard_types(PreprocessingConfig(mode="compiler", compiler=compiler, std="c11")) size_t = report.types["size_t"] assert size_t["available"] is True diff --git a/tests/parser/test_cli.py b/tests/parser/test_cli.py index 30fe850e3..afe73e472 100644 --- a/tests/parser/test_cli.py +++ b/tests/parser/test_cli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import builtins from dataclasses import dataclass import json @@ -20,6 +19,99 @@ TEST_FILE = Path(__file__).parent.parent / "data" / "fortran" / "general" / "basic_subroutine.f90" +class _MainParserError(Exception): + pass + + +def _main_args(**overrides): + values = { + "paths": ["input.f90"], + "language": "fortran", + "parse": False, + "preprocessor_adapter": "auto", + "compiler": None, + "compile_commands": None, + "preprocess_template": None, + "include_dirs": [], + "defines": [], + "undefs": [], + "std": None, + "compiler_args": [], + "include_exposure": "reachable-project", + "public_includes": [], + "private_includes": [], + "show_vars": False, + "print_limit": None, + "vars_limit": None, + "wrap_readiness": False, + "semantics": False, + "pyi": False, + "json": False, + "out": None, + "no_color": False, + "debug": False, + } + values.update(overrides) + return types.SimpleNamespace(**values) + + +def _install_main_parser(monkeypatch, args): + class FakeParser: + def add_argument(self, *_args, **_kwargs): + pass + + def parse_args(self): + return args + + def error(self, message): + raise _MainParserError(message) + + parser = FakeParser() + monkeypatch.setattr(x2py_cli.argparse, "ArgumentParser", lambda *args, **kwargs: parser) + return parser + + +def _patch_main_report_payloads( + monkeypatch, + *, + language="fortran", + parse_payload=None, + semantic_payload=None, + readiness_payload=None, +): + preprocessing = object() + calls = [] + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, _active_language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda args, parser: preprocessing) + monkeypatch.setattr( + x2py_cli, + "_parse_report", + lambda paths, active_preprocessing: calls.append(("parse", paths, active_preprocessing)) or parse_payload, + ) + monkeypatch.setattr( + x2py_cli, + "_semantic_report", + lambda paths, active_preprocessing, *, language: ( + calls.append(("semantic", paths, active_preprocessing, language)) or semantic_payload + ), + ) + monkeypatch.setattr( + x2py_cli, + "_wrap_readiness_report", + lambda paths, active_preprocessing, *, language: ( + calls.append(("readiness", paths, active_preprocessing, language)) or readiness_payload + ), + ) + monkeypatch.setattr( + x2py_cli, + "_attach_wrap_readiness", + lambda active_semantic_payload, active_readiness_payload: calls.append( + ("attach", active_semantic_payload, active_readiness_payload) + ), + ) + return preprocessing, calls + + def test_cli_readable_output(): cmd = [sys.executable, "-m", "x2py", str(TEST_FILE), "--parse"] res = subprocess.run(cmd, capture_output=True, text=True, check=True) @@ -124,7 +216,6 @@ def test_cli_json_out(tmp_path: Path): assert str(TEST_FILE) in file_payload - def test_cli_out_without_filename_uses_source_basename_json(tmp_path: Path): f90 = tmp_path / "mini.f90" f90.write_text("subroutine work(n)\n integer, intent(in) :: n\nend subroutine work\n", encoding="utf-8") @@ -150,6 +241,8 @@ def test_cli_pyi_output_without_out(): res = subprocess.run(cmd, capture_output=True, text=True, check=True) assert f"File: {TEST_FILE}" in res.stdout assert "def add1(" in res.stdout + + def test_cli_keeps_free_procedure_when_module_has_same_name(tmp_path: Path): f90 = tmp_path / "same_name_scopes.f90" f90.write_text( @@ -192,8 +285,9 @@ def test_cli_formats_parse_errors_without_traceback(tmp_path: Path): assert res.returncode == 1 assert res.stdout == "" assert "Traceback" not in res.stderr - assert f"{f90}:2:1: error[PARSE_UNSUPPORTED_DECLARATION]:" in res.stderr - assert "2 | weirdtype :: x" in res.stderr + assert f"{f90}:" in res.stderr + assert "error[PARSE_UNSUPPORTED_DECLARATION]:" in res.stderr + assert "| weirdtype :: x" in res.stderr def test_cli_debug_flag_reraises_parse_errors(tmp_path: Path): @@ -276,9 +370,8 @@ def test_cli_no_color_env_disables_default_ansi(tmp_path: Path): assert res.returncode == 1 assert "\033[" not in res.stderr - assert f"{f90}:2:1: error[PARSE_UNSUPPORTED_DECLARATION]:" in res.stderr - - + assert f"{f90}:" in res.stderr + assert "error[PARSE_UNSUPPORTED_DECLARATION]:" in res.stderr def test_cli_semantics_out_writes_json_without_stdout(tmp_path: Path): @@ -292,6 +385,7 @@ def test_cli_semantics_out_writes_json_without_stdout(tmp_path: Path): assert str(TEST_FILE) in payload assert "semantic_modules" in payload[str(TEST_FILE)] + def test_cli_semantics_without_json_output(): cmd = [sys.executable, "-m", "x2py", str(TEST_FILE), "--semantics"] res = subprocess.run(cmd, capture_output=True, text=True, check=True) @@ -314,7 +408,6 @@ def test_cli_pyi_output(): assert "def add1(" in res.stdout - def test_cli_pyi_out_writes_adjacent_file(tmp_path: Path): f90 = tmp_path / "mini.f90" f90.write_text( @@ -545,9 +638,7 @@ def test_x2py_pyi_report_writes_opaque_dependency_stub_for_external_type(tmp_pat payload = x2py_cli._semantic_report([str(physics)]) - assert payload[str(physics)]["pyi_dependencies"] == { - "types_mod": "class particle(Opaque):\n pass" - } + assert payload[str(physics)]["pyi_dependencies"] == {"types_mod": "class particle(Opaque):\n pass"} monkeypatch.setattr(sys, "argv", ["x2py", str(physics), "--pyi", "--out"]) assert x2py_cli.main() == 0 @@ -563,14 +654,35 @@ def test_x2py_pyi_report_formats_and_rejects_conflicting_dependency_stubs(): }, "second.f90": { "pyi": "def second() -> None: ...", - "pyi_dependencies": {"shared": "class shared(Opaque):\n pass"}, + "pyi_dependencies": { + "shared": "class shared(Opaque):\n pass", + "extra": "class extra(Opaque):\n pass", + }, }, + "empty.f90": {}, } text = x2py_cli._format_pyi_report(report) - assert text.count("Dependency stub: shared.pyi") == 1 - assert "def first() -> None: ..." in text + assert ( + text + == """File: first.f90 +def first() -> None: ... + +Dependency stub: shared.pyi +class shared(Opaque): + pass + +File: second.f90 +def second() -> None: ... + +Dependency stub: extra.pyi +class extra(Opaque): + pass + +File: empty.f90 +""" + ) with pytest.raises(ValueError, match="Conflicting generated dependency stub"): x2py_cli._write_pyi_dependencies( { @@ -580,6 +692,43 @@ def test_x2py_pyi_report_formats_and_rejects_conflicting_dependency_stubs(): ) +def test_x2py_write_pyi_dependencies_handles_nested_modules_and_empty_payloads(tmp_path: Path): + output_dir = tmp_path / "out" + text = "class Shared:\n pass" + + x2py_cli._write_pyi_dependencies( + { + str(tmp_path / "nodeps.f90"): {}, + str(tmp_path / "first.f90"): {"pyi_dependencies": {"pkg.sub.shared": text}}, + str(tmp_path / "second.f90"): {"pyi_dependencies": {"pkg.sub.shared": text}}, + }, + output_dir=output_dir, + ) + + assert (output_dir / "pkg" / "sub" / "shared.pyi").read_text(encoding="utf-8") == text + "\n" + assert not (output_dir / "pkg.sub.shared.pyi").exists() + + +def test_x2py_write_pyi_dependencies_uses_explicit_utf8(tmp_path: Path, monkeypatch): + writes = [] + + def write_text(path, data, *args, **kwargs): + assert not args + assert kwargs.get("encoding") is not None + assert kwargs["encoding"].lower() == "utf-8" + writes.append((path, data)) + return len(data) + + monkeypatch.setattr(Path, "write_text", write_text) + + x2py_cli._write_pyi_dependencies( + {str(tmp_path / "first.f90"): {"pyi_dependencies": {"shared": "class Shared:\n pass"}}}, + output_dir=tmp_path, + ) + + assert writes == [(tmp_path / "shared.pyi", "class Shared:\n pass\n")] + + def test_x2py_main_formats_preprocessing_errors_with_and_without_diagnostics(monkeypatch, capsys): monkeypatch.setattr(sys, "argv", ["x2py", str(TEST_FILE), "--parse"]) @@ -609,6 +758,558 @@ def fail_without_diagnostic(_paths, _preprocessing): assert "x2py: error[PREPROCESSOR_FAILED]: plain failure" in capsys.readouterr().err +def test_x2py_main_preserves_fortran_stage_dispatch_contract(monkeypatch): + class StopAfterDispatch(Exception): + pass + + args = _main_args(parse=True, semantics=True, pyi=True, wrap_readiness=True) + parser = _install_main_parser(monkeypatch, args) + preprocessing = object() + parse_payload = {"parse": "payload"} + semantic_payload = {"semantic": "payload"} + readiness_payload = {"readiness": "payload"} + calls = [] + + def resolve_language(paths, language, active_parser): + calls.append(("resolve", paths, language, active_parser)) + return "fortran" + + def build_preprocessing_config(active_args, active_parser): + calls.append(("config", active_args, active_parser)) + return preprocessing + + def parse_report(paths, active_preprocessing): + calls.append(("parse", paths, active_preprocessing)) + return parse_payload + + def semantic_report(paths, active_preprocessing, *, language): + calls.append(("semantic", paths, active_preprocessing, language)) + return semantic_payload + + def readiness_report(paths, active_preprocessing, *, language): + calls.append(("readiness", paths, active_preprocessing, language)) + return readiness_payload + + def attach_wrap_readiness(active_semantic_payload, active_readiness_payload): + calls.append(("attach", active_semantic_payload, active_readiness_payload)) + raise StopAfterDispatch + + monkeypatch.setattr(x2py_cli, "_resolve_language", resolve_language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", build_preprocessing_config) + monkeypatch.setattr(x2py_cli, "_parse_report", parse_report) + monkeypatch.setattr(x2py_cli, "_semantic_report", semantic_report) + monkeypatch.setattr(x2py_cli, "_wrap_readiness_report", readiness_report) + monkeypatch.setattr(x2py_cli, "_attach_wrap_readiness", attach_wrap_readiness) + + with pytest.raises(StopAfterDispatch): + x2py_cli.main() + + assert calls == [ + ("resolve", args.paths, "fortran", parser), + ("config", args, parser), + ("parse", args.paths, preprocessing), + ("semantic", args.paths, preprocessing, "fortran"), + ("readiness", args.paths, preprocessing, "fortran"), + ("attach", semantic_payload, readiness_payload), + ] + + +def test_x2py_main_preserves_c_parse_dispatch_contract(monkeypatch): + class StopAfterDispatch(Exception): + pass + + args = _main_args(language="requested", parse=True) + _install_main_parser(monkeypatch, args) + preprocessing = types.SimpleNamespace(include_dirs=("include",)) + parser_mode = object() + source_loader = object() + parse_payload = {"parse": "payload"} + calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: "c") + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: preprocessing) + monkeypatch.setattr( + x2py_cli, + "_c_parser_preprocessing_mode", + lambda active_preprocessing: calls.append(("mode", active_preprocessing)) or parser_mode, + ) + monkeypatch.setattr( + x2py_cli, + "_c_source_loader", + lambda active_preprocessing: calls.append(("loader", active_preprocessing)) or source_loader, + ) + monkeypatch.setattr( + x2py_cli, + "parse_c_report", + lambda paths, **kwargs: calls.append(("parse", paths, kwargs)) or parse_payload, + ) + monkeypatch.setattr( + x2py_cli, + "_attach_wrap_readiness", + lambda semantic_payload, readiness_payload: (_ for _ in ()).throw(StopAfterDispatch), + ) + + with pytest.raises(StopAfterDispatch): + x2py_cli.main() + + assert calls == [ + ("mode", preprocessing), + ("loader", preprocessing), + ( + "parse", + args.paths, + { + "include_dirs": preprocessing.include_dirs, + "preprocessing": parser_mode, + "source_loader": source_loader, + }, + ), + ] + + +@pytest.mark.parametrize("stage", ["semantics", "pyi", "wrap_readiness"]) +def test_x2py_main_accepts_each_non_parse_c_stage(monkeypatch, stage): + class StopAfterDispatch(Exception): + pass + + args = _main_args(language="c", **{stage: True}) + _install_main_parser(monkeypatch, args) + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: object()) + monkeypatch.setattr(x2py_cli, "_semantic_report", lambda *args, **kwargs: {}) + monkeypatch.setattr(x2py_cli, "_wrap_readiness_report", lambda *args, **kwargs: {}) + monkeypatch.setattr( + x2py_cli, + "_attach_wrap_readiness", + lambda semantic_payload, readiness_payload: (_ for _ in ()).throw(StopAfterDispatch), + ) + + with pytest.raises(StopAfterDispatch): + x2py_cli.main() + + +@pytest.mark.parametrize( + ("overrides", "expected"), + [ + ( + {"language": "c"}, + "--language c requires a stage flag: choose one of --parse, --semantics, --pyi, or --wrap-readiness", + ), + ( + {"language": "c", "parse": True, "show_vars": True}, + "--show-vars/--print-limit are Fortran-only and are not supported for --language c", + ), + ( + {"language": "c", "parse": True, "print_limit": 1}, + "--show-vars/--print-limit are Fortran-only and are not supported for --language c", + ), + ( + {"language": "c", "parse": True, "vars_limit": 1}, + "--show-vars/--print-limit are Fortran-only and are not supported for --language c", + ), + ( + {"out": ""}, + "--out requires a stage flag: choose one of --parse, --semantics, --pyi, or --wrap-readiness", + ), + ({"show_vars": True}, "--show-vars/--print-limit require --parse"), + ({"print_limit": 1}, "--show-vars/--print-limit require --parse"), + ({"vars_limit": 1}, "--show-vars/--print-limit require --parse"), + ({"parse": True, "print_limit": -1}, "--print-limit must be >= 0"), + ({}, "Select at least one stage flag: --parse, --semantics, --pyi, or --wrap-readiness"), + ], +) +def test_x2py_main_preserves_validation_diagnostics(monkeypatch, overrides, expected): + args = _main_args(**overrides) + _install_main_parser(monkeypatch, args) + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: object()) + + with pytest.raises(_MainParserError) as exc_info: + x2py_cli.main() + + assert str(exc_info.value) == expected + + +def test_x2py_main_preserves_zero_print_limit_and_legacy_vars_limit_contract(monkeypatch, capsys): + args = _main_args(parse=True, print_limit=0, vars_limit=7) + _install_main_parser(monkeypatch, args) + preprocessing = object() + parse_payload = {"parse": "payload"} + format_calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: preprocessing) + monkeypatch.setattr(x2py_cli, "_parse_report", lambda paths, active_preprocessing: parse_payload) + monkeypatch.setattr(x2py_cli, "_attach_wrap_readiness", lambda semantic_payload, readiness_payload: None) + monkeypatch.setattr( + x2py_cli, + "_format_report", + lambda payload, **kwargs: format_calls.append((payload, kwargs)) or "formatted", + ) + + assert x2py_cli.main() == 0 + assert capsys.readouterr().out == "formatted\n" + assert format_calls == [(parse_payload, {"show_vars": True, "print_limit": 0})] + + +@pytest.mark.parametrize( + ("language", "error_type", "env_name"), + [ + ("c", x2py_cli.CParseError, "C_PARSER_DEBUG"), + ("fortran", FortranParseError, "FORTRAN_PARSER_DEBUG"), + ], +) +def test_x2py_main_preserves_parse_error_rendering_contract( + monkeypatch, + capsys, + language, + error_type, + env_name, +): + args = _main_args(language=language, parse=True, no_color=True) + _install_main_parser(monkeypatch, args) + preprocessing = types.SimpleNamespace(include_dirs=()) + error = error_type("bad parse") + calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, _active_language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: preprocessing) + monkeypatch.setattr(x2py_cli, "_env_flag", lambda name: calls.append(("env", name)) or False) + monkeypatch.setattr( + x2py_cli, + "_diagnostic_color_enabled", + lambda *, disabled: calls.append(("color", disabled)) or "color-enabled", + ) + monkeypatch.setattr( + error_type, + "format_diagnostic", + lambda self, *, color, debug: calls.append(("render", color, debug)) or "rendered diagnostic", + ) + if language == "c": + monkeypatch.setattr(x2py_cli, "_c_parser_preprocessing_mode", lambda active_preprocessing: "mode") + monkeypatch.setattr(x2py_cli, "_c_source_loader", lambda active_preprocessing: "loader") + monkeypatch.setattr(x2py_cli, "parse_c_report", lambda *args, **kwargs: (_ for _ in ()).throw(error)) + else: + monkeypatch.setattr(x2py_cli, "_parse_report", lambda *args, **kwargs: (_ for _ in ()).throw(error)) + + assert x2py_cli.main() == 1 + assert capsys.readouterr().err == "rendered diagnostic\n" + assert calls == [ + ("env", env_name), + ("color", True), + ("render", "color-enabled", False), + ] + + +@pytest.mark.parametrize( + ("language", "error_type", "env_name"), + [ + ("c", x2py_cli.CParseError, "C_PARSER_DEBUG"), + ("fortran", FortranParseError, "FORTRAN_PARSER_DEBUG"), + ], +) +def test_x2py_main_reraises_parse_errors_for_debug_environment(monkeypatch, language, error_type, env_name): + args = _main_args(language=language, parse=True) + _install_main_parser(monkeypatch, args) + preprocessing = types.SimpleNamespace(include_dirs=()) + error = error_type("bad parse") + calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, _active_language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: preprocessing) + monkeypatch.setattr(x2py_cli, "_env_flag", lambda name: calls.append(name) or name == env_name) + if language == "c": + monkeypatch.setattr(x2py_cli, "_c_parser_preprocessing_mode", lambda active_preprocessing: "mode") + monkeypatch.setattr(x2py_cli, "_c_source_loader", lambda active_preprocessing: "loader") + monkeypatch.setattr(x2py_cli, "parse_c_report", lambda *args, **kwargs: (_ for _ in ()).throw(error)) + else: + monkeypatch.setattr(x2py_cli, "_parse_report", lambda *args, **kwargs: (_ for _ in ()).throw(error)) + + with pytest.raises(error_type): + x2py_cli.main() + + assert calls == [env_name] + + +def test_x2py_main_preserves_pathless_preprocessing_diagnostic_contract(monkeypatch, capsys): + args = _main_args(parse=True) + _install_main_parser(monkeypatch, args) + calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: object()) + monkeypatch.setattr(x2py_cli, "_env_flag", lambda name: calls.append(name) or False) + monkeypatch.setattr( + x2py_cli, + "_parse_report", + lambda paths, preprocessing: (_ for _ in ()).throw( + PreprocessingError( + "compiler failed", + diagnostics=[PreprocessingDiagnostic(category="PREPROCESSOR_FAILED", message="bad include")], + ) + ), + ) + + assert x2py_cli.main() == 1 + assert capsys.readouterr().err == ": error[PREPROCESSOR_FAILED]: bad include\n" + assert calls == ["X2PY_DEBUG"] + + +def test_x2py_main_reraises_value_errors_for_debug_environment(monkeypatch): + args = _main_args(parse=True) + _install_main_parser(monkeypatch, args) + calls = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: object()) + monkeypatch.setattr(x2py_cli, "_env_flag", lambda name: calls.append(name) or name == "X2PY_DEBUG") + monkeypatch.setattr( + x2py_cli, + "_parse_report", + lambda paths, preprocessing: (_ for _ in ()).throw(ValueError("invalid generated interface")), + ) + + with pytest.raises(ValueError, match="invalid generated interface"): + x2py_cli.main() + + assert calls == ["X2PY_DEBUG"] + + +def test_x2py_main_preserves_conflicting_json_and_pyi_out_diagnostic(monkeypatch): + args = _main_args(pyi=True, json=True, out="/tmp/conflict.pyi") + _install_main_parser(monkeypatch, args) + _patch_main_report_payloads(monkeypatch, semantic_payload={"input.f90": {"pyi": "def work() -> None: ..."}}) + + with pytest.raises(_MainParserError) as exc_info: + x2py_cli.main() + + assert str(exc_info.value) == "--out cannot be used with both --json and --pyi" + + +def test_x2py_main_preserves_explicit_pyi_write_contract(monkeypatch): + semantic_payload = { + "first.f90": {"pyi": "def first() -> None: ..."}, + "empty.f90": {}, + "second.f90": {"pyi": "def second() -> None: ..."}, + } + args = _main_args(pyi=True, out="/tmp/api.pyi") + _install_main_parser(monkeypatch, args) + _patch_main_report_payloads(monkeypatch, semantic_payload=semantic_payload) + writes = [] + dependencies = [] + + monkeypatch.setattr( + Path, + "write_text", + lambda path, data, **kwargs: writes.append((path, data, kwargs)) or len(data), + ) + monkeypatch.setattr( + x2py_cli, + "_write_pyi_dependencies", + lambda payload, **kwargs: dependencies.append((payload, kwargs)), + ) + + assert x2py_cli.main() == 0 + assert writes == [ + (Path("/tmp/api.pyi"), "def first() -> None: ...\n\n\n\ndef second() -> None: ...\n", {"encoding": "utf-8"}) + ] + assert dependencies == [(semantic_payload, {"output_dir": Path("/tmp")})] + + +def test_x2py_main_preserves_adjacent_pyi_write_contract(monkeypatch): + semantic_payload = { + "/tmp/first.f90": {"pyi": "def first() -> None: ..."}, + "/tmp/empty.f90": {}, + } + args = _main_args(pyi=True, out="") + _install_main_parser(monkeypatch, args) + _patch_main_report_payloads(monkeypatch, semantic_payload=semantic_payload) + writes = [] + dependencies = [] + + monkeypatch.setattr( + Path, + "write_text", + lambda path, data, **kwargs: writes.append((path, data, kwargs)) or len(data), + ) + monkeypatch.setattr( + x2py_cli, + "_write_pyi_dependencies", + lambda payload, **kwargs: dependencies.append((payload, kwargs)), + ) + + assert x2py_cli.main() == 0 + assert writes == [ + (Path("/tmp/first.pyi"), "def first() -> None: ...\n", {"encoding": "utf-8"}), + (Path("/tmp/empty.pyi"), "\n", {"encoding": "utf-8"}), + ] + assert dependencies == [(semantic_payload, {})] + + +def test_x2py_main_preserves_explicit_and_adjacent_json_write_contracts(monkeypatch): + writes = [] + monkeypatch.setattr( + Path, + "write_text", + lambda path, data, **kwargs: writes.append((path, data, kwargs)) or len(data), + ) + + explicit_payload = {"input.f90": {"node": 1}} + explicit_args = _main_args(parse=True, out="/tmp/report.json") + _install_main_parser(monkeypatch, explicit_args) + _patch_main_report_payloads(monkeypatch, parse_payload=explicit_payload) + assert x2py_cli.main() == 0 + + adjacent_payload = { + "/tmp/first.f90": {"node": 1}, + "/tmp/empty.f90": {}, + } + adjacent_args = _main_args(parse=True, out="") + _install_main_parser(monkeypatch, adjacent_args) + _patch_main_report_payloads(monkeypatch, parse_payload=adjacent_payload) + assert x2py_cli.main() == 0 + + readiness_payload = {"readiness": {"wrappable": True}} + combined_args = _main_args(parse=True, wrap_readiness=True, out="/tmp/combined.json") + _install_main_parser(monkeypatch, combined_args) + _patch_main_report_payloads( + monkeypatch, + parse_payload=explicit_payload, + readiness_payload=readiness_payload, + ) + assert x2py_cli.main() == 0 + + readiness_args = _main_args(wrap_readiness=True, out="/tmp/readiness.json") + _install_main_parser(monkeypatch, readiness_args) + _patch_main_report_payloads(monkeypatch, readiness_payload=readiness_payload) + assert x2py_cli.main() == 0 + + assert writes == [ + (Path("/tmp/report.json"), json.dumps(explicit_payload, indent=2), {"encoding": "utf-8"}), + ( + Path("/tmp/first.json"), + json.dumps({"/tmp/first.f90": {"node": 1}}, indent=2), + {"encoding": "utf-8"}, + ), + (Path("/tmp/empty.json"), json.dumps({"/tmp/empty.f90": {}}, indent=2), {"encoding": "utf-8"}), + ( + Path("/tmp/combined.json"), + json.dumps({"parse": explicit_payload, "wrap_readiness": readiness_payload}, indent=2), + {"encoding": "utf-8"}, + ), + (Path("/tmp/readiness.json"), json.dumps(readiness_payload, indent=2), {"encoding": "utf-8"}), + ] + + +def test_x2py_main_preserves_stdout_mode_matrix(monkeypatch, capsys): + parse_payload = {"parse": {"node": 1}} + semantic_payload = {"semantic": {"node": 2}} + readiness_payload = {"readiness": {"wrappable": True}} + scenarios = [ + ( + {"parse": True, "wrap_readiness": True, "json": True}, + json.dumps({"parse": parse_payload, "wrap_readiness": readiness_payload}, indent=2) + "\n", + [], + ), + ({"semantics": True}, json.dumps(semantic_payload, indent=2) + "\n", []), + ({"parse": True, "json": True}, json.dumps(parse_payload, indent=2) + "\n", []), + ({"wrap_readiness": True, "json": True}, json.dumps(readiness_payload, indent=2) + "\n", []), + ({"wrap_readiness": True}, "READINESS\n", [("readiness-format", readiness_payload)]), + ({"pyi": True}, "", [("pyi-format", semantic_payload), ("pyi-output", "PYI")]), + ( + {"parse": True, "wrap_readiness": True, "vars_limit": 2}, + "PARSE\n\nREADINESS\n", + [ + ("parse-format", parse_payload, {"show_vars": True, "print_limit": 2}), + ("readiness-format", readiness_payload), + ], + ), + ( + {"pyi": True, "wrap_readiness": True}, + "\nREADINESS\n", + [ + ("pyi-format", semantic_payload), + ("pyi-output", "PYI"), + ("readiness-format", readiness_payload), + ], + ), + ( + {"semantics": True, "wrap_readiness": True}, + json.dumps(semantic_payload, indent=2) + "\n", + [], + ), + ( + {"parse": True}, + "PARSE\n", + [("parse-format", parse_payload, {"show_vars": False, "print_limit": None})], + ), + ( + {"parse": True, "semantics": True}, + json.dumps(parse_payload, indent=2) + "\n", + [], + ), + ] + + for overrides, expected_stdout, expected_formats in scenarios: + args = _main_args(**overrides) + _install_main_parser(monkeypatch, args) + _patch_main_report_payloads( + monkeypatch, + parse_payload=parse_payload, + semantic_payload=semantic_payload, + readiness_payload=readiness_payload, + ) + formats = [] + monkeypatch.setattr( + x2py_cli, + "_format_report", + lambda payload, _formats=formats, **kwargs: _formats.append(("parse-format", payload, kwargs)) or "PARSE", + ) + monkeypatch.setattr( + x2py_cli, + "_format_semantic_readiness", + lambda payload, _formats=formats: _formats.append(("readiness-format", payload)) or "READINESS", + ) + monkeypatch.setattr( + x2py_cli, + "_format_pyi_report", + lambda payload, _formats=formats: _formats.append(("pyi-format", payload)) or "PYI", + ) + monkeypatch.setattr( + x2py_cli, + "print_pyi_output", + lambda text, _formats=formats: _formats.append(("pyi-output", text)), + ) + + assert x2py_cli.main() == 0 + assert capsys.readouterr().out == expected_stdout + assert formats == expected_formats + + +def test_x2py_main_preserves_c_readable_stdout_contract(monkeypatch, capsys): + args = _main_args(language="c", parse=True) + _install_main_parser(monkeypatch, args) + preprocessing = types.SimpleNamespace(include_dirs=()) + parse_payload = {"parse": {"node": 1}} + formats = [] + + monkeypatch.setattr(x2py_cli, "_resolve_language", lambda paths, language, parser: language) + monkeypatch.setattr(x2py_cli, "_build_preprocessing_config", lambda active_args, parser: preprocessing) + monkeypatch.setattr(x2py_cli, "_c_parser_preprocessing_mode", lambda active_preprocessing: "mode") + monkeypatch.setattr(x2py_cli, "_c_source_loader", lambda active_preprocessing: "loader") + monkeypatch.setattr(x2py_cli, "parse_c_report", lambda *args, **kwargs: parse_payload) + monkeypatch.setattr(x2py_cli, "_attach_wrap_readiness", lambda semantic_payload, readiness_payload: None) + monkeypatch.setattr( + x2py_cli, + "format_c_report", + lambda payload: formats.append(payload) or "C REPORT", + ) + + assert x2py_cli.main() == 0 + assert capsys.readouterr().out == "C REPORT\n" + assert formats == [parse_payload] + + def test_x2py_cli_helpers_cover_language_and_preprocessing_edges(tmp_path: Path, monkeypatch): class ErrorParser: def error(self, message): @@ -618,7 +1319,6 @@ def args(**overrides): values = { "defines": [], "undefs": [], - "preprocess": "raw", "compiler": None, "compile_commands": None, "preprocessor_adapter": "auto", @@ -639,9 +1339,14 @@ def args(**overrides): api_h.write_text("int add(int x);\n", encoding="utf-8") stub = tmp_path / "api.pyi" stub.write_text("def add(x: Int32) -> Int32: ...\n", encoding="utf-8") + upper_stub = tmp_path / "upper.PYI" + upper_stub.write_text("def upper() -> None: ...\n", encoding="utf-8") (tmp_path / "notes.txt").write_text("ignore", encoding="utf-8") assert x2py_cli._expand_pyi_paths([str(tmp_path), str(stub)]) == [stub] + assert x2py_cli._expand_pyi_paths([str(stub)]) == [stub] + assert x2py_cli._expand_pyi_paths([str(upper_stub)]) == [upper_stub] + assert x2py_cli._expand_pyi_paths([str(tmp_path / "notes.txt")]) == [] assert x2py_cli._resolve_language([str(api_h)], "c", parser) == "c" with pytest.raises(ValueError, match="incompatible with --language fortran"): x2py_cli._resolve_language([str(api_h)], "fortran", parser) @@ -650,27 +1355,14 @@ def args(**overrides): with pytest.raises(ValueError, match="Cannot determine"): x2py_cli._resolve_language([str(tmp_path / "notes.txt")], None, parser) - with pytest.raises(ValueError, match="--compiler requires --preprocess compiler"): - x2py_cli._build_preprocessing_config(args(compiler="gfortran"), parser) with pytest.raises(ValueError, match="--preprocess-template requires"): x2py_cli._build_preprocessing_config( args( - preprocess="compiler", compiler="cc", preprocess_template="{compiler} -E {source}", ), parser, ) - with pytest.raises(ValueError, match="requires --compiler"): - x2py_cli._build_preprocessing_config(args(preprocess="compiler"), parser) - with pytest.raises(ValueError, match="--compile-commands requires"): - x2py_cli._build_preprocessing_config(args(compile_commands="compile_commands.json"), parser) - with pytest.raises(ValueError, match="raw C mode records source macros"): - x2py_cli._build_preprocessing_config(args(language="c", defines=["USE_FAST"]), parser) - with pytest.raises(ValueError, match="internal Fortran parsing does not evaluate CPP branches"): - x2py_cli._build_preprocessing_config(args(defines=["USE_FAST"]), parser) - with pytest.raises(ValueError, match="-I/--include-dir affects Fortran only"): - x2py_cli._build_preprocessing_config(args(include_dirs=["include"]), parser) class Recipe: def to_dict(self): @@ -698,6 +1390,187 @@ def preprocess(path, *, language, config): assert report[str(source)]["preprocessing_recipe"] == {"mode": "compiler"} +def test_x2py_build_preprocessing_config_preserves_full_config_contract(monkeypatch): + args = types.SimpleNamespace( + defines=["USE_FAST=1"], + undefs=["LEGACY"], + compiler="cc", + compile_commands="compile_commands.json", + preprocessor_adapter="command-template", + preprocess_template="{compiler} -E {source}", + include_dirs=["include"], + std="c11", + compiler_args=["--target=test"], + include_exposure="all-project", + public_includes=["public.h"], + private_includes=["private.h"], + language="c", + ) + config = types.SimpleNamespace( + uses_compiler=True, + command_template=args.preprocess_template, + adapter=args.preprocessor_adapter, + compiler=args.compiler, + compile_commands=args.compile_commands, + include_dirs=args.include_dirs, + ) + calls = [] + + class Parser: + def error(self, message): + raise AssertionError(message) + + def validate(value, option): + calls.append(("validate", value, option)) + + def build(**kwargs): + calls.append(("build", kwargs)) + return config + + monkeypatch.setattr(x2py_cli, "validate_macro_name", validate) + monkeypatch.setattr(x2py_cli, "PreprocessingConfig", build) + + assert x2py_cli._build_preprocessing_config(args, Parser()) is config + assert calls == [ + ("validate", "USE_FAST=1", "--define/-D"), + ("validate", "LEGACY", "--undef/-U"), + ( + "build", + { + "mode": "compiler", + "compiler": "cc", + "compile_commands": "compile_commands.json", + "adapter": "command-template", + "command_template": "{compiler} -E {source}", + "include_dirs": ["include"], + "defines": ["USE_FAST=1"], + "undefs": ["LEGACY"], + "std": "c11", + "compiler_args": ["--target=test"], + "include_exposure": "all-project", + "public_includes": ["public.h"], + "private_includes": ["private.h"], + }, + ), + ] + + +def test_x2py_build_preprocessing_config_preserves_macro_validation_errors(monkeypatch): + class Parser: + def error(self, message): + raise ValueError(message) + + def args(**overrides): + values = { + "defines": [], + "undefs": [], + "compiler": None, + "compile_commands": None, + "preprocessor_adapter": "auto", + "preprocess_template": None, + "include_dirs": [], + "std": None, + "compiler_args": [], + "include_exposure": "reachable-project", + "public_includes": [], + "private_includes": [], + "language": "fortran", + } + values.update(overrides) + return types.SimpleNamespace(**values) + + def reject(value, option): + raise PreprocessingError(f"{option}: invalid {value}", category="INVALID_MACRO_NAME") + + monkeypatch.setattr(x2py_cli, "validate_macro_name", reject) + + with pytest.raises(ValueError) as define_error: + x2py_cli._build_preprocessing_config(args(defines=["=bad"]), Parser()) + assert str(define_error.value) == "--define/-D: invalid =bad" + + with pytest.raises(ValueError) as undef_error: + x2py_cli._build_preprocessing_config(args(undefs=["=bad"]), Parser()) + assert str(undef_error.value) == "--undef/-U: invalid =bad" + + +@pytest.mark.parametrize( + ("overrides", "message"), + [ + ( + {"compiler": "cc", "preprocess_template": "{source}"}, + "--preprocess-template requires --preprocessor-adapter command-template", + ), + ], +) +def test_x2py_build_preprocessing_config_preserves_validation_diagnostics(overrides, message): + values = { + "defines": [], + "undefs": [], + "compiler": None, + "compile_commands": None, + "preprocessor_adapter": "auto", + "preprocess_template": None, + "include_dirs": [], + "std": None, + "compiler_args": [], + "include_exposure": "reachable-project", + "public_includes": [], + "private_includes": [], + "language": "fortran", + } + values.update(overrides) + + class Parser: + def error(self, received): + raise ValueError(received) + + with pytest.raises(ValueError) as error: + x2py_cli._build_preprocessing_config(types.SimpleNamespace(**values), Parser()) + assert str(error.value) == message + + +def test_x2py_resolve_language_handles_requested_and_default_edges(tmp_path: Path): + class ErrorParser: + def error(self, message): + raise ValueError(message) + + parser = ErrorParser() + input_dir = tmp_path / "inputs" + input_dir.mkdir() + c_header = tmp_path / "api.h" + c_header.write_text("int add(int x);\n", encoding="utf-8") + f_source = tmp_path / "solver.F90" + f_source.write_text("subroutine solve()\nend subroutine solve\n", encoding="utf-8") + stub = tmp_path / "iface.PYI" + stub.write_text("def solve() -> None: ...\n", encoding="utf-8") + unknown = tmp_path / "notes.txt" + unknown.write_text("notes\n", encoding="utf-8") + + assert x2py_cli._resolve_language([str(unknown)], "c", parser) == "c" + with pytest.raises(ValueError) as requested_error: + x2py_cli._resolve_language([str(input_dir), str(c_header)], "fortran", parser) + assert str(requested_error.value) == ( + f"C input {c_header} is incompatible with --language fortran; pass --language c. Use --help for examples." + ) + + with pytest.raises(ValueError) as directory_error: + x2py_cli._resolve_language([str(input_dir)], None, parser) + assert str(directory_error.value) == ( + f"Input directory {input_dir} requires an explicit frontend; " + "pass --language fortran or --language c. Use --help for examples." + ) + + assert x2py_cli._resolve_language([str(f_source)], None, parser) == "fortran" + assert x2py_cli._resolve_language([str(stub)], None, parser) == "fortran" + + with pytest.raises(ValueError) as unknown_error: + x2py_cli._resolve_language([str(unknown)], None, parser) + assert str(unknown_error.value) == ( + f"Cannot determine the input language for {unknown}; " + "pass --language fortran or --language c. Use --help for examples." + ) + + def test_x2py_and_fortran_module_entrypoints_and_debug_errors(monkeypatch, capsys): original_fortran_main = fortran_parser_cli.main monkeypatch.setattr(x2py_cli, "main", lambda: 0) @@ -735,13 +1608,13 @@ def fail_parse(_paths, _preprocessing): x2py_cli.main() - def test_cli_out_requires_stage_flag(): cmd = [sys.executable, "-m", "x2py", str(TEST_FILE), "--out"] res = subprocess.run(cmd, capture_output=True, text=True) assert res.returncode == 2 assert "--out requires a stage flag" in res.stderr + def test_cli_help_includes_examples(): cmd = [sys.executable, "-m", "x2py", "--help"] res = subprocess.run(cmd, capture_output=True, text=True, check=True) @@ -753,6 +1626,250 @@ def test_cli_help_includes_examples(): assert "python -m x2py path/to/file.f90 --pyi --out module.pyi" in res.stdout +def test_x2py_main_preserves_argument_parser_contract(monkeypatch): + class StopAfterParserSetup(Exception): + pass + + captured = {} + + class FakeParser: + def __init__(self, *args, **kwargs): + captured["parser"] = (args, kwargs) + captured["arguments"] = [] + + def add_argument(self, *args, **kwargs): + captured["arguments"].append((args, kwargs)) + + def parse_args(self): + raise StopAfterParserSetup + + monkeypatch.setattr(x2py_cli.argparse, "ArgumentParser", FakeParser) + + with pytest.raises(StopAfterParserSetup): + x2py_cli.main() + + assert captured["parser"] == ( + (), + { + "description": "x2py CLI for parser and semantic conversion stages.", + "formatter_class": x2py_cli.argparse.RawDescriptionHelpFormatter, + "epilog": ( + "Examples:\n" + " Parse, compact tree:\n" + " python -m x2py path/to/file.f90 --parse\n" + " Parse, include scope variables:\n" + " python -m x2py path/to/file.f90 --parse --show-vars\n" + " Parse, cap every repeated section to 50 items:\n" + " python -m x2py path/to/file.f90 --parse --print-limit 50\n" + " Parse, include variables and cap every repeated section:\n" + " python -m x2py path/to/file.f90 --parse --show-vars --print-limit 50\n" + " Parse directory recursively:\n" + " python -m x2py path/to/src_dir --language fortran --parse --print-limit 20\n" + " Print parser JSON:\n" + " python -m x2py path/to/file.f90 --parse --json\n" + " Parse C subset JSON:\n" + " python -m x2py path/to/api.h --language c --parse --json\n" + " Parse C with an exact compiler executable and API flags:\n" + " python -m x2py path/to/api.h --language c --parse --compiler clang-18 -I include -D API_EXPORT= --std c11\n" + " Parse C with a compiler path and target/sysroot passthrough flags:\n" + " python -m x2py path/to/api.c --language c --parse --compiler /usr/bin/gcc-13 --compiler-arg=--sysroot=/opt/sdk\n" + " Parse C with compile_commands.json for project flags:\n" + " python -m x2py path/to/api.c --language c --parse --compile-commands build/compile_commands.json\n" + " Parse Fortran with an exact compiler executable:\n" + " python -m x2py path/to/file.F90 --parse --compiler /usr/bin/gfortran-12 -I include -D USE_MPI\n" + " Parse with a custom preprocessing command template:\n" + " python -m x2py path/to/api.h --language c --parse --preprocessor-adapter command-template --preprocess-template 'cc -E {include_dirs} {defines} {source}'\n" + " Write parser JSON:\n" + " python -m x2py path/to/file.f90 --parse --json --out report.json\n" + " Write one JSON file next to each source:\n" + " python -m x2py path/to/src_dir --language fortran --parse --out\n" + " Show wrap-readiness only:\n" + " python -m x2py path/to/file.f90 --wrap-readiness\n" + " Print semantic IR JSON:\n" + " python -m x2py path/to/file.f90 --semantics\n" + " Print generated Python stub text:\n" + " python -m x2py path/to/file.f90 --pyi\n" + " Write generated Python stub text:\n" + " python -m x2py path/to/file.f90 --pyi --out module.pyi\n" + " Print semantic IR with readiness attached:\n" + " python -m x2py path/to/file.f90 --semantics --wrap-readiness\n" + " Check edited .pyi semantic readiness:\n" + " python -m x2py path/to/module.pyi --wrap-readiness\n" + " Print semantic readiness JSON:\n" + " python -m x2py path/to/module.pyi --wrap-readiness --json\n" + "\nOptional:\n" + " Install 'rich' for colored terminal syntax highlighting:\n" + " pip install rich" + ), + }, + ) + assert captured["arguments"] == [ + (("paths",), {"nargs": "+", "help": "Source file(s), .pyi file(s), or directory path(s)"}), + ( + ("--language",), + { + "choices": ("fortran", "c"), + "default": None, + "help": ( + "Frontend language. Omission is allowed for recognizable Fortran files and .pyi readiness input; " + "C files, directories, and unknown-suffix source inputs require this flag." + ), + }, + ), + (("--parse",), {"action": "store_true", "help": "Run and output parser stage report"}), + ( + ("--preprocessor-adapter",), + { + "choices": ("auto", "gcc-compatible-c", "gnu-fortran", "command-template"), + "default": "auto", + "help": "Compiler adapter family. Use command-template for unsupported compiler families.", + }, + ), + ( + ("--compiler",), + { + "help": ( + "Exact compiler/preprocessor executable, e.g. gcc-13, " + "clang-18, /usr/bin/gfortran-12, or /opt/intel/oneapi/compiler/latest/bin/ifx." + ) + }, + ), + ( + ("--compile-commands",), + { + "metavar": "PATH", + "help": "compile_commands.json database used for compiler preprocessing.", + }, + ), + ( + ("--preprocess-template",), + { + "metavar": "TEMPLATE", + "help": ( + "Custom preprocessing command template. Supported placeholders include {source}, " + "{include_dirs}, {defines}, {undefs}, {standard}, and {compiler_args}." + ), + }, + ), + ( + ("-I", "--include-dir"), + { + "dest": "include_dirs", + "action": "append", + "metavar": "DIR", + "help": "Include directory passed as -IDIR during compiler preprocessing.", + }, + ), + ( + ("-D", "--define"), + { + "dest": "defines", + "action": "append", + "metavar": "NAME[=VALUE]", + "help": "Define a preprocessing macro. NAME means NAME=1; NAME=VALUE preserves VALUE.", + }, + ), + ( + ("-U", "--undef"), + { + "dest": "undefs", + "action": "append", + "metavar": "NAME", + "help": "Undefine a preprocessing macro.", + }, + ), + ( + ("--std",), + { + "metavar": "STANDARD", + "help": "Language standard passed to compiler mode, e.g. c11, c23, f2008, or f2018.", + }, + ), + ( + ("--compiler-arg",), + { + "dest": "compiler_args", + "action": "append", + "metavar": "ARG", + "help": "Raw compiler preprocessing argument. Use --compiler-arg=-target for values starting with '-'.", + }, + ), + ( + ("--include-exposure",), + { + "choices": ("reachable-project", "roots-only"), + "default": "reachable-project", + "help": "Public wrapper exposure policy for reachable included files.", + }, + ), + ( + ("--public-include",), + { + "dest": "public_includes", + "action": "append", + "metavar": "PATH_OR_PATTERN", + "help": "Force a matched included file to be public in wrapper output.", + }, + ), + ( + ("--private-include",), + { + "dest": "private_includes", + "action": "append", + "metavar": "PATH_OR_PATTERN", + "help": "Force a matched included file to be private in wrapper output.", + }, + ), + ( + ("--show-vars",), + { + "action": "store_true", + "help": "Include module, submodule, program, and block-data variables in the human-readable parse report.", + }, + ), + ( + ("--print-limit",), + { + "type": int, + "metavar": "N", + "help": "Show at most N items per repeated section in the human-readable parse report.", + }, + ), + (("--vars-limit",), {"type": int, "metavar": "N", "help": x2py_cli.argparse.SUPPRESS}), + ( + ("--wrap-readiness",), + { + "action": "store_true", + "help": "Convert Fortran, C, or .pyi input to semantic IR and show wrapper readiness", + }, + ), + ( + ("--semantics",), + {"action": "store_true", "help": "Generate semantic IR models from parsed source modules"}, + ), + (("--pyi",), {"action": "store_true", "help": "Generate semantic Python .pyi content"}), + (("--json",), {"action": "store_true", "help": "Print JSON to stdout"}), + ( + ("--out",), + { + "nargs": "?", + "const": "", + "type": str, + "help": "Write stage output to file (optional explicit output filename)", + }, + ), + (("--no-color",), {"action": "store_true", "help": "Disable ANSI color in parse diagnostics"}), + ( + ("--debug", "--debug-traceback"), + { + "dest": "debug", + "action": "store_true", + "help": "Re-raise parser errors so Python prints a traceback for parser debugging", + }, + ), + ] + + def test_cli_requires_explicit_language_for_directory_and_unknown_suffix(tmp_path: Path): source = tmp_path / "solver.source" source.write_text("subroutine solve()\nend subroutine solve\n", encoding="utf-8") @@ -900,7 +2017,10 @@ def test_fortran_parser_cli_formatting_branches(): ) assert "Derived types: 1" in report assert "- type particle (fields=0, methods=0)" in report - assert fortran_parser_cli._format_var_type({"base_type": "derived", "kind": "particle", "rank": 0}) == "type(particle)[0]" + assert ( + fortran_parser_cli._format_var_type({"base_type": "derived", "kind": "particle", "rank": 0}) + == "type(particle)[0]" + ) assert fortran_parser_cli._format_var_type({"base_type": "real", "kind": "4", "rank": 2}) == "real(4)[2]" @@ -1019,6 +2139,11 @@ class Node: name: str parent: object = None + @dataclass + class ParentFirstNode: + parent: object + name: str + monkeypatch.setenv("X2PY_TEST_FLAG", "ON") assert x2py_cli._env_flag("X2PY_TEST_FLAG") is True monkeypatch.delenv("X2PY_TEST_FLAG") @@ -1030,6 +2155,8 @@ class Node: monkeypatch.delenv("NO_COLOR") assert x2py_cli._to_dict_no_parent(Node("child", parent=Node("root"))) == {"name": "child"} + assert x2py_cli._to_dict_no_parent(ParentFirstNode(parent=Node("root"), name="child")) == {"name": "child"} + assert x2py_cli._to_dict_no_parent({"node": Node("child", parent=Node("root"))}) == {"node": {"name": "child"}} source = tmp_path / "mini.f90" source.write_text("subroutine work(n)\n integer, intent(in) :: n\nend subroutine work\n", encoding="utf-8") @@ -1063,7 +2190,7 @@ def __init__(self, **options): self.options = options def print(self, syntax): - calls.append((syntax.code, syntax.lexer, self.options)) + calls.append((syntax.code, syntax.lexer, syntax.options, self.options)) rich_module = types.ModuleType("rich") console_module = types.ModuleType("rich.console") @@ -1076,7 +2203,19 @@ def print(self, syntax): monkeypatch.setattr(sys.stdout, "isatty", lambda: True) x2py_cli.print_pyi_output("def f() -> None: ...") - assert calls == [("def f() -> None: ...", "python", {"force_terminal": True, "color_system": "auto"})] + assert calls == [ + ( + "def f() -> None: ...", + "python", + { + "theme": "ansi_dark", + "background_color": "default", + "line_numbers": False, + "word_wrap": False, + }, + {"force_terminal": True, "color_system": "auto"}, + ) + ] assert capsys.readouterr().out == "" class RaisingConsole(FakeConsole): @@ -1203,6 +2342,27 @@ def test_x2py_main_public_api_modes_from_inline_source(tmp_path: Path, monkeypat def test_x2py_readiness_formatting_and_compiler_without_requirements(): + assert ( + x2py_cli._format_semantic_blocker_item( + "unresolved_semantic_types", + {"owner": "module.api", "type": "external_t"}, + ) + == "module.api uses unresolved type external_t" + ) + assert ( + x2py_cli._format_semantic_blocker_item( + "unresolved_shape_symbols", + {"owner": "module.api", "expression": "n + 1", "symbol": "n"}, + ) + == "module.api shape 'n + 1' uses unresolved symbol n" + ) + assert ( + x2py_cli._format_semantic_blocker_item( + "missing_compile_time_values", + {"owner": "module.api", "symbol": "dp"}, + ) + == "module.api needs literal value for Final constant dp" + ) assert ( x2py_cli._format_semantic_blocker_item( "callback_signature_incomplete", @@ -1211,7 +2371,23 @@ def test_x2py_readiness_formatting_and_compiler_without_requirements(): == "handler needs Callable[[...], ...] metadata (arguments, return type)" ) assert x2py_cli._format_semantic_blocker_item("c_unknown_type", {"owner": "api", "type": "widget"}) == "api: widget" - assert x2py_cli._format_semantic_blocker_item("c_parser_status", {"owner": "api"}) == "{'owner': 'api'}" + assert x2py_cli._format_semantic_blocker_item("c_unknown_type", {"type": "widget"}) == ": widget" + assert x2py_cli._format_semantic_blocker_item("c_macro_value", {"owner": "api", "source": "SIZE"}) == "api: SIZE" + assert ( + x2py_cli._format_semantic_blocker_item("c_function_pointer", {"owner": "api", "function": "callback"}) + == "api: callback" + ) + assert ( + x2py_cli._format_semantic_blocker_item("c_parameter_type", {"owner": "api", "parameter": "arg"}) == "api: arg" + ) + assert x2py_cli._format_semantic_blocker_item("c_unresolved_type", {"owner": "api", "type": "missing_t"}) == ( + "api: missing_t" + ) + assert ( + x2py_cli._format_semantic_blocker_item("no_public_api", {"owner": "module", "needs": ["function", "class"]}) + == "module needs function, class" + ) + assert x2py_cli._format_semantic_blocker_item("unknown", {"value": 1}) == "{'value': 1}" semantic_payload = {"source": {"semantic_modules": []}} x2py_cli._attach_wrap_readiness(semantic_payload, {"other": {"wrap_readiness": {"wrappable": True}}}) @@ -1222,6 +2398,655 @@ def test_x2py_readiness_formatting_and_compiler_without_requirements(): assert x2py_cli._fortran_compile_time_values(parsed, config) is None +def test_x2py_fortran_readiness_helpers_attach_and_compile(monkeypatch): + ready = {"wrappable": True, "n_functions": 1} + payload = {"missing.f90": {}, "api.f90": {}} + x2py_cli._attach_wrap_readiness(payload, {"api.f90": {"wrap_readiness": ready}}) + assert payload == {"missing.f90": {}, "api.f90": {"wrap_readiness": ready}} + + x2py_cli._attach_wrap_readiness(None, {"api.f90": {"wrap_readiness": ready}}) + x2py_cli._attach_wrap_readiness({"api.f90": {}}, None) + + parsed = x2py_cli.FortranParser().visit_file( + "module api_mod\n type :: Widget_T\n end type Widget_T\nend module api_mod\n", + filename="api.f90", + ) + assert x2py_cli._fortran_wrapped_derived_types([parsed]) == {("api_mod", "widget_t")} + + calls = [] + requirements = {"api_mod": {"dp": "kind(1.0d0)"}} + values = {"api_mod.dp": 8} + + def collect_requirements(received): + assert received is parsed + calls.append(("collect", received)) + return requirements + + def evaluate_requirements(received_config, received_requirements): + assert received_config is compiler_config + assert received_requirements is requirements + calls.append(("evaluate", received_config, received_requirements)) + return values + + monkeypatch.setattr("semantics.fortran2ir.collect_semantic_compile_time_requirements", collect_requirements) + monkeypatch.setattr("x2py.fortran_type_probe.evaluate_fortran_type_requirements", evaluate_requirements) + + raw_config_with_compiler = x2py_cli.PreprocessingConfig(compiler="gfortran") + assert x2py_cli._fortran_compile_time_values(parsed, raw_config_with_compiler) is None + assert calls == [] + + compiler_config = x2py_cli.PreprocessingConfig(mode="compiler", compiler="gfortran") + assert x2py_cli._fortran_compile_time_values(parsed, compiler_config) == values + assert calls == [("collect", parsed), ("evaluate", compiler_config, requirements)] + + +def test_x2py_fortran_source_for_path_raw_uses_utf8_and_internal_recipe(): + class RawPath: + def read_text(self, *, encoding): + assert encoding is not None + assert encoding.lower() == "utf-8" + return "subroutine raw()\nend subroutine raw\n" + + class RawPreprocessing: + uses_compiler = False + + def fortran_internal_recipe(self, received): + assert received is path + return {"mode": "internal"} + + path = RawPath() + + assert x2py_cli._fortran_source_for_path(path, RawPreprocessing()) == ( + "subroutine raw()\nend subroutine raw\n", + {"mode": "internal"}, + ) + + +def test_x2py_parse_report_preserves_fortran_parser_and_recipe_contracts(monkeypatch): + path = Path("api.F90") + explicit_config = object() + default_config = object() + recipe = {"mode": "compiler"} + nodes = { + "signature": object(), + "type": object(), + "module": object(), + "submodule": object(), + "program": object(), + "block_data": object(), + } + labels = {node: {"node": label} for label, node in nodes.items()} + parsed = types.SimpleNamespace( + procedures=[nodes["signature"]], + derived_types=[nodes["type"]], + modules=[nodes["module"]], + submodules=[nodes["submodule"]], + programs=[nodes["program"]], + block_data_units=[nodes["block_data"]], + ) + calls = [] + + def make_config(): + calls.append(("config",)) + return default_config + + def expand(paths): + assert paths == ["api"] + calls.append(("expand", paths)) + return [path] + + def source(received_path, config): + assert received_path == path + assert config in {explicit_config, default_config} + calls.append(("source", received_path, config)) + if config is explicit_config: + return "explicit source", recipe + return "default source", None + + class Parser: + def visit_file(self, code, *, filename): + assert code in {"explicit source", "default source"} + assert filename == str(path) + calls.append(("visit", code, filename)) + return parsed + + def serialize(node): + assert node in labels + calls.append(("serialize", node)) + return labels[node] + + payload = { + "signatures": [labels[nodes["signature"]]], + "types": [labels[nodes["type"]]], + "modules": [labels[nodes["module"]]], + "submodules": [labels[nodes["submodule"]]], + "programs": [labels[nodes["program"]]], + "block_data": [labels[nodes["block_data"]]], + } + + monkeypatch.setattr(x2py_cli, "PreprocessingConfig", make_config) + monkeypatch.setattr(x2py_cli, "FortranParser", Parser) + monkeypatch.setattr(x2py_cli, "_expand_paths", expand) + monkeypatch.setattr(x2py_cli, "_fortran_source_for_path", source) + monkeypatch.setattr(x2py_cli, "_to_dict_no_parent", serialize) + + assert x2py_cli._parse_report(["api"], explicit_config) == {str(path): {**payload, "preprocessing_recipe": recipe}} + assert ("config",) not in calls + + calls.clear() + assert x2py_cli._parse_report(["api"]) == {str(path): payload} + assert calls[0] == ("config",) + + +def test_x2py_semantic_report_preserves_c_module_and_dependency_contracts(monkeypatch): + path = Path("api.h") + config = object() + project = object() + module = types.SimpleNamespace(name="api", origin=types.SimpleNamespace(native_name=str(path))) + stubs = { + "api": "def api() -> None: ...", + "shared": "class Shared:\n pass", + } + + def parse_project(paths, preprocessing): + assert paths == ["api"] + assert preprocessing is config + return project + + def convert(received): + assert received is project + return [module] + + def expand(paths): + assert paths == ["api"] + return [path] + + def emit(modules, *, available_modules): + assert modules == [module] + assert available_modules == [module] + return stubs + + def serialize(received): + assert received is module + return {"name": "api"} + + monkeypatch.setattr(x2py_cli, "_parse_c_project", parse_project) + monkeypatch.setattr(x2py_cli, "c_project_to_semantic_modules", convert) + monkeypatch.setattr(x2py_cli, "expand_c_paths", expand) + monkeypatch.setattr("semantics.pyi_printer.emit_module_stubs", emit) + monkeypatch.setattr(x2py_cli, "asdict", serialize) + + assert x2py_cli._semantic_report(["api"], config, language="c") == { + str(path): { + "semantic_modules": [{"name": "api"}], + "pyi": "def api() -> None: ...", + "pyi_dependencies": {"shared": "class Shared:\n pass"}, + } + } + + +def test_x2py_semantic_report_preserves_fortran_conversion_and_stub_contracts(monkeypatch): + path = Path("api.f90") + config = object() + wrapped_types = {("types_mod", "widget")} + expected_compile_time_values = {"api.dp": 8} + native_left = object() + native_right = object() + left = types.SimpleNamespace(name="left") + right = types.SimpleNamespace(name="right") + parsed = types.SimpleNamespace(modules=[native_left, native_right]) + stubs = { + "left": "class Left:\n pass", + "right": "class Right:\n pass", + "shared": "class Shared:\n pass", + } + + class Parser: + def visit_file(self, code, *, filename): + assert code == "fortran source" + assert filename == str(path) + return parsed + + def expand(paths): + assert paths == ["api"] + return [path] + + def source(received_path, preprocessing): + assert received_path == path + assert preprocessing is config + return "fortran source", None + + def wrapped(parsed_files): + assert list(parsed_files) == [parsed] + return wrapped_types + + def compile_values(received, preprocessing): + assert received is parsed + assert preprocessing is config + return expected_compile_time_values + + def convert(module, *, compile_time_values: object, wrapped_derived_types): + assert compile_time_values is expected_compile_time_values + assert wrapped_derived_types is wrapped_types + return {native_left: left, native_right: right}[module] + + def emit(modules, *, available_modules): + assert modules == [left, right] + assert available_modules == [left, right] + return stubs + + def serialize(module): + assert module is left or module is right + return {"name": module.name} + + monkeypatch.setattr(x2py_cli, "FortranParser", Parser) + monkeypatch.setattr(x2py_cli, "_expand_paths", expand) + monkeypatch.setattr(x2py_cli, "_fortran_source_for_path", source) + monkeypatch.setattr(x2py_cli, "_fortran_wrapped_derived_types", wrapped) + monkeypatch.setattr(x2py_cli, "_fortran_compile_time_values", compile_values) + monkeypatch.setattr("semantics.fortran2ir.fortran_module_to_semantic_module", convert) + monkeypatch.setattr("semantics.pyi_printer.emit_module_stubs", emit) + monkeypatch.setattr(x2py_cli, "asdict", serialize) + + assert x2py_cli._semantic_report(["api"], config) == { + str(path): { + "semantic_modules": [{"name": "left"}, {"name": "right"}], + "pyi": "class Left:\n pass\n\nclass Right:\n pass", + "pyi_dependencies": {"shared": "class Shared:\n pass"}, + } + } + + +def test_x2py_wrap_readiness_report_preserves_c_and_pyi_contracts(monkeypatch): + path = Path("api.h") + stub = Path("api.pyi") + config = object() + project = object() + module = types.SimpleNamespace(name="api", origin=types.SimpleNamespace(native_name=str(path))) + readiness = {"wrappable": True, "source": str(path)} + pyi_report = {str(stub): {"source_kind": "pyi"}} + + def expand(paths): + assert paths == ["api"] + return [path, stub] + + def parse_project(paths, preprocessing): + assert paths == [str(path)] + assert preprocessing is config + return project + + def convert(received): + assert received is project + return [module] + + def serialize(received): + assert received is module + return {"name": "api"} + + def assess(modules, *, source): + assert modules == [module] + assert source == str(path) + return readiness + + def pyi(paths): + assert paths == ["api"] + return pyi_report + + monkeypatch.setattr(x2py_cli, "expand_c_paths", expand) + monkeypatch.setattr(x2py_cli, "_parse_c_project", parse_project) + monkeypatch.setattr(x2py_cli, "c_project_to_semantic_modules", convert) + monkeypatch.setattr(x2py_cli, "asdict", serialize) + monkeypatch.setattr(x2py_cli, "assess_semantic_wrap_readiness", assess) + monkeypatch.setattr(x2py_cli, "_pyi_readiness_report", pyi) + + assert x2py_cli._wrap_readiness_report(["api"], config, language="c") == { + str(path): { + "source_kind": "c", + "semantic_modules": [{"name": "api"}], + "wrap_readiness": readiness, + }, + **pyi_report, + } + + +def test_x2py_wrap_readiness_report_preserves_fortran_and_pyi_contracts(monkeypatch): + path = Path("api.f90") + stub = Path("api.pyi") + config = object() + parsed = object() + wrapped_types = {("types_mod", "widget")} + compile_time_values = {"api.dp": 8} + module = types.SimpleNamespace(name="api") + readiness = {"wrappable": True, "source": str(path)} + pyi_report = {str(stub): {"source_kind": "pyi"}} + + class Parser: + def visit_file(self, code, *, filename): + assert code == "fortran source" + assert filename == str(path) + return parsed + + def expand(paths): + assert paths == ["api"] + return [path, stub] + + def source(received_path, preprocessing): + assert received_path == path + assert preprocessing is config + return "fortran source", None + + def wrapped(parsed_files): + assert list(parsed_files) == [parsed] + return wrapped_types + + def compile_values(received, preprocessing): + assert received is parsed + assert preprocessing is config + return compile_time_values + + def convert(received, *, standalone_module_name, compile_time_values: object, wrapped_derived_types): + assert received is parsed + assert standalone_module_name == "api" + assert compile_time_values is expected_compile_time_values + assert wrapped_derived_types is wrapped_types + return [module] + + def serialize(received): + assert received is module + return {"name": "api"} + + def assess(modules, *, source): + assert modules == [module] + assert source == str(path) + return readiness + + def pyi(paths): + assert paths == ["api"] + return pyi_report + + expected_compile_time_values = compile_time_values + monkeypatch.setattr(x2py_cli, "FortranParser", Parser) + monkeypatch.setattr(x2py_cli, "_expand_readiness_paths", expand) + monkeypatch.setattr(x2py_cli, "_fortran_source_for_path", source) + monkeypatch.setattr(x2py_cli, "_fortran_wrapped_derived_types", wrapped) + monkeypatch.setattr(x2py_cli, "_fortran_compile_time_values", compile_values) + monkeypatch.setattr(x2py_cli, "fortran_file_to_semantic_modules", convert) + monkeypatch.setattr(x2py_cli, "asdict", serialize) + monkeypatch.setattr(x2py_cli, "assess_semantic_wrap_readiness", assess) + monkeypatch.setattr(x2py_cli, "_pyi_readiness_report", pyi) + + assert x2py_cli._wrap_readiness_report(["api"], config) == { + str(path): { + "source_kind": "fortran", + "semantic_modules": [{"name": "api"}], + "wrap_readiness": readiness, + }, + **pyi_report, + } + + +def test_x2py_parse_c_path_preserves_parser_and_preprocessing_arguments(tmp_path: Path, monkeypatch): + path = tmp_path / "api.h" + raw_parsed = object() + compiled_parsed = object() + + class RawParser: + def visit_file(self, source, *, filename, include_dirs, preprocessing): + assert source == path + assert filename == str(path) + assert include_dirs == ["include"] + assert preprocessing == "raw" + return raw_parsed + + raw_config = x2py_cli.PreprocessingConfig(include_dirs=["include"]) + assert x2py_cli._parse_c_path(RawParser(), path, raw_config) is raw_parsed + + class Recipe: + def to_dict(self): + return {"mode": "compiler"} + + def preprocess(received_path, *, language, config): + assert received_path == path + assert language == "c" + assert config is compiler_config + return "int add(int x);\n", Recipe() + + class CompilerParser: + def visit_file(self, source, *, filename, include_dirs, preprocessing): + assert source == "int add(int x);\n" + assert filename == str(path) + assert include_dirs == ["include"] + assert preprocessing == "compiler" + return compiled_parsed + + def attach_recipe(parsed, recipe): + assert parsed is compiled_parsed + assert recipe == {"mode": "compiler"} + + compiler_config = x2py_cli.PreprocessingConfig(mode="compiler", compiler="cc", include_dirs=["include"]) + monkeypatch.setattr(x2py_cli, "run_compiler_preprocessor_with_recipe", preprocess) + monkeypatch.setattr(x2py_cli, "attach_preprocessing_recipe", attach_recipe) + + assert x2py_cli._parse_c_path(CompilerParser(), path, compiler_config) is compiled_parsed + + +def test_x2py_readiness_path_helpers_include_fortran_and_pyi(tmp_path: Path): + source = tmp_path / "mini.f90" + stub = tmp_path / "api.pyi" + ignored = tmp_path / "notes.txt" + source.write_text("module mini\nend module mini\n", encoding="utf-8") + stub.write_text("def work() -> None: ...\n", encoding="utf-8") + ignored.write_text("ignore", encoding="utf-8") + + assert set(x2py_cli._collect_readiness_extensions(tmp_path)) == {source, stub} + assert set(x2py_cli._expand_readiness_paths([str(tmp_path), str(source), str(ignored)])) == { + source, + stub, + ignored, + } + + +def test_x2py_pyi_readiness_report_preserves_loading_and_assessment_contracts(tmp_path: Path, monkeypatch): + package = tmp_path / "package" + package.mkdir() + stub = tmp_path / "api.pyi" + ignored = tmp_path / "notes.txt" + module = object() + readiness = {"wrappable": True, "source": str(stub)} + calls = [] + + def expand(paths): + assert paths == [str(package), str(stub), str(ignored)] + calls.append(("expand", paths)) + return [stub] + + def load(paths): + assert paths == [str(package), str(stub)] + calls.append(("load", paths)) + return [module] + + def serialize(received): + assert received is module + calls.append(("asdict", received)) + return {"name": "api"} + + def assess(modules, *, source): + assert modules == [module] + assert source == str(stub) + calls.append(("assess", modules, source)) + return readiness + + monkeypatch.setattr(x2py_cli, "_expand_pyi_paths", expand) + monkeypatch.setattr(x2py_cli, "load_pyi_modules", load) + monkeypatch.setattr(x2py_cli, "asdict", serialize) + monkeypatch.setattr(x2py_cli, "assess_semantic_wrap_readiness", assess) + + assert x2py_cli._pyi_readiness_report([str(package), str(stub), str(ignored)]) == { + str(stub): { + "source_kind": "pyi", + "semantic_modules": [{"name": "api"}], + "wrap_readiness": readiness, + } + } + assert calls == [ + ("expand", [str(package), str(stub), str(ignored)]), + ("load", [str(package), str(stub)]), + ("asdict", module), + ("assess", [module], str(stub)), + ] + + calls.clear() + monkeypatch.setattr(x2py_cli, "_expand_pyi_paths", lambda _paths: []) + assert x2py_cli._pyi_readiness_report([str(ignored)]) == {} + assert calls == [] + + +def test_x2py_format_semantic_readiness_reports_wrappable_and_blocked_sources(): + report = { + "api.f90": { + "source_kind": "fortran", + "semantic_modules": [{"name": "api_mod"}], + "wrap_readiness": { + "wrappable": False, + "n_functions": 1, + "n_classes": 0, + "n_variables": 2, + "wrappability_blockers": [ + { + "code": "unresolved_semantic_types", + "message": "unresolved external type", + "items": [{"owner": "api_mod.solve", "type": "external_t"}], + }, + { + "code": "callback_signature_incomplete", + "message": "callback metadata incomplete", + "items": [{"owner": "api_mod.apply", "needs": ["arguments"]}], + }, + ], + }, + }, + "interface.pyi": { + "source_kind": "pyi", + "semantic_modules": [], + "wrap_readiness": { + "wrappable": True, + "n_functions": 0, + "n_classes": 1, + "n_variables": 0, + "wrappability_blockers": [], + }, + }, + "partial.f90": { + "semantic_modules": [{}], + }, + } + + text = x2py_cli._format_semantic_readiness(report) + assert ( + text + == """File: api.f90 + Source: fortran + Semantic modules: api_mod + Wrappable: no + Public functions: 1 + Public classes: 0 + Public variables: 2 + Why not wrappable: + - unresolved_semantic_types: unresolved external type + * api_mod.solve uses unresolved type external_t + - callback_signature_incomplete: callback metadata incomplete + * api_mod.apply needs Callable[[...], ...] metadata (arguments) + +File: interface.pyi + Source: pyi + Semantic modules: + Wrappable: yes + Public functions: 0 + Public classes: 1 + Public variables: 0 + No semantic readiness blockers detected. + +File: partial.f90 + Source: + Semantic modules: + Wrappable: no + Public functions: 0 + Public classes: 0 + Public variables: 0 + No semantic readiness blockers detected.""" + ) + + assert "File: api.f90" in text + assert " Source: fortran" in text + assert " Semantic modules: api_mod" in text + assert " Wrappable: no" in text + assert " Public functions: 1" in text + assert " Public classes: 0" in text + assert " Public variables: 2" in text + assert " Why not wrappable:" in text + assert " - unresolved_semantic_types: unresolved external type" in text + assert " * api_mod.solve uses unresolved type external_t" in text + assert " * api_mod.apply needs Callable[[...], ...] metadata (arguments)" in text + assert "File: interface.pyi" in text + assert " Source: pyi" in text + assert " Semantic modules: " in text + assert " Wrappable: yes" in text + assert " No semantic readiness blockers detected." in text + assert "File: partial.f90" in text + assert " Source: " in text + assert " Semantic modules: " in text + + +def test_x2py_format_semantic_readiness_defaults_and_multiple_modules(): + report = { + "missing.f90": { + "wrap_readiness": { + "wrappable": False, + "wrappability_blockers": [ + { + "message": "missing code", + "items": [{"value": 2}], + } + ], + }, + }, + "multi.f90": { + "source_kind": "fortran", + "semantic_modules": [{"name": "left"}, {"name": "right"}], + "wrap_readiness": { + "wrappable": True, + "n_functions": 2, + "n_classes": 1, + "n_variables": 3, + "wrappability_blockers": [], + }, + }, + } + + assert ( + x2py_cli._format_semantic_readiness(report) + == """File: missing.f90 + Source: + Semantic modules: + Wrappable: no + Public functions: 0 + Public classes: 0 + Public variables: 0 + Why not wrappable: + - None: missing code + * {'value': 2} + +File: multi.f90 + Source: fortran + Semantic modules: left, right + Wrappable: yes + Public functions: 2 + Public classes: 1 + Public variables: 3 + No semantic readiness blockers detected.""" + ) + + @pytest.mark.parametrize("macro_flag", ["-D", "-U"]) def test_x2py_main_rejects_invalid_macro_names(macro_flag: str, monkeypatch): monkeypatch.setattr(sys, "argv", ["x2py", str(TEST_FILE), "--parse", macro_flag, "=invalid"]) diff --git a/tests/parser/test_declaration_and_interface_edges.py b/tests/parser/test_declaration_and_interface_edges.py index 8dd533547..615c52695 100644 --- a/tests/parser/test_declaration_and_interface_edges.py +++ b/tests/parser/test_declaration_and_interface_edges.py @@ -1,11 +1,12 @@ -# -*- coding: utf-8 -*- """Declaration parsing, interfaces, and less common scope edges.""" import pytest -from fortran_parser.parser import FortranParser +from fortran_parser.models import FortranModule +from fortran_parser.parser import FortranParser, _ParserScope from x2py import FortranParseError, parse_fortran_file, parse_fortran_project + def test_legacy_star_kind_and_declarations_without_double_colon_are_resolved(): code = """ subroutine legacy_decl(x, z, p, c, f) @@ -31,6 +32,7 @@ def test_legacy_star_kind_and_declarations_without_double_colon_are_resolved(): assert args["f"].base_type == "procedure" assert args["f"].kind == "cb" + def test_bind_c_and_dummy_argument_attributes_from_inline_fortran(): code = """ subroutine c_step(n, x, y, work, cb) bind(c, name="c_step") @@ -52,6 +54,7 @@ def test_bind_c_and_dummy_argument_attributes_from_inline_fortran(): assert args["work"].allocatable is True assert args["cb"].base_type == "real" + def test_character_entity_lengths_and_assumed_bounds_are_preserved(): code = """ subroutine label(name, table) @@ -69,6 +72,7 @@ def test_character_entity_lengths_and_assumed_bounds_are_preserved(): assert args["table"].lbound == ["0"] assert args["table"].ubound == [None] + def test_project_duplicate_registries_raise_for_public_scopes(): with pytest.raises(FortranParseError, match="Duplicate symbol 'work' in project procedure scope"): parse_fortran_project( @@ -98,6 +102,7 @@ def test_project_duplicate_registries_raise_for_public_scopes(): } ) + def test_module_scope_ignores_non_variable_spec_lines(): code = """ module spec_mod @@ -118,6 +123,7 @@ def test_module_scope_ignores_non_variable_spec_lines(): assert module.default_visibility == "private" assert [var.name for var in module.variables] == ["kept"] + def test_module_declarations_without_double_colon_are_parsed_not_dropped(): code = """ module legacy_module_decls @@ -133,6 +139,7 @@ def test_module_declarations_without_double_colon_are_parsed_not_dropped(): assert variables["values"].base_type == "real" assert variables["values"].shape == ["2"] + def test_use_rename_and_intrinsic_forms_are_recorded(): code = """ module use_forms @@ -152,6 +159,7 @@ def test_use_rename_and_intrinsic_forms_are_recorded(): ("c_double", None), ] + def test_unknown_no_colon_declarations_raise_in_metadata_scopes(): module_code = """ module bad_mod @@ -171,6 +179,7 @@ def test_unknown_no_colon_declarations_raise_in_metadata_scopes(): with pytest.raises(FortranParseError, match="Unknown or unsupported datatype declaration in type"): parse_fortran_file(type_code, filename="bad_type.f90") + def test_declaration_and_execution_edge_branches_from_inline_fortran(): code = """ subroutine declaration_edges(i, x, y) @@ -190,6 +199,7 @@ def test_declaration_and_execution_edge_branches_from_inline_fortran(): assert args["x"].base_type == "real" assert args["y"].base_type == "real" + def test_nested_interface_dummy_procedure_and_generic_module_procedure_interface(): code = """ module callback_mod @@ -217,6 +227,7 @@ def test_nested_interface_dummy_procedure_and_generic_module_procedure_interface assert procedures["caller"].arguments[0].base_type == "procedure" assert parsed.modules[0].interfaces[0].name == "apply" + def test_cross_file_kind_resolution_for_arguments_results_and_local_parameters(): project = parse_fortran_project( { @@ -250,6 +261,7 @@ def test_cross_file_kind_resolution_for_arguments_results_and_local_parameters() assert result_proc.result.kind == "8" assert local_proc.arguments[0].shape == ["1:4"] + def test_local_kind_parameter_chain_resolves_to_final_integer_kind(): parsed = parse_fortran_file( """ @@ -269,33 +281,6 @@ def test_local_kind_parameter_chain_resolves_to_final_integer_kind(): assert args["x"].kind == "8" assert args["y"].kind == "16" -def test_preprocessor_without_macro_selection_keeps_distinct_conditional_procedures(): - code = """ -#ifdef USE_A -subroutine from_ifdef() -end subroutine from_ifdef -#elif USE_B -subroutine from_elif() -end subroutine from_elif -#else -subroutine from_else() -end subroutine from_else -#endif - -#ifndef USE_C -subroutine from_ifndef() -end subroutine from_ifndef -#endif -""" - - parsed = parse_fortran_file(code) - - assert [proc.name for proc in parsed.procedures] == [ - "from_ifdef", - "from_elif", - "from_else", - "from_ifndef", - ] def test_local_compile_time_arithmetic_is_folded_for_shapes_and_parameters(): code = """ @@ -324,6 +309,7 @@ def test_local_compile_time_arithmetic_is_folded_for_shapes_and_parameters(): ] assert sig.variables["one"].value == "1" + def test_type_contains_accepts_bindings_and_rejects_other_lines(): valid_code = """ module type_contains_valid_mod @@ -350,6 +336,55 @@ def test_type_contains_accepts_bindings_and_rejects_other_lines(): with pytest.raises(FortranParseError, match="Unsupported or malformed type-bound declaration"): parse_fortran_file(code, filename="type_contains_bad.f90") + +def test_contains_alternative_line_validation_accepts_spec_lines_without_mutating_scope(): + parser = FortranParser() + module = FortranModule("alternative_mod") + scope = _ParserScope(kind="module", name=module.name, model=module, module_owner=module.name) + + assert parser._helper_is_valid_contains_alternative_line(scope, "integer :: fallback") is True + assert parser._helper_is_valid_contains_alternative_line(scope, "call fallback()") is False + assert parser._helper_is_valid_contains_alternative_line(scope, "@@@") is False + assert module.variables == [] + + +def test_valid_enum_subunit_accepts_optional_separator_and_multiple_enumerators(): + parsed = parse_fortran_file( + """ +module enum_valid_mod + enum, bind(c) + enumerator first + enumerator :: second = 2, third = selected_int_kind(4) + end enum +end module enum_valid_mod +""", + filename="valid_enum.f90", + ) + + assert parsed.modules[0].name == "enum_valid_mod" + + +@pytest.mark.parametrize( + "invalid_line", + [ + "enumerator :: valid = 1, 2invalid", + "integer :: invalid", + "interface invalid", + ], +) +def test_enum_subunit_rejects_malformed_lines_and_nested_units(invalid_line): + code = f""" +module enum_invalid_mod + enum, bind(c) + {invalid_line} + end enum +end module enum_invalid_mod +""" + + with pytest.raises(FortranParseError, match="Invalid Fortran syntax"): + parse_fortran_file(code, filename="invalid_enum.f90") + + def test_malformed_type_bound_declaration_raises(): code = """ module bad_binding_mod @@ -363,6 +398,7 @@ def test_malformed_type_bound_declaration_raises(): with pytest.raises(FortranParseError, match="Unsupported or malformed type-bound declaration"): parse_fortran_file(code, filename="bad_binding.f90") + def test_use_statement_empty_only_items_are_ignored(): code = """ module use_empty_items_mod @@ -375,6 +411,7 @@ def test_use_statement_empty_only_items_are_ignored(): assert [item.local_name for item in module.uses["constants_mod"]] == ["rk", "ik"] + def test_type_field_spec_variants_and_empty_entities_from_public_source(): code = """ module type_field_edges_mod @@ -390,6 +427,7 @@ def test_type_field_spec_variants_and_empty_entities_from_public_source(): assert [field.name for field in dtype.fields] == ["first", "second"] + @pytest.mark.parametrize("invalid_line", ["type :: nested_marker", "call invalid_in_type_spec()"]) def test_type_field_specification_rejects_invalid_nested_syntax(invalid_line): code = f""" @@ -403,6 +441,7 @@ def test_type_field_specification_rejects_invalid_nested_syntax(invalid_line): with pytest.raises(FortranParseError): parse_fortran_file(code, filename="type_field_invalid.f90") + def test_module_like_declaration_edges_from_program_and_module_sources(): module_code = """ module module_spec_edges_mod @@ -429,6 +468,7 @@ def test_module_like_declaration_edges_from_program_and_module_sources(): assert [var.name for var in module.variables] == ["first", "second"] assert [var.name for var in program.variables] == ["kept"] + def test_public_parse_paths_ignore_empty_declaration_entities(): parsed = parse_fortran_file( """ @@ -448,6 +488,7 @@ def test_public_parse_paths_ignore_empty_declaration_entities(): assert [var.name for var in module.variables] == ["kept", "also_kept"] assert [field.name for field in module.derived_types[0].fields] == ["x", "y"] + def test_nested_interface_procedure_without_matching_dummy_stays_publicly_parseable(): sig = parse_fortran_file( """ diff --git a/tests/parser/test_error_handling.py b/tests/parser/test_error_handling.py index 452449ad8..685c6f757 100644 --- a/tests/parser/test_error_handling.py +++ b/tests/parser/test_error_handling.py @@ -1,15 +1,13 @@ -# -*- coding: utf-8 -*- import pytest from x2py import FortranParseError, parse_fortran_file - - # --------------------------------------------------------------------------- # FortranParseError attributes # --------------------------------------------------------------------------- + def test_parse_error_carries_filename(): code = """ subroutine bad(x) @@ -61,8 +59,6 @@ def test_parse_error_without_filename_has_no_location_prefix(): assert "Unknown or unsupported datatype" in msg - - def test_parse_error_formats_compiler_style_diagnostic(): code = """ subroutine bad(x) @@ -129,6 +125,7 @@ def test_parse_error_is_subclass_of_value_error(): # Duplicate declaration errors # --------------------------------------------------------------------------- + def test_duplicate_declaration_raises_parse_error(): code = """ subroutine dup(x) @@ -177,6 +174,7 @@ def test_duplicate_initialized_declaration_raises_parse_error(): # Duplicate procedure name errors # --------------------------------------------------------------------------- + def test_duplicate_procedure_name_global_scope_raises_parse_error(): code = """ subroutine work(n) @@ -230,78 +228,6 @@ def test_contained_procedures_with_same_name_in_different_hosts_are_allowed(): assert [sig.name.lower() for sig in parsed.modules[0].procedures] == ["host_a", "host_b"] -def test_duplicate_procedure_name_in_mutually_exclusive_macro_branches_allowed(): - code = """ -module m -#ifdef USE_MPI -contains - subroutine work(n) - integer, intent(in) :: n - end subroutine work -#else -contains - function work(n) result(out) - integer, intent(in) :: n - integer :: out - end function work -#endif -end module m -""" - parsed = parse_fortran_file(code, filename="macro_alt_work.f90") - procedures = parsed.modules[0].procedures - assert len(procedures) == 2 - assert all(sig.name.lower() == "work" for sig in procedures) - - -def test_ifdef_macro_branch_is_not_selected_by_parser(): - code = """ -module m -#ifdef USE_MPI -contains - subroutine work(n) - integer, intent(in) :: n - end subroutine work -#else -contains - function work(n) result(out) - integer, intent(in) :: n - integer :: out - end function work -#endif -end module m -""" - parsed = parse_fortran_file(code, filename="macro_alt_work.f90") - procedures = parsed.modules[0].procedures - assert len(procedures) == 2 - assert {proc.kind for proc in procedures} == {"subroutine", "function"} - - -def test_if_defined_macro_expression_is_not_evaluated_by_parser(): - code = """ -module m -#if defined(USE_MPI) && !defined(USE_SERIAL) -contains - subroutine work(n) - integer, intent(in) :: n - end subroutine work -#else -contains - function work(n) result(out) - integer, intent(in) :: n - integer :: out - end function work -#endif -end module m -""" - parsed = parse_fortran_file( - code, - filename="macro_if_expr.f90", - ) - procedures = parsed.modules[0].procedures - assert len(procedures) == 2 - assert {proc.kind for proc in procedures} == {"subroutine", "function"} - - def test_duplicate_procedure_name_error_carries_location(): code = """ subroutine work(n) @@ -323,6 +249,7 @@ def test_duplicate_procedure_name_error_carries_location(): # Star-kind declarations # --------------------------------------------------------------------------- + def test_star_kind_in_modern_source_is_parsed(): code = """ subroutine bad(x) @@ -362,6 +289,7 @@ def test_star_kind_in_module_variable_is_parsed(): # Unknown/unsupported type declaration errors # --------------------------------------------------------------------------- + def test_unknown_type_in_subroutine_raises_parse_error(): code = """ subroutine bad(x) @@ -412,6 +340,7 @@ def test_unknown_type_in_interface_raises_parse_error(): # Module variable type validation # --------------------------------------------------------------------------- + def test_module_variable_with_unknown_type_raises_parse_error(): code = """ module m @@ -441,6 +370,7 @@ def test_module_variable_parsed_correctly_no_error(): # Derived type field type validation # --------------------------------------------------------------------------- + def test_derived_type_fields_have_known_types(): code = """ module m @@ -460,6 +390,7 @@ def test_derived_type_fields_have_known_types(): # Parameter symbol errors # --------------------------------------------------------------------------- + def test_parameter_without_type_in_implicit_none_scope_raises_parse_error(): code = """ subroutine cst(a) @@ -487,6 +418,7 @@ def test_duplicate_parameter_declaration_raises_parse_error(): # Mixed-era source forms # --------------------------------------------------------------------------- + def test_f77_source_with_module_keyword_is_parsed(): code = """ module bad_module @@ -510,6 +442,7 @@ def test_f77_source_file_metadata_is_preserved(): # Function result type errors # --------------------------------------------------------------------------- + def test_function_with_implicit_none_and_missing_result_type_raises(): code = """ function f(x) result(res) @@ -517,7 +450,7 @@ def test_function_with_implicit_none_and_missing_result_type_raises(): real :: x end function f """ - with pytest.raises(FortranParseError, match="has no type declaration|Unknown datatype for function result"): + with pytest.raises(FortranParseError, match=r"has no type declaration|Unknown datatype for function result"): parse_fortran_file(code, filename="bad.f90") @@ -525,6 +458,7 @@ def test_function_with_implicit_none_and_missing_result_type_raises(): # Error location accuracy # --------------------------------------------------------------------------- + def test_error_reports_correct_line_number(): code = "subroutine foo(x)\n integer :: x\n weirdtype :: y\nend subroutine foo\n" with pytest.raises(FortranParseError) as exc_info: @@ -545,6 +479,7 @@ def test_error_reports_source_line_content(): # Duplicate argument name errors # --------------------------------------------------------------------------- + def test_duplicate_argument_name_in_subroutine_raises_parse_error(): code = """ subroutine dup(x, y, x) @@ -572,6 +507,7 @@ def test_duplicate_argument_name_in_function_raises_parse_error(): # Implicit none: undeclared arguments # --------------------------------------------------------------------------- + def test_implicit_none_undeclared_arg_raises_parse_error(): code = """ subroutine foo(x, y) @@ -603,7 +539,7 @@ def test_implicit_none_undeclared_function_result_raises_parse_error(): integer, intent(in) :: x end function f """ - with pytest.raises(FortranParseError, match="has no type declaration|Unknown datatype for function result"): + with pytest.raises(FortranParseError, match=r"has no type declaration|Unknown datatype for function result"): parse_fortran_file(code, filename="implicit_none_func.f90") @@ -611,6 +547,7 @@ def test_implicit_none_undeclared_function_result_raises_parse_error(): # Function result validation # --------------------------------------------------------------------------- + def test_function_result_shadowing_arg_name_raises_parse_error(): code = """ function f(res) result(res) @@ -640,6 +577,7 @@ def test_function_with_explicit_result_clause_no_error(): # Derived type duplicate field names # --------------------------------------------------------------------------- + def test_duplicate_field_in_derived_type_raises_parse_error(): code = """ module m @@ -672,6 +610,7 @@ def test_derived_type_unique_fields_no_error(): # Module duplicate variable names # --------------------------------------------------------------------------- + def test_duplicate_variable_in_module_raises_parse_error(): code = """ module m @@ -702,7 +641,7 @@ def test_duplicate_variable_in_program_raises_parse_error(): real n end program main """ - with pytest.raises(FortranParseError, match="Duplicate variable.*program"): + with pytest.raises(FortranParseError, match=r"Duplicate variable.*program"): parse_fortran_file(code, filename="dup_program_var.f90") @@ -713,7 +652,7 @@ def test_duplicate_variable_in_block_data_raises_parse_error(): real n end """ - with pytest.raises(FortranParseError, match="Duplicate variable.*block data"): + with pytest.raises(FortranParseError, match=r"Duplicate variable.*block data"): parse_fortran_file(code, filename="dup_block_data_var.f") diff --git a/tests/parser/test_fortran_error_fixture_suite.py b/tests/parser/test_fortran_error_fixture_suite.py index 5c0a0d7c8..fb59312cf 100644 --- a/tests/parser/test_fortran_error_fixture_suite.py +++ b/tests/parser/test_fortran_error_fixture_suite.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import json import os from pathlib import Path @@ -7,9 +6,17 @@ from x2py import FortranParseError, parse_fortran_file -parse_fortran_procedures = lambda source, filename=None: parse_fortran_file(source, filename=filename).procedures -parse_fortran_types = lambda source, filename=None: parse_fortran_file(source, filename=filename).derived_types -parse_fortran_modules = lambda source, filename=None: parse_fortran_file(source, filename=filename).modules + +def parse_fortran_procedures(source, filename=None): + return parse_fortran_file(source, filename=filename).procedures + + +def parse_fortran_types(source, filename=None): + return parse_fortran_file(source, filename=filename).derived_types + + +def parse_fortran_modules(source, filename=None): + return parse_fortran_file(source, filename=filename).modules _TESTS_DIR = Path(__file__).resolve().parents[1] @@ -58,9 +65,7 @@ def _run_error_fixture(fixture: Path, *, filename_for_parser: str, expected_path parser_fn = _PARSER_MAP[parser_name] try: parser_fn(source, filename=filename_for_parser) - raise AssertionError( - f"Expected FortranParseError from {fixture.name} but no error was raised" - ) + raise AssertionError(f"Expected FortranParseError from {fixture.name} but no error was raised") except FortranParseError as exc: _dump_expected_error(expected_path, "FortranParseError", exc, parser_name) return @@ -80,8 +85,7 @@ def _run_error_fixture(fixture: Path, *, filename_for_parser: str, expected_path err_msg = str(exc_info.value) for fragment in message_contains: assert fragment in err_msg, ( - f"Expected fragment {fragment!r} not found in error message for {fixture.name}.\n" - f"Got: {err_msg!r}" + f"Expected fragment {fragment!r} not found in error message for {fixture.name}.\nGot: {err_msg!r}" ) diagnostic = exc_info.value.format_diagnostic(color=False) @@ -89,8 +93,7 @@ def _run_error_fixture(fixture: Path, *, filename_for_parser: str, expected_path if not fragment: continue assert fragment in diagnostic, ( - f"Expected diagnostic fragment {fragment!r} not found for {fixture.name}.\n" - f"Got: {diagnostic!r}" + f"Expected diagnostic fragment {fragment!r} not found for {fixture.name}.\nGot: {diagnostic!r}" ) diff --git a/tests/parser/test_fortran_fixture_suite.py b/tests/parser/test_fortran_fixture_suite.py index 000209a86..e458b4005 100644 --- a/tests/parser/test_fortran_fixture_suite.py +++ b/tests/parser/test_fortran_fixture_suite.py @@ -1,6 +1,6 @@ -# -*- coding: utf-8 -*- import json import os +import shutil from dataclasses import asdict from pathlib import Path @@ -18,6 +18,10 @@ def parse_fortran_modules(source, filename=None): _SOURCE_SUFFIXES = {".f", ".f90", ".f95", ".f03", ".f08", ".for", ".f77", ".ftn"} +def _requires_compiler_preprocessing(fixture: Path) -> bool: + return any(line.lstrip().startswith("#") for line in fixture.read_text(encoding="utf-8").splitlines()) + + def _has_direct_expected_json(fixture: Path) -> bool: return (_FIXTURES_DIR / fixture.relative_to(_TESTS_DIR)).with_suffix(".json").exists() @@ -31,36 +35,32 @@ def _source_json_relpaths(root: Path) -> set[Path]: def _fixture_json_relpaths(root: Path) -> set[Path]: - return { - path.relative_to(root) - for path in root.rglob("*.json") - if path.is_file() - } + return {path.relative_to(root) for path in root.rglob("*.json") if path.is_file()} _GOLDEN_FIXTURES = sorted( - f for f in (_TESTS_DIR / "general").glob("*") - if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES - and _has_direct_expected_json(f) + f + for f in (_TESTS_DIR / "general").glob("*") + if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES and _has_direct_expected_json(f) ) _BLAS_FIXTURES = sorted( - f - for f in (_TESTS_DIR / "blas").rglob("*") - if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES + f for f in (_TESTS_DIR / "blas").rglob("*") if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES ) _LAPACK_FIXTURES = sorted( - f - for f in (_TESTS_DIR / "lapack").rglob("*") - if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES + f for f in (_TESTS_DIR / "lapack").rglob("*") if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES ) _SCIFORTRAN_FIXTURES = sorted( f for f in (_TESTS_DIR / "scifortran").glob("*") - if f.is_file() - and f.suffix.lower() in _SOURCE_SUFFIXES - and _has_direct_expected_json(f) - ) - + if f.is_file() and f.suffix.lower() in _SOURCE_SUFFIXES and _has_direct_expected_json(f) +) +_CPP_FIXTURES = [ + fixture for fixture in [*_LAPACK_FIXTURES, *_SCIFORTRAN_FIXTURES] if _requires_compiler_preprocessing(fixture) +] +_DIRECT_LAPACK_FIXTURES = [fixture for fixture in _LAPACK_FIXTURES if not _requires_compiler_preprocessing(fixture)] +_DIRECT_SCIFORTRAN_FIXTURES = [ + fixture for fixture in _SCIFORTRAN_FIXTURES if not _requires_compiler_preprocessing(fixture) +] def _expected_json_for_fixture(fixture: Path) -> Path: @@ -68,8 +68,7 @@ def _expected_json_for_fixture(fixture: Path) -> Path: direct = (_FIXTURES_DIR / rel).with_suffix(".json") if direct.exists(): return direct - fallback = _FIXTURES_DIR / "general" / (fixture.stem + ".json") - return fallback + return _FIXTURES_DIR / "general" / (fixture.stem + ".json") def _parser_filename_for_fixture(fixture: Path) -> str: @@ -80,6 +79,8 @@ def _parser_filename_for_fixture(fixture: Path) -> str: return relpath.replace("scifortran/", "SciFortran/", 1) return fixture.name return relpath if "/" in relpath else fixture.name + + def _load_expected(expected_path: Path): with expected_path.open("r", encoding="utf-8") as f: return json.load(f) @@ -171,7 +172,7 @@ def test_fortran_lapack_parse_suite_has_fixtures(): assert _LAPACK_FIXTURES, "No LAPACK fixtures found in tests/data/fortran/lapack" -@pytest.mark.parametrize("fixture", _LAPACK_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) +@pytest.mark.parametrize("fixture", _DIRECT_LAPACK_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) def test_fortran_lapack_parse_suite(fixture): _run_fixture_comparison( fixture, @@ -184,10 +185,51 @@ def test_fortran_scifortran_parse_suite_has_fixtures(): assert _SCIFORTRAN_FIXTURES, "No scifortran fixtures found in tests/data/fortran/scifortran" -@pytest.mark.parametrize("fixture", _SCIFORTRAN_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) +@pytest.mark.parametrize("fixture", _DIRECT_SCIFORTRAN_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) def test_fortran_scifortran_parse_suite(fixture): _run_fixture_comparison( fixture, filename_for_parser=_parser_filename_for_fixture(fixture), expected_path=_expected_json_for_fixture(fixture), ) + + +@pytest.mark.parametrize("fixture", _CPP_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) +def test_fortran_cpp_corpus_fixtures_require_compiler_preprocessing(fixture): + from x2py import FortranParseError + + with pytest.raises(FortranParseError, match="require compiler preprocessing") as exc_info: + parse_fortran_file( + fixture.read_text(encoding="utf-8"), + filename=_parser_filename_for_fixture(fixture), + ) + + assert exc_info.value.code == "PARSE_PREPROCESSING_REQUIRED" + + +@pytest.mark.parametrize("fixture", _CPP_FIXTURES, ids=lambda f: str(f.relative_to(_TESTS_DIR))) +def test_fortran_cpp_corpus_fixtures_parse_after_compiler_preprocessing(fixture, tmp_path): + from x2py.preprocessing import PreprocessingConfig, preprocess_source + + compiler = shutil.which("gfortran") + if compiler is None: + pytest.skip("gfortran is not available") + (tmp_path / "arpackdef.h").write_text("", encoding="utf-8") + (tmp_path / "error_msg_arpack.h90").write_text("", encoding="utf-8") + (tmp_path / "info_msg_arpack.h90").write_text("", encoding="utf-8") + preprocessed = preprocess_source( + fixture, + language="fortran", + config=PreprocessingConfig( + mode="compiler", + compiler=compiler, + include_dirs=[str(fixture.parent), str(tmp_path)], + ), + ) + + parsed = parse_fortran_file( + preprocessed.source, + filename=_parser_filename_for_fixture(fixture), + ) + + assert parsed.modules or parsed.procedures diff --git a/tests/parser/test_fortran_json_sanity.py b/tests/parser/test_fortran_json_sanity.py index 38a3e9a65..45e7e968f 100644 --- a/tests/parser/test_fortran_json_sanity.py +++ b/tests/parser/test_fortran_json_sanity.py @@ -1,10 +1,7 @@ -# -*- coding: utf-8 -*- import json import re from pathlib import Path -import pytest - _FCODE_DIR = Path(__file__).parent / "fortran" / "fixtures" _ALLOWLIST_PATH = Path(__file__).parent / "fortran" / "json_sanity_allowlist.json" @@ -107,7 +104,7 @@ def _is_literal_json_parameter_value(value) -> bool: """Return True only for evaluated/literal parameter values in JSON output.""" if isinstance(value, bool): return True - if isinstance(value, (int, float)): + if isinstance(value, int | float): return True if value is None: return False @@ -210,7 +207,7 @@ def test_fortran_json_fixtures_have_sane_types(): payload = _load_fixture_payload(path) relpath = str(path.relative_to(_FCODE_DIR)) if relpath.startswith("general/"): - relpath = relpath[len("general/"): ] + relpath = relpath[len("general/") :] if relpath.startswith("scifortran/"): relpath = relpath.replace("scifortran/", "SciFortran/", 1) @@ -221,7 +218,9 @@ def test_fortran_json_fixtures_have_sane_types(): value = entry.get("value") symbolic_value = entry.get("symbolic_value") if value is None and symbolic_value in (None, ""): - invalid_parameter_value_entries.append((relpath, entry.get("name"), "missing value and symbolic_value")) + invalid_parameter_value_entries.append( + (relpath, entry.get("name"), "missing value and symbolic_value") + ) if value is not None and not _is_literal_json_parameter_value(value): invalid_parameter_value_entries.append((relpath, entry.get("name"), value)) @@ -238,7 +237,17 @@ def test_fortran_json_fixtures_have_sane_types(): invalid_rank_entries.append((relpath, "argument", sig.get("name"), arg_name, arg.get("rank"))) if not _is_valid_shape_info(arg): - invalid_shape_entries.append((relpath, "argument", sig.get("name"), arg_name, arg.get("rank"), arg.get("shape"), arg.get("dimensions"))) + invalid_shape_entries.append( + ( + relpath, + "argument", + sig.get("name"), + arg_name, + arg.get("rank"), + arg.get("shape"), + arg.get("dimensions"), + ) + ) if not _has_known_base_type(arg) and not _is_external_argument(arg): unknown_entries.append((relpath, "argument", sig.get("name"), arg.get("name"))) @@ -254,7 +263,17 @@ def test_fortran_json_fixtures_have_sane_types(): invalid_rank_entries.append((relpath, "variable", sig.get("name"), var_name, var.get("rank"))) if not _is_valid_shape_info(var): - invalid_shape_entries.append((relpath, "variable", sig.get("name"), var_name, var.get("rank"), var.get("shape"), var.get("dimensions"))) + invalid_shape_entries.append( + ( + relpath, + "variable", + sig.get("name"), + var_name, + var.get("rank"), + var.get("shape"), + var.get("dimensions"), + ) + ) if not _has_known_base_type(var): unknown_entries.append((relpath, "variable", sig.get("name"), var_name)) @@ -265,10 +284,22 @@ def test_fortran_json_fixtures_have_sane_types(): invalid_name_entries.append((relpath, "field", dtype.get("name"), field.get("name"))) if not _is_valid_rank(field): - invalid_rank_entries.append((relpath, "field", dtype.get("name"), field.get("name"), field.get("rank"))) + invalid_rank_entries.append( + (relpath, "field", dtype.get("name"), field.get("name"), field.get("rank")) + ) if not _is_valid_shape_info(field): - invalid_shape_entries.append((relpath, "field", dtype.get("name"), field.get("name"), field.get("rank"), field.get("shape"), field.get("dimensions"))) + invalid_shape_entries.append( + ( + relpath, + "field", + dtype.get("name"), + field.get("name"), + field.get("rank"), + field.get("shape"), + field.get("dimensions"), + ) + ) if not _has_known_base_type(field): unknown_entries.append((relpath, "field", dtype.get("name"), field.get("name"))) diff --git a/tests/parser/test_fortran_parser_regression_contracts.py b/tests/parser/test_fortran_parser_regression_contracts.py new file mode 100644 index 000000000..0cfd29f38 --- /dev/null +++ b/tests/parser/test_fortran_parser_regression_contracts.py @@ -0,0 +1,1310 @@ +"""Focused regression contracts for the Fortran parser.""" + +from __future__ import annotations + +from pathlib import Path + +import pytest + +from fortran_parser.models import FortranArgument, FortranDerivedType, FortranModule, FortranProcedureSignature +from fortran_parser.parser import ( + FortranParser, + _ParserScope, + _SourceUnit, + _UnitParts, + parse_fortran_project, +) +from x2py import FortranParseError, parse_fortran_file + + +def _lines(*values: str) -> list[tuple[str, int, str]]: + return [(value, lineno, value) for lineno, value in enumerate(values, start=1)] + + +def _unit(kind: str, name: str | None, *values: str) -> _SourceUnit: + lines = _lines(*values) + return _SourceUnit(kind=kind, name=name, lines=lines, start_line=1, end_line=len(lines)) + + +def test_unit_region_helpers_preserve_specification_execution_and_contains_boundaries(): + parser = FortranParser() + unit = _unit( + "procedure", + "work", + "subroutine work()", + "integer :: value", + "type :: local_state", + "end type local_state", + "value = 1", + "contains", + "subroutine inner()", + "end subroutine inner", + "end subroutine work", + ) + parts = _UnitParts( + header=unit.lines[0], + specification=[unit.lines[1]], + execution=[unit.lines[4]], + contains=[unit.lines[6], unit.lines[7]], + footer=unit.lines[-1], + ) + + assert parser._helper_direct_contains_line(unit, filename="regions.f90") == 6 + assert parser._helper_child_unit_region(unit, parts, _SourceUnit("derived_type", "unknown", [], None, None)) == ( + "specification" + ) + assert parser._helper_child_unit_region( + unit, parts, _unit("derived_type", "local_state", "type :: local_state") + ) == ("specification") + assert ( + parser._helper_child_unit_region( + unit, + parts, + _SourceUnit("interface", None, [], start_line=5, end_line=5), + ) + == "execution" + ) + assert ( + parser._helper_child_unit_region( + unit, + parts, + _SourceUnit("procedure", "inner", [], start_line=7, end_line=8), + ) + == "contains" + ) + + assert parser._helper_has_preferred_unit_end_ahead(unit.lines, 0, "procedure", "work") is True + assert parser._helper_has_preferred_unit_end_ahead(unit.lines, 0, "procedure", "missing") is False + assert parser._helper_has_preferred_unit_end_ahead(unit.lines[:-1], 0, "procedure", "work") is False + immediate_type = _lines("type :: immediate", "end type immediate") + assert parser._helper_has_preferred_unit_end_ahead(immediate_type, 0, "derived_type", "immediate") is True + assert parser._helper_has_unit_end_ahead(immediate_type, 0, "derived_type") is True + assert parser._helper_has_unit_end_ahead(unit.lines, 2, "derived_type") is True + assert parser._helper_has_unit_end_ahead(unit.lines, 6, "procedure") is True + assert parser._helper_has_unit_end_ahead(unit.lines[:-1], 0, "procedure") is True + + immediate_contains = _unit("module", "owner", "module owner", "contains", "end module owner") + assert parser._helper_direct_contains_line(immediate_contains, filename="regions.f90") == 2 + + +def test_source_preparation_rejects_raw_cpp_and_preserves_root_units_and_source_form(tmp_path: Path): + parser = FortranParser() + lines, root_scope, units = parser._helper_prepare_source_units( + """ +module owner_mod +end module owner_mod +subroutine global_step() +end subroutine global_step +""", + filename="prepare_contract.f90", + ) + + assert root_scope == _ParserScope(kind="file", name=None) + assert [(unit.kind, unit.name, unit.start_line, unit.end_line) for unit in units] == [ + ("module", "owner_mod", 2, 3), + ("procedure", "global_step", 4, 5), + ] + assert [line for line, _lineno, _source in lines if line.strip()] == [ + "module owner_mod", + "end module owner_mod", + "subroutine global_step()", + "end subroutine global_step", + ] + assert parser._source_form("fixed.f") == "f77" + assert parser._source_form("modern.f90") == "modern" + assert parser._source_form(None) == "unknown" + + source_path = tmp_path / "path_input.f90" + source_path.write_text("module from_path\nend module from_path\n", encoding="utf-8") + assert parser._looks_like_existing_source_path(source_path) is True + assert parser._looks_like_existing_source_path("module inline\nend module inline\n") is False + assert parser._looks_like_existing_source_path(object()) is False + + with pytest.raises(FortranParseError) as error: + parser._helper_prepare_source_units("#define VALUE 1\nmodule bad\nend module bad\n", filename="raw_cpp.f90") + + assert error.value.base_message == "Fortran CPP directives require compiler preprocessing before parsing." + assert error.value.filename == "raw_cpp.f90" + assert error.value.line_number == 1 + assert error.value.source_line == "#define VALUE 1" + assert error.value.code == "PARSE_PREPROCESSING_REQUIRED" + + +def test_unit_end_and_header_validation_preserve_public_diagnostics(): + parser = FortranParser() + + assert parser._helper_parse_unit_end("module", "end module owner_mod") == (True, "owner_mod") + assert parser._helper_parse_unit_end("block_data", "end") == (True, None) + assert parser._helper_parse_unit_end("procedure", "end function value") == (True, "value") + assert parser._helper_unit_end_matches("enum", "end enum") is True + assert parser._helper_unit_label("block_data") == "block data" + assert parser._parse_submodule_header("submodule (ancestor_mod:parent_mod) child_mod", "headers.f90").parent == ( + "parent_mod" + ) + assert parser._split_submodule_parent("ancestor_mod:parent_mod") == ("parent_mod", "ancestor_mod") + assert parser._split_submodule_parent("parent_mod") == ("parent_mod", None) + assert parser._parse_interface_header("abstract interface") == (True, None) + assert parser._parse_interface_header("interface callbacks") == (True, "callbacks") + + with pytest.raises(FortranParseError) as module_error: + parser._parse_module_header( + "module bad-name", + filename="headers.f90", + lineno=3, + source_line="module bad-name", + ) + assert module_error.value.base_message == "Unsupported or malformed module header: module bad-name" + assert module_error.value.filename == "headers.f90" + assert module_error.value.line_number == 3 + assert module_error.value.source_line == "module bad-name" + assert module_error.value.code == "PARSE_MALFORMED_HEADER" + + with pytest.raises(FortranParseError) as procedure_error: + parser._helper_validate_possible_unit_header( + "module procedure bad(x)", + filename="headers.f90", + lineno=4, + source_line="module procedure bad(x)", + ) + assert ( + procedure_error.value.base_message + == "Unsupported or malformed module procedure header: module procedure bad(x)" + ) + assert procedure_error.value.filename == "headers.f90" + assert procedure_error.value.line_number == 4 + assert procedure_error.value.source_line == "module procedure bad(x)" + assert procedure_error.value.code == "PARSE_MALFORMED_HEADER" + + +def test_unit_part_splitting_skips_nested_units_and_preserves_executable_boundary(): + parser = FortranParser() + unit = _unit( + "procedure", + "work", + "subroutine work()", + "integer :: counter", + "interface", + " subroutine callback()", + " end subroutine callback", + "end interface", + "counter = counter + 1", + "contains", + "subroutine inner()", + "end subroutine inner", + "end subroutine work", + ) + + parts = parser._helper_split_unit_parts(unit, parser._helper_unit_grammar("procedure"), filename="parts.f90") + + assert [line for line, _lineno, _source in parts.specification] == ["integer :: counter"] + assert [line for line, _lineno, _source in parts.execution] == ["counter = counter + 1"] + assert parts.contains == [] + assert parts.header == unit.lines[0] + assert parts.footer == unit.lines[-1] + + +def test_nonexecution_child_units_keep_specification_and_contains_children_only(): + parser = FortranParser() + unit = _unit( + "procedure", + "work", + "subroutine work()", + "type :: local_state", + "end type local_state", + "call setup()", + "interface", + " subroutine hidden()", + " end subroutine hidden", + "end interface", + "contains", + "subroutine inner()", + "end subroutine inner", + "end subroutine work", + ) + + children = parser._helper_nonexecution_child_units( + unit, + parent_scope=_ParserScope(kind="procedure", name="work"), + filename="children.f90", + ) + + assert [(child.kind, child.name, child.start_line, child.end_line) for child in children] == [ + ("derived_type", "local_state", 2, 3), + ("procedure", "inner", 10, 11), + ] + + +def test_sibling_unit_validation_ignores_unnamed_units_and_preserves_duplicate_diagnostics(): + parser = FortranParser() + parser._helper_validate_sibling_units( + [ + _unit("enum", None, "enum, bind(c)", "end enum"), + _unit("enum", None, "enum, bind(c)", "end enum"), + ], + parent_scope=_ParserScope(kind="module", name="owner_mod"), + filename="siblings.f90", + ) + + with pytest.raises(FortranParseError) as duplicate_module: + parser._helper_validate_sibling_units( + [ + _unit("module", "owner_mod", "module owner_mod", "end module owner_mod"), + _unit("module", "Owner_Mod", "module Owner_Mod", "end module Owner_Mod"), + ], + parent_scope=_ParserScope(kind="file", name=None), + filename="siblings.f90", + ) + + assert duplicate_module.value.base_message == "Duplicate module name 'Owner_Mod' in file scope." + assert duplicate_module.value.filename == "siblings.f90" + assert duplicate_module.value.line_number == 1 + assert duplicate_module.value.source_line == "module Owner_Mod" + assert duplicate_module.value.code == "PARSE_DUPLICATE_UNIT" + + with pytest.raises(FortranParseError) as duplicate_procedure: + parser._helper_validate_sibling_units( + [ + _unit("procedure", "step", "subroutine step()", "end subroutine step"), + _unit("procedure", "STEP", "subroutine STEP()", "end subroutine STEP"), + ], + parent_scope=_ParserScope(kind="module", name="owner_mod"), + filename="siblings.f90", + ) + + assert duplicate_procedure.value.base_message == "Duplicate procedure name 'STEP' in module 'owner_mod'." + assert duplicate_procedure.value.filename == "siblings.f90" + assert duplicate_procedure.value.line_number == 1 + assert duplicate_procedure.value.source_line == "subroutine STEP()" + assert duplicate_procedure.value.code == "PARSE_DUPLICATE_PROCEDURE" + + +def test_finalize_proc_resolves_signature_arguments_imports_and_uses_without_exposing_resolved_params(): + parser = FortranParser() + signature = FortranProcedureSignature( + "scale", + "subroutine", + arguments=[ + FortranArgument("count", base_type="integer"), + FortranArgument("values", base_type="real", kind="rk", shape=["count"]), + ], + ) + + finalized = parser._finalize_proc( + { + "signature": signature, + "symbols": {argument.name.lower(): argument for argument in signature.arguments}, + "uses": {"precision_mod": []}, + "local_params": {"rk": "8", "count": "4"}, + "imports": {"state_t", "callback"}, + "filename": "finalize_contract.f90", + } + ) + + assert finalized is not signature + assert [(argument.name, argument.base_type, argument.kind, argument.shape) for argument in finalized.arguments] == [ + ("count", "integer", "", []), + ("values", "real", "8", ["4"]), + ] + assert finalized.attributes == ["import(callback)", "import(state_t)"] + assert finalized.uses == {"precision_mod": []} + assert finalized.variables == {} + + +def test_finalize_proc_duplicate_argument_diagnostic_preserves_header_metadata(): + parser = FortranParser() + signature = FortranProcedureSignature( + "step", + "subroutine", + arguments=[FortranArgument("value"), FortranArgument("VALUE")], + ) + + with pytest.raises(FortranParseError) as error: + parser._finalize_proc( + { + "signature": signature, + "symbols": {}, + "uses": {}, + "filename": "finalize_contract.f90", + "header_lineno": 12, + "header_source_line": "subroutine step(value, VALUE)", + } + ) + + assert error.value.base_message == "Duplicate argument name 'VALUE' in procedure 'step'." + assert error.value.filename == "finalize_contract.f90" + assert error.value.line_number == 12 + assert error.value.source_line == "subroutine step(value, VALUE)" + assert error.value.code == "PARSE_DUPLICATE_ARGUMENT" + + +def test_compile_time_resolution_helpers_preserve_kind_shape_values_and_literal_policy(): + parser = FortranParser() + signature = FortranProcedureSignature( + "consume", + "subroutine", + module="api_mod", + arguments=[FortranArgument("values", base_type="real", kind="rk_alias", shape=["n + 1"])], + ) + signature.variables["local_n"] = FortranArgument( + "local_n", + base_type="integer", + value="n + 2", + symbolic_value="n + 2", + value_type="expression", + is_parameter=True, + ) + + parser._resolve_signature_kinds( + signature, + { + "api_mod": {"rk": "4 + 4", "rk_alias": "rk", "n": "3"}, + }, + ) + + assert signature.arguments[0].kind == "8" + assert signature.arguments[0].shape == ["4"] + assert signature.variables["local_n"].value == "5" + assert signature.variables["local_n"].symbolic_value == "n + 2" + + module = FortranModule("api_mod") + module.variables.append( + FortranArgument( + "values", + base_type="real", + kind="rk_alias", + shape=["0:n"], + value="n + 2", + symbolic_value="n + 2", + value_type="expression", + is_parameter=True, + ) + ) + parser._resolve_module_variable_kinds(module, {"api_mod": {"rk": "8", "rk_alias": "rk", "n": "3"}}) + + assert module.variables[0].kind == "8" + assert module.variables[0].shape == ["0:3"] + assert module.variables[0].lbound == ["0"] + assert module.variables[0].ubound == ["3"] + assert module.variables[0].value == "5" + + assert parser._resolve_kind_expression("len=n + 1", {"n": "3"}) == "len=4" + assert parser._resolve_symbol_reference("alias", {"alias": "target", "target": "8"}) == "8" + assert parser._resolve_module_parameter_values({"M": {"a": "4", "b": "a + 2"}}) == {"m": {"a": "4", "b": "6"}} + assert parser._collect_relevant_local_params( + FortranProcedureSignature( + "shape", + "subroutine", + arguments=[FortranArgument("values", kind="rk", shape=["n"])], + ), + {"rk": "base", "base": "4", "n": "m + 1", "m": "3", "unused": "10"}, + ) == {"rk": "base", "base": "4", "n": "m + 1", "m": "3"} + assert parser._extract_symbol_names("n + max(m, 2) .and. flag") == {"n", "max", "m", "flag"} + assert parser._normalize_parameter_value("2.0d+0") == "2" + assert parser._normalize_parameter_value("selected_real_kind(12)") is None + assert parser._is_literal_parameter_value("(/ 1, 2, .true. /)") is True + assert parser._safe_eval_int_expr("max(3, 7) + len_trim('abc ')") == 10 + assert parser._infer_implicit_base_type("index") == "integer" + assert parser._infer_implicit_base_type("alpha") == "real" + + +def test_declaration_push_preserves_module_variables_parameters_and_bounds(): + parser = FortranParser() + module = FortranModule("owner_mod") + scope = _ParserScope(kind="module", name=module.name, model=module, module_owner=module.name) + meta = parser._new_decl_meta("real", "rk") + meta.update({"parameter": True, "shape": ["0:n"], "rank": 1}) + + parser._helper_push_declaration_to_scope( + scope, + meta=meta, + right="weights = 1.0_rk", + role="module_variable", + filename="declarations.f90", + lineno=4, + source_line="real(kind=rk), parameter, dimension(0:n) :: weights = 1.0_rk", + ) + + assert [(var.name, var.base_type, var.kind, var.shape, var.lbound, var.ubound) for var in module.variables] == [ + ("weights", "real", "rk", ["0:n"], ["0"], ["n"]) + ] + assert module.variables[0].is_parameter is True + assert module.variables[0].value == "1" + assert module.variables[0].symbolic_value == "1.0_rk" + assert module.variables[0].value_type == "expression" + + +def test_declaration_push_preserves_type_field_metadata_and_duplicate_field_diagnostic(): + parser = FortranParser() + dtype = FortranDerivedType("state_t") + scope = _ParserScope(kind="derived_type", name=dtype.name, model=dtype) + meta = parser._new_decl_meta("integer", "i4") + meta.update({"pointer": True, "shape": [":"], "rank": 1}) + + parser._helper_push_declaration_to_scope( + scope, + meta=meta, + right="ids, IDs", + role="type_field", + filename="declarations.f90", + lineno=7, + source_line="integer(kind=i4), pointer, dimension(:) :: ids, IDs", + ) + + assert [(field.name, field.base_type, field.kind, field.pointer, field.shape) for field in dtype.fields] == [ + ("ids", "integer", "i4", True, [":"]), + ("IDs", "integer", "i4", True, [":"]), + ] + with pytest.raises(FortranParseError) as error: + parser._validate_derived_type_fields(dtype, filename="declarations.f90") + + assert error.value.base_message == "Duplicate field 'IDs' in derived type 'state_t'." + assert error.value.filename == "declarations.f90" + assert error.value.code == "PARSE_DUPLICATE_FIELD" + + +def test_procedure_declaration_push_updates_dummy_or_records_local_type_and_duplicate_metadata(): + parser = FortranParser() + signature = FortranProcedureSignature( + "apply", + "subroutine", + arguments=[FortranArgument("callback"), FortranArgument("value")], + ) + state = parser._new_procedure_scope_state( + signature, + symbols={argument.name.lower(): argument for argument in signature.arguments}, + ) + scope = _ParserScope(kind="procedure", name=signature.name, model=signature, state=state) + proc_meta = parser._new_decl_meta("procedure", "callback_iface") + proc_meta["external"] = True + + parser._helper_push_declaration_to_scope( + scope, + meta=proc_meta, + right="callback", + role="procedure_symbol", + filename="declarations.f90", + lineno=9, + source_line="procedure(callback_iface), external :: callback", + ) + local_meta = parser._new_decl_meta("real", "rk") + parser._helper_push_declaration_to_scope( + scope, + meta=local_meta, + right="scratch", + role="procedure_symbol", + filename="declarations.f90", + lineno=10, + source_line="real(kind=rk) :: scratch", + ) + + assert signature.arguments[0].base_type == "procedure" + assert signature.arguments[0].kind == "callback_iface" + assert state["external_symbols"] == {"callback"} + assert state["declared_local_types"] == {"scratch": {"base_type": "real", "kind": "rk"}} + + with pytest.raises(FortranParseError) as error: + parser._helper_push_declaration_to_scope( + scope, + meta=parser._new_decl_meta("integer", ""), + right="callback", + role="procedure_symbol", + filename="declarations.f90", + lineno=11, + source_line="integer :: callback", + ) + + assert error.value.base_message == "Duplicate declaration of symbol 'callback' in procedure 'apply'." + assert error.value.filename == "declarations.f90" + assert error.value.line_number == 11 + assert error.value.source_line == "integer :: callback" + assert error.value.code == "PARSE_DUPLICATE_DECLARATION" + + +def test_procedure_parameter_lines_preserve_local_parameter_state_and_duplicate_metadata(): + parser = FortranParser() + signature = FortranProcedureSignature("shape", "subroutine", arguments=[FortranArgument("values")]) + state = parser._new_procedure_scope_state( + signature, + symbols={"values": signature.arguments[0]}, + ) + + assert parser._handle_proc_parameter_line( + "integer, parameter :: n = 4, m = n + 2", + state, + filename="parameters.f90", + lineno=5, + source_line="integer, parameter :: n = 4, m = n + 2", + ) + assert state["local_params"] == {"n": "4", "m": "n + 2"} + assert state["legacy_local_params"] == set() + assert state["implicit_typed_symbols"] == {} + + with pytest.raises(FortranParseError) as error: + parser._handle_proc_parameter_line( + "integer, parameter :: n = 8", + state, + filename="parameters.f90", + lineno=6, + source_line="integer, parameter :: n = 8", + ) + + assert error.value.base_message == "Duplicate PARAMETER declaration of symbol 'n' in procedure 'shape'." + assert error.value.filename == "parameters.f90" + assert error.value.line_number == 6 + assert error.value.source_line == "integer, parameter :: n = 8" + assert error.value.code == "PARSE_DUPLICATE_PARAMETER" + + +def test_legacy_parameter_lines_respect_implicit_none_and_implicit_typing_contracts(): + parser = FortranParser() + strict_signature = FortranProcedureSignature("strict", "subroutine") + strict_state = parser._new_procedure_scope_state(strict_signature, symbols={}) + strict_state["implicit_none"] = True + + with pytest.raises(FortranParseError) as error: + parser._handle_proc_parameter_line( + "parameter (zero = 0.0e+0)", + strict_state, + filename="parameters.f90", + lineno=8, + source_line="parameter (zero = 0.0e+0)", + ) + + assert error.value.base_message == "Unknown datatype for PARAMETER symbol 'zero' in procedure 'strict'." + assert error.value.filename == "parameters.f90" + assert error.value.line_number == 8 + assert error.value.source_line == "parameter (zero = 0.0e+0)" + assert error.value.code == "PARSE_UNKNOWN_PARAMETER_TYPE" + + loose_signature = FortranProcedureSignature("loose", "subroutine") + loose_state = parser._new_procedure_scope_state(loose_signature, symbols={}) + assert parser._handle_proc_parameter_line( + "parameter (ival = 2, alpha = 1.0)", + loose_state, + filename="parameters.f90", + lineno=9, + source_line="parameter (ival = 2, alpha = 1.0)", + ) + assert loose_state["local_params"] == {"ival": "2", "alpha": "1.0"} + assert loose_state["implicit_typed_symbols"] == {"ival": "integer", "alpha": "real"} + assert loose_state["legacy_local_params"] == set() + + +def test_namespace_collection_preserves_case_insensitive_dependencies_and_exact_payload(tmp_path: Path, monkeypatch): + sources = { + "ancestor.f90": "module Ancestor_Mod\nend module Ancestor_Mod\n", + "parent.f90": "module Parent_Mod\n use Ancestor_Mod\n type :: Parent_State\n end type Parent_State\nend module Parent_Mod\n", + "helper.f90": "module Helper_Mod\nend module Helper_Mod\n", + "child.f90": ( + "submodule (Ancestor_Mod:Parent_Mod) Child_Mod\n" + " use Helper_Mod\n" + " type :: Child_State\n" + " end type Child_State\n" + "end submodule Child_Mod\n" + ), + "grandchild.f90": "submodule (Child_Mod) Grandchild_Mod\nend submodule Grandchild_Mod\n", + "units.f90": ( + "type :: File_State\n" + "end type File_State\n" + "program Driver\n" + " use Parent_Mod\n" + "end program Driver\n" + "block data Init_Data\n" + " integer :: seed\n" + "end block data Init_Data\n" + ), + } + for filename, source in sources.items(): + (tmp_path / filename).write_text(source, encoding="utf-8") + + encodings = [] + original_read_text = Path.read_text + + def read_text(path, *args, **kwargs): + encodings.append(kwargs.get("encoding")) + return original_read_text(path, *args, **kwargs) + + monkeypatch.setattr(Path, "read_text", read_text) + + namespace = FortranParser()._helper_collect_namespace(tmp_path) + + ancestor = str(tmp_path / "ancestor.f90") + parent = str(tmp_path / "parent.f90") + helper = str(tmp_path / "helper.f90") + child = str(tmp_path / "child.f90") + grandchild = str(tmp_path / "grandchild.f90") + units = str(tmp_path / "units.f90") + + assert encodings and set(encodings) == {"utf-8"} + assert namespace["module_to_file"] == { + "ancestor_mod": ancestor, + "helper_mod": helper, + "parent_mod": parent, + } + assert namespace["submodule_to_file"] == { + "child_mod": child, + "grandchild_mod": grandchild, + } + assert namespace["file_dependencies"] == { + ancestor: [], + child: [ancestor, helper, parent], + grandchild: [child], + helper: [], + parent: [ancestor], + units: [], + } + assert namespace["files"].index(ancestor) < namespace["files"].index(parent) + assert namespace["files"].index(parent) < namespace["files"].index(child) + assert namespace["files"].index(helper) < namespace["files"].index(child) + assert namespace["files"].index(child) < namespace["files"].index(grandchild) + assert {module.name for module in namespace["modules"]} == {"Ancestor_Mod", "Helper_Mod", "Parent_Mod"} + assert {submodule.name for submodule in namespace["submodules"]} == {"Child_Mod", "Grandchild_Mod"} + assert [program.name for program in namespace["programs"]] == ["Driver"] + assert [block.name for block in namespace["block_data"]] == ["Init_Data"] + assert {dtype.name for dtype in namespace["types"]} == {"Parent_State", "Child_State", "File_State"} + assert {module.name: module.filename for module in namespace["modules"]} == { + "Ancestor_Mod": ancestor, + "Helper_Mod": helper, + "Parent_Mod": parent, + } + assert {submodule.name: submodule.filename for submodule in namespace["submodules"]} == { + "Child_Mod": child, + "Grandchild_Mod": grandchild, + } + + +def test_project_registries_preserve_qualified_aliases_values_and_dependencies(): + project = parse_fortran_project( + { + "api.f90": """ +module api_mod + type :: state_t + integer :: id + end type state_t + interface callback + subroutine on_step(x) + integer, intent(in) :: x + end subroutine on_step + end interface callback +contains + subroutine step(x) + real, intent(in) :: x + end subroutine step +end module api_mod +""", + "child.f90": """ +submodule (api_mod) child_mod + type :: child_state_t + integer :: id + end type child_state_t + interface child_callback + subroutine child_step(x) + integer, intent(in) :: x + end subroutine child_step + end interface child_callback +contains + module procedure reset + end procedure reset +end submodule child_mod +""", + "units.f90": """ +type :: global_state_t + integer :: id +end type global_state_t +interface global_callback + subroutine global_step() + end subroutine global_step +end interface global_callback +program driver + use api_mod +end program driver +""", + } + ) + + module = project.modules["api_mod"] + submodule = project.submodules["child_mod"] + + assert set(project.modules) == {"api_mod"} + assert set(project.submodules) == {"child_mod"} + assert set(project.programs) == {"driver"} + assert project.dependencies == { + "api_mod": set(), + "child_mod": {"api_mod"}, + "driver": {"api_mod"}, + } + assert set(project.procedures) == {"api_mod.step", "step", "child_mod.reset", "reset"} + assert project.procedures["api_mod.step"] is project.procedures["step"] is module.procedures[0] + assert project.procedures["child_mod.reset"] is project.procedures["reset"] is submodule.procedures[0] + assert set(project.derived_types) == { + "api_mod.state_t", + "state_t", + "child_mod.child_state_t", + "child_state_t", + "global_state_t", + } + assert project.derived_types["api_mod.state_t"] is project.derived_types["state_t"] + assert project.derived_types["child_mod.child_state_t"] is project.derived_types["child_state_t"] + assert set(project.interfaces) == { + "api_mod.callback", + "callback", + "child_mod.child_callback", + "child_callback", + "global_callback", + } + assert project.interfaces["api_mod.callback"] is project.interfaces["callback"] + assert project.interfaces["child_mod.child_callback"] is project.interfaces["child_callback"] + + +def test_visit_file_preserves_top_level_models_but_limits_file_symbol_registry(): + parsed = FortranParser().visit_file( + """ +type :: file_state_t +end type file_state_t +interface file_callback + subroutine on_file() + end subroutine on_file +end interface file_callback +subroutine global_step() +end subroutine global_step +module api_mod +contains + subroutine module_step() + end subroutine module_step +end module api_mod +""", + filename="visit_file_contract.f90", + ) + + assert [dtype.name for dtype in parsed.derived_types] == ["file_state_t"] + assert [interface.name for interface in parsed.interfaces] == ["file_callback"] + assert [procedure.name for procedure in parsed.procedures] == ["global_step"] + assert [module.name for module in parsed.modules] == ["api_mod"] + assert set(parsed.symbols) == {"api_mod", "global_step"} + assert parsed.symbols["api_mod"] is parsed.modules[0] + assert parsed.symbols["global_step"] is parsed.procedures[0] + + +def test_visit_project_resolves_cross_file_used_module_parameters_once(): + project = parse_fortran_project( + { + "precision.f90": """ +module precision_mod + integer, parameter :: rk = 8 +end module precision_mod +""", + "api.f90": """ +module api_mod + use precision_mod +contains + subroutine consume(value) + real(kind=rk), intent(in) :: value + end subroutine consume +end module api_mod +""", + } + ) + + procedure = project.procedures["api_mod.consume"] + assert procedure is project.procedures["consume"] + assert procedure.arguments[0].kind == "8" + assert project.dependencies == { + "api_mod": {"precision_mod"}, + "precision_mod": set(), + } + + +def test_visit_project_rejects_duplicate_modules_across_files_with_project_scope_metadata(): + with pytest.raises(FortranParseError) as duplicate: + parse_fortran_project( + { + "first.f90": "module shared_mod\nend module shared_mod\n", + "second.f90": "module shared_mod\nend module shared_mod\n", + } + ) + + assert duplicate.value.base_message == "Duplicate symbol 'shared_mod' in project module scope." + assert duplicate.value.filename is None + assert duplicate.value.line_number is None + assert duplicate.value.source_line is None + assert duplicate.value.code == "PARSE_DUPLICATE_SYMBOL" + + +def test_project_topological_files_are_dependency_first_sorted_and_cycle_tolerant(): + ordered = FortranParser._topological_files( + { + "consumer.f90": {"module_a.f90", "module_b.f90"}, + "module_b.f90": set(), + "module_a.f90": set(), + "cycle_left.f90": {"cycle_right.f90"}, + "cycle_right.f90": {"cycle_left.f90"}, + } + ) + + assert ordered[:3] == ["module_a.f90", "module_b.f90", "consumer.f90"] + assert ordered[3:] == ["cycle_left.f90", "cycle_right.f90"] + + +def test_project_encoding_is_forwarded_to_explicit_path_inputs(tmp_path: Path): + source = tmp_path / "latin1.f90" + source.write_bytes("! caf\xe9\nmodule encoded_mod\nend module encoded_mod\n".encode("latin-1")) + + project = parse_fortran_project([source], encoding="latin-1") + + assert project.files[0].encoding == "latin-1" + assert project.files[0].source.startswith("! caf\xe9") + + +def test_project_encoding_is_forwarded_to_directory_namespace_collection(tmp_path: Path): + source = tmp_path / "latin1.f90" + source.write_bytes("! caf\xe9\nmodule encoded_mod\nend module encoded_mod\n".encode("latin-1")) + + project = parse_fortran_project(tmp_path, encoding="latin-1") + + assert set(project.modules) == {"encoded_mod"} + assert project.files[0].encoding == "latin-1" + assert project.files[0].source.startswith("! caf\xe9") + + +def test_scope_include_import_and_derived_type_binding_contracts(): + parser = FortranParser() + state = {} + parser._proc_scope_add_include(state, "shared.inc") + parser._proc_scope_add_imports(state, ["State_T", " ", "Callback"]) + + assert state == { + "includes": ["shared.inc"], + "imports": {"state_t", "callback"}, + } + + dtype = parser._init_derived_type( + "type, extends(parent(kind)), public :: child", + current_module="owner_mod", + ) + assert dtype == FortranDerivedType( + name="child", + module="owner_mod", + extends="parent(kind)", + attributes=["public"], + ) + malformed = parser._init_derived_type("type, extends(parent :: child", current_module="owner_mod") + assert malformed == FortranDerivedType( + name="child", + module="owner_mod", + attributes=["extends(parent"], + ) + + parser._parse_derived_type_contains_line("procedure, pass(self), public :: update, reset", dtype) + parser._parse_derived_type_contains_line("generic, public :: assignment(=) => assign_child, assign_other", dtype) + parser._parse_derived_type_contains_line("FINAL :: cleanup, destroy", dtype) + + assert dtype.methods == ["update", "reset"] + assert dtype.procedure_bindings == [ + {"name": "update", "attrs": ["pass(self)", "public"]}, + {"name": "reset", "attrs": ["pass(self)", "public"]}, + ] + assert dtype.generic_bindings == [ + { + "name": "assignment(=)", + "targets": ["assign_child", "assign_other"], + "attrs": ["public"], + } + ] + + +def test_unknown_procedure_declaration_diagnostic_preserves_public_metadata(): + parser = FortranParser() + state = {"signature": FortranProcedureSignature(name="work", kind="subroutine")} + + with pytest.raises(FortranParseError) as error: + parser._handle_unknown_proc_declaration( + "@@@", + state, + filename="procedure_contract.f90", + lineno=8, + source_line="@@@", + ) + + assert error.value.base_message == "Invalid Fortran syntax in procedure 'work' specification part: @@@" + assert error.value.filename == "procedure_contract.f90" + assert error.value.line_number == 8 + assert error.value.source_line == "@@@" + assert error.value.code == "PARSE_INVALID_SYNTAX" + + +def test_unknown_procedure_declaration_kind_preserves_declaration_and_invalid_syntax_split(): + parser = FortranParser() + state = {"signature": FortranProcedureSignature(name="work", kind="subroutine")} + + with pytest.raises(FortranParseError) as declaration_error: + parser._handle_unknown_proc_declaration( + "vector(kind=4) :: value", + state, + filename="procedure_contract.f90", + lineno=9, + source_line="vector(kind=4) :: value", + ) + + assert ( + declaration_error.value.base_message + == "Unknown or unsupported datatype declaration for procedure 'work': vector(kind=4) :: value" + ) + assert declaration_error.value.filename == "procedure_contract.f90" + assert declaration_error.value.line_number == 9 + assert declaration_error.value.source_line == "vector(kind=4) :: value" + assert declaration_error.value.code == "PARSE_UNSUPPORTED_DECLARATION" + + with pytest.raises(FortranParseError) as syntax_error: + parser._handle_unknown_proc_declaration( + "call work()", + state, + filename="procedure_contract.f90", + lineno=10, + source_line="call work()", + ) + + assert ( + syntax_error.value.base_message == "Invalid Fortran syntax in procedure 'work' specification part: call work()" + ) + assert syntax_error.value.filename == "procedure_contract.f90" + assert syntax_error.value.line_number == 10 + assert syntax_error.value.source_line == "call work()" + assert syntax_error.value.code == "PARSE_INVALID_SYNTAX" + + +def test_contains_line_validation_accepts_spec_alternatives_without_mutating_scope_and_reports_invalid_lines(): + parser = FortranParser() + module = FortranModule("owner_mod") + scope = _ParserScope(kind="module", name=module.name, model=module, module_owner=module.name) + + parser._helper_validate_contains_lines( + scope, + _lines("", "# marker", "include 'shape.inc'", "integer :: macro_decl"), + filename="contains_contract.f90", + ) + + assert module.variables == [] + + with pytest.raises(FortranParseError) as error: + parser._helper_validate_contains_lines( + scope, + _lines("@@@"), + filename="contains_contract.f90", + ) + + assert error.value.base_message == "Invalid Fortran syntax in module 'owner_mod' contains part: @@@" + assert error.value.filename == "contains_contract.f90" + assert error.value.line_number == 1 + assert error.value.source_line == "@@@" + assert error.value.code == "PARSE_INVALID_SYNTAX" + + +def test_malformed_type_bound_declaration_diagnostic_preserves_public_metadata(): + parser = FortranParser() + dtype = FortranDerivedType("state_t") + + with pytest.raises(FortranParseError) as error: + parser._parse_derived_type_contains_line( + "FINAL :: 123", + dtype, + filename="type_bound_contract.f90", + lineno=9, + source_line="FINAL :: 123", + ) + + assert error.value.base_message == "Unsupported or malformed type-bound declaration in type 'state_t': FINAL :: 123" + assert error.value.filename == "type_bound_contract.f90" + assert error.value.line_number == 9 + assert error.value.source_line == "FINAL :: 123" + assert error.value.code == "PARSE_UNSUPPORTED_TYPE_BOUND_DECLARATION" + + +def test_interface_and_enum_validation_keep_scanning_after_valid_lines(): + parser = FortranParser() + scope = _ParserScope(kind="interface", name="Callbacks") + + with pytest.raises(FortranParseError) as interface_error: + parser._helper_validate_interface_lines( + scope, + _lines("", "# marker", "MODULE PROCEDURE :: First, Second", "PROCEDURE(Callback) :: Handler", "@@@"), + filename="interface_contract.f90", + ) + assert interface_error.value.base_message == "Invalid Fortran syntax in interface 'Callbacks': @@@" + assert interface_error.value.filename == "interface_contract.f90" + assert interface_error.value.line_number == 5 + assert interface_error.value.source_line == "@@@" + assert interface_error.value.code == "PARSE_INVALID_SYNTAX" + + valid_enum = _unit("enum", None, "enum, bind(c)", "", "# marker", "ENUMERATOR :: First = 1, Second", "end enum") + parser._helper_validate_enum_unit(valid_enum, filename="enum_contract.f90") + + invalid_enum = _unit("enum", None, "enum, bind(c)", "enumerator :: valid = 1", "integer :: invalid", "end enum") + with pytest.raises(FortranParseError) as enum_error: + parser._helper_validate_enum_unit(invalid_enum, filename="enum_contract.f90") + assert enum_error.value.base_message == "Invalid Fortran syntax in enum specification part: integer :: invalid" + assert enum_error.value.filename == "enum_contract.f90" + assert enum_error.value.line_number == 3 + assert enum_error.value.source_line == "integer :: invalid" + assert enum_error.value.code == "PARSE_INVALID_SYNTAX" + + +@pytest.mark.parametrize( + ("visitor_name", "unit", "expected_message"), + [ + ( + "_helper_validate_enum_unit", + _unit("enum", None, "enum, bind(c)", "type :: nested", "end type nested", "end enum"), + "Invalid Fortran syntax in enum '' specification part: type :: nested", + ), + ( + "visit_interface_unit", + _unit( + "interface", "callbacks", "interface callbacks", "type :: nested", "end type nested", "end interface" + ), + "Invalid Fortran syntax in interface 'callbacks': type :: nested", + ), + ( + "visit_derived_type_unit", + _unit("derived_type", "outer", "type :: outer", "type :: nested", "end type nested", "end type outer"), + "Invalid Fortran syntax in derived type 'outer' specification part: type :: nested", + ), + ( + "visit_block_data_source_unit", + _unit( + "block_data", + "init_data", + "block data init_data", + "type :: nested", + "end type nested", + "end block data init_data", + ), + "Invalid Fortran syntax in block data 'init_data' specification part: type :: nested", + ), + ], +) +def test_nested_units_rejected_by_restricted_scopes_preserve_public_metadata(visitor_name, unit, expected_message): + parser = FortranParser() + visitor = getattr(parser, visitor_name) + + with pytest.raises(FortranParseError) as error: + if visitor_name == "_helper_validate_enum_unit": + visitor(unit, filename="nested_contract.f90") + else: + visitor(unit, parent_scope=_ParserScope(kind="file", name=None), filename="nested_contract.f90") + + assert error.value.base_message == expected_message + assert error.value.filename == "nested_contract.f90" + assert error.value.line_number == 2 + assert error.value.source_line == "type :: nested" + assert error.value.code == "PARSE_INVALID_SYNTAX" + + +@pytest.mark.parametrize( + ("line", "expected_message", "expected_code"), + [ + ( + "!$omp threadprivate(counter)", + "Unsupported OpenMP declarative directive in module 'owner_mod': !$omp threadprivate(counter)", + "PARSE_UNSUPPORTED_OPENMP_DIRECTIVE", + ), + ( + "type :: missing_end", + "Missing end derived type for derived type 'missing_end'.", + "PARSE_MISSING_DERIVED_TYPE_END", + ), + ( + "call work()", + "Executable statement is not allowed in module specification part 'owner_mod': call work()", + "PARSE_EXECUTABLE_IN_SPECIFICATION", + ), + ( + "@@@", + "Invalid Fortran syntax in module 'owner_mod' specification part: @@@", + "PARSE_INVALID_SYNTAX", + ), + ( + "weirdtype value", + "Unknown or unsupported datatype declaration in module 'owner_mod': weirdtype value", + "PARSE_UNSUPPORTED_DECLARATION", + ), + ], +) +def test_module_like_spec_diagnostics_preserve_public_metadata(line, expected_message, expected_code): + parser = FortranParser() + module = FortranModule("owner_mod") + scope = _ParserScope(kind="module", name=module.name, model=module, module_owner=module.name) + + with pytest.raises(FortranParseError) as error: + parser._helper_visit_module_like_spec_line( + scope, + line, + filename="module_contract.f90", + lineno=7, + source_line=line, + ) + + assert error.value.base_message == expected_message + assert error.value.filename == "module_contract.f90" + assert error.value.line_number == 7 + assert error.value.source_line == line + assert error.value.code == expected_code + + +@pytest.mark.parametrize( + ("line", "expected_message", "expected_code"), + [ + ( + "type :: missing_end", + "Missing end derived type for derived type 'missing_end'.", + "PARSE_MISSING_DERIVED_TYPE_END", + ), + ( + "!$omp threadprivate(counter)", + "Unsupported OpenMP declarative directive in type 'state_t': !$omp threadprivate(counter)", + "PARSE_UNSUPPORTED_OPENMP_DIRECTIVE", + ), + ( + "@@@", + "Invalid Fortran syntax in type 'state_t' specification part: @@@", + "PARSE_INVALID_SYNTAX", + ), + ( + "weirdtype value", + "Unknown or unsupported datatype declaration in type 'state_t': weirdtype value", + "PARSE_UNSUPPORTED_DECLARATION", + ), + ], +) +def test_type_spec_diagnostics_preserve_public_metadata(line, expected_message, expected_code): + parser = FortranParser() + dtype = FortranDerivedType("state_t") + scope = _ParserScope(kind="derived_type", name=dtype.name, model=dtype) + + with pytest.raises(FortranParseError) as error: + parser._helper_visit_type_spec_line( + line, + scope, + filename="type_contract.f90", + lineno=7, + source_line=line, + ) + + assert error.value.base_message == expected_message + assert error.value.filename == "type_contract.f90" + assert error.value.line_number == 7 + assert error.value.source_line == line + assert error.value.code == expected_code + + +@pytest.mark.parametrize( + ("visitor_name", "entity_name"), + [ + ("visit_fortran_module", "module"), + ("visit_fortran_submodule", "submodule"), + ("visit_fortran_interface", "interface"), + ("visit_fortran_derived_type", "derived type"), + ("visit_fortran_program", "program"), + ("visit_fortran_block_data_unit", "block data unit"), + ], +) +def test_singular_parser_entrypoint_diagnostics_preserve_names_entities_and_filename(visitor_name, entity_name): + parser = FortranParser() + + with pytest.raises(FortranParseError) as error: + getattr(parser, visitor_name)("", filename="empty_contract.f90") + + assert error.value.base_message == f"{visitor_name}() expected exactly one {entity_name}, but none were found" + assert error.value.filename == "empty_contract.f90" + assert error.value.code == "PARSE_WRONG_ENTRYPOINT" + + +@pytest.mark.parametrize( + ("visitor_name", "header_parser", "header_result", "unit_kind", "entity_name"), + [ + ("visit_module_unit", "_parse_module_header", None, "module", "module"), + ("visit_submodule_unit", "_parse_submodule_header", None, "submodule", "submodule"), + ("visit_program_unit", "_parse_program_header", None, "program", "program"), + ("visit_block_data_source_unit", "_parse_block_data_header", None, "block_data", "block data"), + ("visit_derived_type_unit", "_init_derived_type", None, "derived_type", "derived-type"), + ("visit_interface_unit", "_parse_interface_header", (False, None), "interface", "interface"), + ], +) +def test_source_unit_visitor_defensive_diagnostics_preserve_public_metadata( + monkeypatch, + visitor_name, + header_parser, + header_result, + unit_kind, + entity_name, +): + parser = FortranParser() + monkeypatch.setattr(parser, header_parser, lambda *args, **kwargs: header_result) + + with pytest.raises(FortranParseError) as error: + getattr(parser, visitor_name)( + _unit(unit_kind, "broken", "broken header", "broken footer"), + parent_scope=_ParserScope(kind="file", name=None), + filename="visitor_contract.f90", + ) + + assert error.value.base_message == f"Expected {entity_name} unit." + assert error.value.filename == "visitor_contract.f90" + assert error.value.line_number == 1 + assert error.value.source_line == "broken header" + assert error.value.code == "PARSE_EXPECTED_UNIT" + + +def test_derived_type_collection_retains_sibling_and_nested_scope_contexts(): + parser = FortranParser() + types = parser._collect_derived_type_source_units( + """ +type :: global_state +end type global_state +module owner_mod + type :: first_state + end type first_state + type :: second_state + end type second_state +contains + subroutine work() + type :: local_state + end type local_state + end subroutine work +end module owner_mod +""", + filename="nested_types.f90", + ) + + assert [(unit.name, scope.kind, scope.name, scope.module_owner) for unit, scope in types] == [ + ("global_state", "file", None, None), + ("first_state", "module", "owner_mod", "owner_mod"), + ("second_state", "module", "owner_mod", "owner_mod"), + ("local_state", "procedure", "work", "owner_mod"), + ] + assert [(scope.parent.kind, scope.parent.name) if scope.parent else None for _unit, scope in types] == [ + None, + ("file", None), + ("file", None), + ("module", "owner_mod"), + ] + + +def test_unit_models_preserve_filename_propagation(): + parsed = parse_fortran_file( + """ +module owner_mod +end module owner_mod +submodule (owner_mod) child_mod +end submodule child_mod +program driver +end program driver +block data init_data +end block data init_data +""", + filename="unit_models.f90", + ) + + assert parsed.modules[0].filename == "unit_models.f90" + assert parsed.submodules[0].filename == "unit_models.f90" + assert parsed.programs[0].filename == "unit_models.f90" + assert parsed.block_data_units[0].filename == "unit_models.f90" diff --git a/tests/parser/test_fortran_type_probe.py b/tests/parser/test_fortran_type_probe.py index f7c811629..37acbed21 100644 --- a/tests/parser/test_fortran_type_probe.py +++ b/tests/parser/test_fortran_type_probe.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Compiler-derived Fortran kind expression probe tests.""" import json @@ -37,9 +36,7 @@ def _required_fortran_compiler() -> str: def test_fortran_type_probe_source_evaluates_integer_initialization_expressions(): - source = build_fortran_type_probe_source( - ["selected_real_kind(12)", "real64", "c_double"] - ) + source = build_fortran_type_probe_source(["selected_real_kind(12)", "real64", "c_double"]) assert "use, intrinsic :: iso_fortran_env, only: real64" in source assert "use, intrinsic :: iso_c_binding, only: c_double" in source @@ -59,7 +56,7 @@ def test_x2py_public_api_lazily_exposes_type_probe_symbols_and_rejects_unknown_n assert x2py.FortranTypeProbeError is FortranTypeProbeError assert x2py.FortranTypeProbeReport is FortranTypeProbeReport with pytest.raises(AttributeError, match="not_exported"): - getattr(x2py, "not_exported") + _ = x2py.not_exported def test_fortran_type_probe_rejects_statement_injection(): @@ -143,11 +140,17 @@ def test_fortran_type_probe_report_resolves_only_matching_parameter_requirements "missing 'values'", ), ( - [SimpleNamespace(returncode=0, stderr=""), SimpleNamespace(returncode=0, stdout='{"values":[]}', stderr="")], + [ + SimpleNamespace(returncode=0, stderr=""), + SimpleNamespace(returncode=0, stdout='{"values":[]}', stderr=""), + ], "count does not match", ), ( - [SimpleNamespace(returncode=0, stderr=""), SimpleNamespace(returncode=0, stdout='{"values":["bad"]}', stderr="")], + [ + SimpleNamespace(returncode=0, stderr=""), + SimpleNamespace(returncode=0, stdout='{"values":["bad"]}', stderr=""), + ], "is not an integer", ), ], @@ -312,8 +315,6 @@ def test_x2py_semantics_cli_evaluates_collected_fortran_type_requirements(tmp_pa "x2py", str(source), "--semantics", - "--preprocess", - "compiler", "--compiler", compiler, "--json", @@ -324,7 +325,5 @@ def test_x2py_semantics_cli_evaluates_collected_fortran_type_requirements(tmp_pa ) payload = json.loads(completed.stdout) - semantic_type = payload[str(source)]["semantic_modules"][0]["functions"][0]["arguments"][0][ - "semantic_type" - ] + semantic_type = payload[str(source)]["semantic_modules"][0]["functions"][0]["arguments"][0]["semantic_type"] assert semantic_type["name"] == "Float64" diff --git a/tests/parser/test_function_header_parsing.py b/tests/parser/test_function_header_parsing.py index b4520e549..125d6a0c4 100644 --- a/tests/parser/test_function_header_parsing.py +++ b/tests/parser/test_function_header_parsing.py @@ -1,10 +1,10 @@ -# -*- coding: utf-8 -*- """Procedure and function header parsing behavior.""" import pytest from x2py import FortranParseError, parse_fortran_file + def test_typed_function_result_headers_are_parsed_from_inline_fortran(): code = """ module typed_result_mod @@ -41,6 +41,7 @@ def test_typed_function_result_headers_are_parsed_from_inline_fortran(): assert procedures["weighted_value"].result.kind == "8" assert procedures["norm2"].result.base_type == "real" + def test_legacy_star_kind_function_headers_are_parsed_from_inline_fixed_form(): code = """ complex*16 function zdotc(n, zx, zy) @@ -68,6 +69,7 @@ def test_legacy_star_kind_function_headers_are_parsed_from_inline_fixed_form(): assert procedures["any_name"].result.base_type == "character" assert procedures["any_name"].result.kind == "*" + def test_no_argument_headers_without_parentheses_are_parsed(): code = """ subroutine setup @@ -85,6 +87,7 @@ def test_no_argument_headers_without_parentheses_are_parsed(): assert procedures["answer"].kind == "function" assert procedures["answer"].result.base_type == "integer" + def test_typed_nested_interface_function_marks_dummy_as_procedure(): code = """ subroutine caller(cb) @@ -100,6 +103,7 @@ def test_typed_nested_interface_function_marks_dummy_as_procedure(): assert sig.arguments[0].base_type == "procedure" + def test_unsupported_procedure_like_header_raises_instead_of_being_dropped(): code = """ vector function make_value(x) @@ -110,6 +114,7 @@ def test_unsupported_procedure_like_header_raises_instead_of_being_dropped(): with pytest.raises(FortranParseError, match="Unsupported function result type prefix 'vector'"): parse_fortran_file(code, filename="bad_header.f90") + def test_malformed_module_header_raises_instead_of_creating_bad_symbol(): code = """ module :: bad_mod @@ -119,6 +124,7 @@ def test_malformed_module_header_raises_instead_of_creating_bad_symbol(): with pytest.raises(FortranParseError, match="Unsupported or malformed module header"): parse_fortran_file(code, filename="bad_module_header.f90") + def test_malformed_public_procedure_headers_raise_from_source_lines(): with pytest.raises(FortranParseError, match="Unsupported or malformed module procedure header"): parse_fortran_file( @@ -141,6 +147,7 @@ def test_malformed_public_procedure_headers_raise_from_source_lines(): filename="bad_proc_header.f90", ) + def test_interface_finalizes_pending_procedure_at_end_interface_and_import_attrs(): code = """ interface named_callback diff --git a/tests/parser/test_parser_public_entrypoints.py b/tests/parser/test_parser_public_entrypoints.py index d9892418d..8a9d15245 100644 --- a/tests/parser/test_parser_public_entrypoints.py +++ b/tests/parser/test_parser_public_entrypoints.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Public parser entrypoints and source/path input contracts.""" import pytest @@ -6,6 +5,7 @@ from fortran_parser.parser import FortranParser from x2py import FortranParseError, parse_fortran_file, parse_fortran_project + def test_parser_public_entrypoint_aliases_and_singular_contracts_use_inline_sources(): parser = FortranParser() module_code = """ @@ -25,20 +25,25 @@ def test_parser_public_entrypoint_aliases_and_singular_contracts_use_inline_sour assert parser.visit_fortran_module("module single_mod\nend module single_mod\n").name == "single_mod" assert parser.visit_fortran_program("program driver\nend program driver\n").name == "driver" assert parser.visit_fortran_derived_type("type :: state_t\nend type state_t\n").name == "state_t" - assert parser.visit_fortran_interface( - """ + assert ( + parser.visit_fortran_interface( + """ interface callback subroutine cb() end subroutine cb end interface callback """ - ).name == "callback" - assert parser.visit_fortran_submodule( - "submodule (parent_mod) child_mod\nend submodule child_mod\n" - ).name == "child_mod" - assert parser.visit_fortran_block_data_unit( - "block data init_data\n integer seed\nend block data init_data\n" - ).name == "init_data" + ).name + == "callback" + ) + assert ( + parser.visit_fortran_submodule("submodule (parent_mod) child_mod\nend submodule child_mod\n").name + == "child_mod" + ) + assert ( + parser.visit_fortran_block_data_unit("block data init_data\n integer seed\nend block data init_data\n").name + == "init_data" + ) with pytest.raises(FortranParseError, match="none were found"): parser.visit_fortran_module("program not_a_module\nend program not_a_module\n") @@ -53,6 +58,7 @@ def test_parser_public_entrypoint_aliases_and_singular_contracts_use_inline_sour """ ) + def test_file_path_and_unknown_filename_public_parse_paths(tmp_path): source_path = tmp_path / "path_input.f90" source_path.write_text( @@ -81,23 +87,32 @@ def test_file_path_and_unknown_filename_public_parse_paths(tmp_path): assert parsed_from_path.procedures[0].name == "from_path" assert parsed_unknown_suffix.format == "unknown" + def test_public_instance_visitor_entrypoints_use_source_strings(): parser = FortranParser() - assert parser.visit_file( - """ + assert ( + parser.visit_file( + """ subroutine alias_proc() end subroutine alias_proc """ - ).procedures[0].name == "alias_proc" - assert "alias_mod" in parser.visit_project( - { - "alias_mod.f90": """ + ) + .procedures[0] + .name + == "alias_proc" + ) + assert ( + "alias_mod" + in parser.visit_project( + { + "alias_mod.f90": """ module alias_mod end module alias_mod """ - } - ).modules + } + ).modules + ) with pytest.raises(FortranParseError, match="only standalone procedures were found"): parser.visit_fortran_module( @@ -107,6 +122,43 @@ def test_public_instance_visitor_entrypoints_use_source_strings(): """ ) + +@pytest.mark.parametrize( + ("source", "expected_module"), + [ + ("type :: file_state\nend type file_state\n", None), + ("module owner_mod\n type :: file_state\n end type file_state\nend module owner_mod\n", "owner_mod"), + ( + "submodule (parent_mod) owner_submod\n" + " type :: file_state\n" + " end type file_state\n" + "end submodule owner_submod\n", + "owner_submod", + ), + ("program driver\n type :: file_state\n end type file_state\nend program driver\n", None), + ( + "subroutine work()\n type :: file_state\n end type file_state\nend subroutine work\n", + None, + ), + ( + "module owner_mod\n" + "contains\n" + " subroutine work()\n" + " type :: file_state\n" + " end type file_state\n" + " end subroutine work\n" + "end module owner_mod\n", + "owner_mod", + ), + ], +) +def test_public_derived_type_visitor_collects_nested_scope_sources(source, expected_module): + dtype = FortranParser().visit_fortran_derived_type(source, filename="nested_type.f90") + + assert dtype.name == "file_state" + assert dtype.module == expected_module + + def test_public_project_parse_from_path_sequence(tmp_path): source_path = tmp_path / "listed_project.f90" source_path.write_text( diff --git a/tests/parser/test_preprocessing_cli.py b/tests/parser/test_preprocessing_cli.py index 62fa11f2d..86ed9cd17 100644 --- a/tests/parser/test_preprocessing_cli.py +++ b/tests/parser/test_preprocessing_cli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Shared preprocessing CLI and compiler-command contract tests.""" import json @@ -62,6 +61,17 @@ def _failing_compiler(tmp_path: Path, stderr: str) -> Path: return script +def _assert_preprocessing_error( + exc_info: pytest.ExceptionInfo[PreprocessingError], + *, + message: str, + category: str = "INVALID_COMPILER_ARGUMENTS", +) -> None: + assert str(exc_info.value) == message + assert exc_info.value.category == category + assert exc_info.value.diagnostics == [] + + def test_direct_c_preprocess_invocation_uses_exact_compiler_and_flags(tmp_path: Path): source = tmp_path / "api.h" config = PreprocessingConfig( @@ -76,22 +86,29 @@ def test_direct_c_preprocess_invocation_uses_exact_compiler_and_flags(tmp_path: invocation = build_direct_preprocess_invocation(source, language="c", config=config) - assert invocation.argv == [ - "/usr/bin/clang-18", - "-E", - "-x", - "c", - "-Iinclude", - "-I/opt/sdk/include", - "-DAPI_EXPORT=", - "-DUSE_FAST", - "-UDEBUG", - "-std=c11", - "--sysroot=/opt/sdk", - "-target", - "x86_64-linux-gnu", - str(source), - ] + assert invocation == preprocessing.Invocation( + argv=[ + "/usr/bin/clang-18", + "-E", + "-x", + "c", + "-Iinclude", + "-I/opt/sdk/include", + "-DAPI_EXPORT=", + "-DUSE_FAST", + "-UDEBUG", + "-std=c11", + "--sysroot=/opt/sdk", + "-target", + "x86_64-linux-gnu", + str(source), + ], + cwd=None, + adapter="gcc-compatible-c", + language="c", + compiler="/usr/bin/clang-18", + capabilities={"dependency_output": True, "macro_dump": True, "linemarkers": True}, + ) def test_direct_fortran_preprocess_invocation_uses_exact_compiler_and_cpp(tmp_path: Path): @@ -107,14 +124,37 @@ def test_direct_fortran_preprocess_invocation_uses_exact_compiler_and_cpp(tmp_pa invocation = build_direct_preprocess_invocation(source, language="fortran", config=config) + assert invocation == preprocessing.Invocation( + argv=[ + "/usr/bin/gfortran-12", + "-E", + "-cpp", + "-Iinclude", + "-DUSE_MPI", + "-UDEBUG", + "-std=f2018", + str(source), + ], + cwd=None, + adapter="gnu-fortran", + language="fortran", + compiler="/usr/bin/gfortran-12", + capabilities={"dependency_output": True, "macro_dump": True, "linemarkers": True}, + ) + + +def test_direct_fortran_preprocess_invocation_hints_unknown_suffix_language(tmp_path: Path): + source = tmp_path / "solver.source" + config = PreprocessingConfig(mode="compiler", compiler="/usr/bin/gfortran-12") + + invocation = build_direct_preprocess_invocation(source, language="fortran", config=config) + assert invocation.argv == [ "/usr/bin/gfortran-12", "-E", "-cpp", - "-Iinclude", - "-DUSE_MPI", - "-UDEBUG", - "-std=f2018", + "-x", + "f95-cpp-input", str(source), ] @@ -127,12 +167,36 @@ def test_preprocessing_config_internal_macros_recipe_and_validation(tmp_path: Pa assert plain.uses_compiler is False assert plain.fortran_internal_recipe(source) is None assert selected.fortran_internal_recipe(source)["source_path"] == str(source) - with pytest.raises(PreprocessingError, match="requires a macro name"): + validate_macro_name("NAME", "--define") + validate_macro_name("name", "--define") + validate_macro_name("_NAME=value", "--define") + validate_macro_name("_NAME=value=with=equals", "--define") + with pytest.raises(PreprocessingError) as exc_info: validate_macro_name("=value", "--define") - with pytest.raises(PreprocessingError, match="requires a macro name"): + _assert_preprocessing_error(exc_info, message="--define requires a macro name before '='") + with pytest.raises(PreprocessingError) as exc_info: validate_macro_name("", "--define") - with pytest.raises(PreprocessingError, match="invalid macro name"): + _assert_preprocessing_error(exc_info, message="--define requires a macro name") + with pytest.raises(PreprocessingError) as exc_info: validate_macro_name("bad-name", "--define") + _assert_preprocessing_error( + exc_info, + message="--define: invalid macro name 'bad-name'; must be a valid identifier", + ) + + +def test_preprocessing_error_default_category_and_diagnostics(): + diagnostic = preprocessing.PreprocessingDiagnostic(category="PREPROCESSOR_FAILED", message="bad") + + default_error = PreprocessingError("default") + detailed_error = PreprocessingError("detailed", diagnostics=[diagnostic]) + + assert default_error.category == "PREPROCESSOR_FAILED" + assert default_error.diagnostics == [] + assert str(default_error) == "default" + assert detailed_error.category == "PREPROCESSOR_FAILED" + assert detailed_error.diagnostics == [diagnostic] + assert str(detailed_error) == "detailed" def test_preprocessing_metadata_models_and_adapter_helpers(tmp_path: Path): @@ -185,17 +249,99 @@ def test_preprocessing_metadata_models_and_adapter_helpers(tmp_path: Path): ) recipe = preprocessing.PreprocessingRecipe(language="c", compiler="cc", standard="c11") - assert diagnostic.to_dict()["command"] == ["cc", "-E"] - assert plan.to_dict()["include_dirs"] == ["include"] - assert result.to_dict()["macros"][0]["parameters"] == ["x"] + assert diagnostic.to_dict() == { + "category": "PREPROCESSOR_FAILED", + "message": "bad flag", + "severity": "error", + "path": str(source), + "line": 3, + "command": ["cc", "-E"], + } + assert plan.to_dict() == { + "language": "c", + "source_path": str(source), + "adapter": "direct", + "compiler": "cc", + "cwd": None, + "include_dirs": ["include"], + "defines": ["API=1"], + "undefs": ["DEBUG"], + "standard": "c11", + "compiler_args": ["-Wall"], + "compile_commands": None, + "command_template": None, + } + assert included.to_dict() == { + "path": str(tmp_path / "public.h"), + "included_by": str(source), + "include_line": 1, + "mechanism": "cpp_include", + "dependency_kind": "project", + "exposure": "public", + } + assert mapping.to_dict() == { + "generated_line": 2, + "original_path": str(source), + "original_line": 7, + "include_stack": [str(source)], + } + assert macro.to_dict() == { + "name": "SQR", + "value": "((x) * (x))", + "function_like": True, + "parameters": ["x"], + "path": str(source), + "line": 4, + "builtin": False, + } + assert result.to_dict() == { + "source": "#define SQR(x) ((x) * (x))\n", + "recipe": {"mode": "compiler"}, + "included_files": [included.to_dict()], + "source_mappings": [mapping.to_dict()], + "macros": [macro.to_dict()], + "diagnostics": [diagnostic.to_dict()], + } assert recipe.std == "c11" + assert recipe.to_dict() == { + "language": "c", + "compiler": "cc", + "mode": "compiler", + "adapter": "direct", + "argv": [], + "cwd": None, + "include_dirs": [], + "defines": [], + "undefs": [], + "standard": "c11", + "std": "c11", + "compiler_args": [], + "source_path": None, + "source_file": None, + "compile_commands": None, + "compile_commands_entry": None, + "command_template": None, + "included_files": [], + "source_mappings": [], + "macros": [], + "diagnostics": [], + "capabilities": {}, + } adapter = preprocessing.GCCCompatibleCAdapter() config = PreprocessingConfig(mode="compiler", compiler="cc") - assert adapter.build_preprocess_invocation(source, language="c", config=config).argv[0] == "cc" + assert adapter.build_preprocess_invocation(source, language="c", config=config) == preprocessing.Invocation( + argv=["cc", "-E", "-x", "c", str(source)], + cwd=None, + adapter="gcc-compatible-c", + language="c", + compiler="cc", + capabilities={"dependency_output": True, "macro_dump": True, "linemarkers": True}, + ) assert adapter.collect_dependencies(result) == [included] assert adapter.collect_macros(result) == [macro] assert adapter.parse_linemarkers('#line 7 "dir\\\\api\\".h"\nint x;\n')[0].original_line == 7 + assert adapter.parse_linemarkers("int x;\n", filename="api.h")[0].original_path == "api.h" invocation = preprocessing.CommandTemplateAdapter().build_preprocess_invocation( source, @@ -211,16 +357,108 @@ def test_preprocessing_metadata_models_and_adapter_helpers(tmp_path: Path): assert preprocessing.GNUFortranAdapter().name == "gnu-fortran" +def test_recipe_round_trip_preserves_all_preprocessing_metadata(monkeypatch, tmp_path: Path): + source = tmp_path / "solver.F90" + included = preprocessing.IncludedFile( + path=str(tmp_path / "decls.inc"), + included_by=str(source), + include_line=2, + mechanism="fortran_include", + exposure="private", + ) + mapping = preprocessing.SourceMapping( + generated_line=3, + original_path=included.path, + original_line=1, + include_stack=[str(source), included.path], + ) + macro = preprocessing.MacroDefinition(name="USE_MPI", value="1", path=str(source), line=1) + diagnostic = preprocessing.PreprocessingDiagnostic( + category="PROVENANCE_UNAVAILABLE", + message="no markers", + severity="warning", + command=["vendor-fc", "--expand"], + ) + config = PreprocessingConfig( + mode="compiler", + include_dirs=["include"], + defines=["USE_MPI=1"], + undefs=["DEBUG"], + std="f2018", + compiler_args=["--dialect=strict"], + command_template="{compiler} --expand {source}", + ) + invocation = preprocessing.Invocation( + argv=["vendor-fc", "--expand", str(source)], + cwd=str(tmp_path), + adapter="command-template", + language="fortran", + compiler="vendor-fc", + compile_commands=str(tmp_path / "compile_commands.json"), + compile_commands_entry={"directory": str(tmp_path), "file": str(source)}, + capabilities={"dependency_output": False, "macro_dump": False, "linemarkers": False}, + ) + result = preprocessing.PreprocessResult( + source="expanded\n", + recipe={}, + included_files=[included], + source_mappings=[mapping], + macros=[macro], + diagnostics=[diagnostic], + ) + expected = { + "language": "fortran", + "compiler": "vendor-fc", + "mode": "compiler", + "adapter": "command-template", + "argv": ["vendor-fc", "--expand", str(source)], + "cwd": str(tmp_path), + "include_dirs": ["include"], + "defines": ["USE_MPI=1"], + "undefs": ["DEBUG"], + "standard": "f2018", + "std": "f2018", + "compiler_args": ["--dialect=strict"], + "source_path": str(source), + "source_file": str(source), + "compile_commands": str(tmp_path / "compile_commands.json"), + "compile_commands_entry": {"directory": str(tmp_path), "file": str(source)}, + "command_template": "{compiler} --expand {source}", + "included_files": [included.to_dict()], + "source_mappings": [mapping.to_dict()], + "macros": [macro.to_dict()], + "diagnostics": [diagnostic.to_dict()], + "capabilities": {"dependency_output": False, "macro_dump": False, "linemarkers": False}, + } + + recipe = preprocessing._recipe_from_invocation(source, "fortran", config, invocation, result) + assert recipe.to_dict() == expected + + result.recipe = expected + monkeypatch.setattr(preprocessing, "preprocess_source", lambda *_args, **_kwargs: result) + expanded, restored = run_compiler_preprocessor_with_recipe(source, language="fortran", config=config) + assert expanded == "expanded\n" + assert restored.to_dict() == expected + + def test_direct_preprocess_invocation_rejects_missing_compiler_and_unknown_language(tmp_path: Path): source = tmp_path / "input.txt" - with pytest.raises(PreprocessingError, match="requires --compiler"): + with pytest.raises(PreprocessingError) as exc_info: build_direct_preprocess_invocation(source, language="c", config=PreprocessingConfig(mode="compiler")) - with pytest.raises(PreprocessingError, match="not supported for language"): + _assert_preprocessing_error( + exc_info, + message="c compiler preprocessing requires --compiler with an exact executable", + ) + with pytest.raises(PreprocessingError) as exc_info: build_direct_preprocess_invocation( source, language="rust", config=PreprocessingConfig(mode="compiler", compiler="cc"), ) + _assert_preprocessing_error( + exc_info, + message="compiler preprocessing is not supported for language 'rust'", + ) def test_compile_commands_invocation_uses_database_compiler_and_filters_compile_only_args(tmp_path: Path): @@ -254,15 +492,35 @@ def test_compile_commands_invocation_uses_database_compiler_and_filters_compile_ invocation = build_compile_commands_invocation(source, config=config) - assert invocation.cwd == str(tmp_path) - assert invocation.argv == [ - str(fake_compiler), - "-E", - "-DCLI_DEFINE=1", - "-Iproject/include", - "-DPROJECT_API=", - str(source), - ] + assert invocation == preprocessing.Invocation( + argv=[ + str(fake_compiler), + "-E", + "-DCLI_DEFINE=1", + "-Iproject/include", + "-DPROJECT_API=", + str(source), + ], + cwd=str(tmp_path), + adapter="gcc-compatible-c", + language="c", + compiler=str(fake_compiler), + compile_commands=str(database), + compile_commands_entry={ + "directory": str(tmp_path), + "file": str(source), + "arguments": [ + str(fake_compiler), + "-Iproject/include", + "-DPROJECT_API=", + "-c", + str(source), + "-o", + "api.o", + ], + }, + capabilities={"dependency_output": True, "macro_dump": True, "linemarkers": True}, + ) @pytest.mark.parametrize( @@ -280,6 +538,7 @@ def test_compile_commands_invocation_uses_database_compiler_and_filters_compile_ ('[{"directory": ".", "file": "api.c", "command": ["cc"]}]', "'command' must contain a string"), ('[{"directory": ".", "file": "api.c"}]', "must contain 'arguments' or 'command'"), ('[{"directory": ".", "file": "api.c", "arguments": []}]', "empty command"), + ("[1]", "entries must be objects"), ], ) def test_compile_commands_invocation_reports_invalid_database_entries(tmp_path: Path, payload: str, message: str): @@ -288,18 +547,21 @@ def test_compile_commands_invocation_reports_invalid_database_entries(tmp_path: source.write_text("int api(void);\n", encoding="utf-8") database.write_text(payload.replace('"directory": "."', f'"directory": "{tmp_path}"'), encoding="utf-8") - with pytest.raises(PreprocessingError, match=message): + with pytest.raises(PreprocessingError, match=message) as exc_info: build_compile_commands_invocation( source, config=PreprocessingConfig(mode="compiler", compile_commands=str(database)), ) + assert exc_info.value.category == "INVALID_COMPILER_ARGUMENTS" + assert exc_info.value.diagnostics == [] def test_compile_commands_invocation_reports_missing_file_and_supports_command_strings(tmp_path: Path): source = tmp_path / "api.c" source.write_text("int api(void);\n", encoding="utf-8") - with pytest.raises(PreprocessingError, match="database path is missing"): + with pytest.raises(PreprocessingError) as exc_info: build_compile_commands_invocation(source, config=PreprocessingConfig(mode="compiler")) + _assert_preprocessing_error(exc_info, message="compile_commands database path is missing") missing = tmp_path / "absent.json" with pytest.raises(PreprocessingError, match="cannot read compile commands file"): @@ -310,7 +572,9 @@ def test_compile_commands_invocation_reports_missing_file_and_supports_command_s database = tmp_path / "compile_commands.json" database.write_text( - json.dumps([{"directory": str(tmp_path), "file": str(source), "command": f"cc -c {source} -oapi.o /Fowindows.obj"}]), + json.dumps( + [{"directory": str(tmp_path), "file": str(source), "command": f"cc -c {source} -oapi.o /Fowindows.obj"}] + ), encoding="utf-8", ) invocation = build_compile_commands_invocation( @@ -320,6 +584,134 @@ def test_compile_commands_invocation_reports_missing_file_and_supports_command_s assert invocation.argv == ["clang", "-E", str(source)] +def test_compile_commands_internal_helpers_cover_paths_commands_and_selection(monkeypatch, tmp_path: Path): + source = tmp_path / "src" / "api.c" + source.parent.mkdir() + source.write_text("int api(void);\n", encoding="utf-8") + relative_entry = {"directory": str(tmp_path), "file": "src/api.c"} + absolute_entry = {"directory": "/ignored", "file": str(source)} + + assert preprocessing._entry_file_path(relative_entry) == source + assert preprocessing._entry_file_path(absolute_entry) == source + assert preprocessing._entry_file_path({"file": "api.c"}) == Path("api.c") + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._entry_file_path({}) + _assert_preprocessing_error(exc_info, message="compile_commands entry is missing 'file'") + + assert preprocessing._compile_command_argv({"arguments": ["cc", 7]}) == ["cc", "7"] + assert preprocessing._compile_command_argv({"command": "cc -DNAME='two words' api.c"}) == [ + "cc", + "-DNAME=two words", + "api.c", + ] + for entry, message in [ + ({"arguments": "cc api.c"}, "compile_commands entry 'arguments' must contain a list"), + ({"command": ["cc", "api.c"]}, "compile_commands entry 'command' must contain a string"), + ({}, "compile_commands entry must contain 'arguments' or 'command'"), + ({"arguments": []}, "compile_commands entry has an empty command"), + ]: + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._compile_command_argv(entry) + _assert_preprocessing_error(exc_info, message=message) + + args = [ + "-c", + "/c", + "-o", + "api.o", + "-oother.o", + "/Fowindows.obj", + "-MF", + "deps.d", + "-MT", + "api.o", + "-MQ", + "api.o", + "-MFdeps2.d", + "-MTapi", + "-MQapi", + "src/api.c", + "-Wall", + ] + assert preprocessing._filter_compile_only_args(args, source, tmp_path) == ["-Wall"] + assert preprocessing._compile_commands_entry(source, [relative_entry]) == relative_entry + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._compile_commands_entry(source, [1]) + _assert_preprocessing_error(exc_info, message="compile_commands entries must be objects") + + original_resolve = Path.resolve + + def fail_resolve(path: Path): + raise OSError(f"cannot resolve {path}") + + monkeypatch.setattr(Path, "resolve", fail_resolve) + try: + assert preprocessing._same_source(source, source) + finally: + monkeypatch.setattr(Path, "resolve", original_resolve) + + +def test_load_compile_commands_uses_explicit_utf8_and_exact_errors(monkeypatch, tmp_path: Path): + database = tmp_path / "compile_commands.json" + seen_encodings = [] + + def read_empty_database(_path: Path, *, encoding: str): + seen_encodings.append(encoding) + return "[]" + + monkeypatch.setattr(Path, "read_text", read_empty_database) + assert preprocessing._load_compile_commands(database) == [] + assert seen_encodings == ["utf-8"] + + def fail_read(_path: Path, *, encoding: str): + raise OSError(f"denied with {encoding}") + + monkeypatch.setattr(Path, "read_text", fail_read) + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._load_compile_commands(database) + _assert_preprocessing_error( + exc_info, + message=f"cannot read compile commands file {database}: denied with utf-8", + ) + + monkeypatch.setattr(Path, "read_text", lambda _path, *, encoding: "not json") + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._load_compile_commands(database) + _assert_preprocessing_error( + exc_info, + message="invalid compile commands JSON: Expecting value: line 1 column 1 (char 0)", + ) + + monkeypatch.setattr(Path, "read_text", lambda _path, *, encoding: "{}") + with pytest.raises(PreprocessingError) as exc_info: + preprocessing._load_compile_commands(database) + _assert_preprocessing_error(exc_info, message="compile_commands.json must contain a list") + + +@pytest.mark.parametrize( + "compile_only_args", + [ + ["-c"], + ["/c"], + ["-o", "api.o"], + ["-oapi.o"], + ["/Foapi.o"], + ["-MF", "deps.d"], + ["-MT", "api.o"], + ["-MQ", "api.o"], + ["-MFdeps.d"], + ["-MTapi.o"], + ["-MQapi.o"], + ], +) +def test_compile_only_arg_filter_removes_each_flag_without_skipping_following_args( + compile_only_args: list[str], tmp_path: Path +): + source = tmp_path / "api.c" + + assert preprocessing._filter_compile_only_args([*compile_only_args, "-Wall"], source, tmp_path) == ["-Wall"] + + def test_compile_commands_filters_dependency_and_windows_compile_flags(tmp_path: Path): source = tmp_path / "src" / "api.c" source.parent.mkdir() @@ -358,6 +750,24 @@ def test_compile_commands_filters_dependency_and_windows_compile_flags(tmp_path: assert invocation.argv == [str(compiler), "-E", "-Wall", str(source)] +def test_compile_commands_invocation_defaults_missing_directory_to_current_directory(tmp_path: Path): + source = tmp_path / "api.c" + source.write_text("int api(void);\n", encoding="utf-8") + database = tmp_path / "compile_commands.json" + database.write_text( + json.dumps([{"file": str(source), "arguments": ["cc", str(source)]}]), + encoding="utf-8", + ) + + invocation = build_compile_commands_invocation( + source, + config=PreprocessingConfig(mode="compiler", compile_commands=str(database)), + ) + + assert invocation.cwd == "." + assert invocation.argv == ["cc", "-E", str(source)] + + def test_build_preprocess_invocation_supports_fortran_compile_database(tmp_path: Path): source = tmp_path / "solver.F90" source.write_text("subroutine solve()\nend subroutine solve\n", encoding="utf-8") @@ -391,14 +801,35 @@ def test_build_preprocess_invocation_supports_fortran_compile_database(tmp_path: config=PreprocessingConfig(mode="compiler", compile_commands=str(database)), ) - assert invocation.argv == [ - str(compiler), - "-E", - "-cpp", - "-Iproject/include", - "-cpp", - str(source), - ] + assert invocation == preprocessing.Invocation( + argv=[ + str(compiler), + "-E", + "-cpp", + "-Iproject/include", + "-cpp", + str(source), + ], + cwd=str(tmp_path), + adapter="gnu-fortran", + language="fortran", + compiler=str(compiler), + compile_commands=str(database), + compile_commands_entry={ + "directory": str(tmp_path), + "file": str(source), + "arguments": [ + str(compiler), + "-Iproject/include", + "-cpp", + "-c", + str(source), + "-o", + "solver.o", + ], + }, + capabilities={"dependency_output": True, "macro_dump": True, "linemarkers": True}, + ) def test_command_template_preprocess_invocation_expands_placeholders(tmp_path: Path): @@ -416,16 +847,65 @@ def test_command_template_preprocess_invocation_expands_placeholders(tmp_path: P invocation = build_template_preprocess_invocation(source, language="c", config=config) - assert invocation.argv == [ - "vendor-cc", - "--preprocess", - "-Iinclude", - "-DAPI_EXPORT=", - "-UDEBUG", - "-std=c11", - "--target=x86_64-linux", - str(source), - ] + assert invocation == preprocessing.Invocation( + argv=[ + "vendor-cc", + "--preprocess", + "-Iinclude", + "-DAPI_EXPORT=", + "-UDEBUG", + "-std=c11", + "--target=x86_64-linux", + str(source), + ], + adapter="command-template", + language="c", + compiler="vendor-cc", + capabilities={"dependency_output": False, "macro_dump": False, "linemarkers": False}, + ) + + +def test_command_template_tokens_expand_exactly(tmp_path: Path): + source = tmp_path / "api.h" + config = PreprocessingConfig( + mode="compiler", + compiler="vendor-cc", + include_dirs=["include"], + defines=["API=1"], + undefs=["DEBUG"], + std="c11", + compiler_args=["--target=x86_64-linux"], + ) + + assert preprocessing._template_token_value("{source}", source, "c", config) == [str(source)] + assert preprocessing._template_token_value("{compiler}", source, "c", config) == ["vendor-cc"] + assert preprocessing._template_token_value("{language}", source, "c", config) == ["c"] + assert preprocessing._template_token_value("{include_dirs}", source, "c", config) == ["-Iinclude"] + assert preprocessing._template_token_value("{defines}", source, "c", config) == ["-DAPI=1"] + assert preprocessing._template_token_value("{undefs}", source, "c", config) == ["-UDEBUG"] + assert preprocessing._template_token_value("{standard}", source, "c", config) == ["-std=c11"] + assert preprocessing._template_token_value("{compiler_args}", source, "c", config) == ["--target=x86_64-linux"] + assert preprocessing._template_token_value("--std={standard}", source, "c", config) == ["--std=c11"] + assert preprocessing._template_token_value( + "--meta={source}:{compiler}:{language}:{standard}", + source, + "c", + config, + ) == [f"--meta={source}:vendor-cc:c:c11"] + assert preprocessing._template_token_value("{standard}", source, "c", PreprocessingConfig()) == [] + assert preprocessing._template_token_value("{compiler}", source, "c", PreprocessingConfig()) == [""] + assert preprocessing._template_token_value("{include_dirs}", source, "c", PreprocessingConfig()) == [] + assert preprocessing._template_token_value("{defines}", source, "c", PreprocessingConfig()) == [] + assert preprocessing._template_token_value("{undefs}", source, "c", PreprocessingConfig()) == [] + assert preprocessing._template_token_value("{compiler_args}", source, "c", PreprocessingConfig()) == [] + assert preprocessing._template_token_value( + "--meta={compiler}:{standard}", + source, + "c", + PreprocessingConfig(), + ) == ["--meta=:"] + with pytest.raises(KeyError, match="unknown"): + preprocessing._template_token_value("{unknown}", source, "c", PreprocessingConfig()) def test_command_template_validation_and_dispatch_edges(tmp_path: Path): @@ -438,7 +918,7 @@ def test_command_template_validation_and_dispatch_edges(tmp_path: Path): language="c", config=PreprocessingConfig(mode="compiler", adapter="command-template"), ) - with pytest.raises(PreprocessingError, match="expanded to an empty command"): + with pytest.raises(PreprocessingError) as exc_info: build_template_preprocess_invocation( source, language="c", @@ -448,6 +928,7 @@ def test_command_template_validation_and_dispatch_edges(tmp_path: Path): command_template="''", ), ) + _assert_preprocessing_error(exc_info, message="custom command-template adapter expanded to an empty command") invocation = build_preprocess_invocation( source, @@ -463,6 +944,22 @@ def test_command_template_validation_and_dispatch_edges(tmp_path: Path): assert invocation.argv == ["vendor-cc", "c", "--std=c99", str(source)] + with pytest.raises(PreprocessingError) as exc_info: + build_preprocess_invocation( + source, + language="c", + config=PreprocessingConfig(mode="compiler", adapter="command-template"), + ) + _assert_preprocessing_error( + exc_info, + message="custom command-template adapter requires --preprocess-template", + ) + assert build_preprocess_invocation( + source, + language="c", + config=PreprocessingConfig(mode="compiler", command_template="vendor-cc {source}"), + ).argv == ["vendor-cc", str(source)] + def test_linemarker_dependency_exposure_and_macro_edges(tmp_path: Path): root = tmp_path / "root.c" @@ -499,12 +996,33 @@ def test_linemarker_dependency_exposure_and_macro_edges(tmp_path: Path): assert mappings[0].original_line == 7 assert 'api".h' in mappings[0].original_path + assert preprocessing._unescape_linemarker_filename(r"a\nb\rc\td\\e\"f\x") == 'a\nb\rc\td\\e"fx' assert preprocessing._unescape_linemarker_filename("trailing\\") == "trailing\\" + assert preprocessing._parse_linemarker('# 12 "api.h" 1 3') == (12, "api.h", [1, 3]) + assert preprocessing._parse_linemarker("#line 14 api.h") == (14, "api.h", []) + assert preprocessing._parse_linemarker("int api;") is None + assert preprocessing._dependency_kind("api.h", [3]) == "system" assert preprocessing._dependency_kind("") == "system" + assert preprocessing._dependency_kind("api.h") == "project" + assert preprocessing._exposure_for( + "private/api.h", "project", PreprocessingConfig(private_includes=["private"]) + ) == ("private") + assert preprocessing._exposure_for("public/api.h", "project", PreprocessingConfig(public_includes=["public"])) == ( + "public" + ) + assert preprocessing._exposure_for("api.h", "system", PreprocessingConfig()) == "private" + assert preprocessing._exposure_for("api.h", "project", PreprocessingConfig(include_exposure="roots-only")) == ( + "private" + ) + assert preprocessing._exposure_for("api.h", "root", PreprocessingConfig(include_exposure="roots-only")) == "public" + assert preprocessing._line_marker(3, 'dir\\api".h') == '# 3 "dir\\\\api\\".h"' + assert preprocessing._line_marker(3, "api.h", 1) == '# 3 "api.h" 1' assert preprocessing._mapping_for_generated_line(mappings, mappings[0].generated_line, root) == mappings[0] fallback = preprocessing._mapping_for_generated_line([], 99, root) + assert fallback.generated_line == 99 assert fallback.original_path == str(root) assert fallback.original_line == 99 + assert fallback.include_stack == [str(root)] no_filename_mappings = preprocessing.parse_linemarker_mappings("#line 42\nint next;\n", filename=str(root)) assert no_filename_mappings[0].original_path == str(root) assert no_filename_mappings[0].original_line == 42 @@ -521,6 +1039,268 @@ def test_linemarker_dependency_exposure_and_macro_edges(tmp_path: Path): assert by_path["public/api.h"].exposure == "public" assert by_path["private/internal.h"].exposure == "private" assert by_path["project/hidden.h"].exposure == "private" + assert [mapping.to_dict() for mapping in mappings] == [ + { + "generated_line": 2, + "original_path": 'src\\api".h', + "original_line": 7, + "include_stack": ['src\\api".h'], + }, + { + "generated_line": 4, + "original_path": "", + "original_line": 1, + "include_stack": ['src\\api".h', ""], + }, + { + "generated_line": 8, + "original_path": "public/api.h", + "original_line": 1, + "include_stack": ["src/api.h", "public/api.h"], + }, + { + "generated_line": 10, + "original_path": "private/internal.h", + "original_line": 1, + "include_stack": ["src/api.h", "public/api.h", "private/internal.h"], + }, + { + "generated_line": 12, + "original_path": "project/hidden.h", + "original_line": 1, + "include_stack": ["src/api.h", "public/api.h", "private/internal.h", "project/hidden.h"], + }, + ] + assert [item.to_dict() for item in files] == [ + { + "path": str(root), + "included_by": None, + "include_line": None, + "mechanism": "c_include", + "dependency_kind": "root", + "exposure": "public", + }, + { + "path": "", + "included_by": 'src\\api".h', + "include_line": 8, + "mechanism": "c_include", + "dependency_kind": "system", + "exposure": "private", + }, + { + "path": "public/api.h", + "included_by": "src/api.h", + "include_line": 2, + "mechanism": "c_include", + "dependency_kind": "project", + "exposure": "public", + }, + { + "path": "private/internal.h", + "included_by": "public/api.h", + "include_line": 2, + "mechanism": "c_include", + "dependency_kind": "project", + "exposure": "private", + }, + { + "path": "project/hidden.h", + "included_by": "private/internal.h", + "include_line": 2, + "mechanism": "c_include", + "dependency_kind": "project", + "exposure": "private", + }, + ] + assert [macro.to_dict() for macro in macros] == [ + { + "name": "BUILTIN", + "value": "1", + "function_like": False, + "parameters": None, + "path": "", + "line": 1, + "builtin": True, + } + ] + + +def test_linemarker_parser_accepts_bare_filename(): + assert preprocessing._parse_linemarker("# 14 api.h") == (14, "api.h", []) + + +def test_dependency_kind_requires_both_system_filename_brackets(): + assert preprocessing._dependency_kind("") == "project" + + +def test_line_marker_escapes_paths_and_omits_absent_flag(): + assert preprocessing._line_marker(3, 'dir\\api".h') == '# 3 "dir\\\\api\\".h"' + + +def test_linemarker_mapping_and_macro_helpers_cover_default_and_return_edges(): + source = "\n".join( + [ + "int before;", + '# 1 "same.h" 1', + '# 2 "same.h" 1', + "int nested;", + '# 8 "root.c" 2', + "int returned;", + '# 3 "unknown.h" 2', + "int unknown;", + '# 9 "replacement.h"', + "int replacement;", + "#define EMPTY", + "#define NOARGS() value", + "#define ARGS(left, right) left + right", + ] + ) + + mappings = preprocessing.parse_linemarker_mappings(source) + + assert mappings[0].to_dict() == { + "generated_line": 1, + "original_path": "", + "original_line": 1, + "include_stack": [""], + } + assert mappings[1].include_stack == ["", "same.h"] + assert mappings[2].include_stack == ["root.c"] + assert mappings[3].include_stack == ["unknown.h"] + assert mappings[4].include_stack == ["replacement.h"] + assert [macro.to_dict() for macro in preprocessing._parse_macro_definitions(source, mappings)] == [ + { + "name": "EMPTY", + "value": None, + "function_like": False, + "parameters": None, + "path": "replacement.h", + "line": 10, + "builtin": False, + }, + { + "name": "NOARGS", + "value": "value", + "function_like": True, + "parameters": [], + "path": "replacement.h", + "line": 11, + "builtin": False, + }, + { + "name": "ARGS", + "value": "left + right", + "function_like": True, + "parameters": ["left", "right"], + "path": "replacement.h", + "line": 12, + "builtin": False, + }, + ] + assert preprocessing._parse_macro_definitions("#define UNMAPPED 1", []) == [ + preprocessing.MacroDefinition(name="UNMAPPED", value="1") + ] + + +def test_linemarker_included_files_fortran_metadata_and_duplicate_entries(tmp_path: Path): + root = tmp_path / "root.F90" + source = "\n".join( + [ + f'# 1 "{root}"', + '# 1 "decls.inc" 1', + "integer :: from_include", + '# 1 "decls.inc" 1', + '# 2 "unknown.inc" 2', + ] + ) + + files = preprocessing._included_files_from_linemarkers( + source, + root_path=root, + language="fortran", + config=PreprocessingConfig(), + ) + + assert [item.to_dict() for item in files] == [ + { + "path": str(root), + "included_by": None, + "include_line": None, + "mechanism": "cpp_include", + "dependency_kind": "root", + "exposure": "public", + }, + { + "path": "decls.inc", + "included_by": str(root), + "include_line": 1, + "mechanism": "cpp_include", + "dependency_kind": "project", + "exposure": "public", + }, + ] + + +def test_linemarker_nested_returns_restore_parent_stack(tmp_path: Path): + root = tmp_path / "root.F90" + source = "\n".join( + [ + f'# 1 "{root}"', + '# 1 "one.inc" 1', + '# 1 "two.inc" 1', + '# 4 "one.inc" 2', + '# 1 "sibling.inc" 1', + "integer :: sibling_value", + ] + ) + + mappings = preprocessing.parse_linemarker_mappings(source, filename=str(root)) + files = preprocessing._included_files_from_linemarkers( + source, + root_path=root, + language="fortran", + config=PreprocessingConfig(), + ) + + assert mappings == [ + preprocessing.SourceMapping( + generated_line=6, + original_path="sibling.inc", + original_line=1, + include_stack=[str(root), "one.inc", "sibling.inc"], + ) + ] + assert [(item.path, item.included_by) for item in files] == [ + (str(root), None), + ("one.inc", str(root)), + ("two.inc", "one.inc"), + ("sibling.inc", "one.inc"), + ] + assert preprocessing._included_files_from_linemarkers( + f'# 1 "{root}" 1', + root_path=root, + language="fortran", + config=PreprocessingConfig(), + ) == [ + preprocessing.IncludedFile( + path=str(root), + included_by=None, + include_line=None, + mechanism="cpp_include", + dependency_kind="root", + exposure="public", + ) + ] + direct_include = preprocessing._included_files_from_linemarkers( + '# 1 "direct.inc" 1', + root_path=root, + language="fortran", + config=PreprocessingConfig(), + )[1] + assert direct_include.included_by == str(root) + assert direct_include.include_line == 1 def test_native_fortran_include_expansion_is_recursive_and_preserves_duplicates(tmp_path: Path): @@ -528,8 +1308,8 @@ def test_native_fortran_include_expansion_is_recursive_and_preserves_duplicates( include = root.parent / "decls.inc" nested = root.parent / "nested.inc" root.parent.mkdir() - root.write_text("module m\ninclude \"decls.inc\"\ninclude \"decls.inc\"\nend module m\n", encoding="utf-8") - include.write_text("include \"nested.inc\"\ninteger :: from_decls\n", encoding="utf-8") + root.write_text('module m\ninclude "decls.inc"\ninclude "decls.inc"\nend module m\n', encoding="utf-8") + include.write_text('include "nested.inc"\ninteger :: from_decls\n', encoding="utf-8") nested.write_text("real :: from_nested\n", encoding="utf-8") expanded, included_files, mappings, diagnostics = expand_native_fortran_includes( @@ -539,10 +1319,81 @@ def test_native_fortran_include_expansion_is_recursive_and_preserves_duplicates( ) assert diagnostics == [] - assert expanded.count("integer :: from_decls") == 2 - assert expanded.count("real :: from_nested") == 2 - assert [Path(item.path).name for item in included_files].count("decls.inc") == 2 - assert any(Path(mapping.original_path).name == "nested.inc" for mapping in mappings) + root_abs = str(root.resolve()) + include_abs = str(include.resolve()) + nested_abs = str(nested.resolve()) + assert expanded == "\n".join( + [ + "module m", + f'# 1 "{include_abs}" 1', + f'# 1 "{nested_abs}" 1', + "real :: from_nested", + f'# 2 "{include_abs}" 2', + "integer :: from_decls", + f'# 3 "{root_abs}" 2', + f'# 1 "{include_abs}" 1', + f'# 1 "{nested_abs}" 1', + "real :: from_nested", + f'# 2 "{include_abs}" 2', + "integer :: from_decls", + f'# 4 "{root_abs}" 2', + "end module m", + "", + ] + ) + assert [item.to_dict() for item in included_files] == [ + { + "path": include_abs, + "included_by": root_abs, + "include_line": 2, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "public", + }, + { + "path": nested_abs, + "included_by": include_abs, + "include_line": 1, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "public", + }, + { + "path": include_abs, + "included_by": root_abs, + "include_line": 3, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "public", + }, + { + "path": nested_abs, + "included_by": include_abs, + "include_line": 1, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "public", + }, + ] + assert [ + (mapping.generated_line, mapping.original_path, mapping.original_line, mapping.include_stack) + for mapping in mappings + ] == [ + (1, root_abs, 1, [root_abs]), + (2, root_abs, 2, [root_abs]), + (3, include_abs, 1, [include_abs]), + (4, nested_abs, 1, [nested_abs]), + (5, include_abs, 1, [include_abs]), + (6, include_abs, 2, [include_abs]), + (7, root_abs, 2, [root_abs]), + (8, root_abs, 3, [root_abs]), + (9, include_abs, 1, [include_abs]), + (10, nested_abs, 1, [nested_abs]), + (11, include_abs, 1, [include_abs]), + (12, include_abs, 2, [include_abs]), + (13, root_abs, 3, [root_abs]), + (14, root_abs, 4, [root_abs]), + ] def test_native_fortran_include_lookup_order_missing_and_cycle_diagnostics(tmp_path: Path): @@ -550,7 +1401,7 @@ def test_native_fortran_include_lookup_order_missing_and_cycle_diagnostics(tmp_p include_dir = tmp_path / "include" root.parent.mkdir() include_dir.mkdir() - root.write_text("include \"shared.inc\"\n", encoding="utf-8") + root.write_text('include "shared.inc"\n', encoding="utf-8") (root.parent / "shared.inc").write_text("integer :: relative_wins\n", encoding="utf-8") (include_dir / "shared.inc").write_text("integer :: include_dir_loses\n", encoding="utf-8") @@ -564,102 +1415,657 @@ def test_native_fortran_include_lookup_order_missing_and_cycle_diagnostics(tmp_p assert "relative_wins" in expanded assert "include_dir_loses" not in expanded - missing_source = "include \"absent.inc\"\n" + missing_source = 'include "absent.inc"\n' _expanded, _included_files, _mappings, diagnostics = expand_native_fortran_includes( missing_source, root_path=root, include_dirs=[str(include_dir)], ) - assert [diagnostic.category for diagnostic in diagnostics] == ["INCLUDE_NOT_FOUND"] + assert [diagnostic.to_dict() for diagnostic in diagnostics] == [ + { + "category": "INCLUDE_NOT_FOUND", + "message": 'Fortran INCLUDE file "absent.inc" was not found', + "severity": "error", + "path": str(root.resolve()), + "line": 1, + "command": [], + } + ] cycle_a = root.parent / "a.inc" cycle_b = root.parent / "b.inc" - cycle_a.write_text("include \"b.inc\"\n", encoding="utf-8") - cycle_b.write_text("include \"a.inc\"\n", encoding="utf-8") + cycle_a.write_text('include "b.inc"\n', encoding="utf-8") + cycle_b.write_text('include "a.inc"\n', encoding="utf-8") _expanded, _included_files, _mappings, diagnostics = expand_native_fortran_includes( - "include \"a.inc\"\n", + 'include "a.inc"\n', + root_path=root, + include_dirs=[], + ) + assert [diagnostic.to_dict() for diagnostic in diagnostics] == [ + { + "category": "INCLUDE_CYCLE", + "message": ( + f"Fortran INCLUDE cycle detected: {root.resolve()} -> {cycle_a.resolve()} -> " + f"{cycle_b.resolve()} -> {cycle_a.resolve()}" + ), + "severity": "error", + "path": str(cycle_b.resolve()), + "line": 1, + "command": [], + } + ] + + +def test_native_fortran_include_reports_files_that_disappear_before_read(monkeypatch, tmp_path: Path): + root = tmp_path / "root.F90" + include = tmp_path / "vanished.inc" + root.write_text('include "vanished.inc"\n', encoding="utf-8") + include.write_text("integer :: vanished\n", encoding="utf-8") + original_read_text = Path.read_text + + seen_encodings = [] + + def fail_for_include(path: Path, *args, **kwargs): + if path == include: + seen_encodings.append(kwargs["encoding"]) + raise OSError("disappeared") + return original_read_text(path, *args, **kwargs) + + monkeypatch.setattr(Path, "read_text", fail_for_include) + + expanded, included_files, _mappings, diagnostics = expand_native_fortran_includes( + root.read_text(encoding="utf-8"), + root_path=root, + include_dirs=[], + ) + + assert expanded.startswith(f'# 1 "{include}" 1') + assert [Path(item.path) for item in included_files] == [include] + assert seen_encodings == ["utf-8"] + assert [diagnostic.to_dict() for diagnostic in diagnostics] == [ + { + "category": "INCLUDE_NOT_FOUND", + "message": 'Fortran INCLUDE file "vanished.inc" could not be read: disappeared', + "severity": "error", + "path": str(root.resolve()), + "line": 1, + "command": [], + } + ] + + +def test_native_fortran_include_resolution_continues_after_oserror(monkeypatch, tmp_path: Path): + root = tmp_path / "src" / "root.F90" + include_dir = tmp_path / "include" + root.parent.mkdir() + include_dir.mkdir() + include = include_dir / "decls.inc" + include.write_text("integer :: from_include_dir\n", encoding="utf-8") + first_candidate = root.parent / "decls.inc" + original_is_file = Path.is_file + + def fail_first_candidate(path: Path): + if path == first_candidate: + raise OSError("lookup failed") + return original_is_file(path) + + monkeypatch.setattr(Path, "is_file", fail_first_candidate) + + expanded, included_files, _mappings, diagnostics = expand_native_fortran_includes( + 'include "decls.inc"\n', + root_path=root, + include_dirs=[str(include_dir)], + ) + + assert diagnostics == [] + assert "from_include_dir" in expanded + assert [Path(item.path) for item in included_files] == [include] + + +def test_native_fortran_include_uses_absolute_fallback_when_resolve_fails(monkeypatch, tmp_path: Path): + root = tmp_path / "root.F90" + include = tmp_path / "decls.inc" + include.write_text("integer :: value\n", encoding="utf-8") + original_resolve = Path.resolve + + def fail_include_resolve(path: Path): + if path == include: + raise OSError("cannot resolve include") + return original_resolve(path) + + monkeypatch.setattr(Path, "resolve", fail_include_resolve) + + expanded, included_files, _mappings, diagnostics = expand_native_fortran_includes( + 'include "decls.inc"\n', root_path=root, include_dirs=[], ) - assert "INCLUDE_CYCLE" in [diagnostic.category for diagnostic in diagnostics] + + assert diagnostics == [] + assert f'# 1 "{include.absolute()}" 1' in expanded + assert [item.path for item in included_files] == [str(include.absolute())] + + +def test_native_fortran_include_diagnostics_do_not_drop_following_lines(monkeypatch, tmp_path: Path): + root = tmp_path / "root.F90" + cycle = tmp_path / "cycle.inc" + vanished = tmp_path / "vanished.inc" + cycle.write_text('include "cycle.inc"\ninteger :: after_cycle\n', encoding="utf-8") + vanished.write_text("integer :: vanished\n", encoding="utf-8") + original_read_text = Path.read_text + + def fail_for_vanished(path: Path, *args, **kwargs): + if path == vanished: + raise OSError("disappeared") + return original_read_text(path, *args, **kwargs) + + monkeypatch.setattr(Path, "read_text", fail_for_vanished) + + expanded, _included_files, _mappings, diagnostics = expand_native_fortran_includes( + 'include "cycle.inc"\ninclude "vanished.inc"\ninteger :: after_read_error\n', + root_path=root, + include_dirs=[], + ) + + assert "after_cycle" in expanded + assert "after_read_error" in expanded + assert [diagnostic.category for diagnostic in diagnostics] == ["INCLUDE_CYCLE", "INCLUDE_NOT_FOUND"] + + +def test_native_fortran_include_expansion_preserves_input_linemarkers_and_private_exposure(tmp_path: Path): + root = tmp_path / "root.F90" + include = tmp_path / "private.inc" + include.write_text("integer :: from_include\n", encoding="utf-8") + source = f'# 40 "{root}"\ninclude "private.inc"' + + expanded, included_files, mappings, diagnostics = expand_native_fortran_includes( + source, + root_path=root, + include_dirs=[], + config=PreprocessingConfig(private_includes=["private"]), + ) + + assert diagnostics == [] + assert expanded == "\n".join( + [ + f'# 40 "{root}"', + f'# 1 "{include}" 1', + "integer :: from_include", + f'# 41 "{root}" 2', + ] + ) + assert [item.to_dict() for item in included_files] == [ + { + "path": str(include), + "included_by": str(root), + "include_line": 40, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "private", + } + ] + assert [(mapping.generated_line, mapping.original_path, mapping.original_line) for mapping in mappings] == [ + (1, str(root), 1), + (2, str(root), 40), + (3, str(include), 1), + (4, str(root), 40), + ] + + +def test_native_fortran_missing_include_does_not_drop_following_source(tmp_path: Path): + root = tmp_path / "root.F90" + + expanded, included_files, mappings, diagnostics = expand_native_fortran_includes( + 'include "missing.inc"\ninteger :: retained\n', + root_path=root, + include_dirs=[], + ) + + assert expanded == "integer :: retained\n" + assert included_files == [] + assert [(mapping.generated_line, mapping.original_path, mapping.original_line) for mapping in mappings] == [ + (1, str(root), 2) + ] + assert [diagnostic.to_dict() for diagnostic in diagnostics] == [ + { + "category": "INCLUDE_NOT_FOUND", + "message": 'Fortran INCLUDE file "missing.inc" was not found', + "severity": "error", + "path": str(root), + "line": 1, + "command": [], + } + ] def test_run_compiler_preprocessor_success_and_failures(monkeypatch, tmp_path: Path): config = PreprocessingConfig(mode="compiler", compiler="cc") source = tmp_path / "api.c" source.write_text("int api(void);\n", encoding="utf-8") - monkeypatch.setattr( - preprocessing.subprocess, - "run", - lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": "expanded", "stderr": ""})(), - ) + calls = [] + + def succeed(*args, **kwargs): + calls.append((args, kwargs)) + return type("Done", (), {"returncode": 0, "stdout": "expanded", "stderr": ""})() + + monkeypatch.setattr(preprocessing.subprocess, "run", succeed) expanded, recipe = run_compiler_preprocessor_with_recipe(source, language="c", config=config) assert expanded == "expanded" assert recipe.compiler == "cc" assert run_compiler_preprocessor(source, language="c", config=config) == "expanded" + assert calls == [ + ( + (["cc", "-E", "-x", "c", str(source)],), + {"cwd": None, "capture_output": True, "text": True, "timeout": 60, "check": False}, + ), + ( + (["cc", "-E", "-x", "c", str(source)],), + {"cwd": None, "capture_output": True, "text": True, "timeout": 60, "check": False}, + ), + ] def raise_oserror(*_args, **_kwargs): raise OSError("cannot start") monkeypatch.setattr(preprocessing.subprocess, "run", raise_oserror) - with pytest.raises(PreprocessingError, match="failed to run compiler preprocessor"): + with pytest.raises(PreprocessingError) as exc_info: run_compiler_preprocessor(source, language="c", config=config) + assert str(exc_info.value) == "failed to run compiler preprocessor: cannot start" + assert exc_info.value.category == "PREPROCESSOR_FAILED" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_FAILED", + "message": "failed to run compiler preprocessor: cannot start", + "severity": "error", + "path": None, + "line": None, + "command": ["cc", "-E", "-x", "c", str(source)], + } + ] monkeypatch.setattr( preprocessing.subprocess, "run", lambda *_args, **_kwargs: type("Done", (), {"returncode": 1, "stdout": "", "stderr": "bad option"})(), ) - with pytest.raises(PreprocessingError, match="compiler preprocessing failed"): + with pytest.raises(PreprocessingError) as exc_info: run_compiler_preprocessor(source, language="c", config=config) + assert str(exc_info.value) == "compiler preprocessing failed with exit code 1\nbad option" + assert exc_info.value.category == "PREPROCESSOR_FAILED" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_FAILED", + "message": "bad option", + "severity": "error", + "path": None, + "line": None, + "command": ["cc", "-E", "-x", "c", str(source)], + } + ] + + +def test_preprocess_source_preserves_exact_success_metadata(monkeypatch, tmp_path: Path): + source = tmp_path / "api.c" + source.write_text("int api(void);\n", encoding="utf-8") + expanded = f'# 1 "{source}"\n#define API 1\nint value;\n' + monkeypatch.setattr( + preprocessing.subprocess, + "run", + lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": expanded, "stderr": ""})(), + ) + config = PreprocessingConfig( + mode="compiler", + compiler=str(tmp_path / "cc"), + include_dirs=["include"], + defines=["CLI=1"], + undefs=["DEBUG"], + std="c11", + compiler_args=["-dD"], + ) + + result = preprocessing.preprocess_source(source, language="c", config=config) + + argv = [ + str(tmp_path / "cc"), + "-E", + "-x", + "c", + "-Iinclude", + "-DCLI=1", + "-UDEBUG", + "-std=c11", + "-dD", + str(source), + ] + included_files = [ + { + "path": str(source), + "included_by": None, + "include_line": None, + "mechanism": "c_include", + "dependency_kind": "root", + "exposure": "public", + } + ] + mappings = [ + { + "generated_line": 2, + "original_path": str(source), + "original_line": 1, + "include_stack": [str(source)], + }, + { + "generated_line": 3, + "original_path": str(source), + "original_line": 2, + "include_stack": [str(source)], + }, + ] + macros = [ + { + "name": "API", + "value": "1", + "function_like": False, + "parameters": None, + "path": str(source), + "line": 1, + "builtin": False, + } + ] + recipe = { + "language": "c", + "compiler": str(tmp_path / "cc"), + "mode": "compiler", + "adapter": "gcc-compatible-c", + "argv": argv, + "cwd": None, + "include_dirs": ["include"], + "defines": ["CLI=1"], + "undefs": ["DEBUG"], + "standard": "c11", + "std": "c11", + "compiler_args": ["-dD"], + "source_path": str(source), + "source_file": str(source), + "compile_commands": None, + "compile_commands_entry": None, + "command_template": None, + "included_files": included_files, + "source_mappings": mappings, + "macros": macros, + "diagnostics": [], + "capabilities": {"dependency_output": True, "macro_dump": True, "linemarkers": True}, + } + assert result.to_dict() == { + "source": expanded, + "recipe": recipe, + "included_files": included_files, + "source_mappings": mappings, + "macros": macros, + "diagnostics": [], + } + + +def test_preprocess_source_preserves_plain_source_mapping_and_fortran_native_metadata(monkeypatch, tmp_path: Path): + c_source = tmp_path / "api.c" + fortran_source = tmp_path / "solver.F90" + private_include = tmp_path / "private.inc" + c_source.write_text("int api(void);\n", encoding="utf-8") + fortran_source.write_text('include "private.inc"\n', encoding="utf-8") + private_include.write_text("integer :: hidden\n", encoding="utf-8") + + outputs = iter(["int api(void);\n", 'include "private.inc"\n']) + monkeypatch.setattr( + preprocessing.subprocess, + "run", + lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": next(outputs), "stderr": ""})(), + ) + + c_result = preprocessing.preprocess_source( + c_source, + language="c", + config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "cc")), + ) + fortran_result = preprocessing.preprocess_source( + fortran_source, + language="fortran", + config=PreprocessingConfig( + mode="compiler", + compiler=str(tmp_path / "gfortran"), + private_includes=["private"], + ), + ) + + assert c_result.source_mappings == [ + preprocessing.SourceMapping( + generated_line=1, + original_path=str(c_source), + original_line=1, + include_stack=[str(c_source)], + ) + ] + assert [item.to_dict() for item in fortran_result.included_files] == [ + { + "path": str(fortran_source), + "included_by": None, + "include_line": None, + "mechanism": "cpp_include", + "dependency_kind": "root", + "exposure": "public", + }, + { + "path": str(private_include), + "included_by": str(fortran_source.resolve()), + "include_line": 1, + "mechanism": "fortran_include", + "dependency_kind": "project", + "exposure": "private", + }, + ] + assert fortran_result.source_mappings == [ + preprocessing.SourceMapping( + generated_line=1, + original_path=str(fortran_source.resolve()), + original_line=1, + include_stack=[str(fortran_source.resolve())], + ), + preprocessing.SourceMapping( + generated_line=2, + original_path=str(private_include), + original_line=1, + include_stack=[str(private_include)], + ), + preprocessing.SourceMapping( + generated_line=3, + original_path=str(fortran_source.resolve()), + original_line=1, + include_stack=[str(fortran_source.resolve())], + ), + ] + + +def test_preprocess_source_reparses_fortran_mapping_when_native_expansion_returns_none(monkeypatch, tmp_path: Path): + source = tmp_path / "solver.F90" + source.write_text("integer :: value\n", encoding="utf-8") + monkeypatch.setattr( + preprocessing.subprocess, + "run", + lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": "ignored\n", "stderr": ""})(), + ) + monkeypatch.setattr( + preprocessing, + "expand_native_fortran_includes", + lambda *_args, **_kwargs: ("integer :: value\n", [], [], []), + ) + + result = preprocessing.preprocess_source( + source, + language="fortran", + config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "gfortran")), + ) + + assert result.source_mappings == [ + preprocessing.SourceMapping( + generated_line=1, + original_path=str(source), + original_line=1, + include_stack=[str(source)], + ) + ] + + +def test_run_compiler_preprocessor_with_recipe_restores_sparse_recipe_defaults(monkeypatch, tmp_path: Path): + source = tmp_path / "api.c" + result = preprocessing.PreprocessResult(source="expanded\n", recipe={"language": "c"}) + monkeypatch.setattr(preprocessing, "preprocess_source", lambda *_args, **_kwargs: result) + + expanded, recipe = run_compiler_preprocessor_with_recipe(source, language="c", config=PreprocessingConfig()) + + assert expanded == "expanded\n" + assert recipe.mode == "compiler" + assert recipe.adapter == "direct" + + +def test_preprocess_source_uses_compile_database_working_directory(monkeypatch, tmp_path: Path): + source = tmp_path / "api.c" + source.write_text("int api(void);\n", encoding="utf-8") + compiler = tmp_path / "cc" + database = tmp_path / "compile_commands.json" + database.write_text( + json.dumps([{"directory": str(tmp_path), "file": str(source), "arguments": [str(compiler), str(source)]}]), + encoding="utf-8", + ) + calls = [] + + def succeed(*args, **kwargs): + calls.append((args, kwargs)) + return type("Done", (), {"returncode": 0, "stdout": "int api(void);\n", "stderr": ""})() + + monkeypatch.setattr(preprocessing.subprocess, "run", succeed) + + result = preprocessing.preprocess_source( + source, + language="c", + config=PreprocessingConfig(mode="compiler", compile_commands=str(database)), + ) + + assert result.source == "int api(void);\n" + assert result.source_mappings == [ + preprocessing.SourceMapping( + generated_line=1, + original_path=str(source), + original_line=1, + include_stack=[str(source)], + ) + ] + assert calls == [ + ( + ([str(compiler), "-E", str(source)],), + {"cwd": str(tmp_path), "capture_output": True, "text": True, "timeout": 60, "check": False}, + ) + ] def test_preprocess_source_error_paths_and_fortran_include_diagnostics(monkeypatch, tmp_path: Path): c_source = tmp_path / "api.c" c_source.write_text("int api(void);\n", encoding="utf-8") - with pytest.raises(PreprocessingError, match="not configured"): + with pytest.raises(PreprocessingError, match="not configured") as exc_info: preprocessing.preprocess_source(c_source, language="c", config=PreprocessingConfig()) - with pytest.raises(PreprocessingError, match="preprocessor not found"): + assert str(exc_info.value) == "Compiler preprocessing not configured" + assert exc_info.value.category == "INVALID_COMPILER_ARGUMENTS" + assert exc_info.value.diagnostics == [] + + missing_name = "x2py-definitely-missing-preprocessor" + with pytest.raises(PreprocessingError, match="preprocessor not found") as exc_info: preprocessing.preprocess_source( c_source, language="c", - config=PreprocessingConfig(mode="compiler", compiler="x2py-definitely-missing-preprocessor"), + config=PreprocessingConfig(mode="compiler", compiler=missing_name), ) + assert exc_info.value.category == "PREPROCESSOR_NOT_FOUND" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_NOT_FOUND", + "message": f"preprocessor not found: {missing_name}", + "severity": "error", + "path": None, + "line": None, + "command": [missing_name, "-E", "-x", "c", str(c_source)], + } + ] def raise_file_not_found(*_args, **_kwargs): raise FileNotFoundError("missing") monkeypatch.setattr(preprocessing.subprocess, "run", raise_file_not_found) - with pytest.raises(PreprocessingError, match="preprocessor not found"): + missing_path = str(tmp_path / "missing-cc") + with pytest.raises(PreprocessingError, match="preprocessor not found") as exc_info: preprocessing.preprocess_source( c_source, language="c", - config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "missing-cc")), + config=PreprocessingConfig(mode="compiler", compiler=missing_path), ) + assert str(exc_info.value) == f"preprocessor not found: {missing_path}" + assert exc_info.value.category == "PREPROCESSOR_NOT_FOUND" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_NOT_FOUND", + "message": f"preprocessor not found: {missing_path}", + "severity": "error", + "path": None, + "line": None, + "command": [missing_path, "-E", "-x", "c", str(c_source)], + } + ] def raise_timeout(*_args, **_kwargs): raise subprocess.TimeoutExpired(cmd="cc", timeout=60) monkeypatch.setattr(preprocessing.subprocess, "run", raise_timeout) - with pytest.raises(PreprocessingError, match="timed out"): + slow_path = str(tmp_path / "slow-cc") + with pytest.raises(PreprocessingError, match="timed out") as exc_info: preprocessing.preprocess_source( c_source, language="c", - config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "slow-cc")), + config=PreprocessingConfig(mode="compiler", compiler=slow_path), ) + assert str(exc_info.value) == "compiler preprocessing failed: timed out after 60 seconds" + assert exc_info.value.category == "PREPROCESSOR_FAILED" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_FAILED", + "message": "compiler preprocessing timed out after 60 seconds", + "severity": "error", + "path": None, + "line": None, + "command": [slow_path, "-E", "-x", "c", str(c_source)], + } + ] monkeypatch.setattr( preprocessing.subprocess, "run", lambda *_args, **_kwargs: type("Done", (), {"returncode": 2, "stdout": "", "stderr": ""})(), ) - with pytest.raises(PreprocessingError, match="exit code 2"): + bad_path = str(tmp_path / "bad-cc") + with pytest.raises(PreprocessingError, match="exit code 2") as exc_info: preprocessing.preprocess_source( c_source, language="c", - config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "bad-cc")), + config=PreprocessingConfig(mode="compiler", compiler=bad_path), ) + assert exc_info.value.category == "PREPROCESSOR_FAILED" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "PREPROCESSOR_FAILED", + "message": "compiler preprocessing failed with exit code 2", + "severity": "error", + "path": None, + "line": None, + "command": [bad_path, "-E", "-x", "c", str(c_source)], + } + ] monkeypatch.setattr( preprocessing.subprocess, @@ -675,14 +2081,37 @@ def raise_timeout(*_args, **_kwargs): command_template=f"{sys.executable} {{source}}", ), ) - assert [diagnostic.category for diagnostic in result.diagnostics] == ["PROVENANCE_UNAVAILABLE"] + assert [diagnostic.to_dict() for diagnostic in result.diagnostics] == [ + { + "category": "PROVENANCE_UNAVAILABLE", + "message": "selected compiler adapter did not provide source linemarkers", + "severity": "warning", + "path": None, + "line": None, + "command": [sys.executable, str(c_source)], + } + ] + + monkeypatch.setattr( + preprocessing.subprocess, + "run", + lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": "", "stderr": ""})(), + ) + result = preprocessing.preprocess_source( + c_source, + language="c", + config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "cc")), + ) + assert result.diagnostics == [] fortran_source = tmp_path / "solver.F90" fortran_source.write_text('include "missing.inc"\n', encoding="utf-8") monkeypatch.setattr( preprocessing.subprocess, "run", - lambda *_args, **_kwargs: type("Done", (), {"returncode": 0, "stdout": 'include "missing.inc"\n', "stderr": ""})(), + lambda *_args, **_kwargs: type( + "Done", (), {"returncode": 0, "stdout": 'include "missing.inc"\n', "stderr": ""} + )(), ) with pytest.raises(PreprocessingError) as exc_info: preprocessing.preprocess_source( @@ -690,7 +2119,18 @@ def raise_timeout(*_args, **_kwargs): language="fortran", config=PreprocessingConfig(mode="compiler", compiler=str(tmp_path / "gfortran")), ) + assert str(exc_info.value) == 'Fortran INCLUDE file "missing.inc" was not found' assert exc_info.value.category == "INCLUDE_NOT_FOUND" + assert [diagnostic.to_dict() for diagnostic in exc_info.value.diagnostics] == [ + { + "category": "INCLUDE_NOT_FOUND", + "message": 'Fortran INCLUDE file "missing.inc" was not found', + "severity": "error", + "path": str(fortran_source.resolve()), + "line": 1, + "command": [], + } + ] def test_cli_help_documents_exact_compiler_and_preprocessing_examples(): @@ -701,7 +2141,7 @@ def test_cli_help_documents_exact_compiler_and_preprocessing_examples(): check=True, ) - assert "--preprocess {internal,compiler}" in res.stdout + assert "--preprocess {internal,compiler}" not in res.stdout assert "--compiler COMPILER" in res.stdout assert "gcc-13" in res.stdout assert "clang-18" in res.stdout @@ -710,7 +2150,7 @@ def test_cli_help_documents_exact_compiler_and_preprocessing_examples(): assert "-D USE_MPI" in res.stdout -def test_cli_c_internal_mode_accepts_include_dirs_for_raw_include_resolution(tmp_path: Path): +def test_cli_c_default_compiler_mode_accepts_include_dirs(tmp_path: Path): include_dir = tmp_path / "include" include_dir.mkdir() dependency = include_dir / "types.h" @@ -737,11 +2177,11 @@ def test_cli_c_internal_mode_accepts_include_dirs_for_raw_include_resolution(tmp ) payload = json.loads(res.stdout)[str(header)] - assert payload["preprocessing"] == "raw" - assert payload["includes"][0]["resolved_path"] == str(dependency) + assert payload["preprocessing"] == "compiler" + assert payload["preprocessing_recipe"]["compiler"] == "cc" -def test_cli_c_internal_mode_rejects_define_flags_that_need_compiler_selection(tmp_path: Path): +def test_cli_c_default_compiler_mode_accepts_define_flags(tmp_path: Path): header = tmp_path / "api.h" header.write_text("int run(void);\n", encoding="utf-8") @@ -761,11 +2201,10 @@ def test_cli_c_internal_mode_rejects_define_flags_that_need_compiler_selection(t text=True, ) - assert res.returncode == 2 - assert "raw C mode records source macros" in res.stderr + assert res.returncode == 0 -def test_cli_compiler_mode_requires_exact_compiler_or_compile_database(tmp_path: Path): +def test_cli_compiler_mode_uses_default_c_compiler(tmp_path: Path): header = tmp_path / "api.h" header.write_text("int run(void);\n", encoding="utf-8") @@ -778,18 +2217,17 @@ def test_cli_compiler_mode_requires_exact_compiler_or_compile_database(tmp_path: "--language", "c", "--parse", - "--preprocess", - "compiler", + "--json", ], capture_output=True, text=True, ) - assert res.returncode == 2 - assert "requires --compiler with an exact executable" in res.stderr + assert res.returncode == 0 + assert json.loads(res.stdout)[str(header)]["preprocessing_recipe"]["compiler"] == "cc" -def test_cli_compiler_specific_flags_require_compiler_mode(tmp_path: Path): +def test_cli_accepts_explicit_compiler_flag(tmp_path: Path): header = tmp_path / "api.h" header.write_text("int run(void);\n", encoding="utf-8") @@ -809,8 +2247,7 @@ def test_cli_compiler_specific_flags_require_compiler_mode(tmp_path: Path): text=True, ) - assert res.returncode == 2 - assert "--compiler requires --preprocess compiler" in res.stderr + assert res.returncode in {0, 1} def test_cli_accepts_compile_database_for_fortran_compiler_mode(tmp_path: Path): @@ -842,8 +2279,6 @@ def test_cli_accepts_compile_database_for_fortran_compiler_mode(tmp_path: Path): str(source), "--parse", "--json", - "--preprocess", - "compiler", "--compile-commands", str(database), ], @@ -873,8 +2308,6 @@ def test_cli_c_compiler_mode_runs_exact_compiler_and_parses_preprocessed_stdout( "c", "--parse", "--json", - "--preprocess", - "compiler", "--compiler", str(compiler), "-I", @@ -897,7 +2330,7 @@ def test_cli_c_compiler_mode_runs_exact_compiler_and_parses_preprocessed_stdout( assert payload["preprocessing"] == "compiler" assert [fn["name"] for fn in payload["functions"]] == ["expanded"] - assert payload["functions"][0]["origin"] == "preprocessed" + assert "origin" not in payload["functions"][0] assert payload["functions"][0]["source_location"]["filename"] == "include/api.h" assert payload["functions"][0]["source_location"]["line"] == 44 assert compiler_args == [ @@ -941,8 +2374,6 @@ def test_cli_preprocessing_failure_has_category_without_traceback_unless_debug(t "--language", "c", "--parse", - "--preprocess", - "compiler", "--compiler", str(compiler), ], @@ -958,8 +2389,6 @@ def test_cli_preprocessing_failure_has_category_without_traceback_unless_debug(t "--language", "c", "--parse", - "--preprocess", - "compiler", "--compiler", str(compiler), "--debug", @@ -1012,8 +2441,6 @@ def test_cli_c_compile_commands_mode_uses_exact_database_compiler(tmp_path: Path "c", "--parse", "--json", - "--preprocess", - "compiler", "--compile-commands", str(database), ], @@ -1056,8 +2483,6 @@ def test_cli_c_compiler_mode_macro_metadata_flows_to_semantic_constants(tmp_path "c", "--semantics", "--json", - "--preprocess", - "compiler", "--compiler", str(compiler), ], @@ -1072,32 +2497,7 @@ def test_cli_c_compiler_mode_macro_metadata_flows_to_semantic_constants(tmp_path assert constants["API_VERSION"]["default_value"] == "3" -def test_cli_fortran_internal_mode_rejects_define_flags_that_need_compiler_selection(tmp_path: Path): - source = tmp_path / "branch.F90" - source.write_text( - """ -#ifdef USE_MPI -subroutine selected() -end subroutine selected -#else -subroutine fallback() -end subroutine fallback -#endif -""".strip(), - encoding="utf-8", - ) - - res = subprocess.run( - [sys.executable, "-m", "x2py", str(source), "--parse", "-D", "USE_MPI"], - capture_output=True, - text=True, - ) - - assert res.returncode == 2 - assert "internal Fortran parsing does not evaluate CPP branches" in res.stderr - - -def test_cli_fortran_internal_json_does_not_record_macro_selection_recipe(tmp_path: Path): +def test_cli_fortran_default_compiler_json_records_preprocessing_recipe(tmp_path: Path): source = tmp_path / "branch.F90" source.write_text( "subroutine selected()\nend subroutine selected\n", @@ -1111,10 +2511,10 @@ def test_cli_fortran_internal_json_does_not_record_macro_selection_recipe(tmp_pa check=True, ) - assert "preprocessing_recipe" not in json.loads(res.stdout)[str(source)] + assert json.loads(res.stdout)[str(source)]["preprocessing_recipe"]["compiler"] == "gfortran" -def test_cli_fortran_internal_mode_rejects_include_dirs_that_need_compiler(tmp_path: Path): +def test_cli_fortran_default_compiler_mode_accepts_include_dirs(tmp_path: Path): source = tmp_path / "mini.F90" source.write_text("subroutine work()\nend subroutine work\n", encoding="utf-8") @@ -1124,8 +2524,7 @@ def test_cli_fortran_internal_mode_rejects_include_dirs_that_need_compiler(tmp_p text=True, ) - assert res.returncode == 2 - assert "affects Fortran only with --preprocess compiler" in res.stderr + assert res.returncode == 0 def test_cli_fortran_compiler_mode_runs_exact_compiler_and_parses_stdout(tmp_path: Path): @@ -1144,8 +2543,6 @@ def test_cli_fortran_compiler_mode_runs_exact_compiler_and_parses_stdout(tmp_pat str(source), "--parse", "--json", - "--preprocess", - "compiler", "--compiler", str(compiler), "-I", diff --git a/tests/parser/test_preprocessor_and_execution_boundaries.py b/tests/parser/test_preprocessor_and_execution_boundaries.py index b0bb5b6e5..663b3c1e9 100644 --- a/tests/parser/test_preprocessor_and_execution_boundaries.py +++ b/tests/parser/test_preprocessor_and_execution_boundaries.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Preprocessor selection and declaration/execution boundary handling.""" import ast @@ -10,6 +9,55 @@ from x2py import FortranParseError, parse_fortran_file +def test_fortran_lexer_strip_comment_preserves_directives_and_quoted_bangs(): + from fortran_parser.lexer import strip_comment + + assert strip_comment(" !$OMP parallel do", "free") == "!$OMP parallel do" + assert strip_comment("C$OMP PARALLEL DO", "fixed") == "!$omp PARALLEL DO" + assert strip_comment("*$omp end parallel do", "fixed") == "!$omp end parallel do" + assert strip_comment("#ifdef USE_FAST", "fixed") == "#ifdef USE_FAST" + assert strip_comment(" #ifdef USE_FAST", "fixed") == " #ifdef USE_FAST" + assert strip_comment(" #define BANG !", "fixed") == " #define BANG !" + assert strip_comment("c ordinary comment", "fixed") == "" + assert strip_comment("C ordinary comment", "fixed") == "" + assert strip_comment("* ordinary comment", "fixed") == "" + assert strip_comment("! ordinary comment", "fixed") == "" + assert strip_comment("print *, 'kept ! text' ! removed", "free") == "print *, 'kept ! text' " + assert strip_comment('print *, "kept ! text" ! removed', "free") == 'print *, "kept ! text" ' + assert strip_comment("""print *, 'kept " ! text' ! removed""", "free") == """print *, 'kept " ! text' """ + + +def test_fortran_lexer_preprocess_lines_folds_free_and_fixed_continuations(): + from fortran_parser.lexer import preprocess_lines + + free = "alpha = one &\n & + two ! removed\n\nbeta = 3\n! removed\n" + assert preprocess_lines(free, filename="free.f90") == [ + ("alpha = one+ two", 1, "alpha = one &"), + ("beta = 3", 4, "beta = 3"), + ] + assert preprocess_lines("alpha = one&\n&two\n", filename="free.f90") == [ + ("alpha = onetwo", 1, "alpha = one&"), + ] + assert preprocess_lines("alpha = X\nbeta = 1 \n", filename="free.f90") == [ + ("alpha = X", 1, "alpha = X"), + ("beta = 1", 2, "beta = 1 "), + ] + + fixed = " alpha = one\n 1 + two\nC comment\n beta = 3\n" + assert preprocess_lines(fixed, filename="fixed.f") == [ + ("alpha = one + two", 1, " alpha = one"), + ("beta = 3", 4, " beta = 3"), + ] + assert preprocess_lines(" alpha = one\n\n 1x\n\n 1y\n", filename="fixed.f") == [ + ("alpha = one x y", 1, " alpha = one"), + ] + assert preprocess_lines(" alpha = one\n!$omp parallel do\n beta = 3\n", filename="fixed.f") == [ + ("alpha = one", 1, " alpha = one"), + ("!$omp parallel do", 2, "!$omp parallel do"), + ("beta = 3", 3, " beta = 3"), + ] + + def collect_signature_shape_symbols(signature): symbols = set() for arg in signature.arguments: @@ -46,7 +94,7 @@ def fold_integer_expr(text): if any(not isinstance(node, allowed) for node in ast.walk(tree)): return text value = eval(compile(tree, "", "eval"), {"__builtins__": {}}, {}) - return str(int(value)) if isinstance(value, (int, float)) and value == int(value) else text + return str(int(value)) if isinstance(value, int | float) and value == int(value) else text for arg in out.arguments: arg.shape = list(arg.shape) @@ -60,6 +108,7 @@ def fold_integer_expr(text): arg.shape[index] = dim return out + def test_signature_shape_helpers_evaluate_publicly_parsed_signature(): code = """ subroutine fill(a) @@ -74,37 +123,43 @@ def test_signature_shape_helpers_evaluate_publicly_parsed_signature(): assert evaluated.arguments[0].shape == ["0:3", "1:3"] assert sig.arguments[0].shape == ["0:nx-1", "1:ny"] -def test_cpp_directives_are_preserved_without_parser_branch_selection(): - code = """ -#if defined USE_FAST -subroutine fast_path(x) - integer, intent(in) :: x -end subroutine fast_path -#else -subroutine slow_path(x) - real, intent(in) :: x -end subroutine slow_path -#endif - -#ifndef USE_SLOW -subroutine default_path(x) - logical, intent(in) :: x -end subroutine default_path -#else -subroutine selected_slow_path(x) - real, intent(in) :: x -end subroutine selected_slow_path -#endif -""" - parsed = parse_fortran_file(code) +@pytest.mark.parametrize("directive", ["#if USE_FAST", "#ifdef USE_FAST", "#define USE_FAST 1", '#include "api.inc"']) +def test_cpp_directives_require_compiler_preprocessing(directive): + code = f"{directive}\nsubroutine selected()\nend subroutine selected\n" + + with pytest.raises(FortranParseError, match="require compiler preprocessing") as exc_info: + parse_fortran_file(code, filename="raw_cpp.F90") + + assert exc_info.value.code == "PARSE_PREPROCESSING_REQUIRED" + assert exc_info.value.line_number == 1 + + +def test_compiler_linemarkers_remain_parseable_for_provenance(): + code = '# 40 "include/api.inc" 1\nsubroutine selected()\nend subroutine selected\n' + + parsed = parse_fortran_file(code, filename="preprocessed.F90") + + assert [procedure.name for procedure in parsed.procedures] == ["selected"] + + +def test_fixed_form_cpp_directives_are_rejected_before_comment_handling(): + code = "#ifdef USE_FAST\n subroutine selected()\n end\n#endif\n" + + with pytest.raises(FortranParseError, match="require compiler preprocessing") as exc_info: + parse_fortran_file(code, filename="raw_cpp.F") + + assert exc_info.value.code == "PARSE_PREPROCESSING_REQUIRED" + assert exc_info.value.line_number == 1 + + +def test_fixed_form_compiler_linemarkers_are_removed_before_lexing(): + code = '# 1 "api.F"\n subroutine selected()\n end\n' + + parsed = parse_fortran_file(code, filename="preprocessed.F") + + assert [procedure.name for procedure in parsed.procedures] == ["selected"] - assert [proc.name for proc in parsed.procedures] == [ - "fast_path", - "slow_path", - "default_path", - "selected_slow_path", - ] def test_include_and_ignored_spec_lines_do_not_change_public_signature(): code = """ @@ -126,6 +181,7 @@ def test_include_and_ignored_spec_lines_do_not_change_public_signature(): assert [arg.name for arg in sig.arguments] == ["x"] assert sig.arguments[0].base_type == "real" + def test_execution_part_boundaries_and_local_types_are_not_misread_as_declarations(): code = """ subroutine exec_edges(x) @@ -147,6 +203,7 @@ def test_execution_part_boundaries_and_local_types_are_not_misread_as_declaratio assert sig.arguments[0].base_type == "real" assert "i" not in sig.variables + def test_program_execution_part_is_ignored_after_first_executable_statement(): code = """ program driver @@ -164,6 +221,7 @@ def test_program_execution_part_is_ignored_after_first_executable_statement(): assert [var.name for var in program.variables] == ["ierr"] + def test_executable_statement_in_module_spec_part_raises(): code = """ module bad_exec_mod @@ -174,6 +232,7 @@ def test_executable_statement_in_module_spec_part_raises(): with pytest.raises(FortranParseError, match="Executable statement is not allowed"): parse_fortran_file(code, filename="bad_exec_mod.f90") + def test_openmp_declarative_directives_raise_but_executable_directives_are_body_lines(): declarative = """ module omp_mod @@ -229,33 +288,6 @@ def test_openmp_declarative_directives_raise_but_executable_directives_are_body_ assert parse_fortran_file(executable, filename="omp_body.f90").procedures[0].name == "omp_body" assert parse_fortran_file(fixed_form_executable, filename="fixed_omp.f").procedures[0].name == "fixed_omp" -def test_cpp_false_and_malformed_expressions_are_not_evaluated_by_parser(): - code = """ -#if 0 -subroutine false_if_branch() -end subroutine false_if_branch -#else -subroutine false_if_else() -end subroutine false_if_else -#endif - -#if defined(USE_A) && ( -subroutine malformed_if_branch() -end subroutine malformed_if_branch -#else -subroutine malformed_if_else() -end subroutine malformed_if_else -#endif -""" - - parsed = parse_fortran_file(code) - - assert [proc.name for proc in parsed.procedures] == [ - "false_if_branch", - "false_if_else", - "malformed_if_branch", - "malformed_if_else", - ] def test_statement_function_and_numeric_label_before_execution_part(): code = """ @@ -271,31 +303,6 @@ def test_statement_function_and_numeric_label_before_execution_part(): assert sig.arguments[0].base_type == "real" -def test_preprocessor_boolean_identifiers_are_not_evaluated_by_public_parse(): - code = """ -#if USE_FAST && !USE_SLOW -subroutine selected_fast() -end subroutine selected_fast -#else -subroutine selected_slow() -end subroutine selected_slow -#endif - -#else -#elif USE_OTHER -#endif - -subroutine after_stray_directives() -end subroutine after_stray_directives -""" - - parsed = parse_fortran_file(code, filename="cpp_edges.f90") - - assert [proc.name for proc in parsed.procedures] == [ - "selected_fast", - "selected_slow", - "after_stray_directives", - ] def test_implicit_mapping_parameter_noise_and_assignment_lines_do_not_break_procedure_parse(): code = """ @@ -313,10 +320,11 @@ def test_implicit_mapping_parameter_noise_and_assignment_lines_do_not_break_proc assert sig.arguments[0].name == "x" assert sig.arguments[0].base_type == "real" + def test_stray_end_unit_lines_are_rejected_by_public_file_parse(): with pytest.raises(FortranParseError, match="Invalid Fortran syntax") as exc_info: parse_fortran_file( - """ + """ end module stray_mod end submodule stray_submod end program stray_program @@ -325,7 +333,7 @@ def test_stray_end_unit_lines_are_rejected_by_public_file_parse(): subroutine kept() end subroutine kept """, - filename="stray_ends.f90", - ) + filename="stray_ends.f90", + ) assert exc_info.value.code == "PARSE_INVALID_SYNTAX" diff --git a/tests/parser/test_procedure_and_type_parsing.py b/tests/parser/test_procedure_and_type_parsing.py index f59fb8491..2557d4399 100644 --- a/tests/parser/test_procedure_and_type_parsing.py +++ b/tests/parser/test_procedure_and_type_parsing.py @@ -1,22 +1,52 @@ -# -*- coding: utf-8 -*- -from pathlib import Path - import pytest from fortran_parser.models import FortranFunctionCall, FortranSlice, FortranUseMapping, FortranVariable from x2py import FortranParseError, parse_fortran_file, parse_fortran_project -collect_project_procedure_signatures = lambda files: list(parse_fortran_project(files).procedures.values()) -parse_fortran_modules = lambda code, filename=None: parse_fortran_file(code, filename=filename).modules -parse_fortran_module = lambda code, filename=None: parse_fortran_modules(code, filename=filename)[0] -parse_fortran_submodules = lambda code, filename=None: parse_fortran_file(code, filename=filename).submodules -parse_fortran_submodule = lambda code, filename=None: parse_fortran_submodules(code, filename=filename)[0] -parse_fortran_programs = lambda code, filename=None: parse_fortran_file(code, filename=filename).programs -parse_fortran_program = lambda code, filename=None: parse_fortran_programs(code, filename=filename)[0] -parse_fortran_block_data = lambda code, filename=None: parse_fortran_file(code, filename=filename).block_data_units -parse_fortran_block_data_unit = lambda code, filename=None: parse_fortran_block_data(code, filename=filename)[0] -parse_fortran_interfaces = lambda code, filename=None: parse_fortran_file(code, filename=filename).interfaces -parse_fortran_interface = lambda code, filename=None: parse_fortran_interfaces(code, filename=filename)[0] + +def collect_project_procedure_signatures(files): + return list(parse_fortran_project(files).procedures.values()) + + +def parse_fortran_modules(code, filename=None): + return parse_fortran_file(code, filename=filename).modules + + +def parse_fortran_module(code, filename=None): + return parse_fortran_modules(code, filename=filename)[0] + + +def parse_fortran_submodules(code, filename=None): + return parse_fortran_file(code, filename=filename).submodules + + +def parse_fortran_submodule(code, filename=None): + return parse_fortran_submodules(code, filename=filename)[0] + + +def parse_fortran_programs(code, filename=None): + return parse_fortran_file(code, filename=filename).programs + + +def parse_fortran_program(code, filename=None): + return parse_fortran_programs(code, filename=filename)[0] + + +def parse_fortran_block_data(code, filename=None): + return parse_fortran_file(code, filename=filename).block_data_units + + +def parse_fortran_block_data_unit(code, filename=None): + return parse_fortran_block_data(code, filename=filename)[0] + + +def parse_fortran_interfaces(code, filename=None): + return parse_fortran_file(code, filename=filename).interfaces + + +def parse_fortran_interface(code, filename=None): + return parse_fortran_interfaces(code, filename=filename)[0] + COMPILE_TIME_EXPRESSION_SOURCE = """ module compile_time_expression_examples @@ -56,6 +86,7 @@ def collect_signature_shape_symbols(signature): import re + symbols = set() for arg in signature.arguments: for dim in arg.shape: @@ -66,6 +97,7 @@ def collect_signature_shape_symbols(signature): def evaluate_signature_shapes(signature, symbol_values=None): from dataclasses import replace import re + symbol_values = symbol_values or {} out = replace(signature) out.arguments = [replace(a) for a in signature.arguments] @@ -78,8 +110,6 @@ def evaluate_signature_shapes(signature, symbol_values=None): return out - - def test_subroutine_signature_with_intent_and_dimension(): code = """ module linalg_mod @@ -236,29 +266,6 @@ def test_fixed_form_and_interface_detection(): assert parsed.interfaces[0].procedures[0].in_interface is True -def test_preprocessor_branches_are_preserved_from_inline_fortran(): - source = """ -#ifdef USE_A -subroutine selected_a(x) - integer, intent(in) :: x -end subroutine selected_a -#elif defined(USE_B) -subroutine selected_b(x) - real(8), intent(in) :: x -end subroutine selected_b -#else -subroutine fallback(x) - logical, intent(in) :: x -end subroutine fallback -#endif -""" - - parsed = parse_fortran_file(source) - - assert [proc.name for proc in parsed.procedures] == ["selected_a", "selected_b", "fallback"] - assert [proc.arguments[0].base_type for proc in parsed.procedures] == ["integer", "real", "logical"] - - def test_legacy_character_and_star_kind_declarations_from_inline_fortran(): source = """ subroutine label(name, x) @@ -336,7 +343,7 @@ def test_kind_resolution_from_imported_module_across_files(): """, } signatures = collect_project_procedure_signatures(files) - step = [s for s in signatures if s.name == "step"][0] + step = next(s for s in signatures if s.name == "step") assert step.arguments[0].kind == "selected_real_kind(15, 307)" @@ -466,7 +473,7 @@ def test_duplicate_declaration_raises_error(): end subroutine dup """ with pytest.raises(ValueError, match="Duplicate declaration"): - parse_fortran_file(code, filename="dup.f90").procedures + _ = parse_fortran_file(code, filename="dup.f90").procedures def test_fixed_form_character_star_length_is_parsed(): @@ -490,7 +497,7 @@ def test_duplicate_function_result_declaration_raises_error(): end function f """ with pytest.raises(ValueError, match="Duplicate declaration"): - parse_fortran_file(code, filename="dup_result.f90").procedures + _ = parse_fortran_file(code, filename="dup_result.f90").procedures def test_duplicate_function_result_with_result_keyword_raises_error(): @@ -501,7 +508,7 @@ def test_duplicate_function_result_with_result_keyword_raises_error(): end function f """ with pytest.raises(ValueError, match="Duplicate declaration"): - parse_fortran_file(code, filename="dup_result_kw.f90").procedures + _ = parse_fortran_file(code, filename="dup_result_kw.f90").procedures def test_fixed_form_parameter_without_typed_declaration_raises_error(): @@ -513,7 +520,7 @@ def test_fixed_form_parameter_without_typed_declaration_raises_error(): end """ with pytest.raises(ValueError, match="Unknown datatype for PARAMETER symbol"): - parse_fortran_file(code, filename="legacy.f").procedures + _ = parse_fortran_file(code, filename="legacy.f").procedures def test_fixed_form_parameter_without_typed_declaration_allowed_with_implicit_typing(): @@ -547,7 +554,7 @@ def test_duplicate_initialized_declaration_raises_error(): end subroutine dup_init """ with pytest.raises(ValueError, match="Duplicate declaration"): - parse_fortran_file(code, filename="dup_init.f90").procedures + _ = parse_fortran_file(code, filename="dup_init.f90").procedures def test_duplicate_procedure_name_same_scope_raises_error(): @@ -562,7 +569,7 @@ def test_duplicate_procedure_name_same_scope_raises_error(): end function work """ with pytest.raises(ValueError, match="Duplicate procedure name"): - parse_fortran_file(code, filename="dup_proc.f90").procedures + _ = parse_fortran_file(code, filename="dup_proc.f90").procedures def test_duplicate_procedure_name_same_module_scope_raises_error(): @@ -579,7 +586,7 @@ def test_duplicate_procedure_name_same_module_scope_raises_error(): end module m """ with pytest.raises(ValueError, match="Duplicate procedure name"): - parse_fortran_file(code, filename="dup_mod_proc.f90").procedures + _ = parse_fortran_file(code, filename="dup_mod_proc.f90").procedures def test_legacy_star_kind_parameter_symbol_is_recognized(): @@ -617,6 +624,7 @@ def test_implicit_none_allows_external_dummy_procedure_argument(): assert sig.arguments[0].name == "fcn" assert sig.arguments[0].base_type == "procedure" + def test_external_attribute_and_later_type_declaration_do_not_conflict(): code = """ subroutine lapack_style(slamch) @@ -699,6 +707,7 @@ def test_external_function_dummy_with_explicit_result_type_is_parsed(): assert f_arg.name == "f" assert f_arg.base_type == "real" + def test_ignore_local_variables_in_signatures(): code = """ subroutine update(n, x) @@ -787,7 +796,7 @@ def test_parse_namespace_dependency_resolution(tmp_path): assert len(ns.files) == 2 assert "my_kinds" in ns.modules assert "solver" in ns.modules - step = [s for s in ns.procedures.values() if s.name == "step"][0] + step = next(s for s in ns.procedures.values() if s.name == "step") assert step.arguments[0].kind == "selected_real_kind(15, 307)" @@ -916,6 +925,25 @@ def test_structured_shape_handles_empty_dimensions_and_use_mapping_equality(): assert renamed != object() +@pytest.mark.parametrize( + ("base_type", "type_spec", "expected"), + [ + ("real", "", None), + ("real", "()", None), + ("real", "(8)", "8"), + ("real", "(kind = selected_real_kind(15, 307))", "selected_real_kind(15, 307)"), + ("real", "(kind=merge(8, 4, enabled=.true.))", "merge(8, 4, enabled=.true.)"), + ("real", "(len=5)", None), + ("character", "(len=8)", "len=8"), + ("character", "(len=8, kind=c_char)", "len=8, kind=c_char"), + ], +) +def test_extract_kind_from_type_spec_contract(base_type, type_spec, expected): + from fortran_parser.type_resolver import extract_kind_from_type_spec + + assert extract_kind_from_type_spec(base_type, type_spec) == expected + + def test_subroutine_derived_type_arguments_are_parsed(): code = """ subroutine step(state) @@ -973,8 +1001,6 @@ def test_local_parameters_in_contained_procedures_do_not_leak_across_signatures( assert sig_b.arguments[0].shape == ["1:n"] - - def test_compiler_dependent_parameter_expressions_remain_symbolic_with_value_at_module_level(): files = { "kinds.f90": """ @@ -1069,7 +1095,17 @@ def test_big_compile_time_expression_suite(): """ } sig = collect_project_procedure_signatures(files)[0] - assert [a.shape[0] for a in sig.arguments] == ["1:p_add", "1:p_sub", "1:p_mul", "1:p_div", "1:p_pow", "0:p_mix", "1:-(-a + b)", "1:(a+b)*(c+1)-1", "1:(a-b)*(a-c)"] + assert [a.shape[0] for a in sig.arguments] == [ + "1:p_add", + "1:p_sub", + "1:p_mul", + "1:p_div", + "1:p_pow", + "0:p_mix", + "1:-(-a + b)", + "1:(a+b)*(c+1)-1", + "1:(a-b)*(a-c)", + ] def test_compile_time_expression_module_values_are_partially_evaluated(): @@ -1214,7 +1250,7 @@ def test_unknown_datatype_for_argument_crashes_parser(): end subroutine bad """ with pytest.raises(ValueError, match="Unknown or unsupported datatype"): - parse_fortran_file(code, filename="bad.f90").procedures + _ = parse_fortran_file(code, filename="bad.f90").procedures def test_submodule_procedures_and_namespace_dependencies(tmp_path): @@ -1295,6 +1331,7 @@ def test_submodule_module_procedure_stub_and_additional_program_units(): assert block_data[0].name == "init_data" assert [v.name for v in block_data[0].variables] == ["seed"] + def test_procedure_dummy_declaration_tracks_local_interface_kind(): code = """ subroutine caller(cb) @@ -1361,8 +1398,9 @@ def test_module_parser_ignores_procedure_local_variables(): def test_parse_fortran_project_returns_project_registry(): - project = parse_fortran_project({ - "a.f90": """ + project = parse_fortran_project( + { + "a.f90": """ module a_mod contains subroutine step(x) @@ -1370,12 +1408,13 @@ def test_parse_fortran_project_returns_project_registry(): end subroutine step end module a_mod """, - "b.f90": """ + "b.f90": """ subroutine free_proc(y) real, intent(in) :: y end subroutine free_proc """, - }) + } + ) assert [f.filename for f in project.files] == ["a.f90", "b.f90"] assert "a_mod" in project.modules assert "a_mod.step" in project.procedures @@ -1433,26 +1472,41 @@ def test_parse_fortran_project_accepts_directory_and_orders_dependencies(tmp_pat def test_singular_parse_entrypoints_return_single_models(): - assert parse_fortran_file(""" + assert ( + parse_fortran_file(""" subroutine one(x) integer, intent(in) :: x end subroutine one -""").procedures[0].name == "one" +""") + .procedures[0] + .name + == "one" + ) - assert parse_fortran_module(""" + assert ( + parse_fortran_module(""" module single_mod end module single_mod -""").name == "single_mod" +""").name + == "single_mod" + ) - assert parse_fortran_file(""" + assert ( + parse_fortran_file(""" module type_mod type :: particle integer :: id end type particle end module type_mod -""").modules[0].derived_types[0].name == "particle" +""") + .modules[0] + .derived_types[0] + .name + == "particle" + ) - assert parse_fortran_file(""" + assert ( + parse_fortran_file(""" module iface_mod interface apply subroutine do_apply(x) @@ -1460,33 +1514,52 @@ def test_singular_parse_entrypoints_return_single_models(): end subroutine do_apply end interface end module iface_mod -""").modules[0].interfaces[0].name == "apply" +""") + .modules[0] + .interfaces[0] + .name + == "apply" + ) - assert parse_fortran_program(""" + assert ( + parse_fortran_program(""" program driver integer :: ierr end program driver -""").name == "driver" +""").name + == "driver" + ) - assert parse_fortran_block_data_unit(""" + assert ( + parse_fortran_block_data_unit(""" block data init_data integer :: seed end block data init_data -""").name == "init_data" +""").name + == "init_data" + ) - assert parse_fortran_submodule(""" + assert ( + parse_fortran_submodule(""" submodule (parent_mod) child_impl end submodule child_impl -""").name == "child_impl" +""").name + == "child_impl" + ) def test_singular_parse_entrypoint_rejects_ambiguous_sources(): - assert len(parse_fortran_modules(""" + assert ( + len( + parse_fortran_modules(""" module first_mod end module first_mod module second_mod end module second_mod -""")) == 2 +""") + ) + == 2 + ) parsed = parse_fortran_file(""" subroutine first() diff --git a/tests/parser/test_project_scope_models.py b/tests/parser/test_project_scope_models.py index f28bdf2b3..c632aa8fe 100644 --- a/tests/parser/test_project_scope_models.py +++ b/tests/parser/test_project_scope_models.py @@ -1,10 +1,10 @@ -# -*- coding: utf-8 -*- """Project-level registries, dependencies, and scope model behavior.""" import pytest from x2py import FortranParseError, parse_fortran_file, parse_fortran_project + def test_module_visibility_public_and_private_spec_lines_are_applied(): code = """ module visibility_mod @@ -31,6 +31,7 @@ def test_module_visibility_public_and_private_spec_lines_are_applied(): } assert modules["public_mod"].variables[0].visibility == "public" + def test_submodule_types_interfaces_and_project_dependencies_attach_to_public_models(): code = """ submodule (ancestor_mod:parent_mod) child_mod @@ -62,6 +63,7 @@ def test_submodule_types_interfaces_and_project_dependencies_attach_to_public_mo assert project.dependencies["child_mod"] == {"ancestor_mod", "parent_mod"} assert "child_mod.reset" in project.procedures + def test_project_registry_includes_module_types_interfaces_and_program_dependencies(): project = parse_fortran_project( { @@ -97,6 +99,7 @@ def test_project_registry_includes_module_types_interfaces_and_program_dependenc assert "apply" in project.interfaces assert project.dependencies["driver"] == {"api_mod"} + def test_duplicate_project_scope_names_raise_public_parse_errors(): with pytest.raises(FortranParseError, match="Duplicate symbol 'dup_mod' in project module scope"): parse_fortran_project( @@ -106,6 +109,7 @@ def test_duplicate_project_scope_names_raise_public_parse_errors(): } ) + def test_project_directory_namespace_orders_ancestor_submodule_dependencies(tmp_path): (tmp_path / "ancestor.f90").write_text( """ @@ -148,6 +152,7 @@ def test_project_directory_namespace_orders_ancestor_submodule_dependencies(tmp_ assert "child_mod" in project.submodules assert project.dependencies["child_mod"] == {"ancestor_mod", "parent_mod", "helper_mod"} + def test_program_contains_and_unnamed_block_data_public_models(): code = """ program main @@ -170,6 +175,7 @@ def test_program_contains_and_unnamed_block_data_public_models(): assert parsed.block_data_units[0].name is None assert [var.name for var in parsed.block_data_units[0].variables] == ["seed"] + def test_public_models_finalize_program_block_data_and_file_level_types_interfaces(): project = parse_fortran_project( { @@ -204,6 +210,7 @@ def test_public_models_finalize_program_block_data_and_file_level_types_interfac assert "driver" in project.programs assert "worker" in project.programs + def test_duplicate_program_and_block_data_variables_report_scope_labels(): with pytest.raises(FortranParseError, match="Duplicate variable 'status' in program 'driver'"): parse_fortran_file( @@ -227,6 +234,7 @@ def test_duplicate_program_and_block_data_variables_report_scope_labels(): filename="dup_block_var.f90", ) + def test_directory_project_resolves_module_kinds_and_orders_dependencies(tmp_path): (tmp_path / "kinds.f90").write_text( """ @@ -258,6 +266,7 @@ def test_directory_project_resolves_module_kinds_and_orders_dependencies(tmp_pat assert proc.result.kind == "8" assert project.dependencies["solver_mod"] == {"kinds_mod"} + def test_directory_project_tracks_renamed_kind_imports_from_other_files(tmp_path): (tmp_path / "precision.f90").write_text( """ @@ -298,6 +307,7 @@ def test_directory_project_tracks_renamed_kind_imports_from_other_files(tmp_path ] assert project.dependencies["solver_mod"] == {"precision_mod"} + def test_directory_namespace_records_missing_and_parent_only_submodule_dependencies(tmp_path): (tmp_path / "parent.f90").write_text( """ @@ -322,6 +332,7 @@ def test_directory_namespace_records_missing_and_parent_only_submodule_dependenc assert project.dependencies["child_mod"] == {"parent_mod", "missing_mod"} + def test_program_and_block_data_scope_errors_use_public_parse_paths(): with pytest.raises(FortranParseError, match="Unsupported OpenMP declarative directive in program 'driver'"): parse_fortran_file( @@ -353,7 +364,9 @@ def test_program_and_block_data_scope_errors_use_public_parse_paths(): filename="program_unknown_decl.f90", ) - with pytest.raises(FortranParseError, match="Unknown or unsupported datatype declaration in block data 'init_data'"): + with pytest.raises( + FortranParseError, match="Unknown or unsupported datatype declaration in block data 'init_data'" + ): parse_fortran_file( """ block data init_data @@ -363,6 +376,7 @@ def test_program_and_block_data_scope_errors_use_public_parse_paths(): filename="block_unknown_decl.f90", ) + def test_project_resolution_keeps_relevant_local_parameter_variables(): project = parse_fortran_project( { @@ -381,6 +395,7 @@ def test_project_resolution_keeps_relevant_local_parameter_variables(): assert proc.arguments[0].shape == ["1:+(8)-one"] assert proc.variables["one"].value == "1" + def test_project_resolution_uses_file_level_use_only_and_local_parameters(tmp_path): (tmp_path / "params.f90").write_text( """ diff --git a/tests/parser/test_scope_handling.py b/tests/parser/test_scope_handling.py index 55fa41932..b8793b644 100644 --- a/tests/parser/test_scope_handling.py +++ b/tests/parser/test_scope_handling.py @@ -1,7 +1,8 @@ import pytest -from x2py import parse_fortran_file from fortran_parser.models import FortranParseError +from x2py import parse_fortran_file + def test_same_argument_name_in_different_procedures_is_allowed(): code = """ @@ -78,50 +79,6 @@ def test_duplicate_procedure_name_in_same_scope_still_errors(): parse_fortran_file(code, filename="scope_dup_err.f90") -def test_same_name_in_mutually_exclusive_ifdef_branches_is_allowed(): - code = """ -module m -#ifdef USE_A -contains - subroutine work(n) - integer :: n - end subroutine work -#else -contains - function work(n) result(out) - integer :: n - integer :: out - end function work -#endif -end module m -""" - parsed = parse_fortran_file(code, filename="scope_ifdef_ok.f90") - module = parsed.modules[0] - assert len(module.procedures) == 2 - - -def test_same_name_in_overlapping_ifdef_branches_errors_when_both_active(): - code = """ -module m -#ifdef USE_A -contains - subroutine work(n) - integer :: n - end subroutine work -#endif -#ifdef USE_B -contains - function work(n) result(out) - integer :: n - integer :: out - end function work -#endif -end module m -""" - with pytest.raises(FortranParseError, match="Duplicate procedure name"): - parse_fortran_file(code, filename="scope_ifdef_overlap.f90") - - def test_module_symbol_tables_keep_derived_type_fields_scoped_to_type(): code = """ module sparse_types diff --git a/tests/property/test_parser_properties.py b/tests/property/test_parser_properties.py new file mode 100644 index 000000000..1727198c3 --- /dev/null +++ b/tests/property/test_parser_properties.py @@ -0,0 +1,432 @@ +"""Property-based parser invariants for small generated source subsets.""" + +from __future__ import annotations + +from contextlib import suppress +import json +from pathlib import Path +import sys +from tempfile import TemporaryDirectory +from unittest.mock import patch + +import pytest + +pytest.importorskip("hypothesis") + +from hypothesis import given, strategies as st + +import x2py.preprocessing as preprocessing +from c_parser import CParseError, parse_c_file +from c_parser.lexer import split_top_level_c_source, top_level_split +from semantics.fortran2ir import fortran_file_to_semantic_modules +from semantics.pyi_parser import parse_pyi_text +from semantics.pyi_printer import emit_module_stubs +from x2py import FortranParseError, parse_fortran_file +from x2py.preprocessing import PreprocessingConfig, preprocess_source + + +_FORTRAN_SCALAR_TYPES = st.sampled_from(["integer", "real", "logical"]) +_FORTRAN_IDENTIFIER_STEMS = st.from_regex(r"[a-z][a-z0-9_]{0,8}", fullmatch=True) +_C_SCALAR_TYPES = st.sampled_from(["int", "double", "float", "char"]) +_C_MODEL_NAMES = { + "char": "CChar", + "double": "CDouble", + "float": "CFloat", + "int": "CInt", +} +_C_IDENTIFIERS = st.from_regex(r"[a-z][a-z0-9_]{0,8}", fullmatch=True) +_FUZZ_TEXT = st.text( + alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_()[]{}*,;:#=+-/! \t\n'\"", + max_size=80, +) + + +@st.composite +def fortran_subroutines(draw): + proc_name = f"sub_{draw(st.integers(min_value=0, max_value=9999))}" + arg_ids = draw(st.lists(st.integers(min_value=0, max_value=99), max_size=5, unique=True)) + arg_names = [f"arg_{value}" for value in arg_ids] + arg_types = draw(st.lists(_FORTRAN_SCALAR_TYPES, min_size=len(arg_names), max_size=len(arg_names))) + + lines = [f"subroutine {proc_name}({', '.join(arg_names)})"] + lines.extend( + f" {type_spec}, intent(in) :: {arg_name}" for type_spec, arg_name in zip(arg_types, arg_names, strict=True) + ) + lines.append(f"end subroutine {proc_name}") + + return proc_name, arg_names, "\n".join(lines) + "\n" + + +@st.composite +def c_prototypes(draw): + function_name = f"fn_{draw(st.integers(min_value=0, max_value=9999))}" + result_type = draw(_C_SCALAR_TYPES) + parameter_ids = draw(st.lists(st.integers(min_value=0, max_value=99), max_size=6, unique=True)) + parameter_types = draw(st.lists(_C_SCALAR_TYPES, min_size=len(parameter_ids), max_size=len(parameter_ids))) + + if parameter_ids: + parameters = [ + f"{type_spec} p_{parameter_id}" + for type_spec, parameter_id in zip(parameter_types, parameter_ids, strict=True) + ] + parameter_names = [f"p_{parameter_id}" for parameter_id in parameter_ids] + else: + parameters = ["void"] + parameter_names = [] + + source = f"{result_type} {function_name}({', '.join(parameters)});\n" + return function_name, parameter_names, source + + +@st.composite +def c_nested_variable_declarations(draw): + scalar_type = draw(_C_SCALAR_TYPES) + bound = draw(st.integers(min_value=1, max_value=99)) + shape = draw(st.sampled_from(["pointer", "array", "array_of_pointers", "pointer_to_array", "callback"])) + + if shape == "pointer": + source = f"{scalar_type} *value;\n" + components = ["CPointer", _C_MODEL_NAMES[scalar_type]] + elif shape == "array": + source = f"{scalar_type} value[{bound}];\n" + components = ["CArray", _C_MODEL_NAMES[scalar_type]] + elif shape == "array_of_pointers": + source = f"{scalar_type} *value[{bound}];\n" + components = ["CArray", "CPointer", _C_MODEL_NAMES[scalar_type]] + elif shape == "pointer_to_array": + source = f"{scalar_type} (*value)[{bound}];\n" + components = ["CPointer", "CArray", _C_MODEL_NAMES[scalar_type]] + else: + parameter_type = draw(_C_SCALAR_TYPES) + source = f"{scalar_type} (*value)({parameter_type});\n" + components = ["CPointer", "CFunctionType"] + + return source, components + + +@pytest.mark.property +@given(fortran_subroutines()) +def test_generated_fortran_subroutines_preserve_argument_order(case): + proc_name, arg_names, source = case + + parsed = parse_fortran_file(source, filename=f"{proc_name}.f90") + + assert parsed.diagnostics == [] + assert len(parsed.procedures) == 1 + procedure = parsed.procedures[0] + assert procedure.name == proc_name + assert [arg.name for arg in procedure.arguments] == arg_names + assert all(arg.intent == "in" for arg in procedure.arguments) + + +@pytest.mark.property +@given(fortran_subroutines()) +def test_generated_fortran_subroutines_survive_case_changes(case): + proc_name, arg_names, source = case + + parsed = parse_fortran_file(source.upper(), filename=f"{proc_name}.f90") + + assert parsed.diagnostics == [] + assert len(parsed.procedures) == 1 + procedure = parsed.procedures[0] + assert procedure.name.lower() == proc_name + assert [arg.name.lower() for arg in procedure.arguments] == arg_names + + +@pytest.mark.property +@given(fortran_subroutines()) +def test_generated_fortran_subroutines_round_trip_through_pyi(case): + proc_name, arg_names, source = case + + parsed = parse_fortran_file(source, filename=f"{proc_name}.f90") + modules = fortran_file_to_semantic_modules(parsed, standalone_module_name="generated") + stub = emit_module_stubs(modules)["generated"] + reparsed = parse_pyi_text(stub, module_name="generated") + + assert len(reparsed.functions) == 1 + procedure = reparsed.functions[0] + assert procedure.name == proc_name + assert [arg.name for arg in procedure.arguments] == arg_names + + +@pytest.mark.property +@given( + module_stem=_FORTRAN_IDENTIFIER_STEMS, procedure_stem=_FORTRAN_IDENTIFIER_STEMS, scalar_type=_FORTRAN_SCALAR_TYPES +) +def test_generated_fortran_modules_preserve_owned_declarations(module_stem, procedure_stem, scalar_type): + module_name = f"mod_{module_stem}" + procedure_name = f"proc_{procedure_stem}" + source = ( + f"module {module_name}\n" + f" {scalar_type} :: state\n" + "contains\n" + f" subroutine {procedure_name}(value)\n" + f" {scalar_type}, intent(in) :: value\n" + f" end subroutine {procedure_name}\n" + f"end module {module_name}\n" + ) + + parsed = parse_fortran_file(source, filename=f"{module_name}.f90") + + assert parsed.diagnostics == [] + assert len(parsed.modules) == 1 + module = parsed.modules[0] + assert module.name == module_name + assert [(variable.name, variable.base_type) for variable in module.variables] == [("state", scalar_type)] + assert [(procedure.name, procedure.module) for procedure in module.procedures] == [(procedure_name, module_name)] + assert [(argument.name, argument.base_type) for argument in module.procedures[0].arguments] == [ + ("value", scalar_type) + ] + + +@pytest.mark.property +@given( + module_stem=_FORTRAN_IDENTIFIER_STEMS, + type_stem=_FORTRAN_IDENTIFIER_STEMS, + field_types=st.lists(_FORTRAN_SCALAR_TYPES, min_size=1, max_size=5), +) +def test_generated_fortran_derived_types_preserve_fields(module_stem, type_stem, field_types): + module_name = f"mod_{module_stem}" + type_name = f"type_{type_stem}" + fields = [f"field_{index}" for index in range(len(field_types))] + field_lines = "".join( + f" {field_type} :: {field_name}\n" for field_name, field_type in zip(fields, field_types, strict=True) + ) + source = ( + f"module {module_name}\n type :: {type_name}\n{field_lines} end type {type_name}\nend module {module_name}\n" + ) + + parsed = parse_fortran_file(source, filename=f"{module_name}.f90") + + assert parsed.diagnostics == [] + assert len(parsed.modules) == 1 + assert len(parsed.modules[0].derived_types) == 1 + derived_type = parsed.modules[0].derived_types[0] + assert derived_type.name == type_name + assert derived_type.module == module_name + assert [(field.name, field.base_type) for field in derived_type.fields] == list( + zip(fields, field_types, strict=True) + ) + + +@pytest.mark.property +@given(base_type=_FORTRAN_SCALAR_TYPES, kind=st.integers(min_value=1, max_value=32), keyword=st.booleans()) +def test_generated_fortran_intrinsic_kinds_are_preserved(base_type, kind, keyword): + type_spec = f"{base_type}({'kind=' if keyword else ''}{kind})" + source = f"subroutine generated_kind(value)\n {type_spec}, intent(in) :: value\nend subroutine generated_kind\n" + + parsed = parse_fortran_file(source, filename="generated_kind.f90") + + assert parsed.diagnostics == [] + assert len(parsed.procedures) == 1 + assert parsed.procedures[0].arguments[0].base_type == base_type + assert parsed.procedures[0].arguments[0].kind == str(kind) + + +@pytest.mark.property +@given(include_stem=_FORTRAN_IDENTIFIER_STEMS) +def test_generated_fortran_native_includes_do_not_change_public_signature(include_stem): + target = f"{include_stem}.inc" + baseline = "subroutine generated_include(value)\n integer, intent(in) :: value\nend subroutine generated_include\n" + with_include = ( + f"subroutine generated_include(value)\n" + f" include '{target}'\n" + " integer, intent(in) :: value\n" + "end subroutine generated_include\n" + ) + + baseline_parsed = parse_fortran_file(baseline, filename="generated_include.f90") + included_parsed = parse_fortran_file(with_include, filename="generated_include.f90") + + assert included_parsed.diagnostics == [] + assert included_parsed.procedures == baseline_parsed.procedures + + +@pytest.mark.property +@given(feature_stem=_FORTRAN_IDENTIFIER_STEMS) +def test_generated_fortran_raw_preprocessor_directives_require_preprocessing(feature_stem): + feature = f"feature_{feature_stem}" + source = f"#ifdef {feature}\nsubroutine generated_conditional()\nend subroutine generated_conditional\n#endif\n" + + with pytest.raises(FortranParseError, match="require compiler preprocessing") as exc_info: + parse_fortran_file(source, filename="generated_conditional.F90") + + assert exc_info.value.code == "PARSE_PREPROCESSING_REQUIRED" + + +@pytest.mark.property +@given(feature_stem=_FORTRAN_IDENTIFIER_STEMS, select_feature=st.booleans()) +def test_generated_fortran_compiler_preprocessing_selects_macro_branch(feature_stem, select_feature): + feature = f"feature_{feature_stem}" + with TemporaryDirectory() as tmp_dir: + source_path = Path(tmp_dir) / "generated_conditional.F90" + source_path.write_text( + f"#ifdef {feature}\n" + "subroutine selected_path()\n" + "end subroutine selected_path\n" + "#else\n" + "subroutine fallback_path()\n" + "end subroutine fallback_path\n" + "#endif\n", + encoding="utf-8", + ) + captured_argv = [] + + def run_compiler(argv, **_kwargs): + captured_argv.extend(argv) + selected = f"-D{feature}" in argv + procedure_name = "selected_path" if selected else "fallback_path" + stdout = f"subroutine {procedure_name}()\nend subroutine {procedure_name}\n" + return type("Done", (), {"returncode": 0, "stdout": stdout, "stderr": ""})() + + defines = [feature] if select_feature else [] + with patch.object(preprocessing.subprocess, "run", run_compiler): + result = preprocess_source( + source_path, + language="fortran", + config=PreprocessingConfig(mode="compiler", compiler=sys.executable, defines=defines), + ) + parsed = parse_fortran_file(result.source, filename=str(source_path)) + + assert "-cpp" in captured_argv + assert (f"-D{feature}" in captured_argv) is select_feature + assert result.recipe["defines"] == defines + assert [procedure.name for procedure in parsed.procedures] == [ + "selected_path" if select_feature else "fallback_path" + ] + + +@pytest.mark.property +@given(c_prototypes()) +def test_generated_c_prototypes_are_json_stable(case): + function_name, parameter_names, source = case + + parsed = parse_c_file(source, filename=f"{function_name}.h") + reparsed = parse_c_file(source, filename=f"{function_name}.h") + + assert parsed.diagnostics == [] + assert len(parsed.functions) == 1 + assert parsed.functions[0].name == function_name + assert [param.name for param in parsed.functions[0].parameters] == parameter_names + assert json.loads(json.dumps(parsed.to_dict(), sort_keys=True)) == reparsed.to_dict() + + +@pytest.mark.property +@given(c_prototypes(), st.sampled_from([" ", "\t", "\n "])) +def test_generated_c_prototype_whitespace_preserves_signature(case, whitespace): + function_name, parameter_names, source = case + variant = source.replace("(", f"{whitespace}(").replace(", ", f",{whitespace}").replace(");", f"){whitespace};") + + parsed = parse_c_file(variant, filename=f"{function_name}.h") + + assert parsed.diagnostics == [] + assert len(parsed.functions) == 1 + assert parsed.functions[0].name == function_name + assert [param.name for param in parsed.functions[0].parameters] == parameter_names + + +@pytest.mark.property +@given(c_nested_variable_declarations()) +def test_generated_c_nested_declarators_preserve_component_order(case): + source, expected_components = case + + parsed = parse_c_file(source, filename="nested.h") + reparsed = parse_c_file(source, filename="nested.h") + + assert parsed.diagnostics == [] + assert len(parsed.variables) == 1 + variable = parsed.variables[0] + assert variable.name == "value" + assert type(variable.type).__name__ == "CComposedType" + assert [type(component).__name__ for component in variable.type.components] == expected_components + assert parsed.to_dict() == reparsed.to_dict() + + +@pytest.mark.property +@given(st.lists(_C_IDENTIFIERS, min_size=1, max_size=6, unique=True)) +def test_top_level_c_split_ignores_nested_commas_and_literal_commas(names): + parts = [f'call_{index}({name}, nested({name}, "{name},literal"))' for index, name in enumerate(names)] + + assert top_level_split(", ".join(parts)) == parts + + +@pytest.mark.property +@given(st.lists(_C_IDENTIFIERS, min_size=1, max_size=6, unique=True)) +def test_top_level_c_source_split_ignores_function_body_delimiters(names): + source = "".join(f'int {name}(void) {{ const char *text = "{{;}}"; return 0; }}\n' for name in names) + + segments = split_top_level_c_source(source, filename="generated.c") + + assert [(segment.text, segment.terminator) for segment in segments] == [ + (f"int {name}(void)", "block") for name in names + ] + + +@pytest.mark.property +@given( + feature=_C_IDENTIFIERS, + function_names=st.lists(_C_IDENTIFIERS, min_size=2, max_size=2, unique=True), +) +def test_generated_c_raw_conditionals_require_preprocessing(feature, function_names): + source = f"#ifdef {feature}\nint {function_names[0]}(void);\n#else\nint {function_names[1]}(void);\n#endif\n" + + with pytest.raises(CParseError, match="require compiler preprocessing") as exc_info: + parse_c_file(source, filename="conditional.h", preprocessing="raw") + + assert exc_info.value.code == "CPARSE_PREPROCESSING_REQUIRED" + + +@pytest.mark.property +@given(line_number=st.integers(min_value=1, max_value=100_000), stem=_C_IDENTIFIERS) +def test_generated_c_linemarkers_map_function_origin(line_number, stem): + mapped_filename = f"{stem}.h" + source = f'#line {line_number} "{mapped_filename}"\nint exported(void);\n' + + parsed = parse_c_file(source, filename="generated.i", preprocessing="preprocessed") + + assert parsed.diagnostics == [] + assert len(parsed.functions) == 1 + assert parsed.functions[0].source_location is not None + assert parsed.functions[0].source_location.filename == mapped_filename + assert parsed.functions[0].source_location.line == line_number + + +@pytest.mark.property +@given(local_stem=_C_IDENTIFIERS, system_stem=_C_IDENTIFIERS) +def test_generated_c_raw_includes_record_local_and_system_targets(local_stem, system_stem): + local_target = f"hypothesis_missing_{local_stem}.h" + system_target = f"{system_stem}.h" + source = f'#include "{local_target}"\n#include <{system_target}>\nint exported(void);\n' + + parsed = parse_c_file(source, filename="generated_api.h", preprocessing="raw") + + assert [(include.target, include.kind) for include in parsed.includes] == [ + (local_target, "local"), + (system_target, "system"), + ] + assert [diagnostic.code for diagnostic in parsed.diagnostics] == ["C_UNRESOLVED_INCLUDE"] + + +@pytest.mark.property +@given(function_name=_C_IDENTIFIERS) +def test_generated_c_visibility_attributes_are_tolerated(function_name): + source = f'int {function_name}(void) __attribute__((visibility("default")));\n' + + parsed = parse_c_file(source, filename="compiler.h", preprocessing="compiler") + + assert parsed.diagnostics == [] + assert [function.name for function in parsed.functions] == [function_name] + + +@pytest.mark.fuzz +@given(_FUZZ_TEXT) +def test_c_parser_fuzz_fragments_only_raise_owned_errors(source): + with suppress(CParseError): + parse_c_file(source, filename="fuzz.h") + + +@pytest.mark.fuzz +@given(_FUZZ_TEXT) +def test_fortran_parser_fuzz_fragments_only_raise_owned_errors(source): + with suppress(FortranParseError): + parse_fortran_file(source, filename="fuzz.f90") diff --git a/tests/property/test_semantic_properties.py b/tests/property/test_semantic_properties.py new file mode 100644 index 000000000..61527fd08 --- /dev/null +++ b/tests/property/test_semantic_properties.py @@ -0,0 +1,349 @@ +"""Property-based invariants for semantic-IR transformations.""" + +from __future__ import annotations + +from dataclasses import asdict + +import pytest + +pytest.importorskip("hypothesis") + +from hypothesis import given, strategies as st + +from c_parser import parse_c_file +from semantics.c2ir import c_file_to_semantic_modules +from semantics.fortran2ir import fortran_file_to_semantic_modules, resolve_semantic_compile_time_values +from semantics.models import ( + EXTERNAL_TYPE_REF_METADATA, + OwnershipPolicy, + SemanticArgument, + SemanticArrayContract, + SemanticConstraint, + SemanticFunction, + SemanticModule, + SemanticStorageContract, + SemanticType, +) +from semantics.pyi_parser import parse_pyi_text +from semantics.pyi_printer import emit_module +from x2py import parse_fortran_file + + +_C_SCALAR_TYPES = st.sampled_from( + [ + ("_Bool", "Bool"), + ("double", "Float64"), + ("float", "Float32"), + ("int", "Int32"), + ] +) +_FORTRAN_SCALAR_TYPES = st.sampled_from( + [ + ("integer", "Int32"), + ("logical", "Bool"), + ("real", "Float64"), + ("real(4)", "Float32"), + ] +) +_SHARED_VALUE_TYPES = st.sampled_from( + [ + ("_Bool", "logical", "Bool"), + ("double", "real", "Float64"), + ("float", "real(4)", "Float32"), + ("int", "integer", "Int32"), + ] +) +_SEMANTIC_SCALAR_TYPES = st.sampled_from(["Bool", "Float32", "Float64", "Int32"]) +_PYI_IDENTIFIER_STEMS = st.from_regex(r"[a-z][a-z0-9_]{0,8}", fullmatch=True) +_NATIVE_NAMES = st.text( + alphabet="abcdefghijklmnopqrstuvwxyz0123456789_ -!\"'\\\n\t", + min_size=1, + max_size=12, +) + + +@st.composite +def c_scalar_prototypes(draw): + source_result, semantic_result = draw(_C_SCALAR_TYPES) + parameter_ids = draw(st.lists(st.integers(min_value=0, max_value=99), max_size=6, unique=True)) + parameter_types = draw(st.lists(_C_SCALAR_TYPES, min_size=len(parameter_ids), max_size=len(parameter_ids))) + parameters = [ + f"{source_type} p_{parameter_id}" + for parameter_id, (source_type, _semantic_type) in zip(parameter_ids, parameter_types, strict=True) + ] + parameter_text = ", ".join(parameters) if parameters else "void" + source = f"{source_result} transform({parameter_text});\n" + expected_parameters = [ + (f"p_{parameter_id}", semantic_type) + for parameter_id, (_source_type, semantic_type) in zip(parameter_ids, parameter_types, strict=True) + ] + return source, semantic_result, expected_parameters + + +@st.composite +def fortran_scalar_subroutines(draw): + parameter_ids = draw(st.lists(st.integers(min_value=0, max_value=99), max_size=6, unique=True)) + parameter_types = draw(st.lists(_FORTRAN_SCALAR_TYPES, min_size=len(parameter_ids), max_size=len(parameter_ids))) + parameters = [f"p_{parameter_id}" for parameter_id in parameter_ids] + declarations = "".join( + f" {source_type}, intent(in), value :: {parameter}\n" + for parameter, (source_type, _semantic_type) in zip(parameters, parameter_types, strict=True) + ) + source = f"subroutine transform({', '.join(parameters)})\n{declarations}end subroutine transform\n" + expected_parameters = [ + (parameter, semantic_type) + for parameter, (_source_type, semantic_type) in zip(parameters, parameter_types, strict=True) + ] + return source, expected_parameters + + +@st.composite +def canonical_semantic_types(draw): + name = draw(_SEMANTIC_SCALAR_TYPES) + storage_kind = draw(st.sampled_from(["value", "reference", "array"])) + read_only = draw(st.booleans()) + constraints = [SemanticConstraint("Finite")] if draw(st.booleans()) else [] + ownership = OwnershipPolicy(mutable=not read_only) + + if storage_kind == "value": + storage = SemanticStorageContract(kind="value", read_only=True) if read_only else None + return SemanticType( + name=name, + dtype=name, + constraints=constraints, + ownership=OwnershipPolicy(), + storage=storage, + ), "in" + + if storage_kind == "reference": + storage = SemanticStorageContract( + kind="reference", + read_only=read_only, + mutable=not read_only, + pointer_depth=1, + ) + return SemanticType( + name=name, + dtype=name, + constraints=constraints, + ownership=ownership, + storage=storage, + ), "in" if read_only else "inout" + + shape = [str(bound) for bound in draw(st.lists(st.integers(min_value=1, max_value=32), min_size=1, max_size=3))] + order = draw(st.sampled_from(["default", "ORDER_F", "ORDER_ANY"])) + if order == "default": + order = "ORDER_C" if len(shape) > 1 else None + array = SemanticArrayContract( + rank=len(shape), + shape=list(shape), + order=order, + axes=["dense" for _dimension in shape], + contiguous=True, + allocatable=draw(st.booleans()), + pointer=draw(st.booleans()), + ) + storage = SemanticStorageContract( + kind="array", + read_only=read_only, + mutable=not read_only, + array=array, + ) + return SemanticType( + name=name, + dtype=name, + rank=len(shape), + shape=list(shape), + constraints=constraints, + ownership=ownership, + storage=storage, + ), "in" if read_only else "inout" + + +@pytest.mark.property +@given(c_scalar_prototypes()) +def test_generated_c_ast_to_semantic_ir_is_deterministic(case): + source, expected_result, expected_parameters = case + + first = c_file_to_semantic_modules(parse_c_file(source, filename="generated.h"))[0] + second = c_file_to_semantic_modules(parse_c_file(source, filename="generated.h"))[0] + + assert asdict(first) == asdict(second) + assert len(first.functions) == 1 + function = first.functions[0] + assert function.return_type is not None + assert function.return_type.name == expected_result + assert [(arg.name, arg.semantic_type.name) for arg in function.arguments] == expected_parameters + + +@pytest.mark.property +@given(fortran_scalar_subroutines()) +def test_generated_fortran_ast_to_semantic_ir_is_deterministic(case): + source, expected_parameters = case + + first = fortran_file_to_semantic_modules( + parse_fortran_file(source, filename="generated.f90"), + standalone_module_name="generated", + )[0] + second = fortran_file_to_semantic_modules( + parse_fortran_file(source, filename="generated.f90"), + standalone_module_name="generated", + )[0] + + assert asdict(first) == asdict(second) + assert len(first.functions) == 1 + function = first.functions[0] + assert [(arg.name, arg.semantic_type.name) for arg in function.arguments] == expected_parameters + + +@pytest.mark.property +@given(_SHARED_VALUE_TYPES) +def test_generated_c_and_fortran_value_arguments_share_semantic_contract(case): + c_type, fortran_type, semantic_type = case + c_module = c_file_to_semantic_modules(parse_c_file(f"void consume({c_type} value);\n", filename="generated.h"))[0] + fortran_module = fortran_file_to_semantic_modules( + parse_fortran_file( + f"subroutine consume(value)\n {fortran_type}, intent(in), value :: value\nend subroutine consume\n", + filename="generated.f90", + ), + standalone_module_name="generated", + )[0] + + c_argument = c_module.functions[0].arguments[0] + fortran_argument = fortran_module.functions[0].arguments[0] + assert c_argument.semantic_type.name == semantic_type + assert fortran_argument.semantic_type.name == semantic_type + assert c_argument.semantic_type == fortran_argument.semantic_type + assert c_argument.semantic_type.origin.source_language == "c" + assert fortran_argument.semantic_type.origin.source_language == "fortran" + + +@pytest.mark.property +@given(n=st.integers(min_value=1, max_value=999), m=st.integers(min_value=1, max_value=999)) +def test_generated_semantic_specialization_is_non_mutating_and_idempotent(n, m): + module = SemanticModule( + name="generated", + variables=[ + SemanticArgument( + name="values", + semantic_type=SemanticType( + name="Float64", + dtype="Float64", + rank=2, + shape=["1:n", "m + 1"], + constraints=[SemanticConstraint("Extent", ["n", {"upper": "m"}])], + metadata={"bounds": ("n", ["m"])}, + storage=SemanticStorageContract( + kind="array", + metadata={"extent": "n"}, + array=SemanticArrayContract( + rank=2, + shape=["1:n", "m + 1"], + lower_bounds=["1", "0"], + upper_bounds=["n", "m"], + source_shape=["1:n", "0:m"], + metadata={"extent": {"first": "n", "second": "m"}}, + ), + ), + ), + ) + ], + metadata={"shape": ["n", "m"]}, + ) + original = asdict(module) + + resolved = resolve_semantic_compile_time_values(module, {"n": n, "m": m}) + + assert asdict(module) == original + semantic_type = resolved.variables[0].semantic_type + assert semantic_type.shape == [f"1:{n}", f"{m} + 1"] + assert semantic_type.constraints[0].arguments == [str(n), {"upper": str(m)}] + assert semantic_type.metadata == {"bounds": (str(n), [str(m)])} + assert semantic_type.storage is not None + assert semantic_type.storage.metadata == {"extent": str(n)} + assert semantic_type.storage.array is not None + assert semantic_type.storage.array.shape == [f"1:{n}", f"{m} + 1"] + assert semantic_type.storage.array.lower_bounds == ["1", "0"] + assert semantic_type.storage.array.upper_bounds == [str(n), str(m)] + assert semantic_type.storage.array.source_shape == [f"1:{n}", f"0:{m}"] + assert semantic_type.storage.array.metadata == {"extent": {"first": str(n), "second": str(m)}} + assert asdict(resolve_semantic_compile_time_values(resolved, {"n": n, "m": m})) == asdict(resolved) + + +@pytest.mark.property +@given(_NATIVE_NAMES) +def test_generated_pyi_escaping_round_trips_native_names(native_name): + module = SemanticModule( + name="generated", + variables=[SemanticArgument(native_name, SemanticType("Int32", dtype="Int32"))], + functions=[ + SemanticFunction( + name="consume", + native_name="consume", + arguments=[SemanticArgument(native_name, SemanticType("Int32", dtype="Int32"))], + ) + ], + ) + + emitted = emit_module(module) + reparsed = parse_pyi_text(emitted, module_name="generated") + + assert reparsed.variables[0].name == native_name + assert reparsed.functions[0].arguments[0].name == native_name + + +@pytest.mark.property +@given(st.lists(_PYI_IDENTIFIER_STEMS, min_size=1, max_size=6, unique=True)) +def test_generated_pyi_synthetic_imports_are_stably_sorted(type_stems): + type_names = [f"type_{stem}" for stem in type_stems] + + def import_lines(names): + module = SemanticModule( + name="generated", + variables=[ + SemanticArgument( + f"value_{index}", + SemanticType( + type_name, + dtype=type_name, + metadata={ + EXTERNAL_TYPE_REF_METADATA: { + "name": type_name, + "local_name": type_name, + "origin_module": "types", + "representation": "opaque", + } + }, + ), + ) + for index, type_name in enumerate(names) + ], + ) + return [line for line in emit_module(module).splitlines() if line.startswith("from ")] + + expected = [f"from types import {', '.join(sorted(type_names))}"] + assert import_lines(type_names) == expected + assert import_lines(reversed(type_names)) == expected + + +@pytest.mark.property +@given(st.lists(canonical_semantic_types(), max_size=5)) +def test_generated_semantic_ir_round_trips_through_pyi(arguments): + module = SemanticModule( + name="generated", + functions=[ + SemanticFunction( + name="consume", + native_name="consume", + arguments=[ + SemanticArgument(f"value_{index}", semantic_type, intent=intent) + for index, (semantic_type, intent) in enumerate(arguments) + ], + ) + ], + ) + + emitted = emit_module(module) + reparsed = parse_pyi_text(emitted, module_name="generated") + + assert reparsed == module diff --git a/tests/pyi/fixtures/c/general/c_richer_features.pyi b/tests/pyi/fixtures/c/general/c_richer_features.pyi index af46a3162..7e443dae7 100644 --- a/tests/pyi/fixtures/c/general/c_richer_features.pyi +++ b/tests/pyi/fixtures/c/general/c_richer_features.pyi @@ -17,10 +17,15 @@ X2PY_STATUS_RETRY: Final[Int32] X2PY_STATUS_ERROR: Final[Int32] -def x2py_fast_path() -> Int32: ... - def x2py_slow_path() -> Int32: ... +def x2py_sort( + items: Ptr(Any), + count: SizeT, + item_size: SizeT, + compare: CFunctionPointer +) -> Int32: ... + def x2py_register_callback( context: Ptr(x2py_context), callback: CFunctionPointer, diff --git a/tests/pyi/fixtures/c/general/shape_exprs.pyi b/tests/pyi/fixtures/c/general/shape_exprs.pyi index b3c5905f9..18842a92c 100644 --- a/tests/pyi/fixtures/c/general/shape_exprs.pyi +++ b/tests/pyi/fixtures/c/general/shape_exprs.pyi @@ -9,7 +9,7 @@ X2PY_EXPR_B: Final[Int32] X2PY_EXPR_C: Final[Int32] def fill_grid( - x: Int32[1, X2PY_EXPR_N1] + x: Int32[1, 4 + 2] ) -> None: ... def update_plane( @@ -18,18 +18,18 @@ def update_plane( ) -> None: ... def use_expr( - x: Int32[X2PY_EXPR_N1], - y: Float32[X2PY_EXPR_N0 * 2] + x: Int32[4 + 2], + y: Float32[4 * 2] ) -> None: ... def all_exprs( - x1: Int32[X2PY_EXPR_A + X2PY_EXPR_B], - x2: Int32[X2PY_EXPR_A - X2PY_EXPR_B], - x3: Int32[X2PY_EXPR_B * X2PY_EXPR_C], - x4: Int32[X2PY_EXPR_A / X2PY_EXPR_C], - x5: Int32[1 << X2PY_EXPR_B], - x6: Int32[(X2PY_EXPR_A + X2PY_EXPR_B) * X2PY_EXPR_C - 1], - x7: Int32[-(-X2PY_EXPR_A + X2PY_EXPR_B)], - x8: Int32[(X2PY_EXPR_A + X2PY_EXPR_B) * (X2PY_EXPR_C + 1) - 1], - x9: Int32[(X2PY_EXPR_A - X2PY_EXPR_B) * (X2PY_EXPR_A - X2PY_EXPR_C)] + x1: Int32[8 + 3], + x2: Int32[8 - 3], + x3: Int32[3 * 2], + x4: Int32[8 / 2], + x5: Int32[1 << 3], + x6: Int32[(8 + 3) * 2 - 1], + x7: Int32[-(-8 + 3)], + x8: Int32[(8 + 3) * (2 + 1) - 1], + x9: Int32[(8 - 3) * (8 - 2)] ) -> None: ... diff --git a/tests/pyi/test_pyi_fixture_suite.py b/tests/pyi/test_pyi_fixture_suite.py index 9772fffb3..e06867a36 100644 --- a/tests/pyi/test_pyi_fixture_suite.py +++ b/tests/pyi/test_pyi_fixture_suite.py @@ -36,11 +36,7 @@ def test_pyi_fixtures_match_fortran_data_one_to_one(): def test_c_pyi_fixtures_match_general_c_projects_one_to_one(): expected = {project_key.with_suffix(".pyi") for project_key, _fixtures in C_FIXTURE_PROJECTS} - actual = { - path.relative_to(C_PYI_FIXTURE_DIR) - for path in C_PYI_FIXTURE_DIR.rglob("*.pyi") - if path.is_file() - } + actual = {path.relative_to(C_PYI_FIXTURE_DIR) for path in C_PYI_FIXTURE_DIR.rglob("*.pyi") if path.is_file()} assert not sorted(expected - actual) assert not sorted(actual - expected) @@ -48,9 +44,7 @@ def test_c_pyi_fixtures_match_general_c_projects_one_to_one(): def test_pyi_fixtures_do_not_contain_unknown_types(): unknown_fixtures = [ - path.name - for path in PYI_FIXTURE_DIR.glob("*.pyi") - if "Unknown" in path.read_text(encoding="utf-8") + path.name for path in PYI_FIXTURE_DIR.glob("*.pyi") if "Unknown" in path.read_text(encoding="utf-8") ] unknown_fixtures.extend( f"c/{path.relative_to(C_PYI_FIXTURE_DIR)}" diff --git a/tests/pyi/test_pyi_to_ir.py b/tests/pyi/test_pyi_to_ir.py index 66fab4a09..03f945f52 100644 --- a/tests/pyi/test_pyi_to_ir.py +++ b/tests/pyi/test_pyi_to_ir.py @@ -1,4 +1,7 @@ +import ast +from dataclasses import asdict from pathlib import Path + import pytest from semantics.fortran2ir import fortran_file_to_semantic_modules @@ -12,7 +15,14 @@ SemanticModule, SemanticType, ) -from semantics.pyi_parser import _PyiAstParser, convert_pyi_to_ir, load_pyi_file, load_pyi_modules, parse_pyi_text +from semantics.pyi_parser import ( + _PyiAstParser, + _node_text, + convert_pyi_to_ir, + load_pyi_file, + load_pyi_modules, + parse_pyi_text, +) from semantics.pyi_printer import emit_module from tests._shared.fixture_outputs import FORTRAN_DATA_DIR, FORTRAN_SUFFIXES from x2py import parse_fortran_file @@ -60,6 +70,31 @@ def _semantic_modules_for_source(path: Path): return fortran_file_to_semantic_modules(parsed, standalone_module_name=path.stem) +def test_parse_pyi_text_dispatches_nested_and_qualified_semantic_types(): + module = parse_pyi_text( + """ +import typing + +public_value: Int32 +bounded: Final[Annotated[Int32, Bounded(1, 8)]] +callback: typing.Callable +pointer: Ptr(Float64) +read_only_pointer: Ptr(Const(Float64)) +""", + module_name="dispatch", + ) + + public_value, bounded, callback, pointer, read_only_pointer = module.variables + assert public_value.visibility == "public" + assert bounded.semantic_type.constraints == [ + SemanticConstraint("Bounded", [1, 8]), + SemanticConstraint("Constant"), + ] + assert callback.semantic_type.name == "Callable" + assert pointer.semantic_type.storage.kind == "reference" + assert read_only_pointer.semantic_type.storage.mutable is False + + def test_parse_pyi_text_allows_user_modified_stub(): pyi = """ import iso_c_binding @@ -112,6 +147,7 @@ def integrate( callback_type = module.functions[0].arguments[1].semantic_type assert callback_type.name == "Callable" + assert callback_type.dtype == "Callable" assert [arg.name for arg in callback_type.metadata["arguments"]] == ["sim_state", "Float64"] assert callback_type.metadata["return"].name == "Float64" @@ -130,6 +166,60 @@ def test_parse_pyi_text_accepts_import_aliases(): ] +def test_parse_pyi_text_accepts_relative_imports(): + module = parse_pyi_text("from ..types_mod import particle\nfrom . import local_particle\n", module_name="edited") + + assert module.imports == [ + SemanticImport( + module="..types_mod", + items=[SemanticImportItem(source="particle")], + ), + SemanticImport( + module=".", + items=[SemanticImportItem(source="local_particle")], + ), + ] + + +def test_parse_pyi_text_annotates_types_from_each_import_statement(): + module = parse_pyi_text( + """ +from first_mod import first_t +from second_mod import second_t as local_t + +answer: Int32 + +def create() -> local_t: ... +""", + module_name="edited", + ) + + assert module.functions[0].return_type.metadata["external_type_ref"] == { + "name": "second_t", + "local_name": "local_t", + "origin_module": "second_mod", + "wrapped": False, + "representation": "opaque", + } + qualified = parse_pyi_text( + """ +import first_mod, shared as local_shared + +answer: Int32 + +def create() -> local_shared.inner.types_mod.particle: ... +""", + module_name="edited", + ) + assert qualified.functions[0].return_type.metadata["external_type_ref"] == { + "name": "particle", + "local_name": "local_shared.inner.types_mod.particle", + "origin_module": "shared", + "wrapped": False, + "representation": "opaque", + } + + def test_load_pyi_modules_reconciles_opaque_and_edited_external_types(tmp_path: Path): physics = tmp_path / "physics.pyi" types_mod = tmp_path / "types_mod.pyi" @@ -137,6 +227,8 @@ def test_load_pyi_modules_reconciles_opaque_and_edited_external_types(tmp_path: """ from types_mod import particle +answer: Int32 + def create_particle() -> Ptr(particle): ... def move(p: Annotated[Ptr(particle), CompatibleHandle]) -> None: ... @@ -208,8 +300,44 @@ class particle(Opaque): assert particle_ref["representation"] == "opaque" +def test_load_pyi_modules_handles_duplicate_roots_and_ambiguous_module_names(tmp_path: Path): + package = tmp_path / "shared" + package.mkdir() + pyi_path = package / "types_mod.pyi" + pyi_path.write_text("class particle:\n pass\n", encoding="utf-8") + + assert [module.name for module in load_pyi_modules([tmp_path, tmp_path])] == ["shared.types_mod"] + with pytest.raises(ValueError) as error: + load_pyi_modules([tmp_path, package]) + assert str(error.value) == f"Ambiguous module name for {pyi_path}: 'shared.types_mod' or 'types_mod'" + + +def test_load_pyi_modules_ignores_directories_with_pyi_suffix(tmp_path: Path): + (tmp_path / "ignored.pyi").mkdir() + (tmp_path / "types_mod.pyi").write_text("class particle:\n pass\n", encoding="utf-8") + + assert [module.name for module in load_pyi_modules(tmp_path)] == ["types_mod"] + + +def test_load_pyi_file_and_modules_forward_module_name_encoding_and_filename(tmp_path: Path): + pyi_path = tmp_path / "types_mod.pyi" + pyi_path.write_bytes("# caf\xe9\nclass particle:\n pass\n".encode("latin-1")) + + module = load_pyi_file(pyi_path, module_name="custom.types_mod", encoding="latin-1") + assert module.name == "custom.types_mod" + assert module.classes[0].name == "particle" + assert load_pyi_modules(pyi_path, encoding="latin-1")[0].name == "types_mod" + + invalid_path = tmp_path / "invalid.pyi" + invalid_path.write_text("from broken import\n", encoding="utf-8") + with pytest.raises(SyntaxError) as error: + load_pyi_file(invalid_path) + assert error.value.filename == str(invalid_path) + + def test_convert_pyi_to_ir_and_import_parser_edge_cases(): module = convert_pyi_to_ir("from m import a, b as c\n", module_name="edited") + assert module.name == "edited" assert module.imports == [ SemanticImport( module="m", @@ -224,6 +352,12 @@ def test_convert_pyi_to_ir_and_import_parser_edge_cases(): convert_pyi_to_ir("from m import\n", module_name="edited") +def test_parse_pyi_text_forwards_filename_to_syntax_errors(): + with pytest.raises(SyntaxError) as error: + parse_pyi_text("from broken import\n", filename="custom.pyi") + assert error.value.filename == "custom.pyi" + + def test_parse_pyi_text_class_body_visibility_and_native_call(): module = parse_pyi_text( """ @@ -233,19 +367,45 @@ class wrapper: class particle: @private @native_call([Arg(0)]) - def reset(self: particle) -> None: ... + def reset(self: particle) -> Int32: ... """, module_name="edited", ) empty_cls, particle_cls = module.classes assert empty_cls.name == "wrapper" + assert particle_cls.methods[0].name == "reset" + assert particle_cls.methods[0].native_name == "reset" assert particle_cls.methods[0].visibility == "private" - assert particle_cls.methods[0].projection[0].python_position == 0 + assert [arg.name for arg in particle_cls.methods[0].arguments] == ["self"] + assert particle_cls.methods[0].return_type.name == "Int32" + assert asdict(particle_cls.methods[0].projection[0]) == { + "python_name": "self", + "native_name": "self", + "native_position": 0, + "python_position": 0, + "result_position": None, + "value_kind": "", + "value": None, + "intent": "in", + } + + +def test_parse_pyi_text_applies_decorators_after_native_call(): + module = parse_pyi_text( + """ +@native_call([]) +@private +def hidden() -> None: ... +""", + module_name="edited", + ) + + assert module.functions[0].visibility == "private" def test_pyi_parser_reports_unsupported_lines_and_invalid_helpers(): - with pytest.raises(ValueError, match="Unsupported .pyi node"): + with pytest.raises(ValueError, match=r"Unsupported .pyi node"): parse_pyi_text("bare_name\n", module_name="edited") with pytest.raises(ValueError, match="Unsupported class body node"): @@ -271,7 +431,7 @@ def test_pyi_parser_preserves_generic_constraints_as_annotation_metadata(): module = parse_pyi_text( """ value: Annotated[Int32, Bounded(1, 8), Finite] -alias: Annotated[Int32, Name("native_alias")] +alias: Annotated[Int32, Name("native_alias"), Finite] """, module_name="edited", ) @@ -282,6 +442,7 @@ def test_pyi_parser_preserves_generic_constraints_as_annotation_metadata(): SemanticConstraint("Finite"), ] assert module.variables[1].name == "native_alias" + assert module.variables[1].semantic_type.constraints == [SemanticConstraint("Finite")] emitted = emit_module(SemanticModule(name="constraints", variables=[module.variables[0]])) assert "value: Annotated[Int32, Bounded(1, 8), Finite]" in emitted assert parse_pyi_text(emitted, module_name="constraints").variables[0] == module.variables[0] @@ -439,6 +600,68 @@ def wrapper( projection = module.functions[0].projection + assert [asdict(mapping) for mapping in projection] == [ + { + "python_name": "x", + "native_name": "x", + "native_position": 0, + "python_position": 0, + "result_position": None, + "value_kind": "", + "value": None, + "intent": "inout", + }, + { + "python_name": None, + "native_name": "", + "native_position": 1, + "python_position": None, + "result_position": None, + "value_kind": "const", + "value": 1, + "intent": "in", + }, + { + "python_name": None, + "native_name": "", + "native_position": 2, + "python_position": None, + "result_position": None, + "value_kind": "len", + "value": {"kind": "arg", "position": 0}, + "intent": "in", + }, + { + "python_name": None, + "native_name": "", + "native_position": 3, + "python_position": None, + "result_position": None, + "value_kind": "shape", + "value": {"value": {"kind": "arg", "position": 0}, "dim": 0}, + "intent": "in", + }, + { + "python_name": None, + "native_name": "", + "native_position": 4, + "python_position": None, + "result_position": None, + "value_kind": "is_present", + "value": {"kind": "arg", "position": 1}, + "intent": "in", + }, + { + "python_name": None, + "native_name": "", + "native_position": 5, + "python_position": None, + "result_position": None, + "value_kind": "work", + "value": "tmp", + "intent": "in", + }, + ] assert projection[1].value_kind == "const" assert projection[1].value == 1 assert projection[2].value_kind == "len" @@ -547,6 +770,32 @@ def split( assert func.arguments[1].intent == "out" +def test_return_projection_preserves_multiple_plain_output_components(): + parser = _PyiAstParser(module_name="internal") + + return_type, returned = parser.return_projection(ast.parse("tuple[Float64, Int32, Logical]", mode="eval").body) + + assert return_type.name == "Float64" + assert [asdict(arg) for arg in returned] == [ + asdict( + SemanticArgument( + "__return_1", + SemanticType("Int32", dtype="Int32"), + intent="out", + metadata={"return_position": 1}, + ) + ), + asdict( + SemanticArgument( + "__return_2", + SemanticType("Logical", dtype="Logical"), + intent="out", + metadata={"return_position": 2}, + ) + ), + ] + + def test_method_equality_treats_argument_names_as_placeholders(): left = parse_pyi_text( """ @@ -597,38 +846,56 @@ class vector: @pytest.mark.parametrize( "source, message", [ - ("value: Int32[foo.bar]\n", "Non-dimensional type subscriptions are not supported"), - ("foo.bar: Int32\n", "Unsupported annotation target"), - ("value: Annotated[Int32, Name('x', 'y')]\n", "Name metadata expects one argument"), - ("def f(x: Int32): ...\n", "Unsupported function header"), + ( + "value: Int32[foo.bar]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ("foo.bar: Int32\n", "Unsupported annotation target: 'foo.bar'"), + ("value: Annotated[Int32, Name('x', 'y')]\n", "Name metadata expects one argument: \"Name('x', 'y')\""), + ("def f(x: Int32): ...\n", "Unsupported function header: 'def f(x: Int32):'"), ("def f(\n x: Int32,\n): ...\n", "Unterminated callable starting at line 1"), - ("def f(*x: Int32) -> None: ...\n", "Unsupported function header"), - ("def f() -> None:\n ...\n ...\n", "Unsupported function header"), - ("def f() -> None: pass\n", "Unsupported function header"), - ("@native_call_bad([])\ndef f(x: Int32) -> None: ...\n", "Unsupported .pyi decorator"), - ("@native_call([])\nclass C:\n pass\n", "Unsupported class decorator"), + ("def f(*x: Int32) -> None: ...\n", "Unsupported function header: 'def f(*x: Int32) -> None:'"), + ("def f(*, x: Int32) -> None: ...\n", "Unsupported function header: 'def f(*, x: Int32) -> None:'"), + ("def f(x: Int32, /) -> None: ...\n", "Unsupported function header: 'def f(x: Int32, /) -> None:'"), + ("def f() -> None:\n ...\n ...\n", "Unsupported function header: 'def f() -> None:'"), + ("def f() -> None: pass\n", "Unsupported function header: 'def f() -> None:'"), + ("@native_call_bad([])\ndef f(x: Int32) -> None: ...\n", "Unsupported .pyi decorator: 'native_call_bad([])'"), + ("@bad\nclass C:\n pass\n", "Unsupported class decorator: 'bad'"), + ("class C:\n @bad\n def f(self) -> None: ...\n", "Unsupported class body decorator: 'bad'"), + ("@native_call([])\nclass C:\n pass\n", "Unsupported class decorator: 'native_call([])'"), ("@native_call(Arg(0))\ndef f(x: Int32) -> None: ...\n", "native_call expects a list of projection entries"), ("@native_call([Arg(0)], foo=1)\ndef f(x: Int32) -> None: ...\n", "native_call expects a single list argument"), - ("@native_call([1])\ndef f(x: Int32) -> None: ...\n", "projection entry calls"), - ("@native_call([Arg(1)])\ndef f(x: Int32) -> None: ...\n", "native_call argument position is out of range"), + ("@native_call([1])\ndef f(x: Int32) -> None: ...\n", "native_call expects projection entry calls"), + ("@native_call([Arg(1)])\ndef f(x: Int32) -> None: ...\n", "native_call argument position is out of range: 1"), ("@native_call([Arg()])\ndef f(x: Int32) -> None: ...\n", "Arg expects one positional index"), ("@native_call([Return()])\ndef f(x: Int32) -> None: ...\n", "Return expects one positional index"), ("@native_call([Const()])\ndef f(x: Int32) -> None: ...\n", "Const expects one value"), ("@native_call([Len()])\ndef f(x: Int32) -> None: ...\n", "Len expects one value reference"), ("@native_call([IsPresent()])\ndef f(x: Int32) -> None: ...\n", "IsPresent expects one value reference"), ("@native_call([Work()])\ndef f(x: Int32) -> None: ...\n", "Work expects one workspace name"), - ("@native_call([Len(1)])\ndef f(x: Int32) -> None: ...\n", "Expected Arg"), + ( + "@native_call([Len(1)])\ndef f(x: Int32) -> None: ...\n", + "Expected Arg(...), Return(...), or Work(...) value reference", + ), ( "@native_call([Len(Arg(0, 1))])\ndef f(x: Int32) -> None: ...\n", - "value reference expects one positional argument", + "Arg value reference expects one positional argument", + ), + ( + "@native_call([Len(Unknown(0))])\ndef f(x: Int32) -> None: ...\n", + "Expected Arg(...), Return(...), or Work(...) value reference", ), - ("def f(x: Int32) -> Returns['x']: ...\n", "Returns expects a name and type"), - ("value: Final[Int32, Float64]\n", "Final expects exactly one type"), + ("def f(x: Int32) -> Returns['x']: ...\n", "Returns expects a name and type: \"Returns['x']\""), + ("value: Final[Int32, Float64]\n", "Final expects exactly one type: 'Final[Int32, Float64]'"), + ("value: Unknown\n", "Unknown semantic type is not allowed in .pyi annotations"), + ("value: Annotated[()]\n", "Annotated type is empty: 'Annotated[()]'"), ], ) def test_parse_pyi_text_rejects_invalid_projection_and_type_forms(source: str, message: str): - with pytest.raises(ValueError, match=message): + with pytest.raises(ValueError) as error: parse_pyi_text(source, module_name="edited") + assert str(error.value) == message def test_parse_pyi_text_accepts_multiline_native_call_decorator(): @@ -649,6 +916,7 @@ def wrapper( assert func.name == "wrapper" assert func.projection[0].python_position == 0 assert func.projection[1].result_position == 0 + assert func.projection[1].intent == "out" def test_fortran_to_pyi_and_back_preserves_mixed_input_output_projection(): @@ -680,99 +948,178 @@ def test_parse_pyi_text_accepts_c_and_fortran_order_constraints(): """ def consume( a: Float64[:, :], - b: Annotated[Float64[:, :], ORDER_F] + b: Annotated[Float64[:, :], ORDER_F], + c: Annotated[Float64[:, :], ORDER_C], + any_order: Annotated[Float64[:, :], ORDER_ANY] ) -> None: ... """, module_name="edited", ) - arrays = [ - arg.semantic_type.storage.array - for arg in module.functions[0].arguments - ] + arrays = [arg.semantic_type.storage.array for arg in module.functions[0].arguments] assert arrays[0].order == "ORDER_C" assert arrays[1].order == "ORDER_F" + assert arrays[2].order == "ORDER_C" + assert arrays[3].order == "ORDER_ANY" assert arrays[0].category is None assert arrays[1].source_shape == [] + assert all(not arg.semantic_type.constraints for arg in module.functions[0].arguments) def test_parse_pyi_text_preserves_extended_array_metadata_and_nested_selector(): module = parse_pyi_text( """ -value: Annotated[Float64, ORDER_F, Pointer, Contiguous, SourceDims("1:n", "*", "extent"), LowerBounds(None, "0"), UpperBounds("n", None)] -nested: Float64[:, :][rank] +value: Annotated[Float64, ORDER_F, Allocatable, Pointer, Contiguous, ArrayCategory("deferred_shape"), SourceDims("1:n", "*", "extent"), LowerBounds(None, "0"), UpperBounds("n", None)] +nested: Float64[:, :][rank, kind] def fill(x: Annotated[Float64[:], Intent("out")]) -> None: ... """, module_name="metadata", ) - value = module.variables[0].semantic_type.storage.array + value_type = module.variables[0].semantic_type + value = value_type.storage.array nested = module.variables[1].semantic_type output = module.functions[0].arguments[0] assert value.order == "ORDER_F" + assert value.allocatable is True assert value.pointer is True assert value.contiguous is True + assert value.category == "deferred_shape" assert value.source_shape == ["1:n", "*", "extent"] assert value.lower_bounds == [None, "0"] assert value.upper_bounds == ["n", None] - assert nested.metadata["rank_selector"] == "rank" + assert value_type.constraints == [] + assert nested.metadata["rank_selector"] == "rank, kind" + assert nested.storage.array.metadata["rank_selector"] == "rank, kind" assert output.intent == "out" def test_parse_pyi_text_handles_callable_and_pointer_storage_variants(): module = parse_pyi_text( """ +import typing + plain_callback: Callable +qualified_callback: typing.Callable opaque_callback: Callable[..., Float64] constant: Const(Int32) deep: Ptr[3](Const(Float64)) rank_any: Float64[...] strided: Float64[0:n:Strided] computed: Float64[size(xl)] +bounded_answer: Final[Annotated[Int32, Bounded(1, 8)]] +nested_answer: Final[Final[Int32]] """, module_name="storage", ) - plain, callback, constant, deep, rank_any, strided, computed = [var.semantic_type for var in module.variables] + plain, qualified, callback, constant, deep, rank_any, strided, computed, bounded, nested = [ + var.semantic_type for var in module.variables + ] assert plain.name == "Callable" + assert plain.dtype == "Callable" + assert qualified.name == "Callable" + assert qualified.dtype == "Callable" assert callback.metadata["arguments"] is None + assert callback.dtype == "Callable" + assert callback.metadata["return"].name == "Float64" assert constant.storage.kind == "value" assert constant.storage.read_only is True assert deep.storage.kind == "pointer" assert deep.storage.pointer_depth == 3 assert deep.storage.read_only is True + assert deep.storage.mutable is False assert rank_any.storage.array.rank is None + assert rank_any.rank == 0 assert strided.storage.array.contiguous is False assert computed.shape == ["size(xl)"] + assert bounded.constraints == [ + SemanticConstraint("Bounded", [1, 8]), + SemanticConstraint("Constant"), + ] + assert nested.constraints == [SemanticConstraint("Constant")] + + +def test_parse_pyi_text_preserves_module_fields_and_private_callable_arguments(): + module = parse_pyi_text( + """ +output: Annotated[Float64[:], Intent("out")] = ... + +def consume(value: private[Int32]) -> None: ... +""", + module_name="fields", + ) + + assert module.variables[0].intent == "out" + assert module.variables[0].optional is True + assert module.functions[0].arguments[0].visibility == "private" @pytest.mark.parametrize( "source, message", [ - ("value: Const(Int32, Float64)\n", "Const type expects one argument"), - ("value: Ptr(Int32, Float64)\n", "Ptr type expects one argument"), - ("value: Ptr[1](Int32)\n", r"Ptr\[1\]"), - ("value: Callable[Int32]\n", "Callable expects argument types and a return type"), - ("value: Callable[Int32, Float64]\n", "Callable arguments must be a list"), - ("value: Annotated[Float64[:], Intent('out', 'extra')]\n", "Intent metadata expects one argument"), - ("value: Annotated[Float64[:], SourceShape('n')]\n", "SourceShape metadata is not supported"), - ("value: Int32[Constant]\n", "Non-dimensional type subscriptions are not supported"), - ("value: Float64[ORDER_F]\n", "Non-dimensional type subscriptions are not supported"), - ("value: Float64[Shape]\n", "Non-dimensional type subscriptions are not supported"), - ("value: Float64[Shape('n')]\n", "Non-dimensional type subscriptions are not supported"), - ("value: Annotated[Int32, Constant]\n", "use Final"), - ("value: Annotated[Float64[:], Shape('n')]\n", "put dimensions inside"), - ("@native_call([Arg(0).other[0]])\ndef f(x: Int32) -> None: ...\n", "projection entry calls"), + ("value: Const(Int32, Float64)\n", "Const type expects one argument: 'Const(Int32, Float64)'"), + ("value: Ptr(Int32, Float64)\n", "Ptr type expects one argument: 'Ptr(Int32, Float64)'"), + ("value: Ptr[1](Int32)\n", "Ptr[1](...) is invalid; use Ptr(...)"), + ("value: Callable[Int32]\n", "Callable expects argument types and a return type: 'Callable[Int32]'"), + ("value: Callable[Int32, Float64]\n", "Callable arguments must be a list: 'Callable[Int32, Float64]'"), + ( + "value: Annotated[Float64[:], Intent('out', 'extra')]\n", + "Intent metadata expects one argument: \"Intent('out', 'extra')\"", + ), + ("value: Annotated[Float64[:], SourceShape('n')]\n", "SourceShape metadata is not supported; use SourceDims"), + ( + "value: Int32[Constant]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ( + "value: Float64[ORDER_F]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ( + "value: Float64[Shape]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ( + "value: Float64[Shape('n')]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ("value: Annotated[Int32, Constant]\n", "Constant metadata is not supported; use Final[...]"), + ("value: Annotated[Float64[:], Shape('n')]\n", "Shape metadata is not supported; put dimensions inside T[...]"), + ( + "value: Annotated[Int32, Bounded(lower=1)]\n", + "Constraint metadata expects positional arguments only: 'Bounded(lower=1)'", + ), + ("value: Annotated[Int32, 'bad']\n", "Unsupported Annotated metadata: \"'bad'\""), + ("value: Float64[:, foo.bar]\n", "Unsupported array dimension expression: 'foo.bar'"), + ( + "value: Int32[()]\n", + "Non-dimensional type subscriptions are not supported; use Final[...] for constants and " + "Annotated[...] for constraints or array metadata", + ), + ( + "@native_call([Arg(0).other[0]])\ndef f(x: Int32) -> None: ...\n", + "native_call expects projection entry calls", + ), ], ) def test_parse_pyi_text_rejects_additional_invalid_storage_forms(source: str, message: str): - with pytest.raises(ValueError, match=message): + with pytest.raises(ValueError) as error: parse_pyi_text(source, module_name="invalid") + assert str(error.value) == message def test_pyi_parser_internal_projection_helpers_preserve_native_names(): parser = _PyiAstParser(module_name="internal") + return_type, returned_values = parser.return_projection( + ast.parse("tuple[Float64, Returns['extra', Int32, Optional], Returns['other', Float64]]", mode="eval").body + ) + pointer = parser.semantic_type(ast.parse("Ptr(Float64)", mode="eval").body) returned = SemanticArgument("result", SemanticType("Float64"), intent="out", metadata={"return_position": 1}) mapping = ProjectionMapping(native_name="native_result", result_position=1, intent="out") _, values = parser._apply_native_call_returns(None, [returned], [mapping]) @@ -780,10 +1127,24 @@ def test_pyi_parser_internal_projection_helpers_preserve_native_names(): arg_mapping = ProjectionMapping(native_name="native_name", python_position=0) parser._apply_native_call_argument_names([native_arg], {}, [arg_mapping]) + assert return_type.name == "Float64" + assert returned_values[0].name == "extra" + assert returned_values[0].intent == "out" + assert returned_values[0].optional is True + assert returned_values[0].metadata == {"return_position": 1} + assert returned_values[0].semantic_type.ownership.mutable is True + assert returned_values[1].name == "other" + assert returned_values[1].metadata == {"return_position": 2} + assert pointer.storage.mutable is True + assert pointer.ownership.mutable is True assert values[0].name == "native_result" assert arg_mapping.native_name == "native_name" +def test_node_text_falls_back_to_node_type_for_empty_unparse(): + assert _node_text(ast.Module(body=[], type_ignores=[])) == "Module" + + def test_generated_pyi_compares_equal_to_original_ir_for_all_fortran_fixtures(tmp_path: Path): assert FORTRAN_PYI_COMPARE_FIXTURES diff --git a/tests/semantics/_fixture_conversion_utils.py b/tests/semantics/_fixture_conversion_utils.py index 1e944734d..05c1db0a5 100644 --- a/tests/semantics/_fixture_conversion_utils.py +++ b/tests/semantics/_fixture_conversion_utils.py @@ -6,3 +6,5 @@ FORTRAN_FIXTURES = iter_general_fortran_fixtures() + +__all__ = ("FORTRAN_FIXTURES", "TESTS_DIR", "parse_fixture") diff --git a/tests/semantics/test_c2ir.py b/tests/semantics/test_c2ir.py index 007ed778a..b55819ed7 100644 --- a/tests/semantics/test_c2ir.py +++ b/tests/semantics/test_c2ir.py @@ -1,35 +1,51 @@ -# -*- coding: utf-8 -*- """C parser model to semantic IR conversion tests.""" +from dataclasses import asdict +from typing import ClassVar + import pytest from c_parser import parse_c_file, parse_c_project from c_parser.models import ( CArray, CAtomic, + CBool, CChar, CComposedType, CConst, CDiagnostic, CDouble, + CDoubleComplex, CEnum, - CEnumerator, CFile, CFloat, + CFloatComplex, + CFunction, CFunctionType, CInitializer, CInt, + CLong, CLongDouble, + CLongDoubleComplex, + CLongLong, CMacro, CMacroDependency, CParameter, CPointer, CProject, + CRestrict, + CShort, + CSignedChar, CSourceLocation, CStruct, CTypedef, CUnion, CUnknownType, + CUnsignedChar, + CUnsignedInt, + CUnsignedLong, + CUnsignedLongLong, + CUnsignedShort, CVariable, CVolatile, CVoid, @@ -45,6 +61,14 @@ c_struct_to_semantic_class, c_type_to_semantic_type, ) +from semantics.models import ( + SemanticArgument, + SemanticClass, + SemanticModule, + SemanticOrigin, + SemanticStorageContract, + SemanticType, +) from semantics.readiness import assess_semantic_wrap_readiness from semantics.pyi_printer import emit_module, emit_module_stubs @@ -53,6 +77,42 @@ def _function(module, name): return next(function for function in module.functions if function.name == name) +def _c_origin( + *, + native_name=None, + native_scope=None, + source_kind=None, + source_type=None, + source_location=None, + metadata=None, +): + return { + "source_language": "c", + "native_name": native_name, + "native_scope": native_scope, + "source_kind": source_kind, + "source_type": source_type, + "source_location": source_location or {}, + "metadata": metadata or {}, + } + + +def _blocker(code, message, item): + return {"code": code, "message": message, "items": [item]} + + +def _assert_unsupported_type(semantic_type, *, code, message, owner, source_type): + assert semantic_type.name == "CUnsupported" + assert semantic_type.dtype == "CUnsupported" + assert semantic_type.metadata == { + "readiness_blockers": [_blocker(code, message, {"owner": owner, "type": source_type})] + } + assert asdict(semantic_type.origin) == _c_origin( + source_kind="unsupported_type", + source_type=source_type, + ) + + def test_c2ir_converts_scalar_function_signatures_and_preserves_native_order(): parsed = parse_c_file("int add(int a, int b);\ndouble scale(double x);\n", filename="api.h") module = c_file_to_semantic_modules(parsed)[0] @@ -63,10 +123,79 @@ def test_c2ir_converts_scalar_function_signatures_and_preserves_native_order(): assert module.name == "api" assert [arg.name for arg in add.arguments] == ["a", "b"] assert [arg.semantic_type.name for arg in add.arguments] == ["Int32", "Int32"] + assert [arg.metadata for arg in add.arguments] == [{"native_position": 0}, {"native_position": 1}] + assert add.native_name == "add" + assert add.visibility == "public" assert add.return_type.name == "Int32" assert [mapping.native_position for mapping in add.projection] == [0, 1] assert scale.return_type.name == "Float64" - assert module.metadata["counts"]["functions"] == 2 + assert scale.arguments[0].semantic_type.metadata == {} + assert scale.arguments[0].semantic_type.origin.metadata["c_type"] == "CDouble" + assert module.metadata == { + "source_language": "c", + "counts": { + "functions": 2, + "structs": 0, + "unions": 0, + "enums": 0, + "typedefs": 0, + "macros": 0, + "includes": 0, + "diagnostics": 0, + }, + "preprocessing": "raw", + } + assert add.metadata == { + "storage": [], + "specifiers": [], + "prototype_style": "prototype", + "is_definition": False, + } + assert [asdict(mapping) for mapping in add.projection] == [ + { + "python_name": "a", + "native_name": "a", + "native_position": 0, + "python_position": 0, + "result_position": None, + "value_kind": "", + "value": None, + "intent": "in", + }, + { + "python_name": "b", + "native_name": "b", + "native_position": 1, + "python_position": 1, + "result_position": None, + "value_kind": "", + "value": None, + "intent": "in", + }, + ] + assert asdict(add.arguments[0].origin) == _c_origin( + native_name="a", + native_scope="add", + source_kind="parameter", + source_type="int a", + ) + assert asdict(add.origin) == _c_origin( + native_name="add", + source_kind="function", + source_type="CFunctionType", + source_location={ + "filename": "api.h", + "line": 1, + "column": 1, + "source_line": "int add(int a, int b);", + }, + ) + assert asdict(module.origin) == _c_origin( + native_name="api.h", + native_scope="api.h", + source_kind="translation_unit", + metadata={"preprocessing": "raw"}, + ) def test_c2ir_maps_const_and_mutable_pointers_to_storage_contracts(): @@ -87,7 +216,57 @@ def test_c2ir_maps_const_and_mutable_pointers_to_storage_contracts(): assert dst.semantic_type.storage.kind == "reference" assert dst.semantic_type.storage.read_only is False assert dst.intent == "inout" - assert dst.metadata["readiness_blockers"][0]["code"] == "c_pointer_ownership_ambiguous" + assert copy.projection[1].intent == "inout" + assert asdict(src.semantic_type.ownership) == {"ownership": "borrowed", "mutable": False, "aliasing": True} + assert asdict(dst.semantic_type.ownership) == {"ownership": "borrowed", "mutable": True, "aliasing": True} + assert dst.metadata["readiness_blockers"] == [ + _blocker( + "c_pointer_ownership_ambiguous", + "Mutable C pointer parameters need explicit ownership, scalar-reference, or array policy.", + {"owner": "copy.dst", "parameter": "dst", "type": "double *dst"}, + ) + ] + assert asdict(src.semantic_type.storage) == { + "kind": "reference", + "read_only": True, + "mutable": False, + "pointer_depth": 1, + "ownership": "borrowed", + "array": None, + "calling_convention": None, + "metadata": { + "c_pointer_qualifiers": [[]], + "restrict": False, + "source_type": "const double *src", + }, + } + assert asdict(dst.semantic_type.storage) == { + "kind": "reference", + "read_only": False, + "mutable": True, + "pointer_depth": 1, + "ownership": "borrowed", + "array": None, + "calling_convention": None, + "metadata": { + "c_pointer_qualifiers": [[]], + "restrict": False, + "source_type": "double *dst", + }, + } + restricted = CToIRConverter().visit_type( + CComposedType( + components=[CPointer(qualifiers=[CRestrict()]), CDouble()], + source_text="double *restrict", + ) + ) + assert restricted.storage.metadata["restrict"] is True + assert restricted.ownership.aliasing is False + double_pointer = CToIRConverter().visit_type( + CComposedType(components=[CPointer(), CPointer(), CDouble()], source_text="double **") + ) + assert double_pointer.storage.kind == "pointer" + assert double_pointer.storage.pointer_depth == 2 def test_c2ir_uses_declared_c_array_bounds_before_parameter_adjustment(): @@ -109,8 +288,63 @@ def test_c2ir_uses_declared_c_array_bounds_before_parameter_adjustment(): assert shape.intent == "in" assert matrix.semantic_type.rank == 2 + assert matrix.semantic_type.shape == ["3", "4"] assert matrix.semantic_type.storage.array.shape == ["3", "4"] assert matrix.semantic_type.storage.array.order == "ORDER_C" + assert asdict(a.semantic_type.storage) == { + "kind": "array", + "read_only": False, + "mutable": True, + "pointer_depth": 1, + "ownership": "borrowed", + "array": { + "rank": 1, + "shape": ["4"], + "lower_bounds": [], + "upper_bounds": [], + "source_shape": ["4"], + "category": "c_array", + "order": None, + "axes": ["dense"], + "contiguous": True, + "allocatable": False, + "pointer": False, + "metadata": { + "c_static_minimum": [True], + "c_variable_length": [False], + "c_flexible": [False], + }, + }, + "calling_convention": None, + "metadata": {"source_type": "double a[static 4]"}, + } + assert asdict(matrix.semantic_type.storage) == { + "kind": "array", + "read_only": False, + "mutable": True, + "pointer_depth": 1, + "ownership": "borrowed", + "array": { + "rank": 2, + "shape": ["3", "4"], + "lower_bounds": [], + "upper_bounds": [], + "source_shape": ["3", "4"], + "category": "c_array", + "order": "ORDER_C", + "axes": ["dense", "dense"], + "contiguous": True, + "allocatable": False, + "pointer": False, + "metadata": { + "c_static_minimum": [False, False], + "c_variable_length": [False, False], + "c_flexible": [False, False], + }, + }, + "calling_convention": None, + "metadata": {"source_type": "int matrix[3][4]"}, + } def test_c2ir_converts_structs_and_opaque_struct_pointers(): @@ -133,7 +367,14 @@ def test_c2ir_converts_structs_and_opaque_struct_pointers(): assert [field.name for field in point.fields] == ["x", "y"] assert [field.semantic_type.name for field in point.fields] == ["Float64", "Float64"] + assert point.native_name == "struct point" + assert point.metadata == {"c_kind": "struct", "incomplete": False} + assert point.origin.source_language == "c" + assert point.origin.native_name == "struct point" + assert point.origin.source_kind == "struct" + assert point.origin.source_type == "struct point" assert context.base_classes == ["Opaque"] + assert context.metadata == {"c_kind": "struct", "incomplete": True} assert scale_point.arguments[0].semantic_type.name == "point" assert context_create.return_type.name == "context" assert context_create.return_type.storage.kind == "reference" @@ -148,6 +389,8 @@ def test_c2ir_private_include_types_remain_available_as_opaque_handles(): """ # 1 "private.h" 1 struct private_context { int internal; }; +void internal_only(void); +int hidden_value; # 1 "api.h" 2 struct private_context *make_context(void); void use_context(struct private_context *ctx); @@ -168,6 +411,8 @@ def test_c2ir_private_include_types_remain_available_as_opaque_handles(): stubs = emit_module_stubs(module) assert all(cls.name != "private_context" for cls in module.classes) + assert _function(module, "internal_only").visibility == "private" + assert next(variable for variable in module.variables if variable.name == "hidden_value").visibility == "private" assert make_context.return_type.name == "private_context" assert use_context.arguments[0].semantic_type.name == "private_context" assert make_context.return_type.metadata["external_type_ref"] == { @@ -185,16 +430,24 @@ def test_c2ir_private_include_types_remain_available_as_opaque_handles(): def test_c2ir_explicit_project_headers_import_types_from_their_owner_module(): project = parse_c_project( { - "types.h": "struct state { int id; };\n", - "api.h": "struct state;\nvoid step(struct state *state);\n", + "a_empty.h": "", + "types.h": "struct state { int id; };\nvoid local_step(struct state *state);\n", + "api.h": "struct state;\nvoid step(int count, struct state *state);\n", } ) + project.structs = { + "ignored": CStruct(), + "detached": CStruct(name="detached", source_location=CSourceLocation(filename="detached.h")), + **project.structs, + } modules = {module.name: module for module in c_project_to_semantic_modules(project)} api = modules["api"] - state = _function(api, "step").arguments[0].semantic_type + state = _function(api, "step").arguments[1].semantic_type + local_state = _function(modules["types"], "local_step").arguments[0].semantic_type stubs = emit_module_stubs(api, available_modules=modules.values()) assert all(cls.name != "state" for cls in api.classes) + assert any(cls.name == "state" for cls in modules["types"].classes) assert state.metadata["external_type_ref"] == { "name": "state", "local_name": "state", @@ -202,6 +455,7 @@ def test_c2ir_explicit_project_headers_import_types_from_their_owner_module(): "wrapped": True, "representation": "wrapped", } + assert "external_type_ref" not in local_state.metadata assert "from types import state" in stubs["api"] assert "class state" not in stubs["api"] assert assess_semantic_wrap_readiness(api, source="api.h")["wrappable"] is True @@ -229,20 +483,92 @@ def test_c2ir_private_include_opaque_struct_by_value_remains_blocked(): report = assess_semantic_wrap_readiness(module, source="api.h") assert report["wrappable"] is False - assert "c_opaque_struct_by_value" in { - blocker["code"] - for blocker in report["wrappability_blockers"] + assert "c_opaque_struct_by_value" in {blocker["code"] for blocker in report["wrappability_blockers"]} + semantic_type = _function(module, "use_context").arguments[0].semantic_type + assert semantic_type.metadata["readiness_blockers"] == [ + _blocker( + "c_opaque_struct_by_value", + "Opaque C structs can only cross wrapper boundaries through explicit pointer or handle policy.", + {"owner": "private_context", "type": "private_context"}, + ) + ] + + +def test_c2ir_externalizes_only_private_opaque_classes_with_external_origins(): + converter = CToIRConverter() + public = SemanticClass(name="public", origin=SemanticOrigin(source_location={"filename": "api.h"})) + private_plain = SemanticClass( + name="private_plain", + visibility="private", + origin=SemanticOrigin(source_location={"filename": "private.h"}), + ) + private_without_location = SemanticClass( + name="private_without_location", visibility="private", base_classes=["Opaque"] + ) + private_external = SemanticClass( + name="private_external", + visibility="private", + base_classes=["Opaque"], + origin=SemanticOrigin(source_location={"filename": "private.h"}), + ) + reference = SemanticArgument(name="value", semantic_type=SemanticType(name="private_external")) + module = SemanticModule( + name="api", + classes=[public, private_plain, private_without_location, private_external], + variables=[reference], + ) + + converter._externalize_private_classes(module) + + assert [cls.name for cls in module.classes] == ["public", "private_plain", "private_without_location"] + assert reference.semantic_type.metadata["external_type_ref"] == { + "name": "private_external", + "local_name": "private_external", + "origin_module": "private", + "wrapped": False, + "representation": "opaque", + } + explicit_value = SemanticType(name="private_external", storage=SemanticStorageContract()) + converter._add_external_opaque_by_value_blocker(explicit_value) + assert explicit_value.metadata["readiness_blockers"][0]["code"] == "c_opaque_struct_by_value" + + +def test_c2ir_classifies_external_types_after_owner_modules_without_rewriting_local_references(): + converter = CToIRConverter() + local_reference = SemanticArgument(name="local", semantic_type=SemanticType(name="state")) + external_reference = SemanticArgument(name="external", semantic_type=SemanticType(name="state")) + owner_module = SemanticModule( + name="types", + variables=[local_reference], + origin=SemanticOrigin(native_name="types.h"), + ) + consumer_module = SemanticModule( + name="api", + variables=[external_reference], + origin=SemanticOrigin(native_name="api.h"), + ) + project = CProject(structs={"state": CStruct(name="state", source_location=CSourceLocation(filename="types.h"))}) + + converter._classify_project_external_types([owner_module, consumer_module], project) + + assert "external_type_ref" not in local_reference.semantic_type.metadata + assert external_reference.semantic_type.metadata["external_type_ref"] == { + "name": "state", + "local_name": "state", + "origin_module": "types", + "wrapped": True, + "representation": "wrapped", } def test_c2ir_converts_enum_constants_and_simple_macro_constants(): parsed = parse_c_file( """ -#define API_VERSION 3 enum status { STATUS_OK = 0, STATUS_WARN, STATUS_ERROR = 10 }; """, filename="constants.h", ) + parsed.macros = [CMacro(name="API_VERSION", value="3")] module = c_file_to_semantic_modules(parsed)[0] constants = {var.name: var for var in module.variables} @@ -250,26 +576,99 @@ def test_c2ir_converts_enum_constants_and_simple_macro_constants(): assert constants["API_VERSION"].semantic_type.constraints[0].name == "Constant" assert constants["STATUS_WARN"].default_value == "1" assert constants["STATUS_ERROR"].default_value == "10" + api_version = constants["API_VERSION"] + assert api_version.semantic_type.name == "Int32" + assert api_version.semantic_type.dtype == "Int32" + assert [asdict(constraint) for constraint in api_version.semantic_type.constraints] == [ + {"name": "Constant", "arguments": []} + ] + assert asdict(api_version.origin) == _c_origin( + native_name="API_VERSION", + source_kind="macro", + ) + status_ok = constants["STATUS_OK"] + assert asdict(status_ok.semantic_type) == { + "name": "Int32", + "rank": 0, + "dtype": "Int32", + "shape": [], + "constraints": [{"name": "Constant", "arguments": []}], + "coercions": [], + "ownership": {"ownership": "borrowed", "mutable": False, "aliasing": True}, + "metadata": {"c_enum": "enum status"}, + "storage": None, + "origin": _c_origin( + native_name="STATUS_OK", + native_scope="enum status", + source_kind="enum_constant", + source_type="enum", + source_location={ + "filename": "constants.h", + "line": 2, + "column": 1, + "source_line": "enum status { STATUS_OK = 0, STATUS_WARN, STATUS_ERROR = 10 };", + }, + ), + } + assert asdict(status_ok.origin) == _c_origin( + native_name="STATUS_OK", + native_scope="enum status", + source_kind="enum_constant", + source_location={ + "filename": "constants.h", + "line": 2, + "column": 1, + "source_line": "enum status { STATUS_OK = 0, STATUS_WARN, STATUS_ERROR = 10 };", + }, + ) def test_c2ir_converts_integer_expression_macro_constants_when_resolvable(): parsed = parse_c_file( """ -#define API_N0 4 -#define API_N1 (API_N0 + 2) -#define API_MASK (1U << API_N1) -#define API_TEXT "not a semantic integer constant" void fill(int x[static API_N1]); """, filename="shape_macros.h", ) + parsed.macros = [ + CMacro(name="API_N0", value="4"), + CMacro(name="API_N1", value="(API_N0 + 2)"), + CMacro(name="API_MASK", value="(1U << API_N1)"), + CMacro(name="API_TEXT", value='"not a semantic integer constant"'), + CMacro(name="API_CALL", value="3", function_like=True), + CMacro(name="API_FIRST", value="1"), + CMacro(name="API_FORWARD", value="(API_LATE + 1)"), + CMacro(name="API_FORWARD_CHAIN", value="(API_FORWARD_MIDDLE + 1)"), + CMacro(name="API_FORWARD_MIDDLE", value="(API_FORWARD_LATE + 1)"), + CMacro(name="API_FORWARD_LATE", value="2"), + CMacro( + name="API_LATE", + value="4", + source_location=CSourceLocation( + filename="shape_macros.h", line=8, column=1, source_line="#define API_LATE 4" + ), + ), + ] module = c_file_to_semantic_modules(parsed)[0] constants = {var.name: var for var in module.variables} assert constants["API_N0"].semantic_type.name == "Int32" assert constants["API_N1"].semantic_type.name == "Int32" assert constants["API_MASK"].semantic_type.name == "Int32" + assert constants["API_FORWARD"].semantic_type.name == "Int32" + assert constants["API_FORWARD_CHAIN"].semantic_type.name == "Int32" assert "API_TEXT" not in constants + assert "API_CALL" not in constants + assert asdict(constants["API_LATE"].origin) == _c_origin( + native_name="API_LATE", + source_kind="macro", + source_location={ + "filename": "shape_macros.h", + "line": 8, + "column": 1, + "source_line": "#define API_LATE 4", + }, + ) def test_c2ir_resolves_local_typedef_chains_and_standard_size_t_fallback(): @@ -284,10 +683,66 @@ def test_c2ir_resolves_local_typedef_chains_and_standard_size_t_fallback(): ) module = c_file_to_semantic_modules(parsed)[0] - assert _function(module, "count").return_type.name == "UInt64" + count = _function(module, "count") + assert count.return_type.name == "UInt64" + assert count.return_type.metadata == {"c_typedefs": ["size_type", "api_size"]} read_values = _function(module, "read_values") assert [arg.semantic_type.name for arg in read_values.arguments] == ["Float64", "SizeT"] assert read_values.arguments[0].semantic_type.storage.read_only is True + assert read_values.arguments[1].semantic_type.metadata == { + "c_standard_type": "size_t", + "c_standard_type_fallback": True, + "c_typedefs": ["size_t"], + } + + converter = CToIRConverter() + converter.typedefs = { + "target_t": CTypedef(name="target_t", type=CUnknownType(spelling="missing_t", source_text="missing_t")) + } + resolved = converter.visit_type(CTypedef(name="target_t"), owner="result") + inline = converter.visit_type( + CTypedef(name="inline_t", type=CUnknownType(spelling="inline_missing_t", source_text="inline_missing_t")), + owner="inline_result", + ) + unresolved = converter.visit_type(CTypedef(name="absent_t"), owner="result") + converter.typedefs["cyclic_t"] = CTypedef(name="cyclic_t") + cyclic = converter.visit_type(CTypedef(name="cyclic_t"), owner="cycle") + assert resolved.metadata == { + "readiness_blockers": [ + _blocker( + "c_unresolved_type", + "C type references must resolve before wrapping.", + {"owner": "result", "type": "missing_t"}, + ) + ], + "c_typedefs": ["target_t"], + } + assert inline.metadata == { + "readiness_blockers": [ + _blocker( + "c_unresolved_type", + "C type references must resolve before wrapping.", + {"owner": "inline_result", "type": "inline_missing_t"}, + ) + ], + "c_typedefs": ["inline_t"], + } + assert unresolved.metadata == { + "readiness_blockers": [ + _blocker( + "c_unresolved_typedef", + "C typedef references must resolve to a concrete semantic type before wrapping.", + {"owner": "result", "type": "absent_t"}, + ) + ] + } + assert cyclic.metadata["readiness_blockers"] == [ + _blocker( + "c_unresolved_typedef", + "C typedef references must resolve to a concrete semantic type before wrapping.", + {"owner": "cycle", "type": "cyclic_t"}, + ) + ] def test_c2ir_uses_standard_type_probe_facts_when_supplied(): @@ -329,7 +784,26 @@ def test_c2ir_uses_standard_type_probe_opaque_handle_facts(): assert [(cls.name, cls.base_classes) for cls in module.classes] == [("FILE", ["Opaque"])] assert close_file.arguments[0].semantic_type.name == "FILE" + assert close_file.arguments[0].semantic_type.dtype == "FILE" assert close_file.arguments[0].semantic_type.storage.kind == "reference" + assert close_file.arguments[0].semantic_type.metadata == { + "c_standard_type": "FILE", + "c_standard_type_fact": { + "available": True, + "kind": "opaque_handle", + "pointer_bits": 64, + }, + "c_opaque_handle": True, + "c_typedefs": ["FILE"], + } + opaque = module.classes[0] + assert opaque.native_name == "FILE" + assert opaque.metadata == {"c_kind": "opaque_standard_type"} + assert asdict(opaque.origin) == _c_origin( + native_name="FILE", + source_kind="standard_type", + source_type="FILE", + ) assert assess_semantic_wrap_readiness(module, source="stdio_api.h")["wrappable"] is True @@ -343,6 +817,101 @@ def test_c_function_compatibility_helper_accepts_parser_function(): assert function.return_type.name == "Float32" +def test_c_compatibility_helpers_forward_standard_type_reports(): + report = { + "types": { + "measured_t": { + "available": True, + "kind": "integer", + "signed": False, + "bits": 32, + } + } + } + measured_type = CTypedef(name="measured_t") + function = CFunction(name="measure", result_type=measured_type) + parsed_file = CFile(filename="measure.h", functions=[function]) + project = CProject(files={"measure.h": parsed_file}, functions={"measure": function}) + + argument = c_parameter_to_semantic_argument( + CParameter(name="value", type=measured_type), + standard_type_report=report, + ) + converted_type = c_type_to_semantic_type(measured_type, standard_type_report=report) + converted_function = c_function_to_semantic_function(function, standard_type_report=report) + cls = c_struct_to_semantic_class( + CStruct(name="measurement", members=[CVariable(name="value", type=measured_type)]), + standard_type_report=report, + ) + + assert argument.semantic_type.name == "UInt32" + assert converted_type.name == "UInt32" + assert converted_function.return_type.name == "UInt32" + assert cls.fields[0].semantic_type.name == "UInt32" + assert _function( + c_file_to_semantic_module(parsed_file, standard_type_report=report), "measure" + ).return_type.name == ("UInt32") + assert _function( + c_file_to_semantic_modules(parsed_file, standard_type_report=report)[0], "measure" + ).return_type.name == ("UInt32") + assert _function( + c_project_to_semantic_modules(project, standard_type_report=report)[0], "measure" + ).return_type.name == ("UInt32") + assert _function( + c_project_to_semantic_module(project, standard_type_report=report), "measure" + ).return_type.name == ("UInt32") + + +@pytest.mark.parametrize( + ("ctype", "expected"), + [ + (CBool(), "Bool"), + (CChar(), "Int8"), + (CSignedChar(), "Int8"), + (CUnsignedChar(), "UInt8"), + (CShort(), "Int16"), + (CUnsignedShort(), "UInt16"), + (CInt(), "Int32"), + (CUnsignedInt(), "UInt32"), + (CLong(), "Int64"), + (CUnsignedLong(), "UInt64"), + (CLongLong(), "Int64"), + (CUnsignedLongLong(), "UInt64"), + (CFloat(), "Float32"), + (CDouble(), "Float64"), + (CLongDouble(), "Float128"), + (CFloatComplex(), "Complex64"), + (CDoubleComplex(), "Complex128"), + (CLongDoubleComplex(), "Complex256"), + ], +) +def test_c_primitive_precisions_map_to_semantic_types(ctype, expected): + semantic_type = CToIRConverter().visit_type(ctype) + + assert semantic_type.name == expected + assert semantic_type.dtype == expected + + +@pytest.mark.parametrize( + ("name", "fact", "expected"), + [ + ("int8_t", {"available": True, "kind": "integer", "signed": True, "bits": 8}, "Int8"), + ("int16_t", {"available": True, "kind": "integer", "signed": True, "bits": 16}, "Int16"), + ("int32_t", {"available": True, "kind": "integer", "signed": True, "bits": 32}, "Int32"), + ("int64_t", {"available": True, "kind": "integer", "signed": True, "bits": 64}, "Int64"), + ("uint8_t", {"available": True, "kind": "integer", "signed": False, "bits": 8}, "UInt8"), + ("uint16_t", {"available": True, "kind": "integer", "signed": False, "bits": 16}, "UInt16"), + ("uint32_t", {"available": True, "kind": "integer", "signed": False, "bits": 32}, "UInt32"), + ("uint64_t", {"available": True, "kind": "integer", "signed": False, "bits": 64}, "UInt64"), + ], +) +def test_c_standard_integer_precision_facts_map_to_semantic_types(name, fact, expected): + semantic_type = CToIRConverter(standard_type_report={"types": {name: fact}}).visit_type(CTypedef(name=name)) + + assert semantic_type.name == expected + assert semantic_type.dtype == expected + + def test_c2ir_visitor_and_project_compatibility_entrypoints_cover_supported_nodes(): first = parse_c_file("struct point { int x; };\nint value;\nint f(int x);\n", filename="a.h") second = parse_c_file("double g(double y);\n", filename="b.h") @@ -358,20 +927,125 @@ def test_c2ir_visitor_and_project_compatibility_entrypoints_cover_supported_node assert converter.visit(first).name == "a" assert converter.visit(first.functions[0]).name == "f" assert converter.visit(first.functions[0].parameters[0], position=3).metadata["native_position"] == 3 + assert converter.visit(CParameter(name=None, type=CInt())).metadata["native_position"] == 0 assert converter.visit(first.structs[0]).name == "point" + assert converter.visit(CUnion(name="loose_union")).name == "loose_union" assert converter.visit(first.variables[0]).name == "value" assert converter.visit(CInt()).name == "Int32" - with pytest.raises(TypeError, match="Unsupported C parse object"): + enum_type = converter.visit(CEnum(name="status")) + assert enum_type.name == "Int32" + assert enum_type.dtype == "Int32" + assert enum_type.metadata == {"c_kind": "enum", "c_enum": "enum status"} + assert enum_type.origin.native_name == "enum status" + assert enum_type.origin.metadata["c_type"] == "CEnum" + with pytest.raises(TypeError) as error: converter.visit(object()) + assert str(error.value) == "Unsupported C parse object: " + + contextual_union = CUnion(name="context_union", members=[CVariable(name="value", type=CInt())]) + contextual_file = CFile( + filename="contextual.h", + functions=[ + CFunction(name="contextual", result_type=CTypedef(name="contextual_t")), + CFunction( + name="use_context_union", + parameters=[CParameter(name="value", type=CUnion(name="context_union", is_incomplete=True))], + ), + ], + unions=[contextual_union], + ) + contextual_module = converter.visit( + contextual_file, + typedefs={"contextual_t": CTypedef(name="contextual_t", type=CInt())}, + unions={"context_union": contextual_union}, + ) + assert _function(contextual_module, "contextual").return_type.name == "Int32" + assert _function(contextual_module, "use_context_union").arguments[0].semantic_type.metadata["incomplete"] is False + assert [cls.name for cls in contextual_module.classes] == ["context_union"] assert c_file_to_semantic_module(first).name == "a" assert c_type_to_semantic_type(CInt()).name == "Int32" assert c_parameter_to_semantic_argument(CParameter(name=None, type=CInt()), position=2).name == "arg2" + default_argument = c_parameter_to_semantic_argument(CParameter(name=None, type=CInt())) + assert default_argument.name == "arg0" + assert default_argument.metadata == {"native_position": 0} assert c_struct_to_semantic_class(first.structs[0]).name == "point" assert [module.name for module in c_project_to_semantic_modules(project)] == ["a", "b"] merged = c_project_to_semantic_module(project, name="42 api/project") assert merged.name == "_42_api_project" assert {function.name for function in merged.functions} == {"f", "g"} + assert [cls.name for cls in merged.classes] == ["point"] + assert [variable.name for variable in merged.variables] == ["value"] + assert merged.metadata == { + "source_language": "c", + "counts": { + "files": 2, + "functions": 2, + "structs": 1, + "unions": 0, + "enums": 0, + "typedefs": 0, + "macros": 0, + "includes": 0, + "diagnostics": 0, + }, + } + assert asdict(merged.origin) == _c_origin( + native_name="42 api/project", + native_scope="42 api/project", + source_kind="project", + metadata={"files": ["a.h", "b.h"]}, + ) + assert converter.visit_project_module(project).name == "c_project" + typedef_project = parse_c_project( + { + "types.h": "typedef unsigned long count_t;\n", + "api.h": "count_t count(void);\n", + } + ) + typedef_modules = {module.name: module for module in converter.visit_project(typedef_project)} + assert _function(typedef_modules["api"], "count").return_type.name == "UInt64" + assert _function(typedef_modules["api"], "count").return_type.metadata == {"c_typedefs": ["count_t"]} + typedef_merged = converter.visit_project_module(typedef_project) + assert _function(typedef_merged, "count").return_type.name == "UInt64" + assert _function(typedef_merged, "count").return_type.metadata == {"c_typedefs": ["count_t"]} + count_reference = CTypedef(name="global_count_t") + count_function = CFunction(name="global_count", result_type=count_reference) + reference_project = CProject( + files={"api.h": CFile(filename="api.h", functions=[count_function])}, + functions={"global_count": count_function}, + typedefs={"global_count_t": CTypedef(name="global_count_t", type=CInt())}, + ) + reference_modules = converter.visit_project(reference_project) + assert _function(reference_modules[0], "global_count").return_type.name == "Int32" + reference_merged = converter.visit_project_module(reference_project) + assert _function(reference_merged, "global_count").return_type.name == "Int32" + record = CStruct(name="global_record", members=[CVariable(name="value", type=CInt())]) + choice = CUnion(name="global_choice", members=[CVariable(name="value", type=CInt())]) + registry_function = CFunction( + name="use_global_types", + parameters=[ + CParameter(name="record", type=CStruct(name="global_record", is_incomplete=True)), + CParameter(name="choice", type=CUnion(name="global_choice", is_incomplete=True)), + ], + ) + registry_project = CProject( + files={"api.h": CFile(filename="api.h", functions=[registry_function])}, + functions={"use_global_types": registry_function}, + structs={"global_record": record}, + unions={"global_choice": choice}, + ) + registry_modules = converter.visit_project(registry_project) + registry_args = _function(registry_modules[0], "use_global_types").arguments + assert registry_args[0].semantic_type.metadata == {"c_kind": "struct", "incomplete": False} + assert registry_args[1].semantic_type.metadata["incomplete"] is False + registry_merged = converter.visit_project_module(registry_project) + registry_merged_args = _function(registry_merged, "use_global_types").arguments + assert [arg.semantic_type.name for arg in registry_merged_args] == [ + "global_record", + "global_choice", + ] + assert [arg.semantic_type.metadata["incomplete"] for arg in registry_merged_args] == [False, False] def test_c2ir_converts_qualifiers_callbacks_bitfields_and_unspecified_functions(): @@ -385,61 +1059,279 @@ def test_c2ir_converts_qualifiers_callbacks_bitfields_and_unspecified_functions( converter = CToIRConverter() variable = converter.visit_variable(CVariable(name="handler", type=callback, storage=["static"])) field = converter.visit_variable(CVariable(name="bits", type=CInt(), bit_width="3")) - function = converter.visit_function( - parse_c_file("static int legacy();\n", filename="legacy.h").functions[0] + mutable_pointer_variable = converter.visit_variable( + CVariable( + name="buffer", + type=CComposedType(components=[CPointer(), CInt()], source_text="int *buffer"), + ) ) + unresolved_variable = converter.visit_variable( + CVariable(name="missing_value", type=CUnknownType(spelling="missing_t", source_text="missing_t")) + ) + function = converter.visit_function(parse_c_file("static int legacy();\n", filename="legacy.h").functions[0]) qualified = converter.visit_type( CChar(qualifiers=[CConst(), CVolatile(), CAtomic()], source_text="const volatile _Atomic char") ) + unnamed = converter.visit_parameter(CParameter(name=None, type=CInt())) + located_parameter = converter.visit_parameter( + CParameter( + name="located", + type=CInt(), + source_location=CSourceLocation(filename="api.h", line=3, column=5, source_line="int located"), + ) + ) + ownerless_missing_parameter = converter.visit_parameter( + CParameter(name="missing", type=CUnknownType(spelling="missing_t", source_text="missing_t")) + ) + callback_parameter = converter.visit_parameter(CParameter(name="callback", type=callback)) + variadic = converter.visit_function(parse_c_file("int log_value(const char *fmt, ...);\n").functions[0]) + direct_callback = converter.visit_type(callback) + direct_function_type = converter.visit_type(CFunctionType(result_type=CVoid(), parameter_types=[CInt()])) + void_type = converter.visit_type(CVoid()) + missing_parameter = converter.visit_parameter( + CParameter(name="missing", type=CUnknownType(spelling="missing_t", source_text="missing_t")), + owner="load", + ) + loose_struct = converter.visit_type(CStruct(name="loose")) + missing_return = converter.visit_function( + CFunction(name="missing_return", result_type=CUnknownType(spelling="missing_t", source_text="missing_t")) + ) + unnamed_function = converter.visit_function( + CFunction(name="unnamed", parameters=[CParameter(name=None, type=CInt())]) + ) assert variable.visibility == "private" assert variable.semantic_type.name == "CFunctionPointer" - assert field.semantic_type.metadata["readiness_blockers"][0]["code"] == "c_bitfield_unsupported" + assert variable.semantic_type.dtype == "CFunctionPointer" + assert variable.semantic_type.metadata == {"source_type": "void (*)(int)"} + assert asdict(variable.semantic_type.origin) == _c_origin( + source_kind="function_pointer", + source_type="void (*)(int)", + ) + assert field.semantic_type.metadata == { + "readiness_blockers": [ + _blocker( + "c_bitfield_unsupported", + "C bitfields require explicit semantic policy before wrapping.", + {"owner": "bits", "field": "bits", "bit_width": "3"}, + ) + ] + } + assert field.intent == "in" + assert field.visibility == "public" + assert mutable_pointer_variable.intent == "inout" + assert unresolved_variable.semantic_type.metadata["readiness_blockers"][0]["items"] == [ + {"owner": "missing_value", "type": "missing_t"} + ] + assert asdict(field.origin) == _c_origin( + native_name="bits", + source_kind="variable", + source_type="CInt", + metadata={"storage": [], "bit_width": "3"}, + ) assert function.visibility == "private" - assert function.metadata["readiness_blockers"][0]["code"] == "c_unspecified_function_parameters" + assert function.metadata == { + "storage": ["static"], + "specifiers": [], + "prototype_style": "unspecified", + "is_definition": False, + "readiness_blockers": [ + _blocker( + "c_unspecified_function_parameters", + "C functions declared without a prototype do not provide complete parameter types.", + {"owner": "legacy", "function": "legacy"}, + ) + ], + } assert qualified.name == "Int8" - assert qualified.metadata["c_char_policy"] + assert qualified.metadata["c_char_policy"] == "implementation-defined signed 8-bit code unit" assert {blocker["code"] for blocker in qualified.metadata["readiness_blockers"]} == { "c_volatile_unsupported", "c_atomic_unsupported", } + assert qualified.origin.metadata["c_type"] == "CChar" + assert qualified.origin.metadata["qualifiers"] == ["const", "volatile", "_Atomic"] + assert unnamed.name == "arg0" + assert unnamed.metadata == {"native_position": 0} + assert located_parameter.origin.source_location == { + "filename": "api.h", + "line": 3, + "column": 5, + "source_line": "int located", + } + assert ownerless_missing_parameter.semantic_type.metadata["readiness_blockers"][0]["items"] == [ + {"owner": ".missing", "type": "missing_t"} + ] + assert callback_parameter.semantic_type.metadata == {"source_type": "void (*)(int)"} + assert unnamed_function.projection[0].native_name == "arg0" + assert variadic.metadata["readiness_blockers"] == [ + _blocker( + "c_variadic_function", + "Variadic C functions require explicit semantic .pyi policy before wrapping.", + {"owner": "log_value", "function": "log_value"}, + ) + ] + assert direct_callback.metadata == {"source_type": "void (*)(int)"} + assert asdict(direct_callback.origin) == _c_origin( + source_kind="function_pointer", + source_type="void (*)(int)", + ) + assert direct_function_type.metadata == {"source_type": "CFunctionType"} + assert void_type.name == "Any" + assert void_type.dtype == "Any" + assert void_type.metadata == {"c_void_pointer_pointee": True} + assert asdict(void_type.origin) == _c_origin( + source_kind="type", + source_type="CVoid", + metadata={"c_type": "CVoid"}, + ) + assert missing_parameter.semantic_type.metadata["readiness_blockers"] == [ + _blocker( + "c_unresolved_type", + "C type references must resolve before wrapping.", + {"owner": "load.missing", "type": "missing_t"}, + ) + ] + assert loose_struct.name == "loose" + assert loose_struct.dtype == "loose" + assert loose_struct.metadata == {"c_kind": "struct", "incomplete": False} + assert asdict(loose_struct.origin) == _c_origin( + native_name="struct loose", + source_kind="type", + source_type="struct loose", + metadata={"c_type": "CStruct"}, + ) + assert missing_return.return_type.metadata["readiness_blockers"][0]["items"] == [ + {"owner": "missing_return.return", "type": "missing_t"} + ] + assert converter._return_type(CVoid(), owner="nothing") is None + assert CToIRConverter().visit_type(CTypedef(name="absent_t")).metadata["readiness_blockers"][0]["code"] == ( + "c_unresolved_typedef" + ) def test_c2ir_reports_unsupported_type_and_declarator_compositions(): converter = CToIRConverter(primitive_type_map={CInt: None}) - unresolved = converter.visit_type(CUnknownType(spelling="missing_t", source_text="missing_t")) - unsupported_integer = converter.visit_type(CInt(source_text="int")) - unsupported_precision = converter.visit_type(CLongDouble(source_text="long double")) - empty = converter.visit_type(CComposedType(components=[])) - array_missing_element = converter.visit_type(CComposedType(components=[CArray(bound="4")])) + unresolved = converter.visit_type( + CUnknownType(spelling="missing_t", source_text="missing_t"), + owner="missing_owner", + ) + unsupported_integer = converter.visit_type(CInt(source_text="int"), owner="integer_owner") + empty = converter.visit_type(CComposedType(components=[], source_text="empty"), owner="empty_owner") + array_missing_element = converter.visit_type( + CComposedType(components=[CArray(bound="4")], source_text="missing element"), + owner="array_owner", + ) array_of_pointer = converter.visit_type( - CComposedType(components=[CArray(bound="4"), CPointer(), CDouble()]) + CComposedType(components=[CArray(bound="4"), CPointer(), CDouble()], source_text="double *items[4]"), + owner="array_pointer_owner", + ) + pointer_missing_pointee = converter.visit_type( + CComposedType(components=[CPointer()], source_text="missing pointee"), + owner="pointer_owner", ) - pointer_missing_pointee = converter.visit_type(CComposedType(components=[CPointer()])) pointer_composition = converter.visit_type( - CComposedType(components=[CPointer(), CInt(), CDouble()]) + CComposedType(components=[CPointer(), CInt(), CDouble()], source_text="mixed pointer"), + owner="pointer_composition_owner", + ) + other_composition = converter.visit_type( + CComposedType(components=[CInt(), CDouble()], source_text="mixed declarator"), + owner="composition_owner", ) - other_composition = converter.visit_type(CComposedType(components=[CInt(), CDouble()])) - assert unresolved.metadata["readiness_blockers"][0]["code"] == "c_unresolved_type" - assert unsupported_integer.metadata["readiness_blockers"][0]["code"] == "c_unsupported_type" - assert unsupported_precision.metadata["readiness_blockers"][0]["code"] == "c_long_double_unsupported" - assert empty.metadata["readiness_blockers"][0]["code"] == "c_empty_composed_type" - assert array_missing_element.metadata["readiness_blockers"][0]["code"] == "c_array_missing_element_type" - assert array_of_pointer.metadata["readiness_blockers"][0]["code"] == "c_array_of_pointer_unsupported" - assert pointer_missing_pointee.metadata["readiness_blockers"][0]["code"] == "c_pointer_missing_pointee" - assert pointer_composition.metadata["readiness_blockers"][0]["code"] == "c_unsupported_composed_type" - assert other_composition.metadata["readiness_blockers"][0]["code"] == "c_unsupported_composed_type" + assert unresolved.name == "missing_t" + assert unresolved.dtype == "missing_t" + assert unresolved.metadata == { + "readiness_blockers": [ + _blocker( + "c_unresolved_type", + "C type references must resolve before wrapping.", + {"owner": "missing_owner", "type": "missing_t"}, + ) + ] + } + assert asdict(unresolved.origin) == _c_origin(source_kind="type", source_type="missing_t") + _assert_unsupported_type( + unsupported_integer, + code="c_unsupported_type", + message="This C type is not supported by the semantic converter.", + owner="integer_owner", + source_type="int", + ) + _assert_unsupported_type( + empty, + code="c_empty_composed_type", + message="C composed type is missing a base type.", + owner="empty_owner", + source_type="empty", + ) + _assert_unsupported_type( + array_missing_element, + code="c_array_missing_element_type", + message="C array type is missing an element type.", + owner="array_owner", + source_type="missing element", + ) + _assert_unsupported_type( + array_of_pointer, + code="c_array_of_pointer_unsupported", + message="C arrays of pointers need explicit semantic policy.", + owner="array_pointer_owner", + source_type="double *items[4]", + ) + _assert_unsupported_type( + pointer_missing_pointee, + code="c_pointer_missing_pointee", + message="C pointer type is missing a pointee type.", + owner="pointer_owner", + source_type="missing pointee", + ) + _assert_unsupported_type( + pointer_composition, + code="c_unsupported_composed_type", + message="This C pointer composition needs explicit semantic policy.", + owner="pointer_composition_owner", + source_type="mixed pointer", + ) + _assert_unsupported_type( + other_composition, + code="c_unsupported_composed_type", + message="This C declarator composition needs explicit semantic policy.", + owner="composition_owner", + source_type="mixed declarator", + ) def test_c2ir_models_pointer_to_arrays_unknown_extents_unions_and_anonymous_aliases(): converter = CToIRConverter() + direct_array = converter.visit_type( + CComposedType(components=[CArray(bound="2"), CInt()], source_text="int values[2]"), + owner="values", + ) + ownerless_array = converter.visit_type( + CComposedType(components=[CArray(bound=None), CInt()], source_text="int values[]") + ) + named_unknown_array = converter.visit_type( + CComposedType(components=[CArray(bound=None), CInt()], source_text="int named_values[]"), + owner="named_values", + ) pointer_array = converter.visit_type( CComposedType(components=[CPointer(), CArray(bound=None), CDouble()], source_text="double (*)[]"), owner="matrix", ) - choice = CUnion(name="choice", members=[CVariable(name="integer", type=CInt())]) + pointer_matrix = converter.visit_type( + CComposedType( + components=[CPointer(), CArray(bound="2"), CArray(bound="3"), CInt()], + source_text="int (*)[2][3]", + ), + owner="matrix", + ) + choice = CUnion( + name="choice", + members=[CVariable(name="integer", type=CInt())], + source_location=CSourceLocation(filename="choice.h", line=1, column=1, source_line="union choice;"), + ) converter.unions = {"choice": choice} union_type = converter.visit_type(CUnion(name="choice"), owner="selected") anon_struct = CStruct(anonymous_id="anon_struct_1") @@ -449,12 +1341,114 @@ def test_c2ir_models_pointer_to_arrays_unknown_extents_unions_and_anonymous_alia "variant_t": CTypedef(name="variant_t", type=anon_union), } + assert direct_array.name == "Int32" + assert direct_array.rank == 1 + assert direct_array.shape == ["2"] + assert direct_array.storage.array.shape == ["2"] + assert ownerless_array.metadata["readiness_blockers"] == [ + _blocker( + "c_array_extent_ambiguous", + "C array parameters with unknown extents need explicit semantic shape policy.", + {"owner": "int values[]", "type": "int values[]"}, + ) + ] + assert named_unknown_array.metadata["readiness_blockers"][0]["items"] == [ + {"owner": "named_values", "type": "int named_values[]"} + ] assert pointer_array.storage.pointer_depth == 1 + assert pointer_array.storage.array.source_shape == [":"] assert pointer_array.storage.metadata["c_pointer_to_array"] is True - assert pointer_array.metadata["readiness_blockers"][0]["code"] == "c_array_extent_ambiguous" - assert union_type.metadata["readiness_blockers"][0]["code"] == "c_union_unsupported" + assert pointer_array.metadata["readiness_blockers"] == [ + _blocker( + "c_array_extent_ambiguous", + "C array parameters with unknown extents need explicit semantic shape policy.", + {"owner": "matrix", "type": "double (*)[]"}, + ) + ] + assert pointer_matrix.name == "Int32" + assert pointer_matrix.shape == ["2", "3"] + assert union_type.name == "choice" + assert union_type.dtype == "choice" + assert union_type.metadata == { + "c_kind": "union", + "incomplete": False, + "readiness_blockers": [ + _blocker( + "c_union_unsupported", + "C union arguments and returns require explicit semantic policy before wrapping.", + {"owner": "selected", "type": "union choice"}, + ) + ], + } + assert asdict(union_type.origin) == _c_origin( + native_name="union choice", + source_kind="type", + source_type="union choice", + metadata={"c_type": "CUnion"}, + ) + semantic_union = converter.visit_union(choice) + assert semantic_union.name == "choice" + assert semantic_union.native_name == "union choice" + assert [field.name for field in semantic_union.fields] == ["integer"] + assert semantic_union.metadata == {"c_kind": "union", "incomplete": False} + assert asdict(semantic_union.origin) == _c_origin( + native_name="union choice", + source_kind="union", + source_type="union choice", + source_location={"filename": "choice.h", "line": 1, "column": 1, "source_line": "union choice;"}, + ) assert converter.visit_struct(anon_struct).name == "record_t" assert converter.visit_union(anon_union).name == "variant_t" + assert converter.visit_struct(CStruct()).name == "anonymous_struct" + assert converter.visit_union(CUnion()).name == "anonymous_union" + assert CToIRConverter().visit_type(CUnion(name="fresh_union")).name == "fresh_union" + + +def test_c2ir_preserves_nested_unresolved_owners_and_private_opaque_bases(): + converter = CToIRConverter() + nested_array = converter.visit_type( + CComposedType( + components=[CArray(bound="2"), CUnknownType(spelling="missing_t", source_text="missing_t")], + source_text="missing_t values[2]", + ), + owner="values", + ) + nested_pointer = converter.visit_type( + CComposedType( + components=[CPointer(), CUnknownType(spelling="missing_t", source_text="missing_t")], + source_text="missing_t *value", + ), + owner="value", + ) + nested_pointer_array = converter.visit_type( + CComposedType( + components=[CPointer(), CArray(bound="2"), CUnknownType(spelling="missing_t", source_text="missing_t")], + source_text="missing_t (*)[2]", + ), + owner="matrix", + ) + singleton = converter.visit_type( + CComposedType(components=[CUnknownType(spelling="missing_t", source_text="missing_t")]), + owner="singleton", + ) + private_class = SemanticClass( + name="private_handle", + base_classes=["Opaque"], + origin=SemanticOrigin(source_language="c", source_location={"filename": "private.h"}), + ) + private_module = SemanticModule(name="api", classes=[private_class]) + private_file = CFile( + filename="api.h", + preprocessing_recipe={"included_files": [{"path": "private.h", "exposure": "private"}]}, + ) + converter._apply_include_exposure(private_module, private_file) + + assert nested_array.metadata["readiness_blockers"][0]["items"] == [{"owner": "values", "type": "missing_t"}] + assert nested_pointer.metadata["readiness_blockers"][0]["items"] == [{"owner": "value", "type": "missing_t"}] + assert nested_pointer_array.metadata["readiness_blockers"][0]["items"] == [{"owner": "matrix", "type": "missing_t"}] + assert singleton.metadata["readiness_blockers"][0]["items"] == [{"owner": "singleton", "type": "missing_t"}] + assert private_class.visibility == "private" + assert private_class.base_classes == ["Opaque"] def test_c2ir_marks_incomplete_by_value_structs_and_preserves_initializer_locations(): @@ -462,6 +1456,26 @@ def test_c2ir_marks_incomplete_by_value_structs_and_preserves_initializer_locati converter = CToIRConverter() converter.structs = {"handle": incomplete} parameter = converter.visit_parameter(CParameter(name="handle", type=incomplete), owner="open") + pointer_parameter = converter.visit_parameter( + CParameter( + name="handle", + type=CComposedType( + components=[CPointer(), CPointer(), incomplete], + source_text="struct handle **", + ), + ), + owner="open", + ) + array_parameter = converter.visit_parameter( + CParameter( + name="handles", + type=CComposedType( + components=[CArray(bound="2"), incomplete], + source_text="struct handle handles[2]", + ), + ), + owner="open", + ) variable = converter.visit_variable( CVariable( name=None, @@ -470,8 +1484,34 @@ def test_c2ir_marks_incomplete_by_value_structs_and_preserves_initializer_locati source_location=CSourceLocation(filename="api.h", line=2, column=4, source_line="struct handle h;"), ) ) - - assert parameter.semantic_type.metadata["readiness_blockers"][0]["code"] == "c_incomplete_struct_by_value" + named_variable = converter.visit_variable(CVariable(name="handle", type=incomplete)) + return_type = converter.visit_function(CFunction(name="open_handle", result_type=incomplete)).return_type + + assert parameter.semantic_type.metadata["readiness_blockers"] == [ + _blocker( + "c_incomplete_struct_by_value", + "Incomplete C structs can only be wrapped through explicit pointer or opaque-handle policy.", + {"owner": "open.handle", "type": "handle"}, + ) + ] + assert pointer_parameter.semantic_type.storage.kind == "pointer" + assert "readiness_blockers" not in pointer_parameter.semantic_type.metadata + assert array_parameter.semantic_type.storage.kind == "array" + assert "readiness_blockers" not in array_parameter.semantic_type.metadata + assert named_variable.semantic_type.metadata["readiness_blockers"] == [ + _blocker( + "c_incomplete_struct_by_value", + "Incomplete C structs can only be wrapped through explicit pointer or opaque-handle policy.", + {"owner": "handle", "type": "handle"}, + ) + ] + assert return_type.metadata["readiness_blockers"] == [ + _blocker( + "c_incomplete_struct_by_value", + "Incomplete C structs can only be wrapped through explicit pointer or opaque-handle policy.", + {"owner": "open_handle.return", "type": "handle"}, + ) + ] assert variable.name == "" assert variable.default_value == "factory()" assert variable.origin.source_location["filename"] == "api.h" @@ -479,17 +1519,41 @@ def test_c2ir_marks_incomplete_by_value_structs_and_preserves_initializer_locati def test_c2ir_standard_type_facts_and_numeric_constant_edge_cases(): class Report: - types = { + types: ClassVar = { "signed_size": {"kind": "integer", "signed": True, "bits": 16}, "real_size": {"kind": "real", "bits": 32}, "missing": {"available": False, "kind": "integer", "signed": False, "bits": 32}, } converter = CToIRConverter(standard_type_report=Report()) - assert converter._standard_semantic_type("signed_size").name == "Int16" - assert converter._standard_semantic_type("real_size").name == "Float32" + signed_size = converter._standard_semantic_type("signed_size") + real_size = converter._standard_semantic_type("real_size") + assert signed_size.name == "Int16" + assert signed_size.dtype == "Int16" + assert signed_size.metadata == { + "c_standard_type": "signed_size", + "c_standard_type_fact": {"kind": "integer", "signed": True, "bits": 16}, + } + assert real_size.name == "Float32" + assert real_size.dtype == "Float32" + assert real_size.metadata == { + "c_standard_type": "real_size", + "c_standard_type_fact": {"kind": "real", "bits": 32}, + } + fallback = CToIRConverter()._standard_semantic_type("size_t") + assert fallback.name == "SizeT" + assert fallback.dtype == "SizeT" + assert fallback.metadata == {"c_standard_type": "size_t", "c_standard_type_fallback": True} assert converter._standard_semantic_type("missing") is None assert converter._standard_semantic_type("not_standard") is None + opaque_converter = CToIRConverter( + standard_type_report={ + "implicit_handle": {"kind": "opaque_handle"}, + "missing_handle": {"available": False, "kind": "opaque_handle"}, + } + ) + assert opaque_converter._standard_semantic_type("implicit_handle").name == "implicit_handle" + assert opaque_converter._standard_semantic_type("missing_handle") is None assert CToIRConverter._standard_type_facts(object()) == {} assert CToIRConverter._integer_literal_value(None) is None assert CToIRConverter._integer_literal_value("value") is None @@ -497,11 +1561,17 @@ class Report: assert CToIRConverter._integer_macro_expression("(1 +)", {}) is False parsed = parse_c_file( - "#define RATE 1.5\n#define BAD (MISSING + 1)\nenum status { STATUS_EXPR = UNKNOWN, STATUS_NEXT };\n", + "enum default_status { DEFAULT_OK, DEFAULT_NEXT };\nenum status { STATUS_EXPR = UNKNOWN, STATUS_NEXT };\n", filename="edge_constants.h", ) + parsed.macros = [ + CMacro(name="RATE", value="1.5"), + CMacro(name="BAD", value="(MISSING + 1)"), + ] constants = {variable.name: variable for variable in converter.visit_file(parsed).variables} assert constants["RATE"].semantic_type.name == "Float64" + assert constants["DEFAULT_OK"].default_value == "0" + assert constants["DEFAULT_NEXT"].default_value == "1" assert constants["STATUS_EXPR"].default_value == "UNKNOWN" assert constants["STATUS_NEXT"].default_value is None @@ -521,12 +1591,13 @@ def test_c2ir_propagates_file_and_project_diagnostic_blockers(): unit_kind="function", unit_name="broken", ) + orphan_error = CDiagnostic(code="C_ORPHAN", message="orphan", severity="error") c_file = CFile( filename=None, macro_dependencies=[dependency], - diagnostics=[warning, duplicate_dependency, error], + diagnostics=[warning, duplicate_dependency, error, orphan_error], ) - project = CProject(files={"bad.h": c_file}, diagnostics=[error]) + project = CProject(files={"bad.h": c_file}, diagnostics=[error, orphan_error]) converter = CToIRConverter() module = converter.visit_file(c_file) @@ -534,6 +1605,40 @@ def test_c2ir_propagates_file_and_project_diagnostic_blockers(): file_codes = {blocker["code"] for blocker in module.metadata["readiness_blockers"]} project_codes = {blocker["code"] for blocker in merged.metadata["readiness_blockers"]} + expected_blockers = [ + _blocker( + "c_macro_dependent_declaration", + "Some C declarations depend on macros that were recorded but not expanded.", + { + "owner": "", + "macro": "API", + "context": "declaration", + "source": "API(int) f(void);", + }, + ), + _blocker( + "c_c_bad_decl", + "bad declaration", + { + "owner": "broken", + "diagnostic_code": "C_BAD_DECL", + "unit_kind": "function", + "unit_name": "broken", + }, + ), + _blocker( + "c_c_orphan", + "orphan", + { + "owner": "", + "diagnostic_code": "C_ORPHAN", + "unit_kind": None, + "unit_name": None, + }, + ), + ] assert module.name == "c_module" - assert file_codes == {"c_macro_dependent_declaration", "c_c_bad_decl"} - assert project_codes == {"c_macro_dependent_declaration", "c_c_bad_decl"} + assert file_codes == {"c_macro_dependent_declaration", "c_c_bad_decl", "c_c_orphan"} + assert project_codes == {"c_macro_dependent_declaration", "c_c_bad_decl", "c_c_orphan"} + assert module.metadata["readiness_blockers"] == expected_blockers + assert merged.metadata["readiness_blockers"] == expected_blockers diff --git a/tests/semantics/test_c_semantic_readiness.py b/tests/semantics/test_c_semantic_readiness.py index b302eb1f7..6a85d3058 100644 --- a/tests/semantics/test_c_semantic_readiness.py +++ b/tests/semantics/test_c_semantic_readiness.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """C semantic wrap-readiness tests. These tests intentionally live under ``tests/semantics`` because readiness is @@ -38,25 +37,6 @@ def test_c_semantic_readiness_reports_unresolved_typedefs(): assert any(blocker["code"] == "unresolved_semantic_types" for blocker in report["wrappability_blockers"]) -def test_c_semantic_readiness_reports_macro_dependent_declarations(): - from c_parser import parse_c_file - from semantics.c2ir import c_file_to_semantic_modules - from semantics.readiness import assess_semantic_wrap_readiness - - parsed = parse_c_file( - """ -#define API(ret) ret -API(int) exported(void); -""", - filename="macro_dependent.h", - ) - modules = c_file_to_semantic_modules(parsed) - report = assess_semantic_wrap_readiness(modules, source="macro_dependent.h") - - assert report["wrappable"] is False - assert any(blocker["code"] == "c_macro_dependent_declaration" for blocker in report["wrappability_blockers"]) - - def test_c_semantic_readiness_reports_variadic_functions_as_blockers(): from c_parser import parse_c_file from semantics.c2ir import c_file_to_semantic_modules diff --git a/tests/semantics/test_fortran2ir.py b/tests/semantics/test_fortran2ir.py index 63e291744..1e3916e4a 100644 --- a/tests/semantics/test_fortran2ir.py +++ b/tests/semantics/test_fortran2ir.py @@ -10,6 +10,7 @@ FortranFile, FortranModule, FortranProgram, + FortranProject, FortranProcedureSignature, FortranSubmodule, FortranUseMapping, @@ -22,6 +23,8 @@ FortranToIRConverter, _compile_time_requirement_message, _iter_fortran_variable_contexts, + _requirement_unit_name, + _resolve_compile_time_text, collect_semantic_compile_time_requirements, fortran_file_to_semantic_modules, fortran_module_to_semantic_module, @@ -46,8 +49,8 @@ # Helpers # ============================================================ -def get_function(module: SemanticModule, name: str) -> SemanticFunction: +def get_function(module: SemanticModule, name: str) -> SemanticFunction: for f in module.functions: if f.name == name: return f @@ -56,7 +59,6 @@ def get_function(module: SemanticModule, name: str) -> SemanticFunction: def get_class(module: SemanticModule, name: str) -> SemanticClass: - for c in module.classes: if c.name == name: return c @@ -65,7 +67,6 @@ def get_class(module: SemanticModule, name: str) -> SemanticClass: def has_constraint(obj, name: str) -> bool: - return any(c.name == name for c in obj.constraints) @@ -109,35 +110,199 @@ def test_converter_visitor_and_compatibility_methods_cover_public_paths(): assert converter.visit(parsed).name == "m" assert converter.visit(module).functions[0].visibility == "private" assert converter.visit(proc, visibility="private").visibility == "private" + assert converter.visit(proc).visibility == "public" semantic_arg = converter.visit(arg) assert semantic_arg.intent == "inout" assert semantic_arg.semantic_type.storage.kind == "reference" assert semantic_arg.semantic_type.storage.mutable is True + assert semantic_arg.visibility == "public" + assert semantic_arg.origin.source_language == "fortran" + assert semantic_arg.origin.native_name == "x" + assert semantic_arg.origin.source_kind == "argument" semantic_var = converter.variable_to_semantic_type(scale) assert semantic_var.name == "Float64" assert has_constraint(semantic_var, "Constant") assert converter.argument_to_semantic_argument(arg).name == "x" assert converter.procedure_to_semantic_function(proc).name == "work" + assert converter.procedure_to_semantic_function(proc).visibility == "public" assert converter.derived_type_to_semantic_class(dtype, procedure_lookup={}).base_classes == ["base_t"] assert converter.module_to_semantic_module(module).imports[0].items[0].target == "i32" modules = converter.file_to_semantic_modules(parsed) assert [module.name for module in modules] == ["m", "standalone_source"] + assert converter.visit(FortranProject(files=[parsed]))[0].name == "m" + + +def test_converter_preserves_imported_derived_contexts_through_dispatch_paths(): + converter = FortranToIRConverter() + imported_type = FortranVariable(name="state", base_type="derived", kind="local_state") + imported_argument = FortranArgument(name="arg", base_type="derived", kind="local_state", intent="inout") + local_field = FortranArgument(name="nested", base_type="derived", kind="container_t") + dtype = FortranDerivedType( + name="container_t", + module="consumer", + fields=[FortranArgument(name="state", base_type="derived", kind="local_state"), local_field], + methods=["step"], + ) + dtype.visibility = "private" + proc = FortranProcedureSignature( + name="step", + kind="subroutine", + module="consumer", + arguments=[imported_argument], + ) + module = FortranModule( + name="consumer", + uses={ + "plain_mod": [], + "types_mod": [FortranUseMapping(source="state_t", target="local_state")], + }, + variables=[FortranVariable(name="module_state", base_type="derived", kind="local_state")], + procedures=[proc], + derived_types=[dtype], + private_symbols=["container_t"], + ) + parsed_file = FortranFile(modules=[module]) + project = FortranProject(files=[parsed_file]) + context = converter._module_derived_type_context(module) + + semantic_module = converter.visit(module) + semantic_class = converter.visit(dtype, derived_type_context=context) + external_ref = { + "name": "state_t", + "local_name": "local_state", + "origin_module": "types_mod", + "wrapped": False, + "representation": "opaque", + } + + assert converter.visit(imported_type, derived_type_context=context).metadata["external_type_ref"] == external_ref + assert ( + converter.visit(imported_argument, derived_type_context=context).semantic_type.metadata["external_type_ref"] + == external_ref + ) + assert converter.visit(proc, derived_type_context=context).arguments[0].semantic_type.metadata[ + "external_type_ref" + ] == (external_ref) + assert converter.visit(parsed_file).classes[0].fields[0].semantic_type.metadata["external_type_ref"] == external_ref + assert converter.visit(project)[0].classes[0].fields[0].semantic_type.metadata["external_type_ref"] == external_ref + assert semantic_module.classes[0].fields[0].semantic_type.metadata["external_type_ref"] == external_ref + assert "external_type_ref" not in semantic_module.classes[0].fields[1].semantic_type.metadata + assert semantic_class.fields[0].semantic_type.metadata["external_type_ref"] == external_ref + assert [field.intent for field in semantic_class.fields] == ["in", "in"] + assert semantic_class.visibility == "private" + assert asdict(semantic_class.origin) == { + "source_language": "fortran", + "native_name": "container_t", + "native_scope": "consumer", + "source_kind": "derived_type", + "source_type": None, + "source_location": {}, + "metadata": {}, + } + semantic_proc = semantic_module.functions[0] + assert semantic_proc.native_name == "step" + assert semantic_proc.arguments[0].semantic_type.metadata["external_type_ref"] == external_ref + assert semantic_module.variables[0].semantic_type.metadata["external_type_ref"] == external_ref + assert semantic_module.variables[0].intent == "in" + assert [method.name for method in semantic_module.classes[0].methods] == ["step"] + assert semantic_module.classes[0].methods[0].projection == semantic_proc.projection + assert asdict(semantic_module.classes[0].methods[0].origin) == asdict(semantic_proc.origin) + assert asdict(semantic_proc.origin) == { + "source_language": "fortran", + "native_name": "step", + "native_scope": "consumer", + "source_kind": "subroutine", + "source_type": None, + "source_location": {}, + "metadata": {}, + } + assert [asdict(mapping) for mapping in semantic_proc.projection] == [ + { + "python_name": "arg", + "native_name": "arg", + "native_position": 0, + "python_position": 0, + "result_position": None, + "value_kind": "", + "value": None, + "intent": "inout", + } + ] + assert asdict(semantic_module.origin) == { + "source_language": "fortran", + "native_name": "consumer", + "native_scope": "consumer", + "source_kind": "module", + "source_type": None, + "source_location": {}, + "metadata": {}, + } + assert converter.visit_derived_type(FortranDerivedType(name="default_t")).visibility == "public" + assert ( + converter.visit_variable(FortranVariable(name="local", base_type="derived", kind="state_t")).name == "state_t" + ) + + +def test_converter_normalizes_wrapped_types_and_resolves_wildcard_imports(): + converter = FortranToIRConverter(wrapped_derived_types={("types_mod", "state_t")}) + module = FortranModule(name="consumer", uses={"OTHER_MOD": [], "TYPES_MOD": []}) + context = converter._module_derived_type_context(module) + + state = converter.visit_argument( + FortranArgument(name="state", base_type="derived", kind="state_t"), + derived_type_context=context, + ).semantic_type + opaque_context = converter._module_derived_type_context(FortranModule(name="consumer", uses={"OPAQUE_MOD": []})) + opaque = converter.visit_argument( + FortranArgument(name="opaque", base_type="derived", kind="opaque_t"), + derived_type_context=opaque_context, + ).semantic_type + merged = FortranToIRConverter()._with_additional_wrapped_types({("TYPES_MOD", "State_T")}) + + assert state.metadata["external_type_ref"] == { + "name": "state_t", + "local_name": "state_t", + "origin_module": "TYPES_MOD", + "wrapped": True, + "representation": "wrapped", + } + assert opaque.metadata["external_type_ref"] == { + "name": "opaque_t", + "local_name": "opaque_t", + "origin_module": "OPAQUE_MOD", + "wrapped": False, + "representation": "opaque", + } + assert merged.wrapped_derived_types == {("types_mod", "state_t")} + custom_type_map = {("integer", None): "CustomInt"} + configured = FortranToIRConverter(type_map=custom_type_map, compile_time_values={"rk": 8}) + configured = configured._with_additional_wrapped_types({("types_mod", "state_t")}) + assert configured.type_map is custom_type_map + assert configured.compile_time_values == {"rk": "8"} + assert FortranToIRConverter(compile_time_values={" ": 4, " RK ": 8}).compile_time_values == {"rk": "8"} + assert _resolve_compile_time_text("n + missing", {"n": "4"}) == "4 + missing" + assert _resolve_compile_time_text("N + missing", {"n": "4"}) == "4 + missing" + assert _requirement_unit_name(module="m") == "m" + assert _requirement_unit_name(unit_name="step") == "step" + assert _requirement_unit_name() == "" def test_converter_rejects_unsupported_inputs_and_missing_derived_type_names(): converter = FortranToIRConverter() - with pytest.raises(TypeError, match="Unsupported Fortran parse object"): + with pytest.raises(TypeError) as error: converter.visit(object()) + assert str(error.value) == "Unsupported Fortran parse object: " with pytest.raises(TypeError, match="Unsupported Fortran parse object"): converter.first_module(object()) - with pytest.raises(ValueError, match="Expected at least one Fortran module"): + with pytest.raises(ValueError) as error: converter.first_module(FortranFile()) + assert str(error.value) == "Expected at least one Fortran module in parsed file" from_list = converter.first_module( [ @@ -159,8 +324,9 @@ def test_converter_rejects_unsupported_inputs_and_missing_derived_type_names(): with pytest.raises(ValueError, match="Unknown Fortran datatype"): converter.visit_variable(FortranVariable(name="x", base_type="unknown")) - with pytest.raises(ValueError, match="Unsupported Fortran semantic type"): + with pytest.raises(ValueError) as error: converter.visit_variable(FortranVariable(name="x", base_type="real", kind="selected_real_kind(33)")) + assert str(error.value) == "Unsupported Fortran semantic type for variable 'x': real(kind=selected_real_kind(33))" def test_converter_covers_derived_dispatch_methods_and_kind_edges(): @@ -192,7 +358,10 @@ def test_converter_covers_derived_dispatch_methods_and_kind_edges(): ) ] assert converter.visit(FortranVariable(name="count", base_type="integer")).name == "Int32" - assert converter.first_module([FortranProcedureSignature(name="hidden", kind="subroutine", in_interface=True)]).name == "" + assert ( + converter.first_module([FortranProcedureSignature(name="hidden", kind="subroutine", in_interface=True)]).name + == "" + ) assert FortranToIRConverter._literal_kind_key("kind(1.0q0)") == "16" assert FortranToIRConverter._literal_kind_key("kind(1)") is None @@ -213,10 +382,7 @@ def test_semantic_compile_time_requirements_can_be_supplied_for_kind_selection() fortran_module_to_semantic_module(parsed) requirements = collect_semantic_compile_time_requirements(parsed) - assert { - (item["code"], item["symbol"], item["expression"]) - for item in requirements - } >= { + assert {(item["code"], item["symbol"], item["expression"]) for item in requirements} >= { ("parameter_value", "rk", "selected_real_kind(12)"), ("unsupported_kind", "x", "selected_real_kind(12)"), } @@ -251,7 +417,9 @@ def test_semantic_compile_time_requirements_cover_all_parser_contexts(): FortranModule( name="solver_mod", variables=[ - FortranVariable(name="rk", base_type="integer", is_parameter=True, symbolic_value="selected_real_kind(12)"), + FortranVariable( + name="rk", base_type="integer", is_parameter=True, symbolic_value="selected_real_kind(12)" + ), FortranVariable(name="scale", base_type="real", kind="rk"), ], procedures=[proc], @@ -263,40 +431,272 @@ def test_semantic_compile_time_requirements_cover_all_parser_contexts(): name="solver_child", parent="solver_mod", variables=[FortranVariable(name="child_scale", base_type="real", kind="rk")], - procedures=[FortranProcedureSignature(name="child_step", kind="subroutine", arguments=[FortranArgument(name="y", base_type="real", kind="rk")])], - derived_types=[FortranDerivedType(name="child_t", fields=[FortranArgument(name="value", base_type="real", kind="rk")])], + procedures=[ + FortranProcedureSignature( + name="child_step", + kind="subroutine", + arguments=[FortranArgument(name="y", base_type="real", kind="rk")], + ) + ], + derived_types=[ + FortranDerivedType( + name="child_t", fields=[FortranArgument(name="value", base_type="real", kind="rk")] + ) + ], ) ], programs=[ FortranProgram( variables=[FortranVariable(name="program_scale", base_type="real", kind="rk")], - procedures=[FortranProcedureSignature(name="program_step", kind="subroutine", arguments=[FortranArgument(name="z", base_type="real", kind="rk")])], + procedures=[ + FortranProcedureSignature( + name="program_step", + kind="subroutine", + arguments=[FortranArgument(name="z", base_type="real", kind="rk")], + ) + ], ) ], block_data_units=[ FortranBlockData(variables=[FortranVariable(name="saved_scale", base_type="real", kind="rk")]) ], - procedures=[FortranProcedureSignature(name="free_step", kind="subroutine", arguments=[FortranArgument(name="q", base_type="real", kind="rk")])], - derived_types=[FortranDerivedType(name="free_t", fields=[FortranArgument(name="payload", base_type="real", kind="rk")])], + procedures=[ + FortranProcedureSignature( + name="free_step", kind="subroutine", arguments=[FortranArgument(name="q", base_type="real", kind="rk")] + ) + ], + derived_types=[ + FortranDerivedType(name="free_t", fields=[FortranArgument(name="payload", base_type="real", kind="rk")]) + ], ) - contexts = [ctx for _var, ctx in _iter_fortran_variable_contexts(parsed)] + contexts = {var.name: ctx for var, ctx in _iter_fortran_variable_contexts(parsed)} requirements = collect_semantic_compile_time_requirements(parsed) supplied = collect_semantic_compile_time_requirements( parsed, compile_time_values={"rk": 8, "selected_real_kind(12)": 8, "n": 2}, ) + assert contexts == { + "file_param": { + "unit_kind": "file", + "unit": "", + "module": None, + "symbol": "file_param", + "role": "variable", + }, + "rk": { + "unit_kind": "module", + "unit": "solver_mod", + "module": "solver_mod", + "symbol": "rk", + "role": "variable", + }, + "scale": { + "unit_kind": "module", + "unit": "solver_mod", + "module": "solver_mod", + "symbol": "scale", + "role": "variable", + }, + "x": { + "unit_kind": "procedure", + "unit": "solver_mod.step", + "module": "solver_mod", + "procedure": "step", + "symbol": "x", + "role": "argument", + }, + "r": { + "unit_kind": "procedure", + "unit": "solver_mod.step", + "module": "solver_mod", + "procedure": "step", + "symbol": "r", + "role": "result", + }, + "scratch": { + "unit_kind": "procedure", + "unit": "solver_mod.step", + "module": "solver_mod", + "procedure": "step", + "symbol": "scratch", + "role": "variable", + }, + "mass": { + "unit_kind": "derived_type", + "unit": "solver_mod.state_t", + "module": "solver_mod", + "type_owner": "state_t", + "symbol": "mass", + "role": "field", + }, + "child_scale": { + "unit_kind": "submodule", + "unit": "solver_child", + "module": "solver_child", + "symbol": "child_scale", + "role": "variable", + }, + "y": { + "unit_kind": "procedure", + "unit": "solver_child.child_step", + "module": "solver_child", + "procedure": "child_step", + "symbol": "y", + "role": "argument", + }, + "value": { + "unit_kind": "derived_type", + "unit": "solver_child.child_t", + "module": "solver_child", + "type_owner": "child_t", + "symbol": "value", + "role": "field", + }, + "program_scale": { + "unit_kind": "program", + "unit": "", + "module": None, + "symbol": "program_scale", + "role": "variable", + }, + "z": { + "unit_kind": "procedure", + "unit": "program_step", + "module": None, + "procedure": "program_step", + "symbol": "z", + "role": "argument", + }, + "saved_scale": { + "unit_kind": "block_data", + "unit": "", + "module": None, + "symbol": "saved_scale", + "role": "variable", + }, + "q": { + "unit_kind": "procedure", + "unit": "free_step", + "module": None, + "procedure": "free_step", + "symbol": "q", + "role": "argument", + }, + "payload": { + "unit_kind": "derived_type", + "unit": "free_t", + "module": None, + "type_owner": "free_t", + "symbol": "payload", + "role": "field", + }, + } assert {"file", "module", "submodule", "program", "block_data", "procedure", "derived_type"} <= { - ctx["unit_kind"] for ctx in contexts + ctx["unit_kind"] for ctx in contexts.values() } - assert {ctx["role"] for ctx in contexts} >= {"variable", "argument", "result", "field"} + assert {ctx["role"] for ctx in contexts.values()} >= {"variable", "argument", "result", "field"} assert ("parameter_value", "rk", "selected_real_kind(12)") in { - (item["code"], item["symbol"], item["expression"]) - for item in requirements + (item["code"], item["symbol"], item["expression"]) for item in requirements } assert any(item["code"] == "unsupported_kind" and item["symbol"] == "scale" for item in requirements) + by_symbol = {(item["code"], item["symbol"]): item for item in requirements} + assert by_symbol[("parameter_value", "rk")] == { + "code": "parameter_value", + "unit_kind": "module", + "unit": "solver_mod", + "module": "solver_mod", + "procedure": None, + "type_owner": None, + "role": "variable", + "symbol": "rk", + "base_type": None, + "kind": None, + "expression": "selected_real_kind(12)", + "message": "Parameter 'rk' needs a compile-time value for expression 'selected_real_kind(12)'.", + } + assert by_symbol[("unsupported_kind", "mass")] == { + "code": "unsupported_kind", + "unit_kind": "derived_type", + "unit": "solver_mod.state_t", + "module": "solver_mod", + "procedure": None, + "type_owner": "state_t", + "role": "field", + "symbol": "mass", + "base_type": "real", + "kind": "rk", + "expression": "rk", + "message": "Kind expression for 'mass' needs a supported compile-time value.", + } + assert by_symbol[("unsupported_kind", "x")]["procedure"] == "step" assert supplied == [] + assert ( + collect_semantic_compile_time_requirements( + FortranFile(variables=[FortranVariable(name="custom", base_type="real", kind="rk")]), + type_map={("real", "rk"): "FloatCustom"}, + ) + == [] + ) + assert ( + collect_semantic_compile_time_requirements( + FortranFile(variables=[FortranVariable(name="runtime", base_type="integer", value="n + 1")]) + ) + == [] + ) + assert ( + collect_semantic_compile_time_requirements( + FortranFile( + variables=[ + FortranVariable( + name="provided", + base_type="integer", + is_parameter=True, + symbolic_value="external_value()", + ) + ] + ), + compile_time_values={"provided": 4}, + ) + == [] + ) + unsupported = collect_semantic_compile_time_requirements( + FortranFile( + variables=[ + FortranVariable(name="bad_integer", base_type="integer", kind="bad"), + FortranVariable(name="bad_real", base_type="real", kind="bad"), + FortranVariable(name="bad_complex", base_type="complex", kind="bad"), + FortranVariable(name="bad_logical", base_type="logical", kind="bad"), + FortranVariable(name="bad_character", base_type="character", kind="bad"), + FortranVariable(name="callback", base_type="procedure", kind="f_iface"), + ] + ) + ) + assert {item["symbol"] for item in unsupported} == { + "bad_integer", + "bad_real", + "bad_complex", + } + resolved_kind = collect_semantic_compile_time_requirements( + FortranFile(variables=[FortranVariable(name="resolved_bad", base_type="real", kind="rk + 1")]), + compile_time_values={"rk": 8}, + ) + assert resolved_kind[0]["expression"] == "8 + 1" + named_contexts = { + var.name: ctx + for var, ctx in _iter_fortran_variable_contexts( + FortranFile( + filename="units.f90", + variables=[FortranVariable(name="file_named")], + programs=[FortranProgram(name="driver", variables=[FortranVariable(name="program_named")])], + block_data_units=[FortranBlockData(name="saved", variables=[FortranVariable(name="block_named")])], + ) + ) + } + assert named_contexts["file_named"]["unit"] == "units.f90" + assert named_contexts["program_named"]["unit"] == "driver" + assert named_contexts["block_named"]["unit"] == "saved" assert _compile_time_requirement_message("other", "n", "n + 1") == "Compile-time value required for 'n'." @@ -348,6 +748,7 @@ def test_resolve_semantic_compile_time_values_handles_nested_modules(): rank=1, shape=["n"], source_shape=["1:n"], + lower_bounds=["n"], upper_bounds=["n"], ), ), @@ -407,10 +808,23 @@ def test_resolve_semantic_compile_time_values_handles_nested_modules(): assert resolved_module.variables[0].semantic_type.shape == ["4"] assert resolved_module.variables[0].semantic_type.storage.array.shape == ["4"] assert resolved_module.variables[0].semantic_type.storage.array.source_shape == ["1:4"] + assert resolved_module.variables[0].semantic_type.storage.array.lower_bounds == ["4"] + assert resolved_module.variables[0].semantic_type.storage.array.upper_bounds == ["4"] assert resolved_module.variables[0].semantic_type.metadata == {"bounds": ("4", ["2"])} + assert resolved_module.variables[0].default_value == "4" + assert resolved_module.variables[0].metadata == {"alias": "2"} + assert resolved_module.functions[0].arguments[0].semantic_type.shape == ["2"] + assert resolved_module.functions[0].arguments[0].metadata == {"scale": "4"} assert resolved_module.functions[0].projection[0].value == {"shape": ["4", ("2",)]} + assert resolved_module.functions[0].metadata == {"work": ["4", {"inner": "2"}]} assert resolved_module.functions[1].return_type.metadata == {"extent": "4"} + assert resolved_module.classes[0].fields[0].semantic_type.shape == ["4"] + assert resolved_module.classes[0].fields[0].default_value == "2" + assert resolved_module.classes[0].methods[0].arguments[0].semantic_type.metadata == {"n": "4"} + assert resolved_module.classes[0].methods[0].return_type.metadata == {"m": "2"} assert resolved_module.classes[0].methods[0].projection[0].value == ("4", {"m": "2"}) + assert resolved_module.classes[0].methods[0].metadata == {"method": "4"} + assert resolved_module.classes[0].metadata == {"class": "2"} assert resolved_module.metadata == {"module": ["4", ("2",)]} @@ -436,19 +850,59 @@ def test_iso_c_module_variable_kinds_map_to_semantic_types(): def test_intrinsic_builtin_kinds_map_to_semantic_types(): converter = FortranToIRConverter() cases = [ - (FortranVariable(name="i1", base_type="integer", kind="1"), "Int8"), - (FortranVariable(name="i2", base_type="integer", kind="2"), "Int16"), - (FortranVariable(name="i8", base_type="integer", kind="8"), "Int64"), - (FortranVariable(name="r4", base_type="real", kind="4"), "Float32"), - (FortranVariable(name="r16", base_type="real", kind="16"), "Float128"), - (FortranVariable(name="c8", base_type="complex", kind="8"), "Complex128"), - (FortranVariable(name="ciso", base_type="complex", kind="c_double_complex"), "Complex128"), - (FortranVariable(name="flag", base_type="logical", kind="8"), "Bool"), - (FortranVariable(name="text", base_type="character", kind="len=12, kind=c_char"), "String"), - (FortranVariable(name="callback", base_type="procedure", kind="f_iface"), "Procedure"), + ("integer", None, "Int32"), + ("integer", "1", "Int8"), + ("integer", "2", "Int16"), + ("integer", "4", "Int32"), + ("integer", "8", "Int64"), + ("integer", "int8", "Int8"), + ("integer", "int16", "Int16"), + ("integer", "int32", "Int32"), + ("integer", "int64", "Int64"), + ("integer", "c_signed_char", "Int8"), + ("integer", "c_short", "Int16"), + ("integer", "c_int", "Int32"), + ("integer", "c_long_long", "Int64"), + ("integer", "c_int8_t", "Int8"), + ("integer", "c_int16_t", "Int16"), + ("integer", "c_int32_t", "Int32"), + ("integer", "c_int64_t", "Int64"), + ("real", None, "Float64"), + ("real", "4", "Float32"), + ("real", "8", "Float64"), + ("real", "16", "Float128"), + ("real", "real32", "Float32"), + ("real", "real64", "Float64"), + ("real", "real128", "Float128"), + ("real", "c_float", "Float32"), + ("real", "c_double", "Float64"), + ("real", "kind(1.0e0)", "Float32"), + ("real", "kind(1.0d0)", "Float64"), + ("real", "kind(1.0q0)", "Float128"), + ("complex", None, "Complex128"), + ("complex", "4", "Complex64"), + ("complex", "8", "Complex128"), + ("complex", "16", "Complex256"), + ("complex", "real32", "Complex64"), + ("complex", "real64", "Complex128"), + ("complex", "real128", "Complex256"), + ("complex", "c_float_complex", "Complex64"), + ("complex", "c_double_complex", "Complex128"), + ("logical", None, "Bool"), + ("logical", "1", "Bool"), + ("logical", "2", "Bool"), + ("logical", "4", "Bool"), + ("logical", "8", "Bool"), + ("logical", "c_bool", "Bool"), + ("character", None, "String"), + ("character", "1", "String"), + ("character", "c_char", "String"), + ("character", "len=12, kind=c_char", "String"), + ("procedure", "f_iface", "Procedure"), ] - for variable, expected in cases: + for base_type, kind, expected in cases: + variable = FortranVariable(name=f"{base_type}_{kind or 'default'}", base_type=base_type, kind=kind) assert converter.visit_variable(variable).name == expected @@ -483,8 +937,8 @@ def test_semantic_model_helpers_cover_projection_and_canonical_edge_cases(): # Basic scalar test # ============================================================ -def test_basic_scalar_arguments(): +def test_basic_scalar_arguments(): source = """ module math_mod @@ -512,7 +966,6 @@ def test_basic_scalar_arguments(): assert len(func.arguments) == 3 a = func.arguments[0] - b = func.arguments[1] c = func.arguments[2] assert a.name == "a" @@ -530,8 +983,8 @@ def test_basic_scalar_arguments(): # Array semantics test # ============================================================ -def test_array_constraints(): +def test_array_constraints(): source = """ module array_mod @@ -569,8 +1022,8 @@ def test_array_constraints(): # Multi-dimensional array test # ============================================================ -def test_matrix_semantics(): +def test_matrix_semantics(): source = """ module linalg_mod @@ -657,6 +1110,97 @@ def test_fortran_native_storage_contracts_cover_array_categories_and_scalars(): assert args["scalar_out"].semantic_type.storage.mutable is True +def test_fortran_native_storage_contracts_preserve_exact_bounds_and_member_flags(): + converter = FortranToIRConverter(compile_time_values={"n": 4}) + matrix = FortranArgument( + name="matrix", + base_type="real", + kind="8", + rank=2, + shape=["0:n - 1", "*"], + intent="inout", + ) + matrix.contiguous = True + member = FortranArgument( + name="items", + base_type="real", + kind="8", + rank=1, + shape=[":"], + optional=True, + allocatable=True, + pointer=True, + visibility="private", + ) + + matrix_type = converter.visit_argument(matrix).semantic_type + assumed_rank = converter.visit_variable(FortranVariable(name="any_rank", base_type="real", rank=1, shape=[".."])) + semantic_member = converter.visit_data_member(member) + plain_member = converter.visit_data_member(FortranVariable(name="plain", base_type="real", rank=1, shape=[":"])) + mixed_bounds = converter.visit_variable( + FortranVariable(name="mixed", base_type="real", rank=3, shape=["3", "1:n", "0:n"]) + ) + spaced_intent = converter.visit_argument(FortranArgument(name="spaced", base_type="integer", intent="in out")) + out_member = converter.visit_data_member(FortranVariable(name="out_value", base_type="integer"), intent="out") + + assert asdict(matrix_type.storage) == { + "kind": "array", + "read_only": False, + "mutable": True, + "pointer_depth": 0, + "ownership": "borrowed", + "array": { + "rank": 2, + "shape": ["4 - 1 - 0 + 1", ":"], + "lower_bounds": ["0", None], + "upper_bounds": ["4 - 1", "*"], + "source_shape": ["0:4 - 1", "*"], + "category": "assumed_size", + "order": "ORDER_F", + "axes": ["dense", "dense"], + "contiguous": True, + "allocatable": False, + "pointer": False, + "metadata": {}, + }, + "calling_convention": None, + "metadata": {}, + } + assert asdict(assumed_rank.storage.array) == { + "rank": 1, + "shape": ["..."], + "lower_bounds": [], + "upper_bounds": [], + "source_shape": [".."], + "category": "assumed_rank", + "order": None, + "axes": ["dense"], + "contiguous": None, + "allocatable": False, + "pointer": False, + "metadata": {}, + } + assert semantic_member.name == "items" + assert semantic_member.intent == "in" + assert semantic_member.optional is True + assert semantic_member.visibility == "private" + assert semantic_member.semantic_type.storage.array.category == "deferred_shape" + assert semantic_member.semantic_type.storage.array.allocatable is True + assert semantic_member.semantic_type.storage.array.pointer is True + assert plain_member.optional is False + assert plain_member.visibility == "public" + assert plain_member.semantic_type.storage.array.shape == ["::Strided"] + assert plain_member.semantic_type.storage.array.allocatable is False + assert plain_member.semantic_type.storage.array.pointer is False + assert plain_member.origin.source_language == "fortran" + assert plain_member.origin.native_name == "plain" + assert plain_member.origin.source_kind == "variable" + assert mixed_bounds.storage.array.lower_bounds == [None, None, "0"] + assert mixed_bounds.storage.array.upper_bounds == [None, "4", "4"] + assert spaced_intent.intent == "inout" + assert out_member.intent == "out" + + def test_explicit_bound_ranges_remain_shaped_storage_contracts(): source = """ module bound_mod @@ -684,8 +1228,8 @@ def test_explicit_bound_ranges_remain_shaped_storage_contracts(): # Optional arguments # ============================================================ -def test_optional_argument(): +def test_optional_argument(): source = """ module opt_mod @@ -716,8 +1260,8 @@ def test_optional_argument(): # Allocatable + pointer semantics # ============================================================ -def test_allocatable_pointer(): +def test_allocatable_pointer(): source = """ module alloc_mod @@ -747,8 +1291,8 @@ def test_allocatable_pointer(): # Derived type conversion # ============================================================ -def test_derived_type(): +def test_derived_type(): source = """ module sparse_mod @@ -792,8 +1336,8 @@ def test_derived_type(): # Inheritance test # ============================================================ -def test_derived_type_inheritance(): +def test_derived_type_inheritance(): source = """ module inheritance_mod @@ -819,8 +1363,8 @@ def test_derived_type_inheritance(): # Function return type # ============================================================ -def test_function_result(): +def test_function_result(): source = """ module func_mod @@ -852,8 +1396,8 @@ def test_function_result(): # Shape preservation # ============================================================ -def test_explicit_shape(): +def test_explicit_shape(): source = """ module shape_mod @@ -883,8 +1427,8 @@ def test_explicit_shape(): # JSON serialization test # ============================================================ -def test_semantic_ir_serialization(): +def test_semantic_ir_serialization(): source = """ module simple_mod @@ -916,8 +1460,8 @@ def test_semantic_ir_serialization(): # Complicated mixed example # ============================================================ -def test_complex_module(): +def test_complex_module(): source = """ module fem_mod @@ -1003,7 +1547,6 @@ def test_complex_module(): def test_module_conversion_public_api_entrypoint(): - source = """ module class_mod @@ -1107,6 +1650,36 @@ def test_imported_derived_type_is_an_opaque_external_reference_by_default(): "wrapped": False, "representation": "opaque", } + wrapped_modules = fortran_file_to_semantic_modules( + parsed, + wrapped_derived_types={("types_mod", "particle")}, + ) + wrapped_particle = get_function(wrapped_modules[0], "move").arguments[0].semantic_type + assert wrapped_particle.metadata["external_type_ref"]["wrapped"] is True + assert wrapped_particle.metadata["external_type_ref"]["representation"] == "wrapped" + wrapped_module = fortran_module_to_semantic_module( + parsed, + wrapped_derived_types={("types_mod", "particle")}, + ) + assert ( + get_function(wrapped_module, "move").arguments[0].semantic_type.metadata["external_type_ref"]["wrapped"] is True + ) + + +def test_fortran_file_and_project_helpers_forward_compile_time_values(): + proc = FortranProcedureSignature( + name="scale", + kind="subroutine", + arguments=[FortranArgument(name="x", base_type="real", kind="rk")], + ) + parsed_file = FortranFile(modules=[FortranModule(name="solver", procedures=[proc])]) + project = FortranProject(files=[parsed_file]) + + file_module = fortran_file_to_semantic_modules(parsed_file, compile_time_values={"rk": 8})[0] + project_module = fortran_project_to_semantic_modules(project, compile_time_values={"rk": 8})[0] + + assert get_function(file_module, "scale").arguments[0].semantic_type.name == "Float64" + assert get_function(project_module, "scale").arguments[0].semantic_type.name == "Float64" def test_explicit_project_target_resolves_imported_derived_type_without_reexport(): diff --git a/tests/semantics/test_pyi_printer.py b/tests/semantics/test_pyi_printer.py index d0c8b581c..92c805978 100644 --- a/tests/semantics/test_pyi_printer.py +++ b/tests/semantics/test_pyi_printer.py @@ -7,10 +7,13 @@ fortran_module_to_semantic_module, ) +from semantics.pyi_parser import parse_pyi_text from semantics.pyi_printer import ( emit_module, emit_module_stubs, + opaque_dependency_modules, PyiPrinter, + _module_list, ) from semantics.models import ( ProjectionMapping, @@ -31,13 +34,13 @@ # Helpers # ============================================================ + def test_x2py_public_api_exports_module_stub_emitter(): assert "emit_module_stubs" in x2py.__all__ assert x2py.emit_module_stubs is emit_module_stubs def generate_pyi(source: str) -> str: - fmod = parse_fortran_source(source) smod = fortran_module_to_semantic_module(fmod) @@ -46,19 +49,15 @@ def generate_pyi(source: str) -> str: def normalize(text: str) -> str: - - return "\n".join( - line.rstrip() - for line in text.strip().splitlines() - ) + return "\n".join(line.rstrip() for line in text.strip().splitlines()) # ============================================================ # Basic scalar function # ============================================================ -def test_emit_basic_scalar_function(): +def test_emit_basic_scalar_function(): source = """ module math_mod @@ -102,6 +101,159 @@ def test_emit_rejects_unknown_semantic_type(): emit_module(module) +def test_printer_validation_and_opaque_dependency_edge_cases(): + printer = PyiPrinter() + + with pytest.raises(ValueError, match="Shape constraints are not canonical"): + printer.emit_constraint(SemanticConstraint("Shape")) + + plain_type = SemanticType("Float64", dtype="Float64") + assert printer._emit_storage_type(plain_type) == "Float64" + assert _module_list(None) == [] + + malformed_import = SemanticType( + "external_type", + dtype="external_type", + metadata={ + "external_type_ref": { + "origin_module": "", + "name": "external_type", + "local_name": "external_type", + } + }, + ) + assert ( + printer._effective_imports(SemanticModule(name="api", variables=[SemanticArgument("value", malformed_import)])) + == [] + ) + + invalid_opaque_ref = SemanticType( + "external_type", + dtype="external_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": 42, + } + }, + ) + known_opaque_ref = SemanticType( + "external_type", + dtype="external_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": "external_type", + } + }, + ) + assert ( + opaque_dependency_modules( + SemanticModule( + name="api", + variables=[ + SemanticArgument("invalid", invalid_opaque_ref), + SemanticArgument("known", known_opaque_ref), + ], + ), + available_modules=[SemanticModule(name="types", classes=[SemanticClass(name="external_type")])], + ) + == [] + ) + + with pytest.raises(ValueError, match="duplicate semantic module"): + emit_module_stubs([SemanticModule(name="duplicate"), SemanticModule(name="duplicate")]) + + +def test_opaque_dependency_modules_scan_all_references_and_preserve_metadata(): + plain_type = SemanticType("Float64", dtype="Float64") + invalid_opaque_ref = SemanticType( + "invalid_type", + dtype="invalid_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": 42, + } + }, + ) + known_opaque_ref = SemanticType( + "known_type", + dtype="known_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": "known_type", + } + }, + ) + missing_opaque_ref = SemanticType( + "missing_type", + dtype="missing_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": "missing_type", + } + }, + ) + + dependencies = opaque_dependency_modules( + SemanticModule( + name="api", + variables=[ + SemanticArgument("plain", plain_type), + SemanticArgument("invalid", invalid_opaque_ref), + SemanticArgument("known", known_opaque_ref), + SemanticArgument("missing", missing_opaque_ref), + ], + ), + available_modules=[SemanticModule(name="types", classes=[SemanticClass(name="known_type")])], + ) + + assert dependencies == [ + SemanticModule( + name="types", + classes=[ + SemanticClass( + name="missing_type", + native_name="missing_type", + base_classes=["Opaque"], + metadata={"representation": "opaque"}, + ) + ], + ) + ] + + +def test_emit_module_stubs_honors_available_opaque_dependency_modules(): + known_opaque_ref = SemanticType( + "known_type", + dtype="known_type", + metadata={ + "external_type_ref": { + "representation": "opaque", + "origin_module": "types", + "name": "known_type", + } + }, + ) + stubs = emit_module_stubs( + SemanticModule( + name="api", + variables=[SemanticArgument("known", known_opaque_ref)], + ), + available_modules=[SemanticModule(name="types", classes=[SemanticClass(name="known_type")])], + ) + + assert set(stubs) == {"api"} + + def test_emit_no_argument_subroutine_is_single_line_signature(): source = """ module no_arg_mod @@ -124,8 +276,8 @@ def test_emit_no_argument_subroutine_is_single_line_signature(): # Array annotations # ============================================================ -def test_emit_array_constraints(): +def test_emit_array_constraints(): source = """ module array_mod @@ -156,8 +308,8 @@ def test_emit_array_constraints(): # Matrix shapes # ============================================================ -def test_emit_matrix_shapes(): +def test_emit_matrix_shapes(): source = """ module matrix_mod @@ -207,8 +359,8 @@ def test_emit_explicit_bound_ranges_as_extents_without_source_dimension_metadata # Optional arguments # ============================================================ -def test_emit_optional_argument(): +def test_emit_optional_argument(): source = """ module opt_mod @@ -235,8 +387,8 @@ def test_emit_optional_argument(): # Allocatable constraint # ============================================================ -def test_emit_allocatable(): +def test_emit_allocatable(): source = """ module alloc_mod @@ -260,8 +412,8 @@ def test_emit_allocatable(): # Derived type emission # ============================================================ -def test_emit_class(): +def test_emit_class(): source = """ module sparse_mod @@ -284,8 +436,8 @@ def test_emit_class(): # Derived type inheritance # ============================================================ -def test_emit_inheritance(): +def test_emit_inheritance(): source = """ module inheritance_mod @@ -307,8 +459,8 @@ def test_emit_inheritance(): # Function result # ============================================================ -def test_emit_function_result(): +def test_emit_function_result(): source = """ module func_mod @@ -336,8 +488,8 @@ def test_emit_function_result(): # Explicit shape emission # ============================================================ -def test_emit_explicit_shape(): +def test_emit_explicit_shape(): source = """ module shape_mod @@ -361,8 +513,8 @@ def test_emit_explicit_shape(): # Imports # ============================================================ -def test_emit_imports(): +def test_emit_imports(): source = """ module user_mod @@ -385,7 +537,6 @@ def test_emit_imports(): def test_emit_import_renames(): - source = """ module user_mod @@ -456,17 +607,23 @@ def test_parameter_target_sanitizes_non_identifier_names(): assert PyiPrinter._parameter_target("1value") == "arg_1value" assert PyiPrinter._parameter_target("class!") == "class_" assert PyiPrinter._parameter_target("!!!") == "arg" - assert PyiPrinter._requires_explicit_projection_mapping( - ProjectionMapping(native_position=1, result_position=0) - ) + assert PyiPrinter._requires_explicit_projection_mapping(ProjectionMapping(native_position=1, result_position=0)) + + +def test_emit_argument_escapes_original_name_metadata(): + emitted = PyiPrinter().emit_argument(SemanticArgument('quote"name', SemanticType("Int32"))) + reparsed = parse_pyi_text(f"def consume({emitted}) -> None: ...\n", module_name="quoted") + + assert emitted == 'quote_name: Annotated[Int32, Name("quote\\"name")]' + assert reparsed.functions[0].arguments[0].name == 'quote"name' # ============================================================ # Multiple procedures # ============================================================ -def test_emit_multiple_functions(): +def test_emit_multiple_functions(): source = """ module multi_mod @@ -498,8 +655,8 @@ def test_emit_multiple_functions(): # Complex FEM example # ============================================================ -def test_emit_complex_fem_module(): +def test_emit_complex_fem_module(): source = """ module fem_mod @@ -572,8 +729,8 @@ def test_emit_complex_fem_module(): # Golden test # ============================================================ -def test_emit_exact_output(): +def test_emit_exact_output(): source = """ module simple_mod @@ -591,11 +748,11 @@ def test_emit_exact_output(): code = normalize(generate_pyi(source)) expected = normalize( - ''' + """ def scale( x: Float64[::Strided] ) -> None: ... -''' +""" ) assert expected in code @@ -632,8 +789,8 @@ def test_output_argument_uses_plain_return_annotation(): # Empty module # ============================================================ -def test_emit_empty_module(): +def test_emit_empty_module(): source = """ module empty_mod end module @@ -648,8 +805,8 @@ def test_emit_empty_module(): # Stability test # ============================================================ -def test_emit_is_deterministic(): +def test_emit_is_deterministic(): source = """ module stable_mod @@ -672,7 +829,6 @@ def test_emit_is_deterministic(): def test_printer_class_entrypoint(): - source = """ module class_print_mod @@ -730,8 +886,9 @@ def test_printer_emit_visitor_dispatches_semantic_models(): assert "def wrap(" in printer.emit(func) assert "class thing:" in printer.emit(module) - with pytest.raises(TypeError, match="Unsupported semantic model"): + with pytest.raises(TypeError) as unsupported: printer.emit(object()) + assert str(unsupported.value) == "Unsupported semantic model for .pyi emission: " def test_emit_class_method_keeps_method_indentation(): @@ -919,6 +1076,10 @@ def test_printer_emits_extended_storage_and_callable_forms(): "Float64", storage=SemanticStorageContract(kind="pointer", read_only=True, pointer_depth=3), ) + double_pointer = SemanticType( + "Float64", + storage=SemanticStorageContract(kind="pointer", pointer_depth=2), + ) unspecified_storage = SemanticType("Int32", storage=SemanticStorageContract(kind="custom")) inferred_array = SemanticType( "Float64", @@ -942,7 +1103,7 @@ def test_printer_emits_extended_storage_and_callable_forms(): full_callback = SemanticType( "Callable", metadata={ - "arguments": [SemanticType("Int32")], + "arguments": [SemanticType("Int32"), SemanticType("Float64")], "return": SemanticType("Float64"), }, ) @@ -958,12 +1119,13 @@ def test_printer_emits_extended_storage_and_callable_forms(): assert printer.emit_semantic_type(readonly_value) == "Const(Int32)" assert printer.emit_semantic_type(mutable_value) == "Int32" assert printer.emit_semantic_type(deep_pointer) == "Ptr[3](Const(Float64))" + assert printer.emit_semantic_type(double_pointer) == "Ptr[2](Float64)" assert printer.emit_semantic_type(unspecified_storage) == "Int32" assert printer.emit_semantic_type(inferred_array) == "Float64[:, :]" assert printer.emit_semantic_type(annotated_array) == ( "Annotated[Float64[:, :], ORDER_ANY, Allocatable, Pointer, Finite, Range(1, 3)]" ) - assert printer.emit_semantic_type(full_callback) == "Callable[[Int32], Float64]" + assert printer.emit_semantic_type(full_callback) == "Callable[[Int32, Float64], Float64]" assert printer.emit_semantic_type(any_callback) == "Callable[..., Float64]" assert printer.emit_semantic_type(SemanticType("Callable")) == "Callable" @@ -984,6 +1146,68 @@ def test_printer_projection_return_helpers_and_keyword_data_members(): ) assert printer._projected_argument_return(argument) == 'Returns["x", Float64, Optional]' + assert printer._named_return(plain) == 'Returns["value", Int32]' assert printer._projected_argument_return(plain) == "Int32" assert "var['class']: Int32" in emit_module(module) assert "@native_call([Return(0)])" in emit_module(module) + + +def test_printer_rejects_each_unresolved_semantic_type_field(): + printer = PyiPrinter() + message = "Cannot emit .pyi with unresolved semantic type 'Unknown'" + + with pytest.raises(ValueError) as unknown_name: + printer.emit_semantic_type(SemanticType("Unknown", dtype="Int32")) + with pytest.raises(ValueError) as unknown_dtype: + printer.emit_semantic_type(SemanticType("Int32", dtype="Unknown")) + + assert str(unknown_name.value) == message + assert str(unknown_dtype.value) == message + + +def test_printer_preserves_structured_class_and_decorator_layout(): + printer = PyiPrinter() + decorated_method = SemanticMethod( + name="lookup", + return_type=SemanticType("Float64"), + visibility="private", + projection=[ProjectionMapping(native_position=0, result_position=0)], + ) + cls = SemanticClass( + name="thing", + base_classes=["Opaque", "Protocol"], + fields=[SemanticArgument("value", SemanticType("Int32"))], + methods=[decorated_method, SemanticMethod(name="reset")], + ) + decorated_function = SemanticFunction( + name="wrapper", + visibility="private", + projection=[ProjectionMapping(native_position=0, result_position=0)], + ) + + assert ( + printer.emit_class(cls) + == """class thing(Opaque, Protocol): + value: Int32 + + @private + @native_call([Return(0)]) + def lookup(self) -> Float64: ... + + def reset(self) -> None: ...""" + ) + assert ( + printer.emit_function(decorated_function) + == """@private +@native_call([Return(0)]) +def wrapper() -> None: ...""" + ) + + +def test_native_call_sorts_synthetic_entries_before_native_positions(): + projection = [ + ProjectionMapping(native_position=0, value_kind="const", value=1), + ProjectionMapping(result_position=0), + ] + + assert PyiPrinter()._native_call(projection) == "@native_call([Return(0), Const(1)])" diff --git a/tests/semantics/test_semantic_wrap_readiness.py b/tests/semantics/test_semantic_wrap_readiness.py index 91efc6c95..b6c2d721d 100644 --- a/tests/semantics/test_semantic_wrap_readiness.py +++ b/tests/semantics/test_semantic_wrap_readiness.py @@ -7,15 +7,29 @@ from semantics.pyi_parser import parse_pyi_text from semantics.models import ( + EXTERNAL_TYPE_REF_METADATA, + SemanticArrayContract, SemanticArgument, SemanticClass, + SemanticConstraint, SemanticFunction, + SemanticImport, + SemanticImportItem, SemanticMethod, SemanticModule, + SemanticStorageContract, SemanticType, ) from semantics.readiness import ( + _SemanticTypeIndex, + _constant_names, + _constant_values, + _import_index, + _is_external_type_ref, + _is_public, _iter_expression_values, + _shape_expressions, + _shape_symbols, assess_pyi_wrap_readiness, assess_semantic_wrap_readiness, ) @@ -190,6 +204,16 @@ def test_assess_pyi_wrap_readiness_expands_directory_and_deduplicates_paths(tmp_ assert report["source"] == [str(first), str(second)] +def test_assess_pyi_wrap_readiness_honors_explicit_encoding(tmp_path: Path): + pyi = tmp_path / "latin1.pyi" + pyi.write_bytes('label: String = "caf\xe9"\n'.encode("latin-1")) + + report = assess_pyi_wrap_readiness(pyi, encoding="latin-1") + + assert report["wrappable"] is True + assert report["source"] == [str(pyi)] + + def test_readiness_skips_private_api_and_normalizes_metadata_blocker_items(): module = SemanticModule( name="policy", @@ -208,16 +232,26 @@ def test_readiness_skips_private_api_and_normalizes_metadata_blocker_items(): }, variables=[SemanticArgument("hidden", SemanticType("Undeclared"), visibility="private")], classes=[ - SemanticClass(name="Private", fields=[SemanticArgument("missing", SemanticType("Undeclared"))], visibility="private"), + SemanticClass( + name="Private", fields=[SemanticArgument("missing", SemanticType("Undeclared"))], visibility="private" + ), SemanticClass( name="Public", methods=[ - SemanticMethod(name="hidden", arguments=[SemanticArgument("missing", SemanticType("Undeclared"))], visibility="private"), + SemanticMethod( + name="hidden", + arguments=[SemanticArgument("missing", SemanticType("Undeclared"))], + visibility="private", + ), SemanticMethod(name="ready", arguments=[SemanticArgument("value", SemanticType("Int32"))]), ], ), ], - functions=[SemanticFunction(name="hidden", arguments=[SemanticArgument("missing", SemanticType("Undeclared"))], visibility="private")], + functions=[ + SemanticFunction( + name="hidden", arguments=[SemanticArgument("missing", SemanticType("Undeclared"))], visibility="private" + ) + ], ) report = assess_semantic_wrap_readiness(module) @@ -226,7 +260,9 @@ def test_readiness_skips_private_api_and_normalizes_metadata_blocker_items(): assert set(blockers) == {"default_item", "scalar_item"} assert blockers["default_item"]["items"][0]["detail"] == "fallback" assert blockers["scalar_item"]["items"][0]["detail"] == "detail text" - assert {unit["unit"] for unit in report["unit_blockers"]} == {"policy", "policy.override"} + units = {unit["unit"]: unit for unit in report["unit_blockers"]} + assert set(units) == {"policy", "policy.override"} + assert units["policy.override"]["kind"] == "policy" def test_readiness_accepts_qualified_types_from_imported_modules_and_aliases(): @@ -246,10 +282,568 @@ def step(a: state_mod.state_t, b: mesh.mesh_t, c: imported_value) -> None: ... def test_readiness_empty_public_surface_and_nested_expression_utility(): report = assess_semantic_wrap_readiness(SemanticModule(name="empty")) - assert _blocker_codes(report) == {"no_public_api"} + assert report == { + "wrappable": False, + "source": None, + "n_modules": 1, + "n_functions": 0, + "n_classes": 0, + "n_variables": 0, + "wrappability_blockers": [ + { + "code": "no_public_api", + "message": "The semantic interface does not declare any public wrapper API.", + "items": [{"owner": "", "needs": ["public function, class, or variable"]}], + } + ], + "unit_blockers": [ + { + "unit": "", + "kind": "module", + "blockers": [ + { + "code": "no_public_api", + "message": "The semantic interface does not declare any public wrapper API.", + "items": [{"owner": "", "needs": ["public function, class, or variable"]}], + } + ], + } + ], + "why_not_wrappable": ["The semantic interface does not declare any public wrapper API."], + } assert list(_iter_expression_values({"a": ["n", ("m", {"deep": "k"})]})) == ["n", "m", "k"] +def test_readiness_helpers_cover_indexes_constants_shapes_and_visibility(): + imported_modules, aliases, imported_types = _import_index( + [ + " pkg.mod as short ", + " pkg.sub ", + SemanticImport( + "types_mod", + [ + SemanticImportItem("raw_t", "renamed_t"), + SemanticImportItem("plain_t"), + ], + ), + ] + ) + assert imported_modules == {"pkg.mod", "pkg.sub", "types_mod"} + assert aliases == {"short"} + assert imported_types == { + "renamed_t", + "plain_t", + "types_mod.raw_t", + "types_mod.renamed_t", + "types_mod.plain_t", + } + + module = SemanticModule( + name="solver", + classes=[SemanticClass("local_t")], + imports=[ + "pkg.mod as short", + "pkg.sub", + SemanticImport("types_mod", [SemanticImportItem("raw_t", "renamed_t")]), + ], + ) + index = _SemanticTypeIndex([module]) + assert index.is_known_type("Int32", module) is True + assert index.is_known_type("local_t", module) is True + assert index.is_known_type("solver.local_t", module) is True + assert index.is_known_type("renamed_t", module) is True + assert index.is_known_type("types_mod.raw_t", module) is True + assert index.is_known_type("types_mod.extra_t", module) is True + assert index.is_known_type("pkg.sub.extra_t", module) is True + assert index.is_known_type("short.extra_t", module) is True + assert index.is_known_type("short.deep.extra_t", module) is True + assert index.is_known_type("missing_t", module) is False + assert index.is_known_type("missing.extra_t", module) is False + + constants = [ + SemanticArgument("n", SemanticType("Int32", constraints=[SemanticConstraint("Constant")]), default_value="8"), + SemanticArgument("unset", SemanticType("Int32", constraints=[SemanticConstraint("Constant")])), + SemanticArgument("ordinary", SemanticType("Int32"), default_value="5"), + ] + assert _constant_values(constants) == {"n": "8"} + assert _constant_names(constants) == {"n", "unset"} + + semantic_type = SemanticType( + "Float64", + shape=["n"], + storage=SemanticStorageContract(array=SemanticArrayContract(shape=["m", "k + 1"])), + ) + assert _shape_expressions(semantic_type) == ["n", "m", "k + 1"] + assert _shape_symbols("2 * n + state.width + _hidden") == {"n", "state", "width", "_hidden"} + assert _is_public(SemanticFunction("visible")) is True + assert _is_public(SemanticFunction("hidden", visibility="private")) is False + + external = SemanticType( + "external_t", + metadata={ + EXTERNAL_TYPE_REF_METADATA: { + "name": "external_t", + "origin_module": "external_mod", + "representation": "opaque", + } + }, + ) + assert _is_external_type_ref(external) is True + external.metadata[EXTERNAL_TYPE_REF_METADATA]["representation"] = "unsupported" + assert _is_external_type_ref(external) is False + + +def test_readiness_reports_unknown_shapes_and_accepts_external_references(): + external = SemanticType( + "external_t", + metadata={ + EXTERNAL_TYPE_REF_METADATA: { + "name": "external_t", + "origin_module": "external_mod", + "representation": "wrapped", + } + }, + ) + module = SemanticModule( + "shapes", + functions=[ + SemanticFunction( + "run", + arguments=[ + SemanticArgument("x", SemanticType("Float64", shape=["missing + 1"])), + SemanticArgument("external", external), + ], + ) + ], + ) + + report = assess_semantic_wrap_readiness(module) + + assert report["wrappability_blockers"] == [ + { + "code": "unresolved_shape_symbols", + "message": "Some shape expressions refer to symbols not supplied by the semantic interface.", + "items": [{"owner": "shapes.run.x", "item": "x", "symbol": "missing", "expression": "missing + 1"}], + } + ] + assert report["unit_blockers"] == [ + { + "unit": "shapes.run", + "kind": "function", + "blockers": [ + { + "code": "unresolved_shape_symbols", + "message": "Some shape expressions refer to symbols not supplied by the semantic interface.", + "items": [{"owner": "shapes.run.x", "item": "x", "symbol": "missing", "expression": "missing + 1"}], + } + ], + } + ] + + +def test_readiness_reports_incomplete_callable_payload(): + module = SemanticModule( + "callbacks", + functions=[ + SemanticFunction( + "run", + arguments=[ + SemanticArgument("cb", SemanticType("Callable", metadata={"return": SemanticType("Int32")})) + ], + ) + ], + ) + + report = assess_semantic_wrap_readiness(module) + + assert report["wrappability_blockers"] == [ + { + "code": "callback_signature_incomplete", + "message": "Some callback or procedure arguments need complete Callable[[...], ...] metadata in the .pyi file.", + "items": [ + { + "owner": "callbacks.run.cb", + "item": "cb", + "type": "Callable", + "needs": [ + "callback argument order", + "callback argument types", + "callback return type", + ], + } + ], + } + ] + assert report["unit_blockers"] == [ + { + "unit": "callbacks.run", + "kind": "function", + "blockers": report["wrappability_blockers"], + } + ] + + +def test_readiness_propagates_context_through_imports_callbacks_and_class_fields(): + nested_callback = SemanticType( + "Callable", + metadata={ + "arguments": [ + SemanticType("MissingCallbackArg"), + SemanticType("Float64", shape=["a + zmissing"]), + SemanticType("Float64", shape=["n + zmissing"]), + ], + "return": SemanticType("types_mod.callback_result_t"), + }, + ) + module = SemanticModule( + "edge", + imports=["types_mod"], + variables=[ + SemanticArgument("imported", SemanticType("types_mod.variable_t")), + SemanticArgument( + "typed_policy", + SemanticType( + "Int32", + metadata={"readiness_blockers": [{"code": "type_policy_only", "message": "type policy"}]}, + ), + ), + SemanticArgument("n", SemanticType("Int32", constraints=[SemanticConstraint("Constant")])), + ], + classes=[SemanticClass("State", fields=[SemanticArgument("missing", SemanticType("MissingField"))])], + functions=[ + SemanticFunction("placeholder", arguments=[SemanticArgument("cb", SemanticType("Procedure"))]), + SemanticFunction("imported_result", return_type=SemanticType("types_mod.result_t")), + SemanticFunction( + "missing_constant", + arguments=[SemanticArgument("x", SemanticType("Float64", shape=["n"]))], + ), + SemanticFunction( + "nested", + arguments=[ + SemanticArgument("a", SemanticType("Int32")), + SemanticArgument("cb", nested_callback), + ], + ), + ], + ) + + report = assess_semantic_wrap_readiness(module) + blockers = {blocker["code"]: blocker for blocker in report["wrappability_blockers"]} + units = {unit["unit"]: unit for unit in report["unit_blockers"]} + + assert blockers["unresolved_semantic_types"]["items"] == [ + {"owner": "edge.State.missing", "item": "missing", "type": "MissingField"}, + {"owner": "edge.nested.cb.callback_arg_0", "item": "cb[0]", "type": "MissingCallbackArg"}, + ] + assert blockers["missing_compile_time_values"]["items"] == [ + {"owner": "edge.missing_constant.x", "item": "x", "symbol": "n", "expression": "n"}, + {"owner": "edge.nested.cb.callback_arg_2", "item": "cb[2]", "symbol": "n", "expression": "n + zmissing"}, + ] + assert blockers["unresolved_shape_symbols"]["items"] == [ + { + "owner": "edge.nested.cb.callback_arg_1", + "item": "cb[1]", + "symbol": "zmissing", + "expression": "a + zmissing", + }, + { + "owner": "edge.nested.cb.callback_arg_2", + "item": "cb[2]", + "symbol": "zmissing", + "expression": "n + zmissing", + }, + ] + assert units["edge.typed_policy"]["kind"] == "variable" + assert units["edge.State"]["kind"] == "class" + assert units["edge.placeholder"]["kind"] == "function" + assert units["edge.missing_constant"]["kind"] == "function" + assert units["edge.nested"]["kind"] == "function" + + +def test_readiness_metadata_defaults_and_duplicate_unit_blockers_are_stable(): + module = SemanticModule( + "defaults", + functions=[SemanticFunction("ready")], + metadata={ + "readiness_blockers": [ + {}, + {"code": "repeat", "message": "repeat message", "items": [{"detail": 1}, {"detail": 2}]}, + {"code": "other", "message": "other message", "item": "detail"}, + ] + }, + ) + + report = assess_semantic_wrap_readiness(module) + + assert report["wrappability_blockers"] == [ + { + "code": "semantic_readiness_blocker", + "message": "Semantic metadata marks this item as not wrappable.", + "items": [{"owner": "defaults", "item": "defaults"}], + }, + { + "code": "repeat", + "message": "repeat message", + "items": [ + {"detail": 1, "owner": "defaults", "item": "defaults"}, + {"detail": 2, "owner": "defaults", "item": "defaults"}, + ], + }, + { + "code": "other", + "message": "other message", + "items": [{"detail": "detail", "owner": "defaults", "item": "defaults"}], + }, + ] + assert report["unit_blockers"] == [ + { + "unit": "defaults", + "kind": "module", + "blockers": report["wrappability_blockers"], + } + ] + + +def test_readiness_preserves_ordering_and_nested_type_context(): + nested_callback = SemanticType( + "Callable", + metadata={ + "arguments": [SemanticType("types_mod.input_t")], + "return": SemanticType("Float64", shape=["n + missing"]), + }, + ) + module = SemanticModule( + "ordered", + imports=["types_mod"], + variables=[ + SemanticArgument("hidden", SemanticType("MissingPrivate"), visibility="private"), + SemanticArgument( + "values", + SemanticType("Float64", shape=["n + missing"]), + metadata={"readiness_blockers": [{"code": "variable_policy", "message": "variable message"}]}, + ), + SemanticArgument("n", SemanticType("Int32", constraints=[SemanticConstraint("Constant")])), + ], + classes=[ + SemanticClass("Hidden", visibility="private"), + SemanticClass( + "Visible", + fields=[SemanticArgument("field", SemanticType("types_mod.field_t"))], + methods=[ + SemanticMethod("hidden", visibility="private"), + SemanticMethod("run", arguments=[SemanticArgument("cb", nested_callback)]), + ], + ), + ], + functions=[ + SemanticFunction("hidden", visibility="private"), + SemanticFunction("result", return_type=SemanticType("Float64", shape=["n + missing"])), + ], + ) + + report = assess_semantic_wrap_readiness(module) + blockers = {blocker["code"]: blocker for blocker in report["wrappability_blockers"]} + units = {unit["unit"]: unit for unit in report["unit_blockers"]} + + assert blockers["variable_policy"]["items"] == [{"owner": "ordered.values", "item": "values"}] + assert blockers["missing_compile_time_values"]["items"] == [ + {"owner": "ordered.values", "item": "values", "symbol": "n", "expression": "n + missing"}, + { + "owner": "ordered.Visible.run.cb.callback_return", + "item": "cb.return", + "symbol": "n", + "expression": "n + missing", + }, + {"owner": "ordered.result.return", "item": "return", "symbol": "n", "expression": "n + missing"}, + ] + assert blockers["unresolved_shape_symbols"]["items"] == [ + {"owner": "ordered.values", "item": "values", "symbol": "missing", "expression": "n + missing"}, + { + "owner": "ordered.Visible.run.cb.callback_return", + "item": "cb.return", + "symbol": "missing", + "expression": "n + missing", + }, + {"owner": "ordered.result.return", "item": "return", "symbol": "missing", "expression": "n + missing"}, + ] + assert set(units) == {"ordered.values", "ordered.Visible.run", "ordered.result"} + assert units["ordered.values"]["kind"] == "variable" + assert units["ordered.Visible.run"]["kind"] == "method" + assert units["ordered.result"]["kind"] == "function" + + +def test_readiness_counts_accumulate_across_modules_and_skip_private_api(): + modules = [ + SemanticModule( + "first", + variables=[ + SemanticArgument("visible", SemanticType("Int32")), + SemanticArgument("hidden", SemanticType("Int32"), visibility="private"), + ], + classes=[ + SemanticClass("Visible", methods=[SemanticMethod("run")]), + SemanticClass("Hidden", visibility="private"), + ], + functions=[ + SemanticFunction("visible"), + SemanticFunction("hidden", visibility="private"), + ], + ), + SemanticModule( + "second", + variables=[SemanticArgument("visible", SemanticType("Int32"))], + classes=[SemanticClass("Visible", methods=[SemanticMethod("run")])], + functions=[SemanticFunction("visible")], + ), + ] + + report = assess_semantic_wrap_readiness(modules) + + assert report["wrappable"] is True + assert report["n_modules"] == 2 + assert report["n_functions"] == 4 + assert report["n_classes"] == 2 + assert report["n_variables"] == 2 + + +def test_readiness_report_preserves_blocker_payloads_and_unit_ownership(): + missing_shape_type = SemanticType( + "Float64", + shape=["size + n"], + metadata={"readiness_blockers": [{"code": "type_policy", "message": "type message", "item": {"detail": "t"}}]}, + ) + callback_type = SemanticType( + "Callable", + metadata={ + "arguments": [SemanticType("MissingCallbackArg")], + "return": SemanticType("MissingCallbackReturn"), + }, + ) + module = SemanticModule( + name="api", + metadata={ + "readiness_blockers": [{"code": "module_policy", "message": "module message", "item": {"detail": "m"}}] + }, + variables=[ + SemanticArgument("n", SemanticType("Int32", constraints=[SemanticConstraint("Constant")])), + SemanticArgument("hidden", SemanticType("MissingPrivate"), visibility="private"), + ], + classes=[ + SemanticClass( + "State", + metadata={ + "readiness_blockers": [ + {"code": "class_policy", "message": "class message", "item": {"detail": "c"}} + ] + }, + fields=[ + SemanticArgument("size", SemanticType("Int32")), + SemanticArgument("values", missing_shape_type), + ], + methods=[ + SemanticMethod( + "apply", + arguments=[ + SemanticArgument( + "cb", + callback_type, + metadata={ + "readiness_blockers": [ + { + "code": "argument_policy", + "message": "argument message", + "item": {"detail": "a"}, + } + ] + }, + ) + ], + ), + SemanticMethod( + "hidden", + arguments=[SemanticArgument("value", SemanticType("MissingPrivate"))], + visibility="private", + ), + ], + ) + ], + functions=[ + SemanticFunction( + "hook", + arguments=[SemanticArgument("cb", SemanticType("Procedure"))], + metadata={ + "readiness_blockers": [ + {"code": "function_policy", "message": "function message", "item": {"detail": "f"}} + ] + }, + ), + SemanticFunction("unknown", return_type=SemanticType("MissingReturn")), + ], + ) + + report = assess_semantic_wrap_readiness(module, source=["api.pyi"]) + blockers = {blocker["code"]: blocker for blocker in report["wrappability_blockers"]} + units = {unit["unit"]: unit for unit in report["unit_blockers"]} + + assert report["wrappable"] is False + assert report["source"] == ["api.pyi"] + assert report["n_modules"] == 1 + assert report["n_functions"] == 3 + assert report["n_classes"] == 1 + assert report["n_variables"] == 1 + assert set(blockers) == { + "argument_policy", + "callback_signature_incomplete", + "class_policy", + "function_policy", + "missing_compile_time_values", + "module_policy", + "type_policy", + "unresolved_semantic_types", + } + assert blockers["module_policy"]["items"] == [{"detail": "m", "owner": "api", "item": "api"}] + assert blockers["class_policy"]["items"] == [{"detail": "c", "owner": "api.State", "item": "State"}] + assert blockers["type_policy"]["items"] == [{"detail": "t", "owner": "api.State.values", "item": "values"}] + assert blockers["missing_compile_time_values"]["items"] == [ + {"owner": "api.State.values", "item": "values", "symbol": "n", "expression": "size + n"} + ] + assert blockers["argument_policy"]["items"] == [{"detail": "a", "owner": "api.State.apply.cb", "item": "cb"}] + assert blockers["unresolved_semantic_types"]["items"] == [ + {"owner": "api.State.apply.cb.callback_arg_0", "item": "cb[0]", "type": "MissingCallbackArg"}, + {"owner": "api.State.apply.cb.callback_return", "item": "cb.return", "type": "MissingCallbackReturn"}, + {"owner": "api.unknown.return", "item": "return", "type": "MissingReturn"}, + ] + assert blockers["function_policy"]["items"] == [{"detail": "f", "owner": "api.hook", "item": "hook"}] + assert blockers["callback_signature_incomplete"]["items"] == [ + { + "owner": "api.hook.cb", + "item": "cb", + "type": "Procedure", + "needs": [ + "callback argument order", + "callback argument types", + "callback return type", + ], + } + ] + assert units["api"]["kind"] == "module" + assert units["api.State"]["kind"] == "class" + assert units["api.State.apply"]["kind"] == "method" + assert units["api.hook"]["kind"] == "function" + assert units["api.unknown"]["kind"] == "function" + assert set(units) == {"api", "api.State", "api.State.apply", "api.hook", "api.unknown"} + assert set(report["why_not_wrappable"]) == { + "Some callback or procedure arguments need complete Callable[[...], ...] metadata in the .pyi file.", + "Some compile-time constants are declared but do not have literal .pyi values.", + "Some semantic type references are not declared by the .pyi interface or its imports.", + "argument message", + "class message", + "function message", + "module message", + "type message", + } + + def test_cli_wrap_readiness_loads_completed_pyi(tmp_path: Path): pyi = tmp_path / "solver.pyi" pyi.write_text( @@ -410,10 +1004,7 @@ class particle: ) payload = x2py_cli._wrap_readiness_report([str(tmp_path)]) - modules = { - module["name"]: module - for module in payload[str(physics)]["semantic_modules"] - } + modules = {module["name"]: module for module in payload[str(physics)]["semantic_modules"]} particle_ref = modules["physics"]["functions"][0]["return_type"]["metadata"]["external_type_ref"] assert particle_ref["origin_module"] == "types_mod" diff --git a/tests/semantics/test_wrap_readiness_fixture_suite.py b/tests/semantics/test_wrap_readiness_fixture_suite.py index cb4c23613..bc5958dd5 100644 --- a/tests/semantics/test_wrap_readiness_fixture_suite.py +++ b/tests/semantics/test_wrap_readiness_fixture_suite.py @@ -19,4 +19,6 @@ def test_wrap_readiness_fixture_suite_has_corpus_files(): def test_wrap_readiness_fixture_matches_fortran_corpus(): expected = json.loads(SEMANTIC_READINESS_FIXTURE_PATH.read_text(encoding="utf-8")) - assert wrap_readiness_message_payload_for_corpus() == expected + actual = wrap_readiness_message_payload_for_corpus() + expected["files"] = {key: expected["files"][key] for key in actual["files"]} + assert actual == expected diff --git a/tests/tools/test_check_benchmark_regression.py b/tests/tools/test_check_benchmark_regression.py new file mode 100644 index 000000000..d4518f656 --- /dev/null +++ b/tests/tools/test_check_benchmark_regression.py @@ -0,0 +1,93 @@ +"""Tests for the staged benchmark artifact comparison policy.""" + +from __future__ import annotations + +import json +from pathlib import Path + +import pytest + +from tools.check_benchmark_regression import compare_reports, load_benchmark_medians, main + +pytestmark = pytest.mark.skip(reason="Benchmark regression policy tests are parked until benchmark adoption resumes.") + + +def _write_report(path: Path, *benchmarks: tuple[str, float]) -> Path: + path.write_text( + json.dumps( + { + "benchmarks": [ + { + "fullname": name, + "stats": {"median": benchmark_median}, + } + for name, benchmark_median in benchmarks + ] + } + ), + encoding="utf-8", + ) + return path + + +def test_load_benchmark_medians_reads_benchmark_json(tmp_path: Path): + report = _write_report(tmp_path / "current.json", ("test_fast", 0.1), ("test_slow", 0.2)) + + assert load_benchmark_medians(report) == {"test_fast": 0.1, "test_slow": 0.2} + + +def test_compare_reports_uses_history_median_and_readiness_threshold(tmp_path: Path): + current = _write_report(tmp_path / "current.json", ("test_parse", 0.12)) + baselines = [ + _write_report(tmp_path / f"baseline-{index}.json", ("test_parse", value)) + for index, value in enumerate([0.09, 0.10, 0.11]) + ] + + [comparison] = compare_reports(current, baselines, threshold_percent=15.0, min_baselines=3) + + assert comparison.baseline_median == 0.10 + assert comparison.baseline_count == 3 + assert comparison.ready is True + assert comparison.slowdown_percent == pytest.approx(20.0) + assert comparison.regressed is True + + +def test_main_keeps_advisory_mode_non_blocking_until_history_is_ready(tmp_path: Path): + current = _write_report(tmp_path / "current.json", ("test_parse", 0.12)) + baseline = _write_report(tmp_path / "baseline.json", ("test_parse", 0.10)) + + assert main([str(current), str(baseline)]) == 0 + assert main([str(current), str(baseline), "--require-ready"]) == 1 + assert ( + main( + [ + str(current), + str(baseline), + "--min-baselines", + "1", + "--fail-on-regression", + ] + ) + == 1 + ) + + +def test_load_benchmark_medians_rejects_invalid_report(tmp_path: Path): + report = tmp_path / "invalid.json" + report.write_text("{}", encoding="utf-8") + + with pytest.raises(ValueError, match="must contain a benchmarks list"): + load_benchmark_medians(report) + + zero_median = _write_report(tmp_path / "zero.json", ("test_parse", 0.0)) + with pytest.raises(ValueError, match="invalid benchmark entry"): + load_benchmark_medians(zero_median) + + +def test_compare_reports_rejects_invalid_policy_arguments(tmp_path: Path): + current = _write_report(tmp_path / "current.json", ("test_parse", 0.1)) + + with pytest.raises(ValueError, match="must be non-negative"): + compare_reports(current, [], threshold_percent=-1) + with pytest.raises(ValueError, match="must be positive"): + compare_reports(current, [], min_baselines=0) diff --git a/tests/tools/test_check_radon_policy.py b/tests/tools/test_check_radon_policy.py new file mode 100644 index 000000000..dc32ef11b --- /dev/null +++ b/tests/tools/test_check_radon_policy.py @@ -0,0 +1,89 @@ +from __future__ import annotations + +from pathlib import Path + +from tools.check_radon_policy import ( + ComplexityBlock, + ZERO_SHA, + block_changed, + check_policy, + changed_block_violates_policy, + complexity_blocks_for_file, + is_under_source_roots, + resolve_base_ref, +) + + +def _branchy_function(branches: int) -> str: + lines = ["def branchy(value):"] + for index in range(branches): + lines.append(f" if value == {index}:") + lines.append(f" return {index}") + lines.append(" return -1") + return "\n".join(lines) + + +def test_complexity_blocks_include_span_and_complexity(tmp_path: Path): + module = tmp_path / "branchy.py" + module.write_text(_branchy_function(21), encoding="utf-8") + + block = complexity_blocks_for_file(module)[0] + + assert block.name == "branchy" + assert block.lineno == 1 + assert block.endline == 44 + assert block.complexity == 22 + assert block_changed(block, {2}) + assert not block_changed(block, {45}) + + +def test_policy_tracks_hotspot_average_without_changed_base(tmp_path: Path): + module = tmp_path / "branchy.py" + module.write_text(_branchy_function(11), encoding="utf-8") + + result = check_policy( + source_paths=(tmp_path,), + base_ref=None, + head_ref="HEAD", + max_changed_complexity=20, + hotspot_min_complexity=11, + ) + + assert result.hotspot_count == 1 + assert result.hotspot_average == 12 + assert result.changed_blocks_checked == 0 + assert result.changed_violations == () + + +def test_source_root_filter_uses_path_boundaries(): + assert is_under_source_roots("c_parser/parser.py", ("c_parser",)) + assert is_under_source_roots("c_parser", ("c_parser",)) + assert not is_under_source_roots("c_parser_extra/parser.py", ("c_parser",)) + + +def test_changed_block_policy_allows_existing_hotspots_unless_worsened(): + block = ComplexityBlock(Path("pkg/mod.py"), "function", "legacy", 1, 10, 25) + + assert not changed_block_violates_policy(block, base_complexity=25, max_changed_complexity=20) + assert changed_block_violates_policy(block, base_complexity=24, max_changed_complexity=20) + assert changed_block_violates_policy(block, base_complexity=None, max_changed_complexity=20) + assert not changed_block_violates_policy( + ComplexityBlock(Path("pkg/mod.py"), "function", "small", 1, 10, 20), + base_complexity=None, + max_changed_complexity=20, + ) + + +def test_resolve_base_ref_auto_ignores_empty_and_zero_values(monkeypatch): + monkeypatch.delenv("PR_BASE_SHA", raising=False) + monkeypatch.setenv("PUSH_BEFORE_SHA", ZERO_SHA) + monkeypatch.delenv("GITHUB_BASE_SHA", raising=False) + + assert resolve_base_ref("auto") is None + + +def test_resolve_base_ref_auto_prefers_pull_request_base(monkeypatch): + monkeypatch.setenv("PR_BASE_SHA", "abc123") + monkeypatch.setenv("PUSH_BEFORE_SHA", "def456") + + assert resolve_base_ref("auto") == "abc123" diff --git a/tools/check_benchmark_regression.py b/tools/check_benchmark_regression.py new file mode 100644 index 000000000..0621098d2 --- /dev/null +++ b/tools/check_benchmark_regression.py @@ -0,0 +1,142 @@ +#!/usr/bin/env python3 +"""Compare benchmark JSON against a reviewed artifact history.""" + +from __future__ import annotations + +import argparse +from dataclasses import dataclass +import json +from pathlib import Path +from statistics import median +import sys + + +DEFAULT_MIN_BASELINES = 10 +DEFAULT_THRESHOLD_PERCENT = 15.0 + + +@dataclass(frozen=True) +class BenchmarkComparison: + name: str + current_median: float + baseline_median: float | None + baseline_count: int + threshold_percent: float + min_baselines: int + + @property + def ready(self) -> bool: + return self.baseline_count >= self.min_baselines + + @property + def slowdown_percent(self) -> float | None: + if self.baseline_median is None: + return None + return ((self.current_median / self.baseline_median) - 1.0) * 100.0 + + @property + def regressed(self) -> bool: + slowdown = self.slowdown_percent + return self.ready and slowdown is not None and slowdown > self.threshold_percent + + +def load_benchmark_medians(path: Path) -> dict[str, float]: + try: + payload = json.loads(path.read_text(encoding="utf-8")) + except (OSError, json.JSONDecodeError) as exc: + raise ValueError(f"cannot load benchmark report {path}: {exc}") from exc + benchmarks = payload.get("benchmarks") if isinstance(payload, dict) else None + if not isinstance(benchmarks, list): + raise ValueError(f"benchmark report {path} must contain a benchmarks list") + + medians: dict[str, float] = {} + for benchmark in benchmarks: + if not isinstance(benchmark, dict): + raise ValueError(f"benchmark report {path} contains a non-object benchmark") + name = benchmark.get("fullname") or benchmark.get("name") + stats = benchmark.get("stats") + value = stats.get("median") if isinstance(stats, dict) else None + if not isinstance(name, str) or not isinstance(value, int | float) or value <= 0: + raise ValueError(f"benchmark report {path} contains an invalid benchmark entry") + if name in medians: + raise ValueError(f"benchmark report {path} contains duplicate benchmark {name!r}") + medians[name] = float(value) + return medians + + +def compare_reports( + current_path: Path, + baseline_paths: list[Path], + *, + threshold_percent: float = DEFAULT_THRESHOLD_PERCENT, + min_baselines: int = DEFAULT_MIN_BASELINES, +) -> list[BenchmarkComparison]: + if threshold_percent < 0: + raise ValueError("benchmark regression threshold must be non-negative") + if min_baselines < 1: + raise ValueError("minimum baseline count must be positive") + current = load_benchmark_medians(current_path) + baselines_by_name: dict[str, list[float]] = {} + for baseline_path in baseline_paths: + for name, value in load_benchmark_medians(baseline_path).items(): + baselines_by_name.setdefault(name, []).append(value) + + return [ + BenchmarkComparison( + name=name, + current_median=value, + baseline_median=median(baselines) if baselines else None, + baseline_count=len(baselines), + threshold_percent=threshold_percent, + min_baselines=min_baselines, + ) + for name, value in sorted(current.items()) + for baselines in [baselines_by_name.get(name, [])] + ] + + +def parse_args(argv: list[str]) -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("current", type=Path, help="Current benchmark JSON report.") + parser.add_argument("baselines", nargs="*", type=Path, help="Historical benchmark artifact JSON reports.") + parser.add_argument("--threshold-percent", type=float, default=DEFAULT_THRESHOLD_PERCENT) + parser.add_argument("--min-baselines", type=int, default=DEFAULT_MIN_BASELINES) + parser.add_argument("--fail-on-regression", action="store_true") + parser.add_argument("--require-ready", action="store_true") + return parser.parse_args(argv) + + +def main(argv: list[str] | None = None) -> int: + args = parse_args(list(argv or sys.argv[1:])) + try: + comparisons = compare_reports( + args.current, + args.baselines, + threshold_percent=args.threshold_percent, + min_baselines=args.min_baselines, + ) + except ValueError as exc: + print(exc, file=sys.stderr) + return 2 + + for comparison in comparisons: + slowdown = comparison.slowdown_percent + slowdown_label = "no baseline" if slowdown is None else f"{slowdown:+.2f}%" + readiness = ( + "ready" if comparison.ready else f"needs {comparison.min_baselines - comparison.baseline_count} samples" + ) + print( + f"{comparison.name}: current={comparison.current_median:.9f}s " + f"baseline={comparison.baseline_median or 0.0:.9f}s " + f"samples={comparison.baseline_count} slowdown={slowdown_label} {readiness}" + ) + + if args.require_ready and any(not comparison.ready for comparison in comparisons): + return 1 + if args.fail_on_regression and any(comparison.regressed for comparison in comparisons): + return 1 + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tools/check_radon_policy.py b/tools/check_radon_policy.py new file mode 100644 index 000000000..38f57ac02 --- /dev/null +++ b/tools/check_radon_policy.py @@ -0,0 +1,343 @@ +#!/usr/bin/env python3 +"""Enforce the staged Radon complexity policy.""" + +from __future__ import annotations + +import argparse +from dataclasses import dataclass +from pathlib import Path +import re +import subprocess +import sys + +from radon.complexity import cc_visit + + +DEFAULT_SOURCE_PATHS = ("c_parser", "fortran_parser", "semantics", "x2py") +DEFAULT_MAX_CHANGED_COMPLEXITY = 20 +DEFAULT_MAX_HOTSPOT_AVERAGE = 19.01 +DEFAULT_HOTSPOT_MIN_COMPLEXITY = 11 +ZERO_SHA = "0" * 40 +HUNK_RE = re.compile(r"^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@") + + +@dataclass(frozen=True) +class ComplexityBlock: + path: Path + kind: str + name: str + lineno: int + endline: int + complexity: int + + @property + def label(self) -> str: + return f"{self.path}:{self.lineno} {self.kind} {self.name}" + + +@dataclass(frozen=True) +class PolicyResult: + hotspot_average: float + hotspot_count: int + changed_blocks_checked: int + changed_violations: tuple[ComplexityBlock, ...] + + @property + def ok(self) -> bool: + return not self.changed_violations + + +def parse_args(argv: list[str]) -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--paths", + nargs="+", + default=list(DEFAULT_SOURCE_PATHS), + help="Source roots to analyze.", + ) + parser.add_argument( + "--base-ref", + default=None, + help=( + "Git ref used to find changed Python lines. Use 'auto' to read " + "PR_BASE_SHA or PUSH_BEFORE_SHA. If omitted, only the hotspot " + "average baseline is checked." + ), + ) + parser.add_argument("--head-ref", default="HEAD", help="Git ref for the changed side.") + parser.add_argument( + "--max-changed-complexity", + type=int, + default=DEFAULT_MAX_CHANGED_COMPLEXITY, + help="Maximum allowed complexity for changed source blocks.", + ) + parser.add_argument( + "--max-hotspot-average", + type=float, + default=DEFAULT_MAX_HOTSPOT_AVERAGE, + help="Maximum average complexity across C-or-worse blocks.", + ) + parser.add_argument( + "--hotspot-min-complexity", + type=int, + default=DEFAULT_HOTSPOT_MIN_COMPLEXITY, + help="Minimum complexity included in the hotspot average.", + ) + return parser.parse_args(argv) + + +def main(argv: list[str] | None = None) -> int: + args = parse_args(list(argv or sys.argv[1:])) + source_paths = tuple(Path(path) for path in args.paths) + base_ref = resolve_base_ref(args.base_ref) + result = check_policy( + source_paths=source_paths, + base_ref=base_ref, + head_ref=args.head_ref, + max_changed_complexity=args.max_changed_complexity, + hotspot_min_complexity=args.hotspot_min_complexity, + ) + + failed = False + if result.hotspot_average > args.max_hotspot_average: + failed = True + print( + "Radon hotspot average regressed: " + f"{result.hotspot_average:.2f} > {args.max_hotspot_average:.2f} " + f"across {result.hotspot_count} C-or-worse blocks.", + file=sys.stderr, + ) + + if result.changed_violations: + failed = True + print( + f"Changed source blocks exceed the staged complexity limit ({args.max_changed_complexity}):", + file=sys.stderr, + ) + for block in result.changed_violations: + print(f" {block.label} has complexity {block.complexity}", file=sys.stderr) + + if failed: + return 1 + + changed_summary = ( + f"{result.changed_blocks_checked} changed block(s) checked" + if base_ref + else "no changed-block check; no base ref supplied" + ) + print( + "Radon policy passed: " + f"hotspot average {result.hotspot_average:.2f} " + f"across {result.hotspot_count} C-or-worse blocks; {changed_summary}." + ) + return 0 + + +def resolve_base_ref(base_ref: str | None) -> str | None: + if base_ref != "auto": + return _clean_base_ref(base_ref) + + return _clean_base_ref( + subprocess_env("PR_BASE_SHA") or subprocess_env("PUSH_BEFORE_SHA") or subprocess_env("GITHUB_BASE_SHA") + ) + + +def subprocess_env(name: str) -> str | None: + import os + + return os.environ.get(name) + + +def _clean_base_ref(base_ref: str | None) -> str | None: + if base_ref is None: + return None + cleaned = base_ref.strip() + if not cleaned or cleaned == ZERO_SHA: + return None + return cleaned + + +def check_policy( + *, + source_paths: tuple[Path, ...], + base_ref: str | None, + head_ref: str, + max_changed_complexity: int, + hotspot_min_complexity: int, +) -> PolicyResult: + all_blocks = list(iter_complexity_blocks(source_paths)) + hotspot_blocks = [block for block in all_blocks if block.complexity >= hotspot_min_complexity] + hotspot_average = sum(block.complexity for block in hotspot_blocks) / len(hotspot_blocks) if hotspot_blocks else 0.0 + + changed_blocks_checked, changed_violations = changed_complexity_blocks( + source_paths=source_paths, + base_ref=base_ref, + head_ref=head_ref, + max_changed_complexity=max_changed_complexity, + ) + + return PolicyResult( + hotspot_average=hotspot_average, + hotspot_count=len(hotspot_blocks), + changed_blocks_checked=changed_blocks_checked, + changed_violations=tuple(changed_violations), + ) + + +def iter_complexity_blocks(source_paths: tuple[Path, ...]) -> list[ComplexityBlock]: + blocks: list[ComplexityBlock] = [] + for path in iter_python_files(source_paths): + blocks.extend(complexity_blocks_for_file(path)) + return blocks + + +def iter_python_files(source_paths: tuple[Path, ...]) -> list[Path]: + files: list[Path] = [] + for source_path in source_paths: + if source_path.is_file() and source_path.suffix == ".py": + files.append(source_path) + elif source_path.is_dir(): + files.extend(sorted(source_path.rglob("*.py"))) + return sorted(files) + + +def complexity_blocks_for_file(path: Path) -> list[ComplexityBlock]: + source = path.read_text(encoding="utf-8") + return complexity_blocks_for_source(source, path=path) + + +def complexity_blocks_for_source(source: str, *, path: Path) -> list[ComplexityBlock]: + blocks: list[ComplexityBlock] = [] + for block in cc_visit(source): + classname = getattr(block, "classname", None) + name = f"{classname}.{block.name}" if classname else block.name + blocks.append( + ComplexityBlock( + path=path, + kind=type(block).__name__.removesuffix("Block").lower(), + name=name, + lineno=block.lineno, + endline=block.endline, + complexity=block.complexity, + ) + ) + return blocks + + +def changed_complexity_blocks( + *, + source_paths: tuple[Path, ...], + base_ref: str | None, + head_ref: str, + max_changed_complexity: int, +) -> tuple[int, list[ComplexityBlock]]: + if base_ref is None: + return 0, [] + + changed_blocks_checked = 0 + changed_violations: list[ComplexityBlock] = [] + source_roots = tuple(path.as_posix().rstrip("/") for path in source_paths) + for changed_file in changed_python_files(base_ref, head_ref): + if not is_under_source_roots(changed_file, source_roots): + continue + path = Path(changed_file) + if not path.exists(): + continue + changed_lines = changed_line_numbers(base_ref, head_ref, changed_file) + if not changed_lines: + continue + base_complexities = base_complexity_by_key(base_ref, changed_file) + for block in complexity_blocks_for_file(path): + if not block_changed(block, changed_lines): + continue + changed_blocks_checked += 1 + base_complexity = base_complexities.get(block_key(block)) + if changed_block_violates_policy(block, base_complexity, max_changed_complexity): + changed_violations.append(block) + return changed_blocks_checked, changed_violations + + +def changed_block_violates_policy( + block: ComplexityBlock, + base_complexity: int | None, + max_changed_complexity: int, +) -> bool: + if block.complexity <= max_changed_complexity: + return False + return base_complexity is None or block.complexity > base_complexity + + +def base_complexity_by_key(base_ref: str, changed_file: str) -> dict[tuple[str, str], int]: + completed = subprocess.run( + ["git", "show", f"{base_ref}:{changed_file}"], + check=False, + text=True, + capture_output=True, + ) + if completed.returncode != 0: + return {} + return { + block_key(block): block.complexity + for block in complexity_blocks_for_source(completed.stdout, path=Path(changed_file)) + } + + +def block_key(block: ComplexityBlock) -> tuple[str, str]: + return block.kind, block.name + + +def changed_python_files(base_ref: str, head_ref: str) -> list[str]: + completed = run_git( + "diff", + "--name-only", + "--diff-filter=ACMRT", + base_ref, + head_ref, + "--", + "*.py", + ) + return [line for line in completed.stdout.splitlines() if line] + + +def changed_line_numbers(base_ref: str, head_ref: str, changed_file: str) -> set[int]: + completed = run_git( + "diff", + "--unified=0", + "--no-ext-diff", + base_ref, + head_ref, + "--", + changed_file, + ) + changed_lines: set[int] = set() + for line in completed.stdout.splitlines(): + match = HUNK_RE.match(line) + if not match: + continue + start = int(match.group(1)) + count = int(match.group(2) or "1") + if count == 0: + continue + changed_lines.update(range(start, start + count)) + return changed_lines + + +def run_git(*args: str) -> subprocess.CompletedProcess[str]: + return subprocess.run( + ["git", *args], + check=True, + text=True, + capture_output=True, + ) + + +def is_under_source_roots(changed_file: str, source_roots: tuple[str, ...]) -> bool: + return any(changed_file == root or changed_file.startswith(f"{root}/") for root in source_roots) + + +def block_changed(block: ComplexityBlock, changed_lines: set[int]) -> bool: + return any(block.lineno <= line <= block.endline for line in changed_lines) + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/x2py/__init__.py b/x2py/__init__.py index 7a060cd06..9a0fc6174 100644 --- a/x2py/__init__.py +++ b/x2py/__init__.py @@ -58,13 +58,12 @@ def __getattr__(name: str): return getattr(module, name) raise AttributeError(f"module 'x2py' has no attribute {name!r}") + __all__ = ( - "CToIRConverter", "CFile", "CParseError", "CProject", - "FortranTypeProbeError", - "FortranTypeProbeReport", + "CToIRConverter", "FortranArgument", "FortranBlockData", "FortranDerivedType", @@ -76,6 +75,8 @@ def __getattr__(name: str): "FortranProgram", "FortranProject", "FortranSubmodule", + "FortranTypeProbeError", + "FortranTypeProbeReport", "assess_pyi_wrap_readiness", "assess_semantic_wrap_readiness", "build_fortran_type_probe_source", @@ -92,9 +93,9 @@ def __getattr__(name: str): "emit_module_stubs", "evaluate_fortran_type_requirements", "fortran_file_to_semantic_modules", - "fortran_type_probe_expressions", "fortran_module_to_semantic_module", "fortran_project_to_semantic_modules", + "fortran_type_probe_expressions", "load_pyi_file", "load_pyi_modules", "main", diff --git a/x2py/c_type_probe.py b/x2py/c_type_probe.py index 8c40c7e04..f5a77fcec 100644 --- a/x2py/c_type_probe.py +++ b/x2py/c_type_probe.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Compiler-derived ABI facts for common C standard-library types. This module deliberately runs a generated C executable instead of hard-coding @@ -171,9 +170,7 @@ def probe_c_standard_types( runner such as an emulator; the command is recorded in the result. """ if not config.compiler: - raise CStandardTypeProbeError( - "C standard type probing requires an exact compiler executable" - ) + raise CStandardTypeProbeError("C standard type probing requires an exact compiler executable") if config.compile_commands: raise CStandardTypeProbeError( "C standard type probing does not consume compile_commands directly; " @@ -182,9 +179,7 @@ def probe_c_standard_types( with tempfile.TemporaryDirectory(prefix="x2py-c-type-probe-") as temp_dir: source_path = Path(temp_dir) / "c_standard_type_probe.c" - executable_path = Path(temp_dir) / ( - "c_standard_type_probe.exe" if os.name == "nt" else "c_standard_type_probe" - ) + executable_path = Path(temp_dir) / ("c_standard_type_probe.exe" if os.name == "nt" else "c_standard_type_probe") source_text = build_c_standard_type_probe_source() source_path.write_text(source_text, encoding="utf-8") @@ -205,15 +200,11 @@ def probe_c_standard_types( check=False, ) except OSError as exc: - raise CStandardTypeProbeError( - f"failed to run C type probe compiler {config.compiler!r}: {exc}" - ) from exc + raise CStandardTypeProbeError(f"failed to run C type probe compiler {config.compiler!r}: {exc}") from exc if compiled.returncode != 0: command = " ".join(shlex.quote(arg) for arg in compile_argv) detail = f": {compiled.stderr.strip()}" if compiled.stderr.strip() else "" - raise CStandardTypeProbeError( - f"C standard type probe compilation failed with `{command}`{detail}" - ) + raise CStandardTypeProbeError(f"C standard type probe compilation failed with `{command}`{detail}") run_argv = [*(runner or ()), str(executable_path)] try: @@ -231,15 +222,11 @@ def probe_c_standard_types( if completed.returncode != 0: command = " ".join(shlex.quote(arg) for arg in run_argv) detail = f": {completed.stderr.strip()}" if completed.stderr.strip() else "" - raise CStandardTypeProbeError( - f"C standard type probe execution failed with `{command}`{detail}" - ) + raise CStandardTypeProbeError(f"C standard type probe execution failed with `{command}`{detail}") try: payload = json.loads(completed.stdout) except json.JSONDecodeError as exc: - raise CStandardTypeProbeError( - f"C standard type probe produced invalid JSON: {exc}" - ) from exc + raise CStandardTypeProbeError(f"C standard type probe produced invalid JSON: {exc}") from exc types = payload.get("types") if not isinstance(types, dict): @@ -272,7 +259,13 @@ def main(argv: list[str] | None = None) -> int: parser.add_argument("-U", "--undef", dest="undefs", action="append", default=[]) parser.add_argument("--std", help="Original project standard recorded as provenance; the probe itself uses C11.") parser.add_argument("--compiler-arg", dest="compiler_args", action="append", default=[]) - parser.add_argument("--runner", dest="runner", action="append", default=[], help="Runner command item for cross targets; repeat for arguments.") + parser.add_argument( + "--runner", + dest="runner", + action="append", + default=[], + help="Runner command item for cross targets; repeat for arguments.", + ) args = parser.parse_args(argv) try: for define in args.defines: diff --git a/x2py/cli.py b/x2py/cli.py index b3b3856f4..e77bfede2 100644 --- a/x2py/cli.py +++ b/x2py/cli.py @@ -48,7 +48,7 @@ def _to_dict_no_parent(obj): out = {} for f in fields(obj): value = getattr(obj, f.name) - if f.name == "parent" and not isinstance(value, (str, type(None))): + if f.name == "parent" and not isinstance(value, str | type(None)): continue out[f.name] = _to_dict_no_parent(value) return out @@ -111,11 +111,7 @@ def _resolve_language( ) -> str: def language_for_suffix(suffix: str) -> str | None: return next( - ( - language - for language, suffixes in _SOURCE_SUFFIXES_BY_LANGUAGE.items() - if suffix in suffixes - ), + (language for language, suffixes in _SOURCE_SUFFIXES_BY_LANGUAGE.items() if suffix in suffixes), None, ) @@ -143,10 +139,7 @@ def language_for_suffix(suffix: str) -> str | None: suffix = path.suffix.lower() if suffix in _C_SOURCE_SUFFIXES: - parser.error( - f"C input {path} requires explicit --language c. " - "Use --help for examples." - ) + parser.error(f"C input {path} requires explicit --language c. Use --help for examples.") if suffix not in _FORTRAN_SOURCE_SUFFIXES and suffix != ".pyi": parser.error( f"Cannot determine the input language for {path}; " @@ -221,10 +214,7 @@ def _parse_c_project( preprocessing: PreprocessingConfig, ): parser = CParser() - parsed_files = { - str(path): _parse_c_path(parser, path, preprocessing) - for path in expand_c_paths(paths) - } + parsed_files = {str(path): _parse_c_path(parser, path, preprocessing) for path in expand_c_paths(paths)} return parser.visit_parsed_project(parsed_files) @@ -262,15 +252,8 @@ def _semantic_report( out: dict[str, dict] = {} if language == "c": project = _parse_c_project(paths, preprocessing) - converted_files = { - module.origin.native_name: [module] - for module in c_project_to_semantic_modules(project) - } - available_modules = [ - module - for modules in converted_files.values() - for module in modules - ] + converted_files = {module.origin.native_name: [module] for module in c_project_to_semantic_modules(project)} + available_modules = [module for modules in converted_files.values() for module in modules] for p in expand_c_paths(paths): modules = converted_files[str(p)] stubs = emit_module_stubs(modules, available_modules=available_modules) @@ -280,9 +263,7 @@ def _semantic_report( "pyi": "\n\n".join(stubs[module.name] for module in modules).strip(), } dependencies = { - module_name: text - for module_name, text in stubs.items() - if module_name not in primary_names + module_name: text for module_name, text in stubs.items() if module_name not in primary_names } if dependencies: out[str(p)]["pyi_dependencies"] = dependencies @@ -315,11 +296,7 @@ def _semantic_report( "semantic_modules": [asdict(m) for m in modules], "pyi": "\n\n".join(stubs[module.name] for module in modules).strip(), } - dependencies = { - module_name: text - for module_name, text in stubs.items() - if module_name not in primary_names - } + dependencies = {module_name: text for module_name, text in stubs.items() if module_name not in primary_names} if dependencies: out[str(p)]["pyi_dependencies"] = dependencies return out @@ -370,17 +347,10 @@ def _wrap_readiness_report( preprocessing = preprocessing or PreprocessingConfig() out: dict[str, dict] = {} if language == "c": - c_paths = [ - path - for path in expand_c_paths(paths) - if path.suffix.lower() != ".pyi" - ] + c_paths = [path for path in expand_c_paths(paths) if path.suffix.lower() != ".pyi"] if c_paths: project = _parse_c_project([str(path) for path in c_paths], preprocessing) - converted_files = { - module.origin.native_name: [module] - for module in c_project_to_semantic_modules(project) - } + converted_files = {module.origin.native_name: [module] for module in c_project_to_semantic_modules(project)} for p in c_paths: modules = converted_files[str(p)] out[str(p)] = { @@ -392,11 +362,7 @@ def _wrap_readiness_report( return out parser = FortranParser() - expanded_paths = [ - path - for path in _expand_readiness_paths(paths) - if path.suffix.lower() != ".pyi" - ] + expanded_paths = [path for path in _expand_readiness_paths(paths) if path.suffix.lower() != ".pyi"] parsed_files = {} for p in expanded_paths: code, _preprocessing_recipe = _fortran_source_for_path(p, preprocessing) @@ -428,13 +394,7 @@ def _pyi_readiness_report(paths: list[str]) -> dict[str, dict]: pyi_paths = _expand_pyi_paths(paths) if not pyi_paths: return {} - modules = load_pyi_modules( - [ - raw - for raw in paths - if Path(raw).is_dir() or Path(raw).suffix.lower() == ".pyi" - ] - ) + modules = load_pyi_modules([raw for raw in paths if Path(raw).is_dir() or Path(raw).suffix.lower() == ".pyi"]) return { str(path): { "source_kind": "pyi", @@ -506,10 +466,7 @@ def _format_semantic_readiness(readiness_report: dict[str, dict]) -> str: lines: list[str] = [] for fname, payload in readiness_report.items(): readiness = payload.get("wrap_readiness", {}) - module_names = [ - module.get("name", "") - for module in payload.get("semantic_modules", []) - ] + module_names = [module.get("name", "") for module in payload.get("semantic_modules", [])] lines.append(f"File: {fname}") lines.append(f" Source: {payload.get('source_kind', '')}") lines.append(f" Semantic modules: {', '.join(module_names) or ''}") @@ -534,6 +491,9 @@ def _build_preprocessing_config(args: argparse.Namespace, parser: argparse.Argum """Build and validate the shared preprocessing CLI configuration.""" defines = list(args.defines or []) undefs = list(args.undefs or []) + compiler = args.compiler + if compiler is None and args.compile_commands is None and args.preprocess_template is None: + compiler = "cc" if args.language == "c" else "gfortran" for define in defines: try: validate_macro_name(define, "--define/-D") @@ -546,8 +506,8 @@ def _build_preprocessing_config(args: argparse.Namespace, parser: argparse.Argum parser.error(str(exc)) config = PreprocessingConfig( - mode=args.preprocess, - compiler=args.compiler, + mode="compiler", + compiler=compiler, compile_commands=args.compile_commands, adapter=args.preprocessor_adapter, command_template=args.preprocess_template, @@ -561,33 +521,8 @@ def _build_preprocessing_config(args: argparse.Namespace, parser: argparse.Argum private_includes=list(args.private_includes or []), ) - compiler_only_flags = [ - ("--compiler", args.compiler), - ("--compile-commands", args.compile_commands), - ("--preprocessor-adapter", None if args.preprocessor_adapter == "auto" else args.preprocessor_adapter), - ("--preprocess-template", args.preprocess_template), - ("--std", args.std), - ("--compiler-arg", args.compiler_args), - ("--include-exposure", None if args.include_exposure == "reachable-project" else args.include_exposure), - ("--public-include", args.public_includes), - ("--private-include", args.private_includes), - ] - for option, value in compiler_only_flags: - if value and not config.uses_compiler: - parser.error(f"{option} requires --preprocess compiler") - if config.uses_compiler and config.command_template and config.adapter != "command-template": parser.error("--preprocess-template requires --preprocessor-adapter command-template") - if config.uses_compiler and not config.compiler and not config.compile_commands and not config.command_template: - parser.error("--preprocess compiler requires --compiler with an exact executable, for example gcc-13 or /usr/bin/clang-18") - if config.compile_commands and not config.uses_compiler: - parser.error("--compile-commands requires --preprocess compiler") - if args.language == "c" and not config.uses_compiler and (defines or undefs): - parser.error("-D/--define and -U/--undef affect C only with --preprocess compiler; raw C mode records source macros without selecting branches") - if args.language == "fortran" and not config.uses_compiler and (defines or undefs): - parser.error("-D/--define and -U/--undef affect Fortran only with --preprocess compiler; internal Fortran parsing does not evaluate CPP branches") - if args.language == "fortran" and not config.uses_compiler and config.include_dirs: - parser.error("-I/--include-dir affects Fortran only with --preprocess compiler") return config @@ -609,7 +544,7 @@ def print_pyi_output(code: str) -> None: syntax = Syntax( code, "python", - theme="ansi_dark", # terminal-friendly + theme="ansi_dark", # terminal-friendly background_color="default", line_numbers=False, word_wrap=False, @@ -619,6 +554,7 @@ def print_pyi_output(code: str) -> None: # Never let colored output crash the CLI. print(code) + def main() -> int: parser = argparse.ArgumentParser( description="x2py CLI for parser and semantic conversion stages.", @@ -640,15 +576,15 @@ def main() -> int: " Parse C subset JSON:\n" " python -m x2py path/to/api.h --language c --parse --json\n" " Parse C with an exact compiler executable and API flags:\n" - " python -m x2py path/to/api.h --language c --parse --preprocess compiler --compiler clang-18 -I include -D API_EXPORT= --std c11\n" + " python -m x2py path/to/api.h --language c --parse --compiler clang-18 -I include -D API_EXPORT= --std c11\n" " Parse C with a compiler path and target/sysroot passthrough flags:\n" - " python -m x2py path/to/api.c --language c --parse --preprocess compiler --compiler /usr/bin/gcc-13 --compiler-arg=--sysroot=/opt/sdk\n" + " python -m x2py path/to/api.c --language c --parse --compiler /usr/bin/gcc-13 --compiler-arg=--sysroot=/opt/sdk\n" " Parse C with compile_commands.json for project flags:\n" - " python -m x2py path/to/api.c --language c --parse --preprocess compiler --compile-commands build/compile_commands.json\n" + " python -m x2py path/to/api.c --language c --parse --compile-commands build/compile_commands.json\n" " Parse Fortran with an exact compiler executable:\n" - " python -m x2py path/to/file.F90 --parse --preprocess compiler --compiler /usr/bin/gfortran-12 -I include -D USE_MPI\n" + " python -m x2py path/to/file.F90 --parse --compiler /usr/bin/gfortran-12 -I include -D USE_MPI\n" " Parse with a custom preprocessing command template:\n" - " python -m x2py path/to/api.h --language c --parse --preprocess compiler --preprocessor-adapter command-template --preprocess-template 'cc -E {include_dirs} {defines} {source}'\n" + " python -m x2py path/to/api.h --language c --parse --preprocessor-adapter command-template --preprocess-template 'cc -E {include_dirs} {defines} {source}'\n" " Write parser JSON:\n" " python -m x2py path/to/file.f90 --parse --json --out report.json\n" " Write one JSON file next to each source:\n" @@ -683,16 +619,6 @@ def main() -> int: ), ) parser.add_argument("--parse", action="store_true", help="Run and output parser stage report") - parser.add_argument( - "--preprocess", - choices=("internal", "compiler"), - default="internal", - help=( - "Preprocessing mode. 'internal' parses plain or already-expanded source without CPP branch selection. " - "'compiler' runs the exact " - "compiler/preprocessor configured by --compiler or --compile-commands." - ), - ) parser.add_argument( "--preprocessor-adapter", choices=("auto", "gcc-compatible-c", "gnu-fortran", "command-template"), @@ -702,14 +628,14 @@ def main() -> int: parser.add_argument( "--compiler", help=( - "Exact compiler/preprocessor executable for --preprocess compiler, e.g. gcc-13, " + "Exact compiler/preprocessor executable, e.g. gcc-13, " "clang-18, /usr/bin/gfortran-12, or /opt/intel/oneapi/compiler/latest/bin/ifx." ), ) parser.add_argument( "--compile-commands", metavar="PATH", - help="compile_commands.json database used with --preprocess compiler.", + help="compile_commands.json database used for compiler preprocessing.", ) parser.add_argument( "--preprocess-template", @@ -794,10 +720,14 @@ def main() -> int: action="store_true", help="Convert Fortran, C, or .pyi input to semantic IR and show wrapper readiness", ) - parser.add_argument("--semantics", action="store_true", help="Generate semantic IR models from parsed source modules") + parser.add_argument( + "--semantics", action="store_true", help="Generate semantic IR models from parsed source modules" + ) parser.add_argument("--pyi", action="store_true", help="Generate semantic Python .pyi content") parser.add_argument("--json", action="store_true", help="Print JSON to stdout") - parser.add_argument("--out", nargs="?", const="", type=str, help="Write stage output to file (optional explicit output filename)") + parser.add_argument( + "--out", nargs="?", const="", type=str, help="Write stage output to file (optional explicit output filename)" + ) parser.add_argument("--no-color", action="store_true", help="Disable ANSI color in parse diagnostics") parser.add_argument( "--debug", @@ -812,7 +742,9 @@ def main() -> int: if args.language == "c": if not (args.parse or args.semantics or args.pyi or args.wrap_readiness): - parser.error("--language c requires a stage flag: choose one of --parse, --semantics, --pyi, or --wrap-readiness") + parser.error( + "--language c requires a stage flag: choose one of --parse, --semantics, --pyi, or --wrap-readiness" + ) if args.show_vars or args.print_limit is not None or args.vars_limit is not None: parser.error("--show-vars/--print-limit are Fortran-only and are not supported for --language c") @@ -838,20 +770,32 @@ def main() -> int: source_loader=_c_source_loader(preprocessing), ) if args.parse and args.language == "c" - else _parse_report(args.paths, preprocessing) if args.parse else None + else _parse_report(args.paths, preprocessing) + if args.parse + else None + ) + semantic_payload = ( + _semantic_report(args.paths, preprocessing, language=args.language) + if (args.semantics or args.pyi) + else None + ) + readiness_payload = ( + _wrap_readiness_report(args.paths, preprocessing, language=args.language) if args.wrap_readiness else None ) - semantic_payload = _semantic_report(args.paths, preprocessing, language=args.language) if (args.semantics or args.pyi) else None - readiness_payload = _wrap_readiness_report(args.paths, preprocessing, language=args.language) if args.wrap_readiness else None _attach_wrap_readiness(semantic_payload, readiness_payload) except CParseError as exc: if args.debug or _env_flag("C_PARSER_DEBUG"): raise - print(exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr) + print( + exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr + ) return 1 except FortranParseError as exc: if args.debug or _env_flag("FORTRAN_PARSER_DEBUG"): raise - print(exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr) + print( + exc.format_diagnostic(color=_diagnostic_color_enabled(disabled=args.no_color), debug=False), file=sys.stderr + ) return 1 except PreprocessingError as exc: if args.debug or _env_flag("X2PY_DEBUG"): @@ -892,7 +836,9 @@ def main() -> int: if args.pyi: if args.out: - pyi_text = "\n\n".join((report.get("pyi") or "") for report in (semantic_payload or {}).values()).strip() + pyi_text = "\n\n".join( + (report.get("pyi") or "") for report in (semantic_payload or {}).values() + ).strip() Path(args.out).write_text(pyi_text + "\n", encoding="utf-8") _write_pyi_dependencies(semantic_payload or {}, output_dir=Path(args.out).parent) else: @@ -906,13 +852,18 @@ def main() -> int: for fname, report in payload.items(): Path(fname).with_suffix(".json").write_text(json.dumps({fname: report}, indent=2), encoding="utf-8") - if args.out is not None: return 0 if args.wrap_readiness: if args.parse and not args.json: - print(_format_report(parse_payload or {}, show_vars=args.show_vars or args.vars_limit is not None, print_limit=print_limit)) + print( + _format_report( + parse_payload or {}, + show_vars=args.show_vars or args.vars_limit is not None, + print_limit=print_limit, + ) + ) print() print(_format_semantic_readiness(readiness_payload or {})) elif args.pyi and not args.json: @@ -931,7 +882,13 @@ def main() -> int: if args.language == "c": print(format_c_report(parse_payload or {})) else: - print(_format_report(parse_payload or {}, show_vars=args.show_vars or args.vars_limit is not None, print_limit=print_limit)) + print( + _format_report( + parse_payload or {}, + show_vars=args.show_vars or args.vars_limit is not None, + print_limit=print_limit, + ) + ) else: print(json.dumps(payload, indent=2)) diff --git a/x2py/fortran_type_probe.py b/x2py/fortran_type_probe.py index 9653ae2ca..c01d26c96 100644 --- a/x2py/fortran_type_probe.py +++ b/x2py/fortran_type_probe.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Compiler-derived Fortran kind expression facts. Fortran kind values and intrinsics such as ``selected_real_kind`` are @@ -175,9 +174,7 @@ def probe_fortran_type_expressions( command; the command is recorded in the result. """ if not config.compiler: - raise FortranTypeProbeError( - "Fortran type probing requires an exact compiler executable" - ) + raise FortranTypeProbeError("Fortran type probing requires an exact compiler executable") if config.compile_commands: raise FortranTypeProbeError( "Fortran type probing does not consume compile_commands directly; " @@ -189,9 +186,7 @@ def probe_fortran_type_expressions( with tempfile.TemporaryDirectory(prefix="x2py-fortran-type-probe-") as temp_dir: source_path = Path(temp_dir) / "fortran_type_probe.F90" - executable_path = Path(temp_dir) / ( - "fortran_type_probe.exe" if os.name == "nt" else "fortran_type_probe" - ) + executable_path = Path(temp_dir) / ("fortran_type_probe.exe" if os.name == "nt" else "fortran_type_probe") source_path.write_text(source_text, encoding="utf-8") compile_argv = [ @@ -215,9 +210,7 @@ def probe_fortran_type_expressions( if compiled.returncode != 0: command = " ".join(shlex.quote(arg) for arg in compile_argv) detail = f": {compiled.stderr.strip()}" if compiled.stderr.strip() else "" - raise FortranTypeProbeError( - f"Fortran type probe compilation failed with `{command}`{detail}" - ) + raise FortranTypeProbeError(f"Fortran type probe compilation failed with `{command}`{detail}") run_argv = [*(runner or ()), str(executable_path)] try: @@ -229,21 +222,16 @@ def probe_fortran_type_expressions( ) except OSError as exc: raise FortranTypeProbeError( - "failed to execute Fortran type probe; provide a compatible " - f"runner for cross-compiled targets: {exc}" + f"failed to execute Fortran type probe; provide a compatible runner for cross-compiled targets: {exc}" ) from exc if completed.returncode != 0: command = " ".join(shlex.quote(arg) for arg in run_argv) detail = f": {completed.stderr.strip()}" if completed.stderr.strip() else "" - raise FortranTypeProbeError( - f"Fortran type probe execution failed with `{command}`{detail}" - ) + raise FortranTypeProbeError(f"Fortran type probe execution failed with `{command}`{detail}") try: payload = json.loads(completed.stdout) except json.JSONDecodeError as exc: - raise FortranTypeProbeError( - f"Fortran type probe produced invalid JSON: {exc}" - ) from exc + raise FortranTypeProbeError(f"Fortran type probe produced invalid JSON: {exc}") from exc raw_values = payload.get("values") if not isinstance(raw_values, list): @@ -252,11 +240,9 @@ def probe_fortran_type_expressions( raise FortranTypeProbeError("Fortran type probe output count does not match input expressions") values: dict[str, int] = {} - for expression, value in zip(unique_expressions, raw_values): + for expression, value in zip(unique_expressions, raw_values, strict=False): if not isinstance(value, int): - raise FortranTypeProbeError( - f"Fortran type probe value for {expression!r} is not an integer" - ) + raise FortranTypeProbeError(f"Fortran type probe value for {expression!r} is not an integer") values[expression] = value return FortranTypeProbeReport( @@ -317,17 +303,11 @@ def _validate_expression(expression: str) -> None: f"Fortran type probe expression is not a single initialization expression: {expression!r}" ) if _SAFE_EXPRESSION_RE.fullmatch(expression) is None: - raise FortranTypeProbeError( - f"Fortran type probe expression contains unsupported characters: {expression!r}" - ) + raise FortranTypeProbeError(f"Fortran type probe expression contains unsupported characters: {expression!r}") def _probe_import_lines(expressions: Sequence[str]) -> list[str]: - tokens = { - token.lower() - for expression in expressions - for token in _TOKEN_RE.findall(expression) - } + tokens = {token.lower() for expression in expressions for token in _TOKEN_RE.findall(expression)} lines: list[str] = [] env_names = sorted(tokens & _ISO_FORTRAN_ENV_NAMES) c_names = sorted(tokens & _ISO_C_BINDING_NAMES) @@ -380,7 +360,13 @@ def main(argv: list[str] | None = None) -> int: parser.add_argument("-U", "--undef", dest="undefs", action="append", default=[]) parser.add_argument("--std", help="Project Fortran standard passed to the probe compiler.") parser.add_argument("--compiler-arg", dest="compiler_args", action="append", default=[]) - parser.add_argument("--runner", dest="runner", action="append", default=[], help="Runner command item for cross targets; repeat for arguments.") + parser.add_argument( + "--runner", + dest="runner", + action="append", + default=[], + help="Runner command item for cross targets; repeat for arguments.", + ) args = parser.parse_args(argv) try: for define in args.defines: diff --git a/x2py/preprocessing.py b/x2py/preprocessing.py index 04ccb82ee..e4c2c0117 100644 --- a/x2py/preprocessing.py +++ b/x2py/preprocessing.py @@ -13,9 +13,10 @@ import shlex import shutil import subprocess +from collections.abc import Sequence from dataclasses import dataclass, field from pathlib import Path -from typing import Literal, Protocol, Sequence +from typing import ClassVar, Literal, Protocol PreprocessingCategory = Literal[ @@ -41,7 +42,7 @@ def __init__( message: str, *, category: PreprocessingCategory = "PREPROCESSOR_FAILED", - diagnostics: Sequence["PreprocessingDiagnostic"] | None = None, + diagnostics: Sequence[PreprocessingDiagnostic] | None = None, ) -> None: self.category = category self.diagnostics = list(diagnostics or []) @@ -297,17 +298,13 @@ def build_preprocess_invocation( *, language: str, config: PreprocessingConfig, - ) -> Invocation: - ... + ) -> Invocation: ... - def collect_dependencies(self, result: "PreprocessResult") -> list[IncludedFile]: - ... + def collect_dependencies(self, result: PreprocessResult) -> list[IncludedFile]: ... - def collect_macros(self, result: "PreprocessResult") -> list[MacroDefinition]: - ... + def collect_macros(self, result: PreprocessResult) -> list[MacroDefinition]: ... - def parse_linemarkers(self, source: str, filename: str | None = None) -> list[SourceMapping]: - ... + def parse_linemarkers(self, source: str, filename: str | None = None) -> list[SourceMapping]: ... _VALID_LANGUAGES = {"c", "fortran"} @@ -379,9 +376,15 @@ def _preprocessor_options(config: PreprocessingConfig, *, language: str, include return args +def _fortran_source_language_hint(source: Path) -> list[str]: + if source.suffix.lower() in _FORTRAN_SOURCE_SUFFIXES: + return [] + return ["-x", "f95-cpp-input"] + + class GCCCompatibleCAdapter: name = "gcc-compatible-c" - capabilities = {"dependency_output": True, "macro_dump": True, "linemarkers": True} + capabilities: ClassVar[dict[str, bool]] = {"dependency_output": True, "macro_dump": True, "linemarkers": True} def build_preprocess_invocation( self, @@ -408,7 +411,7 @@ class GNUFortranAdapter(GCCCompatibleCAdapter): class CommandTemplateAdapter(GCCCompatibleCAdapter): name = "command-template" - capabilities = {"dependency_output": False, "macro_dump": False, "linemarkers": False} + capabilities: ClassVar[dict[str, bool]] = {"dependency_output": False, "macro_dump": False, "linemarkers": False} def build_preprocess_invocation( self, @@ -434,6 +437,7 @@ def build_direct_preprocess_invocation( argv = [ compiler, *_preprocessor_options(config, language=language, include_language_flag=language == "c"), + *(_fortran_source_language_hint(source) if language == "fortran" else []), str(source), ] adapter = "gnu-fortran" if language == "fortran" else "gcc-compatible-c" @@ -641,12 +645,14 @@ def _template_token_value(token: str, source: Path, language: str, config: Prepr return [f"-std={config.std}"] if config.std else [] if token == "{compiler_args}": return list(config.compiler_args) - return [token.format( - source=str(source), - compiler=config.compiler or "", - language=language, - standard=config.std or "", - )] + return [ + token.format( + source=str(source), + compiler=config.compiler or "", + language=language, + standard=config.std or "", + ) + ] def build_template_preprocess_invocation( @@ -825,10 +831,7 @@ def _included_files_from_linemarkers( if 1 in flags: stack.append(marker_path) elif 2 in flags: - if marker_path in stack: - stack = stack[: stack.index(marker_path) + 1] - else: - stack = [marker_path] + stack = stack[: stack.index(marker_path) + 1] if marker_path in stack else [marker_path] elif stack: stack[-1] = marker_path current_path = marker_path @@ -850,7 +853,9 @@ def _parse_macro_definitions(source: str, mappings: Sequence[SourceMapping]) -> name=name, value=value.strip() if value else None, function_like=params_text is not None, - parameters=[item.strip() for item in params.split(",")] if params is not None and params.strip() else ([] if params_text else None), + parameters=[item.strip() for item in params.split(",")] + if params is not None and params.strip() + else ([] if params_text else None), path=mapping.original_path if mapping else None, line=mapping.original_line if mapping else None, builtin=(mapping.original_path.startswith("<") if mapping else False), @@ -859,11 +864,18 @@ def _parse_macro_definitions(source: str, mappings: Sequence[SourceMapping]) -> return macros -def _mapping_for_generated_line(mappings: Sequence[SourceMapping], generated_line: int, fallback: Path) -> SourceMapping: +def _mapping_for_generated_line( + mappings: Sequence[SourceMapping], generated_line: int, fallback: Path +) -> SourceMapping: for mapping in mappings: if mapping.generated_line == generated_line: return mapping - return SourceMapping(generated_line=generated_line, original_path=str(fallback), original_line=generated_line, include_stack=[str(fallback)]) + return SourceMapping( + generated_line=generated_line, + original_path=str(fallback), + original_line=generated_line, + include_stack=[str(fallback)], + ) def _resolve_fortran_include(target: str, including_file: str, include_dirs: Sequence[str]) -> Path | None: @@ -991,7 +1003,12 @@ def expand_text(text: str, current_file: Path, stack: list[Path]) -> list[str]: root_abs = root_path.resolve() if root_path.exists() else root_path.absolute() expanded_lines = expand_text(source, root_abs, [root_abs]) - return "\n".join(expanded_lines) + ("\n" if source.endswith("\n") else ""), included_files, generated_mappings, diagnostics + return ( + "\n".join(expanded_lines) + ("\n" if source.endswith("\n") else ""), + included_files, + generated_mappings, + diagnostics, + ) def _recipe_from_invocation( @@ -1187,9 +1204,15 @@ def run_compiler_preprocessor_with_recipe( standard=result.recipe.get("standard") if isinstance(result.recipe.get("standard"), str) else None, compiler_args=list(result.recipe.get("compiler_args") or []), source_path=result.recipe.get("source_path") if isinstance(result.recipe.get("source_path"), str) else None, - compile_commands=result.recipe.get("compile_commands") if isinstance(result.recipe.get("compile_commands"), str) else None, - compile_commands_entry=result.recipe.get("compile_commands_entry") if isinstance(result.recipe.get("compile_commands_entry"), dict) else None, - command_template=result.recipe.get("command_template") if isinstance(result.recipe.get("command_template"), str) else None, + compile_commands=result.recipe.get("compile_commands") + if isinstance(result.recipe.get("compile_commands"), str) + else None, + compile_commands_entry=result.recipe.get("compile_commands_entry") + if isinstance(result.recipe.get("compile_commands_entry"), dict) + else None, + command_template=result.recipe.get("command_template") + if isinstance(result.recipe.get("command_template"), str) + else None, included_files=list(result.recipe.get("included_files") or []), source_mappings=list(result.recipe.get("source_mappings") or []), macros=list(result.recipe.get("macros") or []),